/* ============================================================
   Smart Roofing of SWFL — styles.css
   Design system: design-system/smart-roofing-of-swfl/MASTER.md
   Self-hosted fonts · bento grid · roof-pitch signature
   ============================================================ */

/* ---- Fonts (self-hosted variable woff2) ---- */
@font-face{font-family:"Bricolage Grotesque";src:url("/fonts/BricolageGrotesque.woff2?v=2") format("woff2");
  font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:"Work Sans";src:url("/fonts/WorkSans.woff2?v=2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap}

/* ---- Tokens ---- */
:root{
  --blue:#0C74BC; --blue-ink:#0A4E7E; --red:#B91B27; --red-dk:#9E141E;
  --silver:#999999; --white:#FFFFFF; --bg:#F4F7FB; --surface:#FFFFFF; --border:#E3E9F2;
  --text:#15212E; --muted:#5A6675;
  --display:"Bricolage Grotesque",system-ui,sans-serif;
  --body:"Work Sans",system-ui,sans-serif;
  --step-h1:clamp(2.25rem,5vw + 1rem,4.25rem);
  --step-h2:clamp(1.6rem,2.5vw + .7rem,2.6rem);
  --step-h3:clamp(1.2rem,1vw + .8rem,1.5rem);
  --space-section:clamp(3rem,6vw,5.5rem);
  --radius:14px; --radius-pill:999px;
  --shadow-sm:0 1px 2px rgba(15,42,82,.06);
  --shadow-md:0 6px 16px rgba(15,42,82,.08);
  --shadow-lg:0 16px 40px rgba(15,42,82,.12);
  --maxw:1180px;
}

/* ---- Reset ---- */
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--body);color:var(--text);background:var(--bg);line-height:1.6;font-size:1.0625rem;
  text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
img,picture,svg{display:block;max-width:100%;height:auto}
[hidden]{display:none!important}
a{color:var(--blue-ink)}
h1,h2,h3,h4{font-family:var(--display);font-weight:800;line-height:1.08;letter-spacing:-.02em;color:var(--blue-ink)}
h2{font-size:var(--step-h2)} h3{font-size:var(--step-h3)}
.container{max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(1rem,4vw,2rem)}
.eyebrow{font-family:var(--body);font-weight:700;text-transform:uppercase;letter-spacing:.12em;
  font-size:.8rem;color:var(--blue-ink)}
.eyebrow--light{color:#bfe0f7}
.lead{font-size:1.15rem;color:var(--muted)}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;z-index:1000;background:#fff;padding:.6rem 1rem;border-radius:8px;box-shadow:var(--shadow-lg)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---- Buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--body);font-weight:600;font-size:1rem;line-height:1;text-decoration:none;
  padding:.95rem 1.6rem;border-radius:var(--radius-pill);cursor:pointer;border:2px solid transparent;
  transition:background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease}
.btn svg{width:1.1em;height:1.1em}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dk);transform:translateY(-1px);box-shadow:var(--shadow-md)}
.btn-secondary{background:transparent;color:var(--blue-ink);border-color:var(--blue)}
.btn-secondary:hover{background:var(--blue);color:#fff}
.btn-call{background:var(--blue);color:#fff}
.btn-call:hover{background:var(--blue-ink);transform:translateY(-1px)}
.btn-ghost{background:#fff;color:var(--blue-ink);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--blue)}

/* ---- Header / Nav ---- */
header{position:sticky;top:0;z-index:100;background:var(--bg);
  border-bottom:1px solid var(--border);overflow:visible}
/* Mobile (base): hamburger right, logo centered, no header CTA (bottom call bar carries it) */
.header-inner{max-width:var(--maxw);margin-inline:auto;padding:.6rem clamp(1rem,4vw,2rem);
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem}
.header-inner .logo{grid-column:2;justify-self:center}
.header-inner .logo img{height:52px;width:auto}
.nav{display:none}
.nav-actions{grid-column:3;justify-self:end;display:flex;align-items:center;gap:1.25rem}
.nav-actions .btn-primary{display:none}
.nav-phone{display:none;font-weight:700;color:var(--blue-ink);text-decoration:none;white-space:nowrap}
.nav-phone:hover{color:var(--red)}
.hamburger{display:inline-flex;flex-direction:column;gap:5px;background:none;border:0;padding:.5rem;cursor:pointer}
.hamburger span{display:block;width:26px;height:3px;background:var(--blue-ink);border-radius:2px;transition:.2s}
.mobile-menu{display:none;position:absolute;top:100%;left:0;right:0;z-index:120;
  border-top:1px solid var(--border);background:var(--bg);box-shadow:var(--shadow-lg);max-height:calc(100vh - 70px);overflow-y:auto}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;padding:.85rem clamp(1rem,4vw,2rem);color:var(--blue-ink);text-decoration:none;
  font-weight:600;border-bottom:1px solid var(--border)}
.mobile-menu a:hover{background:var(--surface)}
/* Expandable service groups in the mobile menu */
.mobile-menu .mm-group{border-bottom:1px solid var(--border)}
.mobile-menu .mm-group summary{display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:.85rem clamp(1rem,4vw,2rem);color:var(--blue-ink);font-weight:600;cursor:pointer;list-style:none}
.mobile-menu .mm-group summary::-webkit-details-marker{display:none}
.mobile-menu .mm-group summary::after{content:"+";color:var(--red);font-size:1.4rem;line-height:1}
.mobile-menu .mm-group[open] summary::after{content:"\2212"}
.mobile-menu .mm-group a{padding-left:calc(clamp(1rem,4vw,2rem) + 1.1rem);font-weight:500;font-size:.95rem;background:var(--surface)}
.mobile-menu .mm-group a:last-child{border-bottom:0}

@media(min-width:980px){
  .hamburger{display:none}.mobile-menu{display:none!important}
  .header-inner{display:flex;justify-content:space-between}
  .header-inner .logo{grid-column:auto;justify-self:auto}
  .nav-actions{grid-column:auto;justify-self:auto}
  .nav-actions .btn-primary{display:inline-flex}
  .nav{display:flex;align-items:center;gap:.35rem}
  .nav>a,.nav-has-drop>a{display:inline-flex;align-items:center;gap:.3rem;padding:.5rem .7rem;border-radius:8px;
    color:var(--blue-ink);text-decoration:none;font-weight:600;font-size:.98rem;white-space:nowrap}
  .nav>a:hover,.nav-has-drop>a:hover{background:var(--surface);color:var(--blue)}
  .nav-phone{display:inline-flex}
  .nav-has-drop{position:relative}
  .nav-drop{position:absolute;top:100%;left:0;min-width:260px;background:var(--bg);border:1px solid var(--border);
    border-radius:12px;box-shadow:var(--shadow-lg);padding:.4rem;opacity:0;visibility:hidden;transform:translateY(6px);
    transition:.18s}
  .nav-has-drop:hover .nav-drop,.nav-has-drop:focus-within .nav-drop{opacity:1;visibility:visible;transform:none}
  .nav-drop a{display:block;padding:.6rem .8rem;border-radius:8px;color:var(--text);text-decoration:none;font-weight:500;font-size:.95rem}
  .nav-drop a:hover{background:var(--surface);color:var(--blue)}
}

/* ---- Bento grid ---- */
.bento{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:760px){.bento{grid-template-columns:repeat(6,1fr)}}
.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:clamp(1.4rem,3vw,2.2rem);box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease,transform .2s ease}
.tile-link:hover{box-shadow:var(--shadow-md);transform:translateY(-3px)}
.tile--pitch{clip-path:polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,0 100%)}
.tile--blue{background:var(--blue-ink);color:#fff;border-color:var(--blue-ink)}
.tile--blue h1,.tile--blue h2,.tile--blue h3{color:#fff}
.tile--photo{padding:0;overflow:hidden}
.tile--photo img{width:100%;height:100%;object-fit:cover;min-height:200px}

/* ---- Hero (bento-composed) ---- */
.hero{padding:clamp(1.5rem,4vw,2.5rem) 0 var(--space-section)}
.hero-grid{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:860px){.hero-grid{grid-template-columns:1.55fr 1fr;align-items:stretch}}
.hero-left{display:grid;gap:1rem;grid-template-columns:1fr;align-content:start}
@media(min-width:560px){.hero-left{grid-template-columns:1fr 1fr}}
.hero-left .hero-headline{grid-column:1/-1}
.hero-right{display:flex;flex-direction:column;gap:1rem}
.hero-right .hero-photo{flex:1 1 auto;min-height:220px}
.hero-headline h1{font-size:var(--step-h1);margin:.6rem 0 1rem}
.hero-headline .hero-ctas{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem}
.hero-photo{min-height:260px}
/* Mobile: flatten the two hero columns and float the photo up under the headline */
@media(max-width:859px){
  .hero-left,.hero-right{display:contents}
  .hero-headline{order:1}
  .hero-photo{order:2;min-height:230px}
  .hero-stat{order:3}
  .track{order:4}
}
.stat-num{font-family:var(--display);font-weight:800;font-size:clamp(2rem,4vw,2.8rem);color:var(--blue);line-height:1}
.tile--blue .stat-num{color:#fff}
.stat-label{font-size:.9rem;color:var(--muted);font-weight:600;margin-top:.3rem}
.tile--blue .stat-label{color:#cfe3f5}
.track{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:#fff;
  border:1px solid var(--border);border-radius:12px;padding:1rem 1.2rem;text-decoration:none;color:var(--blue-ink);
  font-family:var(--display);font-weight:800;font-size:1.1rem;transition:.2s}
.track:hover{border-color:var(--blue);color:var(--blue);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.track svg{width:1.3em;height:1.3em;color:var(--red)}

/* ---- Sections ---- */
section{padding-block:var(--space-section)}
.section-head{max-width:720px;margin-bottom:2.2rem}
.section-head h2{margin:.5rem 0 .8rem}
.surface{background:transparent}

/* problem / why split */
.split{display:grid;gap:2rem;align-items:center}
@media(min-width:860px){.split{grid-template-columns:1.1fr .9fr}}
.split-img img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}
.badge-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.4rem}
.trust-badge{display:inline-flex;align-items:center;gap:.45rem;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius-pill);padding:.5rem .9rem;font-weight:600;font-size:.9rem;color:var(--blue-ink)}
.trust-badge svg{width:1.05em;height:1.05em;color:var(--red)}

/* services grids */
.svc-grid{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:620px){.svc-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.svc-grid{grid-template-columns:repeat(4,1fr)}}
.svc-card{display:flex;flex-direction:column;gap:.5rem;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:1.4rem;text-decoration:none;color:var(--text);transition:.2s}
.svc-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--blue)}
.svc-ico{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:rgba(12,116,188,.1);color:var(--blue)}
.svc-card h3{font-size:1.1rem}
.svc-card .more{margin-top:auto;color:var(--red);font-weight:700;font-size:.9rem}
.track-label{display:flex;align-items:center;gap:.6rem;margin:2.4rem 0 1rem;font-family:var(--display);font-weight:800;
  font-size:1.3rem;color:var(--blue-ink)}
.track-label svg{width:1.4rem;height:1.4rem;color:var(--red)}

/* proof / project */
.project{display:grid;gap:1.5rem}
@media(min-width:860px){.project{grid-template-columns:1fr 1fr}}
.ba{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.ba figure{margin:0}
.ba img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}
.ba figcaption{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-top:.4rem}

/* CTA band */
.cta-band{background:var(--blue-ink);color:#fff;border-radius:var(--radius);padding:clamp(2rem,5vw,3.5rem);
  text-align:center;position:relative;overflow:hidden}
.cta-band::before{content:"";position:absolute;inset:0;opacity:.05;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.cta-band h2{color:#fff;position:relative}
.cta-band p{color:#cfe3f5;max-width:560px;margin:.8rem auto 1.6rem;position:relative}
.cta-band .hero-ctas{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;position:relative}

/* form */
.quote{display:grid;gap:1.5rem}
@media(min-width:860px){.quote{grid-template-columns:.9fr 1.1fr}}
.form-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:clamp(1.4rem,3vw,2rem);box-shadow:var(--shadow-md)}
.field{margin-bottom:1rem}
.field label{display:block;font-weight:600;font-size:.92rem;margin-bottom:.35rem;color:var(--blue-ink)}
.input,textarea.input,select.input{padding:.85rem 1rem;border:1px solid var(--border);border-radius:10px;
  font-size:16px;width:100%;font-family:var(--body);background:#fff;color:var(--text)}
.input:focus{border-color:var(--blue);outline:2px solid transparent;box-shadow:0 0 0 3px rgba(12,116,188,.18)}
textarea.input{min-height:120px;resize:vertical}

/* footer */
footer{background:#0b1f33;color:#cdd9e6;padding-block:clamp(2.5rem,5vw,4rem) 1.5rem;font-size:.95rem}
.footer-grid{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:620px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(min-width:920px){.footer-grid{grid-template-columns:1.6fr 1fr 1fr 1fr}}
footer h2{color:#fff;font-size:1rem;margin-bottom:.9rem}
footer a{color:#cdd9e6;text-decoration:none}
footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-nav{display:flex;flex-direction:column;gap:.5rem}
.footer-logo{height:54px;width:auto;margin-bottom:1rem;background:#fff;padding:.4rem .6rem;border-radius:10px}
.footer-nap p{margin:.25rem 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:2rem;padding-top:1.2rem;
  display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between;font-size:.85rem;color:#8da6bf}
.footer-bottom a{color:#8da6bf}

/* Contact row stands out as the primary action in the mobile menu */
.mobile-menu a.mm-contact{color:var(--red)}

/* ---- Sub-page components ---- */
.breadcrumb{padding:1.2rem 0 0;font-size:.85rem;color:var(--muted)}
.breadcrumb a{color:var(--muted);text-decoration:none}
.breadcrumb a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.breadcrumb span{margin:0 .45rem}

.page-hero{padding:1rem 0 var(--space-section)}
.page-hero .tile--blue{padding:clamp(1.8rem,4vw,3rem)}
.page-hero .eyebrow--light{margin-bottom:.6rem;display:inline-block}
.page-hero h1{font-size:var(--step-h1);color:#fff;margin:.2rem 0 1rem;max-width:18ch}
.page-hero p{color:#cfe3f5;max-width:60ch;font-size:1.1rem}
.page-hero .hero-ctas{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.6rem}

.feature-img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow-md)}
.feature-band{margin-top:calc(-1 * var(--space-section) + 1.5rem)}
.prose{max-width:68ch}
.prose>*+*{margin-top:1.1rem}
.prose h2{margin-top:2.4rem}
.prose h3{margin-top:1.6rem;color:var(--blue-ink)}
.prose ul,.prose ol{padding-left:1.3rem}
.prose li+li{margin-top:.5rem}
.prose a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.content-grid{display:grid;gap:2.5rem}
@media(min-width:920px){.content-grid{grid-template-columns:1.7fr 1fr;align-items:start}}
.sidecard{position:sticky;top:90px}
.sidecard .hero-ctas{display:flex;flex-direction:column;align-items:flex-start;gap:.9rem;margin-top:1rem}

.feature-list{list-style:none;padding:0;display:grid;gap:.9rem}
.feature-list li{display:flex;gap:.7rem;align-items:flex-start}
.feature-list svg{flex:none;width:1.4rem;height:1.4rem;color:var(--red);margin-top:.15rem}

.faq{display:grid;gap:.8rem;margin-top:1.2rem}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.4rem 1.2rem}
.faq summary{cursor:pointer;font-family:var(--display);font-weight:800;color:var(--blue-ink);
  padding:.9rem 0;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;color:var(--red);transition:transform .2s}
.faq details[open] summary::after{content:"\2212"}
.faq details[open] summary{border-bottom:1px solid var(--border)}
.faq details p{padding:.9rem 0;color:var(--text)}

/* galleries / blog */
.gallery{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:620px){.gallery{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.gallery{grid-template-columns:repeat(3,1fr)}}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.post-list{display:grid;gap:1.5rem}
@media(min-width:760px){.post-list{grid-template-columns:repeat(2,1fr)}}
.post-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  text-decoration:none;color:var(--text);display:flex;flex-direction:column;transition:.2s}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--blue)}
.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-card .pc-body{padding:1.4rem}
.post-card h2{font-size:1.2rem}
.post-meta{font-size:.85rem;color:var(--muted);margin-top:.4rem}
.post-card .more{color:var(--red);font-weight:700;font-size:.9rem;margin-top:.8rem;display:inline-block}

/* before/after slider */
.ba-slider{position:relative;aspect-ratio:3/2;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-md);--pos:50%;touch-action:none;background:var(--surface)}
.ba-slider img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.ba-slider .ba-before{clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.ba-divider{position:absolute;top:0;bottom:0;left:var(--pos);width:3px;background:#fff;
  transform:translateX(-50%);box-shadow:0 0 6px rgba(0,0,0,.35);pointer-events:none}
.ba-divider::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:38px;height:38px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.ba-divider::before{content:"\2194";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  z-index:1;color:var(--blue-ink);font-size:1.1rem;font-weight:700}
.ba-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.ba-range:focus-visible+.ba-divider{box-shadow:0 0 0 3px var(--blue)}
.ba-label{position:absolute;bottom:12px;padding:.35rem .7rem;background:rgba(15,33,46,.72);color:#fff;
  border-radius:var(--radius-pill);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;pointer-events:none}
.ba-label-before{left:12px}.ba-label-after{right:12px}
.ba-caption{font-size:.85rem;color:var(--muted);margin-top:.5rem;font-weight:600}
.ba-grid{display:grid;gap:1.5rem}
@media(min-width:760px){.ba-grid{grid-template-columns:1fr 1fr}}
.proj-meta{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.2rem 0}
.proj-card .ba-slider{aspect-ratio:3/2}

/* 404 */
.notfound{text-align:center;padding-block:clamp(3rem,8vw,6rem)}
.notfound .big{font-family:var(--display);font-weight:800;font-size:clamp(4rem,14vw,8rem);color:var(--blue);line-height:1}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
