/*
Theme Name: Z Värmeteknik
Description: Bespoke lead-gen theme for zvarmeteknik.se. No page builder.
Author: Björn
Version: 1.0
*/

:root{
  --black:#0B0C0E;
  --orange:#E8600C;
  --orange-dark:#C94F08;
  --white:#FFFFFF;
  --cream:#F6F4F1;
  --ink:#17181A;
  --muted-dark:#9AA0A6;
  --muted-light:#5B5F66;
  --border-dark:#2A2C30;
  --border-light:#E4E1DC;
  --card-dark:#17181B;
  --font-display:'Space Grotesk',sans-serif;
  --font-body:'IBM Plex Sans',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  font-weight:400;
  font-size:15px;
  line-height:1.5;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{font-family:var(--font-display);margin:0 0 16px;letter-spacing:-0.3px}
p{margin:0 0 16px}
.container{max-width:1280px;margin:0 auto;padding:0 24px}

h1{font-size:32px;line-height:1.08;font-weight:700}
h2{font-size:26px;line-height:1.15;font-weight:700}
h3{font-size:19px;line-height:1.2;font-weight:600}
.small{font-size:12.5px;line-height:1.4;font-weight:500}
.kicker{font-family:var(--font-display);font-weight:600;text-transform:uppercase;letter-spacing:1.2px;font-size:12px;color:var(--orange)}
@media(min-width:1024px){
  h1{font-size:56px;line-height:1.05}
  h2{font-size:38px;line-height:1.1}
  h3{font-size:21px}
  .small{font-size:13px}
  .kicker{font-size:13px}
}

section{padding:64px 0}
@media(min-width:1024px){section{padding:128px 0}}
.section-dark{background:var(--black);color:var(--white)}
.section-cream{background:var(--cream);color:var(--ink)}
.section-white{background:var(--white);color:var(--ink)}
.section-head{max-width:800px;margin:0 auto 32px;text-align:left}
.section-head.center{text-align:center;margin-left:auto;margin-right:auto}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:52px;padding:0 24px;border-radius:8px;font-family:var(--font-body);
  font-weight:600;font-size:16px;cursor:pointer;border:none;white-space:nowrap;
  transition:background .15s ease;
}
@media(min-width:1024px){.btn{height:56px}}
.btn-primary{background:var(--orange);color:var(--ink)}
.btn-primary:hover{background:var(--orange-dark)}
.btn-secondary-dark{background:transparent;border:1.5px solid rgba(255,255,255,.4);color:var(--white)}
.btn-secondary-light{background:transparent;border:1.5px solid rgba(23,24,26,.3);color:var(--ink)}
.btn-full{width:100%}
.btn-row{display:flex;flex-direction:column;gap:12px}
@media(min-width:640px){.btn-row{flex-direction:row}.btn-row .btn{width:auto}}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;background:var(--black);
  border-bottom:1px solid var(--border-dark);
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:76px}
.site-header .logo img{height:36px;width:auto}
.site-header .phone{
  display:flex;align-items:center;gap:8px;color:var(--white);font-weight:600;font-size:15px;
}
.site-header .phone svg{color:var(--orange);flex-shrink:0}
.main-nav{display:none}
@media(min-width:1024px){
  .main-nav{display:flex;align-items:center;gap:32px}
  .main-nav a{color:var(--white);font-size:14px;font-weight:500}
  .main-nav a:hover{color:var(--orange)}
  .header-cta{margin-left:8px}
}
.header-right{display:flex;align-items:center;gap:24px}
/* Scoped to .site-header (0,2,0) to beat .site-header .phone{display:flex}
   (also 0,2,0, but declared earlier): a bare .header-phone-desktop{display:none}
   at (0,1,0) cannot win against that rule regardless of source order, and both
   numbers rendered on mobile at once until this was scoped. */
.site-header .header-phone-desktop{display:none}
@media(min-width:1024px){.site-header .header-phone-desktop{display:flex}}
.site-header .header-phone-mobile{display:flex}
@media(min-width:1024px){.site-header .header-phone-mobile{display:none}}

/* Hero */
#hero{background:var(--black);color:var(--white);position:relative;overflow:hidden;padding:0}
.hero-inner{display:flex;flex-direction:column}
.hero-media{position:relative;height:320px}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(176deg,rgba(11,12,14,0) 0%,rgba(11,12,14,.55) 45%,rgba(11,12,14,.97) 100%)}
.hero-content{padding:32px 24px 48px}
.hero-content .kicker{display:block;margin-bottom:12px}
.hero-content h1{margin-bottom:16px}
.hero-content .lead{color:var(--muted-dark);font-size:16px;margin-bottom:24px}
.hero-note{margin-top:16px;color:var(--muted-dark)}
@media(min-width:1024px){
  .hero-inner{flex-direction:row-reverse;align-items:stretch;min-height:640px}
  .hero-media{flex:0 0 45%;height:auto}
  .hero-media::after{background:linear-gradient(97deg,rgba(11,12,14,.15) 0%,rgba(11,12,14,0) 55%)}
  .hero-content{flex:0 0 55%;padding:96px 64px;display:flex;flex-direction:column;justify-content:center;max-width:640px}
}

/* Cards, generic */
.card-dark{
  background:var(--card-dark);border:1px solid var(--border-dark);border-radius:12px;
  padding:24px;
}
@media(min-width:1024px){.card-dark{padding:32px}}
.card-dark .icon{color:var(--orange);font-size:28px;margin-bottom:16px}
.card-dark h3{color:var(--white)}
.card-dark p{color:var(--muted-dark);margin-bottom:0}

.card-light{
  background:var(--white);border:1px solid var(--border-light);border-radius:12px;
  padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.06);
}
@media(min-width:1024px){.card-light{padding:32px}}
.card-light h3{color:var(--ink)}
.card-light p{color:var(--muted-light);margin-bottom:0}

/* Services grid */
.grid-3{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:1024px){.grid-3{grid-template-columns:repeat(3,1fr);gap:32px}}
.grid-link{margin-top:32px;text-align:center}
.grid-link a{color:var(--orange);font-weight:600;border-bottom:1px solid rgba(232,96,12,.4)}
/* Orange text is display-only on white/cream (3.44:1, fails AA normal text).
   .grid-link is reused on the light "omrade" section ("Se alla omraden"), so
   scope it back to ink there. The #tjanster instance stays orange on black. */
.section-white .grid-link a,.section-cream .grid-link a{color:var(--ink);border-bottom-color:rgba(23,24,26,.3)}

/* Why us */
.why-list{display:flex;flex-direction:column;gap:24px}
@media(min-width:1024px){.why-list{flex-direction:row;flex-wrap:wrap}}
.why-item{display:flex;gap:16px;align-items:flex-start}
@media(min-width:1024px){.why-item{flex:1 1 22%;flex-direction:column;align-items:center;text-align:center;padding:0 16px}}
.why-item .icon{flex-shrink:0;width:40px;height:40px;border-radius:8px;background:var(--black);color:var(--orange);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700}
.why-item h3{margin-bottom:4px}
.why-item p{color:var(--muted-light);margin-bottom:0;font-size:14px}

/* How it works */
.steps{counter-reset:step}
.steps-list{display:flex;flex-direction:column;gap:0}
@media(min-width:1024px){.steps-list{flex-direction:row}}
.step{position:relative;padding-left:56px;padding-bottom:32px}
@media(min-width:1024px){.step{flex:1;padding-left:0;padding-top:56px;padding-bottom:0;text-align:center}}
.step-num{
  position:absolute;left:0;top:0;width:40px;height:40px;border-radius:999px;
  background:var(--orange);color:var(--ink);font-family:var(--font-display);font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
@media(min-width:1024px){.step-num{left:50%;transform:translateX(-50%);top:0}}
.step::after{content:"";position:absolute;left:19px;top:40px;bottom:0;width:2px;background:var(--border-dark)}
.steps-list .step:last-child::after{display:none}
@media(min-width:1024px){
  .step::after{left:0;right:0;top:19px;bottom:auto;height:2px;width:100%}
  .steps-list .step:first-child::after{left:50%}
  .steps-list .step:last-child::after{display:none}
}
.step h3{color:var(--white)}
.step p{color:var(--muted-dark);margin-bottom:0}

/* Brands (text only) */
.brands-text{text-align:center;max-width:720px;margin:0 auto}
.brand-names{font-family:var(--font-display);font-weight:700;font-size:22px;color:var(--white);margin-bottom:16px;letter-spacing:-0.2px}
@media(min-width:1024px){.brand-names{font-size:28px}}

/* Area chips */
.chip-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.chip{
  display:inline-flex;align-items:center;padding:8px 18px;border-radius:999px;
  background:var(--white);border:1px solid var(--border-light);color:var(--ink);font-weight:600;font-size:14px;
}
.chip a{color:inherit}

/* FAQ accordion */
.faq-list{max-width:800px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.faq-item{border:1px solid var(--border-light);border-radius:12px;background:var(--white);overflow:hidden}
.faq-item summary{
  padding:20px 24px;cursor:pointer;font-family:var(--font-display);font-weight:600;font-size:16px;
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:22px;color:var(--orange);flex-shrink:0}
.faq-item[open] summary::after{content:"\2212"}
.faq-item .faq-a{padding:0 24px 20px;color:var(--muted-light)}

/* Quote form */
#offert{background:var(--black);color:var(--white)}
.form-wrap{max-width:760px;margin:0 auto}
.form-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:1024px){.form-grid{grid-template-columns:1fr 1fr}}
.form-field{display:flex;flex-direction:column;gap:6px}
.form-field.full{grid-column:1 / -1}
.form-field label{font-size:13px;font-weight:600;color:var(--muted-dark)}
.form-field input,.form-field select,.form-field textarea{
  min-height:48px;padding:12px 16px;border-radius:8px;border:1px solid var(--border-dark);
  background:var(--card-dark);color:var(--white);font-family:var(--font-body);font-size:15px;
}
.form-field textarea{min-height:120px;resize:vertical}
.form-field input::placeholder,.form-field textarea::placeholder{color:var(--muted-dark)}
.upload-box{
  border:1.5px dashed var(--border-dark);border-radius:12px;padding:24px;text-align:center;
  cursor:pointer;color:var(--muted-dark);font-size:14px;
}
.upload-box.dragover{border-color:var(--orange);color:var(--orange)}
#photo-filenames{margin-top:8px;font-size:13px;color:var(--muted-dark)}
.form-consent{font-size:12.5px;color:var(--muted-dark);margin-top:16px}
.form-consent a{color:var(--orange);text-decoration:underline}
.form-submit-row{margin-top:24px}
#offert .btn-primary{width:100%}
@media(min-width:1024px){#offert .btn-primary{max-width:400px;margin:0 auto;display:flex}}
.form-msg{margin-top:16px;padding:16px;border-radius:8px;font-size:14px}
.form-msg.success{background:rgba(232,96,12,.12);border:1px solid var(--orange);color:var(--white)}
.form-msg.error{background:rgba(220,53,69,.12);border:1px solid #dc3545;color:var(--white)}
.honeypot-field{position:absolute;left:-9999px;top:-9999px}

/* Footer */
.site-footer{background:var(--black);color:var(--muted-dark);padding:64px 0 96px}
@media(min-width:1024px){.site-footer{padding:96px 0 48px}}
.footer-grid{display:grid;grid-template-columns:1fr;gap:32px}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.footer-grid{grid-template-columns:repeat(4,1fr)}}
.footer-col h3{color:var(--white);font-size:15px;margin-bottom:16px}
.footer-col p{margin-bottom:8px;font-size:14px}
.footer-col ul{display:flex;flex-direction:column;gap:8px}
.footer-col a{font-size:14px;color:var(--white);text-decoration:underline;text-decoration-color:rgba(255,255,255,.5);text-underline-offset:3px}
.footer-col a.footer-phone{text-decoration:none}
.footer-logo{margin-bottom:16px}
.footer-logo img{height:32px}
.footer-bottom{
  margin-top:48px;padding-top:32px;border-top:1px solid var(--border-dark);
  font-size:13px;color:var(--muted-dark);
}

/* Sticky mobile bar */
.sticky-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;display:none;height:64px;
  box-shadow:0 -4px 20px rgba(0,0,0,.35);padding-bottom:env(safe-area-inset-bottom);
}
.sticky-bar.visible{display:flex}
.sticky-bar a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:15px}
.sticky-bar .call{background:var(--ink);color:var(--white)}
.sticky-bar .quote{background:var(--orange);color:var(--ink)}
@media(min-width:768px){.sticky-bar{display:none!important}}

/* Generic page content */
.page-hero{background:var(--black);color:var(--white);padding:64px 0 48px}
@media(min-width:1024px){.page-hero{padding:96px 0 64px}}
.page-hero h1{margin-bottom:16px}
.page-hero .lead{color:var(--muted-dark);font-size:16px;max-width:760px}
.page-body{padding:48px 0}
@media(min-width:1024px){.page-body{padding:80px 0}}
.page-body .container{max-width:800px}
.page-body p,.page-body li{color:var(--ink);font-size:16px;line-height:1.6}
.page-body h2{margin-top:40px}
.includes-list li{position:relative;padding-left:28px;margin-bottom:12px}
.includes-list li::before{content:"";position:absolute;left:0;top:8px;width:10px;height:10px;border-radius:2px;background:var(--orange)}
.cta-box{
  background:var(--cream);border:1px solid var(--border-light);border-radius:16px;
  padding:32px;text-align:center;margin:48px 0;
}
.cta-box h3{margin-bottom:16px}
.contact-block{display:flex;flex-direction:column;gap:8px;margin:24px 0}
.contact-block a{font-weight:600}

/* Town / area index chips */
.town-index-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.town-index-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.town-index-grid{grid-template-columns:repeat(3,1fr)}}
.town-index-card{
  background:var(--white);border:1px solid var(--border-light);border-radius:12px;padding:20px 24px;
}
.town-index-card a{font-family:var(--font-display);font-weight:600;font-size:18px;color:var(--ink)}
.town-index-card p{margin:8px 0 0;font-size:13px;color:var(--muted-light)}

.neighbour-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.neighbour-links a{
  padding:6px 14px;border-radius:999px;background:var(--white);border:1px solid var(--border-light);
  font-size:13px;font-weight:600;color:var(--ink);
}

/* utilities */
.mt-0{margin-top:0}
.text-center{text-align:center}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
