/* ==========================================================================
   Apex Roof Exchange — Marketplace brand. Pure CSS, mobile-first.
   ========================================================================== */
:root {
  --navy:        #0f1b2d;
  --navy-2:      #14233a;
  --slate:       #243b53;
  --gold:        #f4a52b;
  --gold-deep:   #d9881a;
  --steel:       #5b6b7d;
  --cloud:       #f5f7fa;
  --line:        #e3e8ee;
  --text:        #1c2733;
  --muted:       #56657a;
  --success:     #2f9e44;
  --star:        #f4a52b;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15,27,45,.08), 0 1px 2px rgba(15,27,45,.05);
  --shadow:    0 12px 28px rgba(15,27,45,.12), 0 4px 10px rgba(15,27,45,.06);
  --shadow-lg: 0 26px 55px rgba(15,27,45,.22);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji";
  --header-h: 78px;
  --t: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: #fff;
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.16; color: var(--navy); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--navy); color: #c9d4e2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.13rem; margin: 0; }
.section--navy .section-head p { color: #9fb0c4; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.section--navy .eyebrow { color: var(--gold); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--gold);
  color: var(--navy); padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 800; }
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit;
  font-weight: 800; font-size: 1rem; padding: 14px 28px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: var(--t); white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef2f7; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { color: #fff; font-size: 1.18rem; font-weight: 800; letter-spacing: .02em; }
.brand-name small { color: var(--gold); font-size: .64rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; }

.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 13px; color: #c9d4e2; font-weight: 600; border-radius: 7px; font-size: .96rem; }
.main-nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 1.04rem; white-space: nowrap; }
.header-phone:hover { color: var(--gold); text-decoration: none; }
.header-phone .label { display: block; font-size: .64rem; font-weight: 600; color: #8fa1b6; text-transform: uppercase; letter-spacing: .07em; line-height: 1; }

.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.2); border-radius: 8px;
  width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2.5px;
  background: #fff; border-radius: 2px; transition: var(--t); position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(15,27,45,.94) 38%, rgba(15,27,45,.62) 100%),
    url("../images/web/hero-home.jpg") center/cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 76px 0 84px; }
.hero-copy h1 { color: #fff; }
.hero-copy h1 .accent { color: var(--gold); }
.hero-copy .lead { font-size: 1.2rem; color: #c9d4e2; max-width: 40ch; }
.hero-bullets { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.hero-bullets li { display: flex; align-items: center; gap: 10px; color: #e6edf4; font-weight: 600; }
.hero-bullets .check { color: var(--gold); font-weight: 900; }
.hero-rating { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #c9d4e2; font-size: .95rem; }
.stars { color: var(--star); letter-spacing: 2px; }

.lead-card { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }
.lead-card .badge { display: inline-block; background: rgba(244,165,43,.15); color: var(--gold-deep); font-weight: 800;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.lead-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.lead-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,165,43,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.form-success { display: none; background: #e9f7ee; border: 1.5px solid #b7e4c7; color: #1b5e2b; padding: 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-success.show { display: block; }

/* ---- Trust bar ---- */
.trust-bar { background: var(--navy-2); }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 16px 38px; justify-content: center; align-items: center; padding: 22px 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #c9d4e2; font-weight: 700; font-size: .96rem; }
.trust-item .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: rgba(244,165,43,.16); color: var(--gold); border-radius: 8px; font-size: 1.05rem; }

/* ==========================================================================
   Grids / cards
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--t); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-link { margin-top: auto; font-weight: 800; color: var(--gold-deep); display: inline-flex; gap: 6px; }

.step-num { width: 46px; height: 46px; border-radius: 12px; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 900; margin-bottom: 16px; }
.icon-badge { width: 54px; height: 54px; border-radius: 13px; background: var(--cloud); color: var(--gold-deep);
  display: grid; place-items: center; font-size: 1.55rem; margin-bottom: 14px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .check { flex: none; width: 25px; height: 25px; border-radius: 50%; background: rgba(47,158,68,.13);
  color: var(--success); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

/* ---- Split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.stat-row { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 10px; }
.stat strong { display: block; font-size: 2.3rem; color: var(--gold-deep); line-height: 1; }
.section--navy .stat strong { color: var(--gold); }
.stat span { color: var(--muted); font-size: .92rem; }
.section--navy .stat span { color: #9fb0c4; }

/* ---- Testimonials ---- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.testimonial blockquote { margin: 0; font-size: 1.05rem; color: var(--text); }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; flex: none; }
.testimonial .who strong { display: block; color: var(--navy); }
.testimonial .who small { color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { position: relative; color: #fff;
  background: linear-gradient(rgba(15,27,45,.82), rgba(15,27,45,.9)), url("../images/web/cta-aerial.jpg") center/cover no-repeat; }
.cta-band .container { text-align: center; padding: 70px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d4e2; max-width: 52ch; margin: 0 auto 24px; font-size: 1.12rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- For roofers strip ---- */
.roofer-strip { background: var(--gold); }
.roofer-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 20px; }
.roofer-strip h3 { color: var(--navy); margin: 0; }
.roofer-strip p { color: #5a4412; margin: 4px 0 0; font-weight: 600; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #07101d; color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0a131f; color: #93a3b7; padding: 58px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #93a3b7; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 46px; padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.lead-text { font-size: 1.18rem; color: var(--muted); }

/* ---- Page hero (inner pages) ---- */
.page-hero { background: linear-gradient(rgba(15,27,45,.9), rgba(15,27,45,.94)),
    url("../images/web/cta-aerial.jpg") center/cover no-repeat; color: #fff; padding: 60px 0; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #c9d4e2; max-width: 62ch; margin: 0; font-size: 1.12rem; }
.breadcrumbs { font-size: .85rem; color: #8fa1b6; margin-bottom: 16px; }
.breadcrumbs a { color: #c9d4e2; }
.breadcrumbs span { margin: 0 8px; opacity: .6; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--cloud);
  color: var(--gold-deep); display: grid; place-items: center; font-size: 1.2rem; }
.info-list strong { display: block; color: var(--navy); }
.info-list a { color: var(--muted); }
.map-embed { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); border: 1px solid var(--line); display: grid; place-items: center; }
.map-embed span { background: rgba(244,165,43,.15); color: var(--gold); padding: 10px 18px; border-radius: 8px; font-weight: 700; }

@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; padding: 52px 0 60px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .split-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); transform: translateY(-120%);
    transition: transform .25s ease; visibility: hidden; }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .header-phone .label, .header-cta .btn { display: none; }
  .header-phone { font-size: 1.2rem; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 52px 0; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ==========================================================================
   Hormozi sections (single-roofer rebuild)
   ========================================================================== */

/* Problem agitation */
.sound-familiar { display: inline-block; font-weight: 800; color: var(--gold-deep); font-size: 1.05rem; margin-bottom: 26px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); }
.pain-card .pain-ic { font-size: 1.6rem; margin-bottom: 10px; }
.pain-card p { margin: 0; color: var(--text); font-weight: 600; font-size: 1.05rem; }

/* Offer stack */
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto; overflow: hidden; }
.offer-card .offer-head { background: var(--navy); color: #fff; padding: 24px 28px; text-align: center; }
.offer-card .offer-head h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.offer-card .offer-head p { color: #c9d4e2; margin: 6px 0 0; }
.offer-list { list-style: none; margin: 0; padding: 10px 28px 24px; }
.offer-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.offer-list li:last-child { border-bottom: 0; }
.offer-list .check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(244,165,43,.16);
  color: var(--gold-deep); display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: 2px; }
.offer-list b { color: var(--navy); }
.offer-list span.so { color: var(--muted); }

/* Guarantee box */
.guarantee { max-width: 760px; margin: 0 auto; background: var(--navy); color: #e6edf4; border: 2px solid var(--gold);
  border-radius: var(--radius); padding: 38px 34px; text-align: center; position: relative; }
.guarantee .seal { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 16px; font-weight: 900; }
.guarantee h3 { color: #fff; font-size: 1.6rem; }
.guarantee p { color: #c9d4e2; margin: 0 auto; max-width: 54ch; font-size: 1.08rem; }

/* Bonuses */
.bonus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bonus { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.bonus .b-ic { font-size: 1.7rem; margin-bottom: 8px; }
.bonus b { display: block; color: var(--navy); font-size: .98rem; }
.bonus small { color: var(--muted); }

/* Urgency strip */
.urgency { background: var(--gold); color: var(--navy); text-align: center; font-weight: 800; padding: 14px 20px; font-size: 1.02rem; }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; font: inherit; font-weight: 700; color: var(--navy); padding: 18px 20px;
  background: none; border: 0; cursor: pointer; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .icon { flex: none; color: var(--gold-deep); font-size: 1.4rem; transition: var(--t); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); margin: 0 0 16px; }

/* Lead magnet bar */
.leadmagnet { background: var(--navy-2); color: #e6edf4; }
.leadmagnet .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 20px; }
.leadmagnet h3 { color: #fff; margin: 0; }
.leadmagnet p { margin: 4px 0 0; color: #9fb0c4; }

/* Booking calendar placeholder */
.calendar-embed { width: 100%; min-height: 360px; border-radius: var(--radius); border: 2px dashed var(--gold);
  background: var(--cloud); display: grid; place-items: center; text-align: center; padding: 30px; }
.calendar-embed .cal-inner { max-width: 380px; }
.cal-slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.cal-slots span { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; font-weight: 700; color: var(--navy); font-size: .9rem; }

/* What happens / reassure list */
.reassure { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.reassure li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.reassure .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }

@media (max-width: 760px) {
  .pain-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   v2 — Aesthetic flavor pass (gallery, before/after, stats, showcase, etc.)
   ========================================================================== */

/* Gold accent strip above header + premium feel */
.topbar { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); color: #2a1f08;
  font-weight: 700; font-size: .82rem; text-align: center; padding: 7px 16px; letter-spacing: .01em; }
.topbar a { color: #2a1f08; font-weight: 800; text-decoration: underline; }

/* Decorative gold underline under centered section headings */
.section-head h2 { position: relative; }
.section-head h2::after { content: ""; display: block; width: 62px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep)); margin: 18px auto 0; }

/* Gradient accent on hero word + image zoom on photo cards */
.hero-copy h1 .accent { background: linear-gradient(90deg, #ffce7a, var(--gold)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); }
.card img { transition: transform .55s ease; }
.card:hover img { transform: scale(1.06); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---- Roofline SVG divider ---- */
.divider { display: block; width: 100%; height: 26px; }
.divider path { fill: currentColor; }
.divider--cloud { color: var(--cloud); }
.divider--navy { color: var(--navy); }

/* ---- Stats band (animated counters) ---- */
.stats-band { background: var(--navy); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 240px at 80% -10%, rgba(244,165,43,.18), transparent 70%); }
.stats-band .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  text-align: center; padding: 56px 20px; }
.stat-big strong { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1;
  color: var(--gold); letter-spacing: -.02em; }
.stat-big span { display: block; margin-top: 8px; color: #9fb0c4; font-weight: 600; font-size: .98rem; }
.stat-big + .stat-big { border-left: 1px solid rgba(255,255,255,.08); }

/* ---- Project gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 3/2; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-weight: 700;
  font-size: .96rem; padding: 34px 16px 14px; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(to top, rgba(10,19,31,.9), rgba(10,19,31,.0)); }
.gallery-item .cap .pin { color: var(--gold); }
.gallery-item .tag { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy);
  font-size: .68rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 3/4; }

/* ---- Before / After slider ---- */
.ba { position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 3/2; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba .ba-label { position: absolute; bottom: 14px; z-index: 3; background: rgba(10,19,31,.78); color: #fff;
  font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.ba .ba-label.l-after { left: 14px; color: var(--gold); }
.ba .ba-label.l-before { right: 14px; }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; background: var(--gold);
  transform: translateX(-50%); z-index: 4; }
.ba .ba-handle::after { content: "⟺"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; background: var(--gold); color: var(--navy); border-radius: 50%; display: grid;
  place-items: center; font-size: 1.2rem; font-weight: 900; box-shadow: var(--shadow); }

/* ---- Full-bleed craftsmanship showcase ---- */
.showcase { position: relative; color: #fff; background-position: center; background-size: cover; background-repeat: no-repeat; }
.showcase::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,27,45,.93) 30%, rgba(15,27,45,.55) 100%); }
.showcase .container { position: relative; padding: 86px 20px; max-width: var(--maxw); }
.showcase .showcase-copy { max-width: 540px; }
.showcase h2 { color: #fff; }
.showcase h2::after { margin-left: 0; }
.showcase p { color: #c9d4e2; font-size: 1.1rem; }
.showcase .check-list .check { background: rgba(244,165,43,.18); color: var(--gold); }
.showcase .check-list li { color: #e6edf4; font-weight: 600; }

/* ---- Sticky mobile call bar ---- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; gap: 10px; padding: 10px 12px;
  background: rgba(10,19,31,.97); border-top: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.mobile-cta .btn { flex: 1; padding: 13px 10px; }

@media (max-width: 980px) {
  .stats-band .container { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; }
  .stat-big:nth-child(odd) { border-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 3/2; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .ba .ba-label { font-size: .66rem; padding: 5px 9px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
  .showcase .container { padding: 60px 20px; }
}
