/* ============================================================
   Crown Roofing & Exteriors
   Palette pulled straight from the logo: near-black + antique
   gold on white. Deliberately no third hue.
   ============================================================ */
:root{
  --black:#111111;
  --black-soft:#1E1E1E;
  --gold:#A9884E;
  --gold-lit:#C4A063;
  --gold-deep:#8A6E3D;
  --white:#FFFFFF;
  --bone:#F7F5F1;
  --grey:#6B6B6B;
  --line:rgba(17,17,17,0.12);

  --head:'Oswald', 'Arial Narrow', Impact, sans-serif;  /* condensed, echoes the wordmark */
  --body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap:1200px;
  --gutter:clamp(20px, 5vw, 48px);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--white); color:var(--black);
  font-family:var(--body); font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img,video{ max-width:100%; display:block; }
a{ color:inherit; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter); }

/* ---------- Type ---------- */
h1,h2,h3,h4{ font-family:var(--head); font-weight:600; line-height:1.06; margin:0; text-transform:uppercase; letter-spacing:.01em; }
h1{ font-size:clamp(38px, 7.2vw, 74px); }
h2{ font-size:clamp(29px, 4.4vw, 45px); }
h3{ font-size:clamp(19px, 2.2vw, 23px); }
p{ margin:0 0 1.1em; }
.eyebrow{
  font-family:var(--body); font-size:12px; font-weight:600; letter-spacing:.22em;
  text-transform:uppercase; color:var(--gold); margin-bottom:14px;
}
.rule{ width:54px; height:3px; background:var(--gold); border-radius:2px; margin:18px 0 24px; }
.lede{ font-size:clamp(17px,1.9vw,20px); color:var(--grey); max-width:62ch; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--head); font-size:16px; letter-spacing:.09em; text-transform:uppercase;
  padding:17px 34px; border:2px solid transparent; border-radius:3px;
  text-decoration:none; cursor:pointer; transition:transform .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn-gold{ background:var(--gold); color:var(--black); border-color:var(--gold); }
.btn-gold:hover{ background:var(--gold-lit); border-color:var(--gold-lit); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.5); }
.btn-ghost:hover{ background:var(--white); color:var(--black); border-color:var(--white); }
.btn-dark{ background:var(--black); color:var(--white); border-color:var(--black); }
.btn-dark:hover{ background:var(--gold); border-color:var(--gold); color:var(--black); transform:translateY(-2px); }

/* ---------- Header ---------- */
.topbar{
  background:var(--black); color:rgba(255,255,255,.82);
  font-size:13.5px; letter-spacing:.03em;
}
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:42px; }
.topbar a{ text-decoration:none; color:var(--gold-lit); font-weight:600; }
.topbar .areas{ opacity:.75; }

.site-header{ position:sticky; top:0; z-index:60; background:var(--white); border-bottom:1px solid var(--line); }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:88px; }
.brand img{ height:60px; width:auto; flex:0 0 auto; }
.brand{ text-decoration:none; display:flex; align-items:center; flex:0 0 auto; }
.nav{ display:flex; align-items:center; gap:30px; }
.nav a{
  font-family:var(--head); font-size:15px; letter-spacing:.07em; text-transform:uppercase;
  text-decoration:none; color:var(--black); padding:6px 0; position:relative;
}
.nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--gold);
  transition:width .22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after{ width:100%; }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; background:none; border:0; padding:8px; cursor:pointer; flex:0 0 auto; }
.nav-mobile-cta, .nav-mobile-call{ display:none; }
.nav-toggle span{ display:block; width:26px; height:2.5px; background:var(--black); margin:5px 0; }

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:min(88vh, 780px); display:flex; align-items:center; overflow:hidden; background:var(--black); }
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media video, .hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.42) 50%, rgba(10,10,10,.12) 100%),
    linear-gradient(180deg, rgba(10,10,10,.42) 0%, transparent 42%, rgba(10,10,10,.40) 100%);
}
.hero .wrap{ position:relative; z-index:2; padding-top:76px; padding-bottom:76px; }
.hero-inner{ max-width:720px; color:var(--white); }
.hero h1{ margin-bottom:20px; text-shadow:0 2px 22px rgba(0,0,0,.8), 0 1px 4px rgba(0,0,0,.6); }
.hero h1 .gold{ color:var(--gold-lit); }
.hero .lede{ color:rgba(255,255,255,.92); margin-bottom:30px; text-shadow:0 2px 16px rgba(0,0,0,.75); }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.hero-points{ display:flex; gap:26px; flex-wrap:wrap; margin-top:34px; padding-top:24px; border-top:1px solid rgba(255,255,255,.18); }
.hero-points li{ list-style:none; font-size:14.5px; color:rgba(255,255,255,.9); display:flex; align-items:center; gap:9px; text-shadow:0 1px 10px rgba(0,0,0,.7); }
.hero-points svg{ flex:0 0 auto; }
.hero-points ul{ margin:0; padding:0; }

/* ---------- Sections ---------- */
.section{ padding:clamp(64px, 8vw, 108px) 0; }
.section-dark{ background:var(--black); color:var(--white); }
.section-dark .lede{ color:rgba(255,255,255,.72); }
.section-bone{ background:var(--bone); }
.section-head{ max-width:720px; margin-bottom:52px; }

/* ---------- Service cards ---------- */
.cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(290px,1fr)); gap:26px; }
.card{
  background:var(--white); border:1px solid var(--line); border-radius:4px;
  padding:34px 30px 30px; text-decoration:none; color:inherit; display:block;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position:relative; overflow:hidden;
}
.card::before{ content:''; position:absolute; top:0; left:0; height:3px; width:0; background:var(--gold); transition:width .28s ease; }
.card:hover{ transform:translateY(-4px); box-shadow:0 18px 44px rgba(17,17,17,.10); border-color:transparent; }
.card:hover::before{ width:100%; }
.card .ico{ color:var(--gold); margin-bottom:18px; }
.card h3{ margin-bottom:10px; }
.card p{ font-size:15.5px; color:var(--grey); margin-bottom:14px; }
.card .more{ font-family:var(--head); font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--gold); color:var(--black); }
.cta-band .wrap{ display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; padding-top:52px; padding-bottom:52px; }
.cta-band h2{ margin-bottom:8px; }
.cta-band p{ margin:0; font-size:16.5px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--black); color:rgba(255,255,255,.66); font-size:15px; }
.site-footer .cols{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:44px; padding:70px 0 46px; }
.site-footer h4{ color:var(--white); font-size:15px; letter-spacing:.14em; margin-bottom:18px; }
.site-footer a{ color:rgba(255,255,255,.66); text-decoration:none; }
.site-footer a:hover{ color:var(--gold-lit); }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ margin-bottom:10px; }
.footer-logo{ height:64px; width:auto; margin-bottom:20px; }
.legal{ border-top:1px solid rgba(255,255,255,.12); padding:22px 0; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13.5px; }

/* ---------- Mobile ---------- */
@media (max-width:940px){
  .site-footer .cols{ grid-template-columns:1fr 1fr; gap:34px; }
}
@media (max-width:820px){
  .nav{
    display:none; position:absolute; top:100%; left:0; right:0; background:var(--white);
    flex-direction:column; align-items:flex-start; gap:0; padding:10px var(--gutter) 22px;
    border-bottom:1px solid var(--line); box-shadow:0 18px 30px rgba(0,0,0,.08);
  }
  .nav.open{ display:flex; }
  .nav a{ padding:13px 0; width:100%; border-bottom:1px solid var(--line); }
  .nav-toggle{ display:block; }
  .site-header .wrap{ position:relative; min-height:74px; gap:12px; }
  .brand img{ height:44px; }
  /* The header button overflowed the viewport and pushed the hamburger
     off-screen. It moves into the menu instead. */
  .nav-cta > .btn{ display:none; }
  .nav-mobile-cta{
    display:inline-flex; width:100%; margin-top:16px; border-bottom:0 !important;
  }
  .nav-mobile-cta::after{ display:none; }
  .nav-mobile-call{
    display:block; width:100%; text-align:center; margin-top:10px; padding:12px 0;
    font-family:var(--head); font-size:15px; letter-spacing:.08em; text-transform:uppercase;
    color:var(--gold-deep); border-bottom:0 !important;
  }
  .nav-mobile-call::after{ display:none; }
  .topbar .areas{ display:none; }
  .hero{ min-height:auto; }
  .hero .wrap{ padding-top:62px; padding-bottom:62px; }
  .hero-actions .btn{ flex:1 1 100%; }
}
@media (max-width:560px){
  .site-footer .cols{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* ---------- Services dropdown ---------- */
.has-sub{ position:relative; }
.has-sub > a{ display:inline-flex; align-items:center; gap:7px; }
.sub{
  position:absolute; top:calc(100% + 14px); left:-18px; min-width:238px;
  background:var(--white); border:1px solid var(--line); border-radius:4px;
  box-shadow:0 20px 46px rgba(17,17,17,.14); padding:8px 0;
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub::before{ content:''; position:absolute; top:-14px; left:0; right:0; height:14px; } /* keeps hover alive across the gap */
.has-sub:hover .sub, .has-sub:focus-within .sub{ opacity:1; visibility:visible; transform:translateY(0); }
.sub a{ display:block; padding:11px 22px; font-size:14px; letter-spacing:.05em; }
.sub a::after{ display:none; }
.sub a:hover{ background:var(--bone); color:var(--gold-deep); }

@media (max-width:820px){
  .sub{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none;
    border:0; border-radius:0; padding:0 0 0 16px; min-width:0;
  }
  .sub::before{ display:none; }
  .has-sub{ width:100%; border-bottom:1px solid var(--line); }
  .has-sub > a{ padding:13px 0; }
  .sub a{ padding:10px 0; border-bottom:0; opacity:.8; }
}

/* ---------- Scripture reference ---------- */
.verse{
  font-family:var(--head); font-size:14px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--gold); margin:18px 0 0; padding-top:16px;
  border-top:1px solid rgba(255,255,255,.12); display:inline-block;
}

/* ---------- Certification marquee ---------- */
.cert-bar{
  background:var(--bone); border-bottom:1px solid var(--line);
  padding:26px 0; overflow:hidden; position:relative;
  /* fade the logos out at both edges instead of cutting them off */
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cert-track{
  display:flex; width:max-content;
  animation:cert-scroll 38s linear infinite;
}
.cert-bar:hover .cert-track{ animation-play-state:paused; }
.cert-set{
  display:flex; align-items:center; gap:clamp(40px, 6vw, 82px);
  margin:0; padding:0 clamp(20px, 3vw, 41px); list-style:none;
}
.cert-set li{ flex:0 0 auto; display:flex; align-items:center; }
.cert-set img{
  height:58px; width:auto; display:block;
}
/* Two identical sets sit side by side, so -50% lands exactly on the seam */
@keyframes cert-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (max-width:820px){
  .cert-bar{ padding:20px 0; }
  .cert-set img{ height:44px; }
}
/* With motion disabled the marquee stops, so let it scroll by hand instead
   of stranding the viewer on the first two logos. */
@media (prefers-reduced-motion:reduce){
  .cert-bar{ overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
  .cert-track{ animation:none; }
  .cert-set[aria-hidden="true"]{ display:none; }
}

/* ============================================================
   Inner pages
   ============================================================ */
.page-hero{
  position:relative; background:var(--black); color:var(--white);
  padding:clamp(56px,7vw,92px) 0 clamp(50px,6vw,78px); overflow:hidden;
}
.page-hero::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,.5) 100%);
  z-index:1;
}
.page-hero .bg{ position:absolute; inset:0; z-index:0; }
.page-hero .bg img{ width:100%; height:100%; object-fit:cover; }
.page-hero .wrap{ position:relative; z-index:2; }
.page-hero h1{ font-size:clamp(31px,5.4vw,54px); margin-bottom:16px; max-width:16ch; }
.page-hero .lede{ color:rgba(255,255,255,.9); max-width:60ch; margin-bottom:26px; }
.page-hero .hero-actions{ display:flex; gap:13px; flex-wrap:wrap; }

.crumbs{
  font-family:var(--body); font-size:12.5px; letter-spacing:.06em; color:rgba(255,255,255,.6);
  margin-bottom:18px;
}
.crumbs a{ color:var(--gold-lit); text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }

.layout{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:clamp(34px,5vw,66px); align-items:start; }
.prose h2{ font-size:clamp(24px,3.2vw,34px); margin:0 0 14px; }
.prose h3{ font-size:clamp(17px,2vw,20px); margin:0 0 8px; }
.prose > section{ margin-bottom:clamp(38px,5vw,56px); }
.prose p{ color:var(--text); }
.prose .rule{ margin:14px 0 20px; }

.checks{ list-style:none; margin:0; padding:0; display:grid; gap:13px; }
.checks li{ display:flex; gap:12px; align-items:flex-start; font-size:15.5px; line-height:1.55; }
.checks .tick{
  flex:0 0 auto; width:21px; height:21px; margin-top:2px; border-radius:50%;
  background:var(--gold); color:var(--black); display:flex; align-items:center;
  justify-content:center; font-size:12px; font-weight:700;
}
.steps{ list-style:none; margin:0; padding:0; counter-reset:step; display:grid; gap:20px; }
.steps li{ display:flex; gap:16px; align-items:flex-start; }
.steps .n{
  flex:0 0 auto; width:34px; height:34px; border-radius:50%; background:var(--black);
  color:var(--gold); font-family:var(--head); font-size:15px;
  display:flex; align-items:center; justify-content:center;
}
.steps h3{ margin-bottom:4px; }
.steps p{ margin:0; font-size:15px; color:var(--grey); }

.signs{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; }
.sign{ background:var(--bone); border-left:3px solid var(--gold); padding:18px 20px; border-radius:0 4px 4px 0; }
.sign h3{ font-size:15.5px; margin-bottom:5px; }
.sign p{ margin:0; font-size:14px; color:var(--grey); line-height:1.5; }

.faq details{
  border-bottom:1px solid var(--line); padding:17px 0;
}
.faq summary{
  font-family:var(--head); font-size:17px; text-transform:uppercase; letter-spacing:.02em;
  cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:18px; align-items:center;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:'+'; color:var(--gold); font-size:22px; line-height:1; flex:0 0 auto; }
.faq details[open] summary::after{ content:'\2212'; }
.faq details p{ margin:12px 0 0; color:var(--grey); font-size:15.5px; }

.aside{ position:sticky; top:112px; display:grid; gap:20px; }
.aside-card{ background:var(--bone); border:1px solid var(--line); border-radius:5px; padding:26px 24px; }
.aside-card h3{ font-size:18px; margin-bottom:10px; }
.aside-card p{ font-size:14.5px; color:var(--grey); margin-bottom:16px; }
.aside-card .btn{ width:100%; }
.aside-card .tel{
  display:block; text-align:center; margin-top:11px; font-family:var(--head);
  font-size:19px; color:var(--black); text-decoration:none; letter-spacing:.02em;
}
.aside-list{ list-style:none; margin:0; padding:0; }
.aside-list li{ padding:10px 0; border-bottom:1px solid var(--line); font-size:14.5px; }
.aside-list li:last-child{ border-bottom:0; }
.aside-list a{ text-decoration:none; color:var(--black); }
.aside-list a:hover{ color:var(--gold-deep); }
.aside-list a[aria-current]{ color:var(--gold-deep); font-weight:600; }

.gallery{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; }
.gallery figure{ margin:0; }
.gallery img{ width:100%; height:250px; object-fit:cover; border-radius:4px; display:block; }
.gallery figcaption{ font-size:13.5px; color:var(--grey); margin-top:9px; }

.area-cols{ columns:3 190px; column-gap:32px; }
.area-cols li{ list-style:none; padding:8px 0; border-bottom:1px solid var(--line); break-inside:avoid; font-size:15px; }
.area-cols{ padding:0; margin:0; }

@media (max-width:900px){
  .layout{ grid-template-columns:1fr; }
  .aside{ position:static; }
}
