/*
Theme Name: Pyrothermiki Classic
Theme URI: https://www.pyrothermiki.gr/
Author: Pyrothermiki
Description: Bold black/red/yellow industrial theme for Pyrothermiki — Karentzos Athanasios. Heating, cooling, fire safety & energy inspections.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: pyrothermiki
*/

/* ---------- Design tokens ---------- */
:root{
  --background:#1a0f0d;
  --foreground:#f7f1e6;
  --card:#241512;
  --muted:#2e1b18;
  --muted-foreground:#b8a898;
  --border:#3a221e;
  --primary:#e63424;          /* fire red */
  --primary-foreground:#fff8ec;
  --secondary:#f5c518;         /* yellow */
  --secondary-foreground:#1a0f0d;
  --shadow-fire:0 20px 60px -20px rgba(230,52,36,.55);
  --radius:4px;
  --maxw:1200px;
  --eyebrow-fs:12px;
  --h1-fs:clamp(40px,7vw,88px);
  --h2-fs:clamp(32px,5vw,64px);
  --h3-fs:24px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden;max-width:100%}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial,sans-serif;
  background:var(--background);color:var(--foreground);
  -webkit-font-smoothing:antialiased;line-height:1.6;
  overflow-x:hidden;max-width:100%;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.eyebrow{font-size:var(--eyebrow-fs);font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--secondary);margin-bottom:12px}
h1,h2,h3{font-weight:900;letter-spacing:-.02em;line-height:1.05;hyphens:auto}
h1{font-size:var(--h1-fs)}
h2{font-size:var(--h2-fs)}
h3{font-size:var(--h3-fs)}

/* ---------- Header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(26,15,13,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.site-header .container{height:auto;min-height:64px;padding-top:6px;padding-bottom:6px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;overflow:visible;gap:4px}
.brand{display:flex;align-items:center;gap:6px;font-weight:900;font-size:15px;letter-spacing:-.02em;flex-shrink:0}
.brand img{max-height:60px;width:auto;display:block}
.brand-mark{width:30px;height:30px;background:var(--primary);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-fire);flex-shrink:0}
.brand-mark svg{width:16px;height:16px;color:var(--secondary)}
.brand span em{font-style:normal;color:var(--foreground)}
.nav{display:flex;gap:2px;font-size:10px;font-weight:500;flex-wrap:nowrap;justify-content:flex-start;align-items:center;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav ul,.nav li{list-style:none;margin:0;padding:0;display:flex;flex-wrap:nowrap;gap:2px;align-items:center}
.nav a{transition:color .2s;white-space:nowrap;padding:4px 4px;font-size:clamp(8px,2.5vw,10px);word-break:keep-all;flex-shrink:0}
.nav a:hover{color:var(--secondary)}
.cta-phone{display:none;align-items:center;gap:4px;background:var(--secondary);color:var(--secondary-foreground);padding:4px 8px;font-weight:800;font-size:10px;border-radius:var(--radius);transition:opacity .2s;flex-shrink:0;white-space:nowrap}
.cta-phone:hover{opacity:.9}
.cta-phone svg{width:12px;height:12px}
@media(min-width:500px){.brand{font-size:18px;gap:10px}.brand-mark{width:36px;height:36px}.brand-mark svg{width:20px;height:20px}.brand img{max-height:80px}.nav{gap:8px;font-size:13px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}.nav ul,.nav li{gap:8px;flex-wrap:nowrap}.nav a{font-size:13px;padding:4px 8px;white-space:nowrap;word-break:keep-all}}
@media(min-width:768px){.site-header .container{min-height:72px;padding-top:8px;padding-bottom:8px;gap:0}.brand{font-size:18px;gap:10px}.brand-mark{width:36px;height:36px}.brand-mark svg{width:20px;height:20px}.brand img{max-height:80px}.nav{gap:32px;font-size:18px;justify-content:flex-end;flex:0 1 auto;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}.nav ul,.nav li{gap:32px;flex-wrap:nowrap}.nav a{font-size:18px;padding:0;white-space:nowrap;word-break:keep-all}.cta-phone{display:inline-flex;gap:8px;padding:8px 16px;font-size:14px}.cta-phone svg{width:16px;height:16px}}

/* ---------- Admin bar fix ---------- */
.admin-bar .site-header{top:32px}
@media screen and (max-width:782px){.admin-bar .site-header{top:46px}}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;overflow:visible;padding-top:64px}
@media(max-width:480px){.hero{min-height:auto;padding:100px 0 60px;overflow:visible!important}}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.4}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,var(--background) 0%,rgba(26,15,13,.85) 60%,transparent 100%),linear-gradient(to top,var(--background),transparent 50%)}
.hero .container{position:relative;z-index:1;padding-top:80px;padding-bottom:80px;display:grid;grid-template-columns:1fr;gap:32px;align-items:center}
@media(min-width:900px){.hero .container{grid-template-columns:2fr 1fr}}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid rgba(245,197,24,.4);background:rgba(245,197,24,.1);color:var(--secondary);font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;border-radius:var(--radius);margin-bottom:24px}
.badge .dot{width:8px;height:8px;background:var(--secondary);border-radius:50%;animation:pulse 2s infinite}
@keyframes pulse{50%{opacity:.4}}
.hero h1 .red{color:var(--primary)}
.hero h1 .yellow{color:var(--secondary)}
@media(max-width:480px){.hero h1{font-size:clamp(16px,7vw,30px)!important;word-break:break-word;overflow-wrap:break-word;hyphens:auto}.hero p.lead{font-size:14px!important}}
.hero p.lead{margin-top:28px;font-size:18px;color:var(--muted-foreground);max-width:640px}
.hero p.lead span{white-space:nowrap}
.hero p.lead .red{color:var(--primary)}
.hero p.lead .yellow{color:var(--secondary)}
.hero p.lead .white{color:var(--foreground)}
.hero p.lead .custom{color:#f0a030}
.btn-row{margin-top:36px;display:flex;flex-wrap:wrap;gap:14px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:16px 24px;font-weight:800;border-radius:var(--radius);transition:all .2s;font-size:15px;cursor:pointer;border:none}
.btn-primary{background:var(--primary);color:var(--primary-foreground);box-shadow:var(--shadow-fire)}
.btn-primary:hover{background:#c92a1c}
.btn-outline{border:2px solid var(--secondary);color:var(--secondary);background:transparent}
.btn-outline:hover{background:var(--secondary);color:var(--secondary-foreground)}
.hero-badge-card{aspect-ratio:1;background:linear-gradient(135deg,var(--primary),#8a1a12 50%,var(--secondary));padding:4px;border-radius:var(--radius);box-shadow:var(--shadow-fire);display:block;max-width:280px;margin:0 auto}
@media(min-width:900px){.hero-badge-card{max-width:none;margin:0}}
.hero-badge-card > div{width:100%;height:100%;background:var(--background);border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;text-align:center}
.hero-badge-card svg{width:72px;height:72px;color:var(--primary);margin-bottom:16px}
.hero-badge-card .years{font-size:60px;font-weight:900;color:var(--secondary);line-height:1}
.hero-badge-card .label{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted-foreground);margin-top:8px}

/* ---------- Marquee strip ---------- */
.strip{background:var(--primary);color:var(--primary-foreground);border-top:1px solid var(--border);border-bottom:1px solid var(--border);overflow:hidden}
.strip .container{padding-top:16px;padding-bottom:16px;display:flex;flex-direction:column;gap:10px;font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}
@media(min-width:600px){.strip .container{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:12px 24px}}
@media(min-width:960px){.strip .container{flex-wrap:nowrap;justify-content:space-between;gap:20px}.strip .container span{white-space:nowrap}}

/* ---------- Sections ---------- */
section{padding:96px 0}
.section-head{max-width:720px;margin-bottom:64px}

/* ---------- Services ---------- */
.services-grid{display:grid;grid-template-columns:1fr;gap:1px;background:var(--border)}
@media(min-width:640px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.services-grid{grid-template-columns:repeat(3,1fr)}}
.service{position:relative;background:var(--card);padding:36px;transition:background .3s}
.service:hover{background:var(--primary)}
.service .icon-wrap{width:56px;height:56px;border:2px solid rgba(245,197,24,.4);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;margin-bottom:24px;transition:all .3s}
.service:hover .icon-wrap{border-color:var(--secondary);background:rgba(245,197,24,.2)}
.service .icon-wrap svg{width:24px;height:24px;color:var(--secondary)}
.service p{color:var(--muted-foreground);transition:color .3s}
.service:hover p{color:rgba(255,248,236,.9)}
.service .num{position:absolute;top:32px;right:32px;font-size:56px;font-weight:900;color:rgba(184,168,152,.15);font-variant-numeric:tabular-nums;transition:color .3s}
.service:hover .num{color:rgba(255,248,236,.2)}

/* ---------- About ---------- */
.about{background:var(--card);border-top:1px solid var(--border);border-bottom:1px solid var(--border);position:relative;overflow:hidden}
.about::before,.about::after{content:"";position:absolute;width:400px;height:400px;border-radius:50%;filter:blur(80px);pointer-events:none}
.about::before{top:-160px;right:-160px;background:rgba(230,52,36,.2)}
.about::after{bottom:-160px;left:-160px;background:rgba(245,197,24,.1)}
.about .container{position:relative;display:grid;grid-template-columns:1fr;gap:48px;align-items:center}
@media(min-width:900px){.about .container{grid-template-columns:5fr 7fr}}
.about h2 .red{color:var(--primary)}
.about h2 .yellow{color:var(--secondary)}
.about .body{font-size:17px;color:var(--muted-foreground);display:flex;flex-direction:column;gap:20px}
.about .body strong{color:var(--foreground);font-weight:700}
.about .body .red{color:var(--primary)}
.about .body .yellow{color:var(--secondary)}
.about .body .white{color:var(--foreground)}
.about .body .custom{color:#f0a030}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding-top:28px;border-top:1px solid var(--border)}
.stat .num{font-size:36px;font-weight:900}
.stat .num.red{color:var(--primary)}
.stat .num.yellow{color:var(--secondary)}
.stat .lbl{font-size:11px;text-transform:uppercase;letter-spacing:.2em;color:var(--muted-foreground);margin-top:4px}

/* ---------- Products ---------- */
.products-head{display:flex;flex-direction:column;gap:20px;margin-bottom:64px}
@media(min-width:768px){.products-head{flex-direction:row;align-items:flex-end;justify-content:space-between}}
.products-head p{color:var(--muted-foreground);max-width:400px}
.brands{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(min-width:768px){.brands{grid-template-columns:repeat(4,1fr)}}
.brand-card{border:1px solid var(--border);padding:24px;aspect-ratio:4/3;display:flex;flex-direction:column;justify-content:space-between;transition:all .3s;min-width:0}
.brand-card:hover{border-color:var(--secondary);background:var(--card)}
.brand-card .tag{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted-foreground);font-weight:800;word-break:keep-all;overflow-wrap:normal}
.brand-card .name{font-size:26px;font-weight:900;letter-spacing:-.02em;transition:color .3s;word-break:keep-all;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis}
@media(max-width:480px){.brand-card .name{font-size:clamp(14px,4.5vw,22px)}}
.brand-card:hover .name{color:var(--secondary)}
.brand-card .bar{margin-top:8px;height:4px;width:32px;background:var(--primary);transition:width .5s}
.brand-card:hover .bar{width:100%}

/* ---------- Contact ---------- */
.contact{background:linear-gradient(to bottom,var(--background),var(--card));border-top:1px solid var(--border)}
.contact .container{display:grid;grid-template-columns:minmax(0,1fr);gap:64px}
@media(min-width:900px){.contact .container{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.contact h2 .red{color:var(--primary)}
.contact h2{word-break:break-word;overflow-wrap:break-word}
.contact p.lead{margin-top:24px;font-size:18px;color:var(--muted-foreground);max-width:400px;word-break:break-word;overflow-wrap:break-word}
.info-list{display:flex;flex-direction:column;gap:14px;min-width:0}
.info{display:flex;gap:16px;padding:24px;border:1px solid var(--border);transition:all .3s;align-items:flex-start;min-width:0}
.info > div{min-width:0;overflow-wrap:break-word;word-break:break-word}
.info:hover{border-color:var(--primary);background:var(--card)}
.info.yellow-hover:hover{border-color:var(--secondary)}
.info .ico{width:48px;height:48px;flex-shrink:0;border-radius:var(--radius);background:rgba(230,52,36,.1);display:flex;align-items:center;justify-content:center;transition:background .3s}
.info.yellow-hover .ico{background:rgba(245,197,24,.1)}
.info:hover .ico{background:var(--primary)}
.info.yellow-hover:hover .ico{background:var(--secondary)}
.info .ico svg{width:20px;height:20px;color:var(--primary);transition:color .3s}
.info.yellow-hover .ico svg{color:var(--secondary)}
.info:hover .ico svg{color:var(--primary-foreground)}
.info.yellow-hover:hover .ico svg{color:var(--secondary-foreground)}
.info .lbl{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted-foreground);font-weight:800}
.info .val{font-size:22px;font-weight:900;margin-top:4px;letter-spacing:-.02em}
.info .sub{font-size:14px;color:var(--muted-foreground);margin-top:2px}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--border);padding:40px 0;background:var(--background)}
.site-footer .container{display:flex;flex-direction:column;gap:12px;justify-content:space-between;font-size:14px;color:var(--muted-foreground)}
@media(min-width:768px){.site-footer .container{flex-direction:row}}
.site-footer .brand-line{display:flex;align-items:center;gap:8px;font-weight:900;font-size:18px;letter-spacing:-.02em;flex-wrap:wrap;column-gap:8px;row-gap:2px}
@media(min-width:768px){.site-footer .brand-line{flex-wrap:nowrap;row-gap:0}}
.site-footer .brand-line > span{white-space:nowrap}
.site-footer .brand-line svg{width:20px;height:20px;color:var(--primary)}
.site-footer .brand-line .brand-prefix{color:var(--primary)}
.site-footer .brand-line .brand-suffix{color:var(--foreground)}

/* ---------- Inner pages (contact, about, etc.) ---------- */
.page-main{padding-top:120px;padding-bottom:80px;position:relative}
.page-main::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(rgba(26,15,13,.85),rgba(26,15,13,.85)),url('hero-flames.jpg') center/cover no-repeat}
.page-main h1{font-size:clamp(28px,4vw,48px);margin-bottom:24px;text-align:center}
.page-main .entry-content{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:32px;margin-bottom:24px}
.page-main .entry-content p{margin-bottom:16px;color:var(--muted-foreground);line-height:1.8}
.page-main .entry-content p:last-child{margin-bottom:0}
.page-main .entry-content a{color:var(--secondary)}
.page-main .entry-content a:hover{text-decoration:underline}

/* Contact Form 7 styling inside entry-content */
.page-main .entry-content .wpcf7-form{display:flex;flex-direction:column;gap:16px}
.page-main .entry-content .wpcf7-form label{display:block;font-size:12px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--muted-foreground);margin-bottom:4px}
.page-main .entry-content .wpcf7-form input[type="text"],
.page-main .entry-content .wpcf7-form input[type="email"],
.page-main .entry-content .wpcf7-form input[type="tel"],
.page-main .entry-content .wpcf7-form textarea,
.page-main .entry-content .wpcf7-form select{width:100%;background:var(--muted);border:1px solid var(--border);color:var(--foreground);padding:14px 16px;font-size:16px;font-family:'Inter',sans-serif;border-radius:var(--radius);transition:border-color .2s;outline:none}
.page-main .entry-content .wpcf7-form input:focus,
.page-main .entry-content .wpcf7-form textarea:focus,
.page-main .entry-content .wpcf7-form select:focus{border-color:var(--primary)}
.page-main .entry-content .wpcf7-form textarea{min-height:140px;resize:vertical}
.page-main .entry-content .wpcf7-form input[type="submit"]{background:var(--primary);color:var(--primary-foreground);border:none;padding:16px 32px;font-weight:800;font-size:15px;border-radius:var(--radius);cursor:pointer;transition:background .2s;display:block;margin:0 auto}
.page-main .entry-content .wpcf7-form input[type="submit"]:hover{background:#c92a1c}
.page-main .entry-content .wpcf7-form .wpcf7-response-output{border:1px solid var(--border);border-radius:var(--radius);padding:16px;font-size:14px;margin:0}
.page-main .entry-content .wpcf7-form .wpcf7-not-valid-tip{font-size:12px;color:var(--primary);margin-top:4px}
