/*
Theme Name: ElectroPort
Theme URI: https://electroport.gr
Author: ElectroPort
Description: Custom theme για επισκευές ηλεκτρονικών ElectroPort — τηλεοράσεις, υπολογιστές, ανταλλακτικά.
Version: 1.0
Text Domain: electroport
*/

:root{
  --bg:#F7F5F2;
  --panel:#FFFFFF;
  --panel-alt:#F0EDE8;
  --border:#E4E0D8;
  --dark:#14171A;
  --dark-panel:#1D2124;
  --dark-border:#33393F;
  --text:#1F2328;
  --muted:#6B7178;
  --muted-light:#9CA3AF;
  --accent:#FF7A45;
  --accent-dark:#E3612E;
  --amber:#E8B23D;
  --green:#4ADE80;
  --mono:'JetBrains Mono', monospace;
  --sans:'Inter', -apple-system, sans-serif;
}
*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--text); font-family:var(--sans);
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent-dark); text-decoration:none; transition:color .15s;}
a:hover{text-decoration:underline;}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}
img{max-width:100%; display:block;}
.container{max-width:1080px; margin:0 auto; padding:0 20px;}
h1,h2,h3{font-weight:800; letter-spacing:-0.02em; line-height:1.15; margin:0 0 14px;}
h1{font-size:clamp(30px,5.2vw,48px);}
h2{font-size:clamp(24px,3.8vw,32px);}
h3{font-size:18px; letter-spacing:-0.01em;}
p{margin:0 0 14px;}
.section{padding:64px 0;}
.section-alt{background:var(--panel-alt);}
.eyebrow{
  font-family:var(--mono); font-size:12px; text-transform:uppercase; letter-spacing:0.08em;
  color:var(--accent-dark); font-weight:700; margin-bottom:10px; display:flex; align-items:center; gap:8px;
}
.eyebrow::before{content:''; width:16px; height:1px; background:var(--accent-dark);}

.btn{
  display:inline-flex; align-items:center; gap:8px; background:var(--accent) !important; color:#14171A !important;
  padding:13px 26px; border-radius:9px; font-weight:700; font-size:14.5px; border:none; cursor:pointer;
  transition:transform .15s, box-shadow .15s, background .15s;
  box-shadow:0 1px 0 rgba(0,0,0,0.05);
}
.btn:hover{background:var(--accent-dark) !important; color:#fff !important; text-decoration:none; transform:translateY(-2px); box-shadow:0 8px 18px rgba(227,97,46,0.28);}
.btn-outline{background:transparent !important; border:1.5px solid var(--dark); color:var(--dark) !important;}
.btn-outline:hover{background:var(--dark) !important; color:#fff !important; box-shadow:0 8px 18px rgba(20,23,26,0.18);}

/* circuit-trace divider between sections */
.trace-divider{height:1px; background:var(--border); position:relative; max-width:1080px; margin:0 auto;}
.trace-divider::before{
  content:''; position:absolute; left:50%; top:-3px; width:7px; height:7px; border-radius:50%;
  background:var(--accent); transform:translateX(-50%);
}

/* HEADER */
.site-header{background:var(--dark); position:sticky; top:0; z-index:50; border-bottom:1px solid var(--dark-border);}
.site-header .container{display:flex; align-items:center; justify-content:space-between; padding:14px 20px; gap:16px;}
.brand{display:flex; align-items:center; gap:10px; color:#fff;}
.brand-mark{
  width:36px; height:36px; border-radius:9px; background:var(--accent);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-name{font-weight:800; font-size:17px; color:#fff;}
.brand-name span{color:var(--muted-light); font-weight:600; font-size:12px; display:block; font-family:var(--mono); letter-spacing:0.03em;}
.main-nav ul{list-style:none; display:flex; gap:22px; margin:0; padding:0;}
.main-nav a{color:#DADCDF; font-size:14.5px; font-weight:600;}
.main-nav a:hover{color:var(--accent); text-decoration:none;}
.nav-toggle{display:none; background:none; border:none; color:#fff; font-size:24px; cursor:pointer;}

@media(max-width:760px){
  .nav-toggle{display:block;}
  .main-nav{
    display:none; position:absolute; top:100%; left:0; right:0; background:var(--dark);
    border-bottom:1px solid var(--dark-border); padding:10px 20px 20px;
  }
  .main-nav.open{display:block;}
  .main-nav ul{flex-direction:column; gap:14px;}
}

/* HERO */
.hero{
  background:var(--dark); color:#fff; padding:80px 0 70px; position:relative; overflow:hidden;
}
.hero-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:20px; align-items:center; position:relative; z-index:2;}
@media(max-width:820px){ .hero-grid{grid-template-columns:1fr;} .hero-art{display:none;} }
.hero h1{color:#fff;}
.hero p.lead{color:#B7BBC0; font-size:17px; max-width:480px;}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:24px;}
.hero-actions .btn-outline{border-color:#40464D; color:#fff !important;}
.hero-actions .btn-outline:hover{background:#fff !important; color:var(--dark) !important;}
.hero-art{position:relative;}
.hero-art svg{width:100%; height:auto;}
.hero-art .trace{stroke:#33393F; stroke-width:1.5; fill:none;}
.hero-art .trace-lit{stroke:var(--accent); stroke-width:1.5; fill:none; opacity:0.7;}
.hero-art .node{fill:#40464D;}
.hero-art .node-lit{fill:var(--accent);}
.hero-art .chip-body{fill:#1D2124; stroke:#3A4046; stroke-width:1.5;}
.hero-art .chip-text{fill:#fff; font-family:var(--sans); font-weight:800;}

/* SERVICE CARDS */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:20px;}
@media(max-width:760px){ .grid-3, .grid-2{grid-template-columns:1fr;} }
.card{
  background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:28px;
  position:relative; transition:transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover{transform:translateY(-3px); box-shadow:0 14px 28px rgba(20,23,26,0.07); border-color:#D8D2C6;}
.card::before{
  content:''; position:absolute; top:14px; right:14px; width:14px; height:14px;
  border-top:1.5px solid var(--border); border-right:1.5px solid var(--border); border-radius:0 4px 0 0;
}
.card .icon{
  width:46px; height:46px; border-radius:10px; background:var(--panel-alt);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--accent-dark);
}

/* PRODUCTS */
.filter-bar{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; align-items:center;}
.filter-bar input[type=text]{
  flex:1; min-width:220px; padding:11px 14px; border-radius:9px; border:1px solid var(--border);
  font-family:var(--sans); font-size:14.5px; background:var(--panel);
}
.filter-bar select{padding:11px 14px; border-radius:9px; border:1px solid var(--border); background:var(--panel); font-family:var(--sans); font-size:14px;}
.filter-bar button{padding:11px 20px;}
.product-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
@media(max-width:900px){ .product-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){ .product-grid{grid-template-columns:1fr;} }
.product-card{background:var(--panel); border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:transform .18s, box-shadow .18s;}
.product-card:hover{transform:translateY(-4px); box-shadow:0 16px 30px rgba(20,23,26,0.1);}
.product-thumb{width:100%; aspect-ratio:4/3; background:var(--panel-alt); display:flex; align-items:center; justify-content:center; color:var(--muted-light);}
.product-thumb img{width:100%; height:100%; object-fit:cover;}
.product-info{padding:16px;}
.product-cat{font-family:var(--mono); font-size:10.5px; text-transform:uppercase; color:var(--accent-dark); font-weight:700; letter-spacing:0.03em;}
.product-info h3{margin:6px 0 4px;}
.product-price{font-family:var(--mono); font-weight:700; color:var(--dark); font-size:16px; margin-top:8px;}
.product-condition{font-size:12px; color:var(--muted); font-family:var(--mono);}
.empty-note{text-align:center; padding:60px 20px; color:var(--muted);}

/* SINGLE PRODUCT */
.single-product{display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start;}
@media(max-width:760px){ .single-product{grid-template-columns:1fr;} }
.single-product .product-thumb{aspect-ratio:auto; border-radius:14px; overflow:hidden;}
.spec-row{display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px dashed var(--border); font-size:14.5px;}
.spec-row b{color:var(--muted);}

/* TESTIMONIALS */
.testimonial{background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:24px; position:relative;}
.testimonial::before{
  content:'"'; position:absolute; top:10px; right:18px; font-family:var(--mono); font-size:44px;
  color:var(--panel-alt); font-weight:700; line-height:1;
}
.testimonial .stars{color:var(--amber); margin-bottom:10px; font-size:15px; position:relative;}
.testimonial .who{font-weight:700; margin-top:10px; font-size:14px;}
.testimonial .device{color:var(--muted); font-size:12.5px; font-family:var(--mono);}

/* APPOINTMENT FORM */
.form-box{background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:30px; max-width:560px; margin:0 auto;}
.field{margin-bottom:16px;}
.field label{display:block; font-size:12.5px; font-weight:700; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.03em; font-family:var(--mono);}
.field input, .field textarea, .field select{
  width:100%; padding:12px 13px; border-radius:9px; border:1px solid var(--border); font-family:var(--sans); font-size:15px;
}
.field textarea{min-height:100px; resize:vertical;}
.success-note{background:#E9FBF0; border:1px solid #B7EFC9; color:#166534; padding:14px 16px; border-radius:10px; margin-bottom:20px; font-weight:600;}

/* GENERIC PAGE CONTENT */
.page-content{max-width:760px; margin:0 auto;}
.page-content h2{margin-top:32px;}
.page-content ul{padding-left:20px;}

/* FOOTER */
.site-footer{background:var(--dark); color:#C4C7CB; padding:50px 0 24px; margin-top:60px;}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr; gap:30px; margin-bottom:30px;}
@media(max-width:760px){ .footer-grid{grid-template-columns:1fr;} }
.site-footer h4{color:#fff; font-size:14px; margin-bottom:12px;}
.site-footer a{color:#C4C7CB;}
.site-footer a:hover{color:var(--accent);}
.footer-widget ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; font-size:14px;}
.footer-bottom{
  border-top:1px solid var(--dark-border); padding-top:20px; display:flex; justify-content:space-between;
  align-items:center; flex-wrap:wrap; gap:10px; font-size:12.5px; color:var(--muted-light);
}
.footer-tools{font-family:var(--mono); font-size:11px;}
.footer-tools a{color:var(--muted-light); opacity:0.6;}
.footer-tools a:hover{opacity:1;}

.ep-fab-stack{
  position:fixed; right:20px; bottom:20px; z-index:50;
  display:flex; flex-direction:column; gap:12px; align-items:flex-end;
}
.ep-fab{
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.28);
  transition:transform 0.15s ease;
}
.ep-fab:hover{transform:scale(1.08);}
.ep-fab-whatsapp{background:#25D366;}
.ep-fab-viber{background:#7360F2;}
@media (max-width:600px){
  .ep-fab-stack{right:14px; bottom:14px; gap:10px;}
  .ep-fab{width:52px; height:52px;}
}

/* SEARCH FORM (header) */
.header-search{display:flex; align-items:center; background:#1D2124; border:1px solid var(--dark-border); border-radius:8px; padding:0 10px;}
.header-search input{background:none; border:none; color:#fff; padding:9px 6px; font-size:13.5px; width:140px;}
.header-search input:focus{outline:none;}
.header-search button{background:none; border:none; color:var(--muted-light); cursor:pointer;}
