/* ===========================================================
   SG CONSTRUCTION & DESIGN INC — DESIGN SYSTEM
   Palette: Black / Metallic Gold / Warm Ivory
   Display: Playfair Display · Labels & Body: Inter
   =========================================================== */

:root{
  --ink-black:  #0B0B0C;
  --black-deep: #050505;
  --black-soft: #1A1A1A;
  --gold:       #B8923C;
  --gold-bright:#E0BD63;
  --paper:      #F8F7F3;
  --paper-dim:  #EFEDE4;
  --ink:        #1A1A1A;
  --slate:      #6B6862;
  --white:      #FFFFFF;
  --line:       #E2DFD3;
  --line-dark:  rgba(232,200,99,0.16);

  --font-display: 'Playfair Display', serif;
  --font-tag:     'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --container: 1180px;
  --radius: 2px;
  --shadow-card: 0 18px 36px -20px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; cursor:pointer; border:none; background:none; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

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

:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:800; color:var(--ink-black); line-height:1.12; letter-spacing:0; }
h1{ font-size:clamp(2.4rem, 4.8vw, 4rem); font-weight:900; line-height:1.05; }
h2{ font-size:clamp(1.8rem, 3vw, 2.6rem); }
h3{ font-size:1.25rem; }
p{ color:var(--slate); }
.lede{ font-size:1.15rem; color:var(--slate); max-width:560px; }

.eyebrow{
  font-family:var(--font-tag);
  text-transform:uppercase;
  letter-spacing:0.18em;
  font-size:0.76rem;
  font-weight:600;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.eyebrow::before{ content:""; width:18px; height:1px; background:var(--gold); display:inline-block; }
.on-dark .eyebrow{ color:var(--gold-bright); }
.on-dark h2, .on-dark h3, .on-dark h1{ color:var(--white); }
.on-dark p{ color:rgba(255,255,255,0.68); }

.section-head{ max-width:640px; margin-bottom:48px; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---------- Buttons ---------- */
.btn{
  font-family:var(--font-tag);
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:0.82rem;
  font-weight:600;
  padding:15px 28px;
  border-radius:1px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn-gold{ background:var(--gold); color:var(--black-deep); }
.btn-gold:hover{ background:var(--gold-bright); transform:translateY(-2px); box-shadow:0 10px 24px -8px rgba(184,146,60,0.5); }
.btn-outline{ background:transparent; border:1px solid currentColor; color:var(--ink-black); }
.btn-outline:hover{ background:var(--ink-black); color:var(--white); }
.on-dark .btn-outline{ color:var(--white); }
.on-dark .btn-outline:hover{ background:var(--white); color:var(--ink-black); }
.btn svg{ width:16px; height:16px; flex:none; }
.cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top:32px; }

/* ---------- Credential badge (signature element) ---------- */
.tag-badge{
  --tag-bg: transparent;
  --tag-fg: var(--gold-bright);
  --tag-border: var(--gold);
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:var(--tag-bg);
  color:var(--tag-fg);
  font-family:var(--font-tag);
  text-transform:uppercase;
  letter-spacing:0.13em;
  font-size:0.74rem;
  font-weight:600;
  padding:9px 18px;
  border:1px solid var(--tag-border);
}
.tag-badge::before{
  content:"";
  width:5px; height:5px;
  border-radius:50%;
  background:var(--tag-border);
  flex:none;
}
.tag-badge.gold{ --tag-bg:var(--gold); --tag-fg:var(--black-deep); --tag-border:var(--gold); }
.tag-badge.gold::before{ background:var(--black-deep); }
.tag-badge.outline{ --tag-bg:transparent; --tag-fg:var(--ink-black); --tag-border:var(--ink-black); }
.tag-badge.outline::before{ background:var(--ink-black); }

/* ---------- Section divider ---------- */
.roofline{ display:block; width:100%; height:2px; background:linear-gradient(90deg, transparent, var(--gold) 50%, transparent); border:none; }
.roofline.flip{ transform:rotate(180deg); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--ink-black);
  border-bottom:1px solid var(--line-dark);
}
.header-row{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; gap:24px; }
.logo{ display:flex; align-items:center; gap:10px; flex:none; }
.logo img{ height:42px; width:auto; }
.logo-mark{
  width:42px; height:42px; border-radius:4px;
  background:var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:900; color:var(--black-deep); font-size:1.05rem;
  flex:none;
}
.logo-word{ font-family:var(--font-display); font-weight:800; color:var(--white); font-size:1rem; line-height:1.15; }
.logo-word span{ display:block; font-family:var(--font-tag); font-weight:500; font-size:0.62rem; letter-spacing:0.12em; color:var(--gold-bright); text-transform:uppercase; }

.main-nav{ display:flex; align-items:center; gap:30px; }
.main-nav a{
  font-family:var(--font-tag); font-size:0.84rem; text-transform:uppercase; letter-spacing:0.05em;
  color:rgba(255,255,255,0.82); font-weight:500; transition:color .15s ease;
  position:relative; padding:6px 0;
}
.main-nav a:hover, .main-nav a.active{ color:var(--gold-bright); }
.main-nav a.active::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--gold); }

.header-actions{ display:flex; align-items:center; gap:14px; flex:none; }
.phone-link{ display:flex; align-items:center; gap:8px; color:var(--white); font-weight:700; font-family:var(--font-display); font-size:0.95rem; }
.phone-link svg{ width:18px; height:18px; color:var(--gold-bright); flex:none; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; padding:6px; }
.nav-toggle span{ width:24px; height:2px; background:var(--white); display:block; }

/* ---------- Hero ---------- */
.hero{ background:var(--ink-black); position:relative; overflow:hidden; }
.hero-grid{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
  padding:72px 24px 88px; max-width:var(--container); margin:0 auto;
}
.hero h1{ color:var(--white); margin-bottom:18px; }
.hero .lede{ color:rgba(255,255,255,0.78); max-width:520px; margin-bottom:6px; }
.hero-trustline{ display:flex; gap:18px; flex-wrap:wrap; margin-top:30px; }
.hero-trustline span{ font-family:var(--font-tag); font-size:0.78rem; letter-spacing:0.04em; color:rgba(255,255,255,0.65); display:flex; align-items:center; gap:7px; }
.hero-trustline svg{ width:15px; height:15px; color:var(--gold); flex:none; }

.hero-visual{ position:relative; }
.hero-visual .photo-slot{ aspect-ratio:4/5; border-radius:4px; }
.hero-logo-display{
  display:flex; align-items:center; justify-content:center;
  aspect-ratio:4/5; border-radius:4px;
  background:radial-gradient(circle at 50% 45%, rgba(232,200,99,0.08), transparent 70%);
  border:1px solid var(--line-dark);
  padding:40px;
}
.hero-logo-display img{ max-width:78%; max-height:78%; width:auto; height:auto; object-fit:contain; }
.hero-mobile-logo{ display:none; }
.hero-desktop-logo{ display:block; }
.hero-visual .tag-badge{ position:absolute; bottom:-14px; left:-14px; z-index:2; font-size:0.72rem; padding:9px 16px 9px 24px; }

/* ---------- Photo slot (placeholder w/ auto-swap) ---------- */
.photo-slot{
  position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; border-radius:var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(11,11,12,0.07) 0 2px, transparent 2px 14px),
    var(--paper-dim);
  border:1px dashed var(--line);
}
.photo-slot img{ width:100%; height:100%; object-fit:cover; position:relative; z-index:1; }
.photo-slot.is-empty::after{
  content:attr(data-label);
  position:absolute; inset:14px; display:flex; align-items:center; justify-content:center;
  text-align:center; font-family:var(--font-tag); font-size:0.72rem; letter-spacing:0.04em; text-transform:uppercase;
  color:var(--slate); padding:10px; line-height:1.5;
}

/* ---------- Trust strip ---------- */
.trust-strip{ background:var(--black-deep); padding:26px 0; border-top:1px solid var(--line-dark); border-bottom:1px solid var(--line-dark); }
.trust-strip ul{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:18px 28px; }
.trust-strip li{ display:flex; align-items:center; gap:10px; font-family:var(--font-tag); font-size:0.82rem; letter-spacing:0.04em; text-transform:uppercase; color:rgba(255,255,255,0.85); }
.trust-strip svg{ width:18px; height:18px; color:var(--gold); flex:none; }

/* ---------- Sections ---------- */
.section{ padding:88px 0; }
.section.tight{ padding:64px 0; }
.section.on-dark{ background:var(--ink-black); }
.section.alt-bg{ background:var(--paper-dim); }
.section.gold-tint{ background:linear-gradient(180deg, var(--paper) 0%, #EFE2BC 100%); }

/* ---------- Trust badge row (Proven Results) ---------- */
.badge-row{ display:flex; justify-content:center; align-items:center; gap:52px; flex-wrap:wrap; margin-top:8px; }
.badge-row img{ height:74px; width:auto; object-fit:contain; }

/* ---------- Service cards ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.service-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; transition:transform .18s ease, box-shadow .18s ease;
}
.service-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-card); }
.service-card-photo{ margin:-30px -26px 20px -26px; border-radius:var(--radius) var(--radius) 0 0; overflow:hidden; aspect-ratio:4/3; }
.service-card-photo .photo-slot{ aspect-ratio:auto; height:100%; border-radius:0; }
.service-card .icon{ width:40px; height:40px; color:var(--gold); margin-bottom:18px; }
.service-card h3{ margin-bottom:8px; font-size:1.08rem; }
.service-card p{ font-size:0.93rem; margin-bottom:0; }
.service-card a.more{ font-family:var(--font-tag); font-size:0.74rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-black); display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-weight:600; }
.service-card a.more svg{ width:13px; height:13px; }
.service-card button.more{ font-family:var(--font-tag); font-size:0.74rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-black); display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-weight:600; }
.service-card button.more svg{ width:13px; height:13px; transition:transform .2s ease; }
.service-card.open button.more svg{ transform:rotate(90deg); }
.service-more{ display:none; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.service-card.open .service-more{ display:block; }
.service-more .photo-slot{ aspect-ratio:16/9; margin-bottom:12px; }
.service-more p{ font-size:0.92rem; margin:0; }

/* ---------- Two-column feature layout ---------- */
.feature-split{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.feature-split.reverse .feature-text{ order:2; }
.feature-list{ margin-top:26px; display:grid; gap:12px; }
.feature-list li{ display:flex; align-items:flex-start; gap:12px; font-size:0.97rem; color:var(--ink); font-weight:500; }
.on-dark .feature-list li{ color:rgba(255,255,255,0.9); }
.feature-list svg{ width:18px; height:18px; color:var(--gold); flex:none; margin-top:2px; }
.feature-visual-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.feature-visual-grid .photo-slot:first-child{ grid-column:1 / -1; aspect-ratio:16/9; }

/* ---------- Gallery grid ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gallery-grid .photo-slot{ aspect-ratio:1/1; }
.gallery-item{ position:relative; }
.gallery-item .cap{ margin-top:10px; font-family:var(--font-tag); font-size:0.78rem; letter-spacing:0.03em; color:var(--slate); text-transform:uppercase; }
.filter-row{ display:flex; gap:10px; margin-bottom:36px; flex-wrap:wrap; }
.filter-btn{
  font-family:var(--font-tag); font-size:0.78rem; letter-spacing:0.05em; text-transform:uppercase;
  padding:9px 18px; border:1.5px solid var(--line); border-radius:30px; color:var(--slate); font-weight:600;
  transition:all .15s ease;
}
.filter-btn:hover{ border-color:var(--ink-black); color:var(--ink-black); }
.filter-btn.active{ background:var(--ink-black); border-color:var(--ink-black); color:var(--white); }

/* ---------- Why choose us ---------- */
.why-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px 40px; }
.why-item{ display:flex; gap:16px; }
.why-item .icon{ flex:none; width:30px; height:30px; color:var(--gold); }
.why-item h3{ margin-bottom:6px; font-size:1.05rem; }
.why-item p{ font-size:0.93rem; margin:0; }

/* ---------- Final CTA band ---------- */
.cta-band{ background:var(--ink-black); padding:70px 0; text-align:center; position:relative; overflow:hidden; }
.cta-band h2{ color:var(--white); margin-bottom:14px; }
.cta-band p{ color:rgba(255,255,255,0.75); max-width:480px; margin:0 auto 6px; }
.cta-band .cta-row{ justify-content:center; margin-top:30px; }
.cta-phone-big{ font-family:var(--font-display); font-weight:900; font-size:1.6rem; color:var(--gold-bright); display:block; margin-top:10px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--black-deep); color:rgba(255,255,255,0.7); padding:64px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px; padding-bottom:48px; border-bottom:1px solid var(--line-dark); }
.footer-grid h4{ color:var(--white); font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; font-family:var(--font-tag); margin-bottom:18px; font-weight:600; }
.footer-grid ul{ display:grid; gap:10px; }
.footer-grid a, .footer-grid li{ font-size:0.9rem; color:rgba(255,255,255,0.65); }
.footer-grid a:hover{ color:var(--gold-bright); }
.footer-about p{ font-size:0.9rem; max-width:280px; margin-bottom:18px; }
.footer-logo{ display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.footer-logo img{ height:38px; width:auto; }
.footer-license{ display:inline-block; margin-top:6px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:22px 0; font-size:0.82rem; flex-wrap:wrap; gap:10px; }

/* ---------- Page header (non-home pages) ---------- */
.page-header{ background:var(--ink-black); padding:64px 0 56px; position:relative; }
.page-header .eyebrow{ color:var(--gold-bright); }
.page-header h1{ color:var(--white); margin-bottom:14px; }
.page-header p{ color:rgba(255,255,255,0.75); max-width:600px; }
.breadcrumb{ font-family:var(--font-tag); font-size:0.78rem; letter-spacing:0.04em; text-transform:uppercase; color:rgba(255,255,255,0.55); margin-bottom:18px; }
.breadcrumb a:hover{ color:var(--gold-bright); }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; }
.form-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:36px; }
.form-row{ display:grid; gap:18px; margin-bottom:18px; }
.form-row.two{ grid-template-columns:1fr 1fr; }
label{ display:block; font-family:var(--font-tag); font-size:0.74rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--slate); margin-bottom:7px; font-weight:600; }
input, select, textarea{
  width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:4px; font-family:var(--font-body); font-size:0.95rem; color:var(--ink); background:var(--white);
}
input:focus, select:focus, textarea:focus{ outline:2px solid var(--gold); border-color:var(--gold); }
.contact-info-card{ background:var(--ink-black); color:var(--white); border-radius:var(--radius); padding:36px; }
.contact-info-card .row{ display:flex; gap:14px; margin-bottom:22px; align-items:flex-start; }
.contact-info-card svg{ width:20px; height:20px; color:var(--gold); flex:none; margin-top:2px; }
.contact-info-card h4{ font-family:var(--font-tag); font-size:0.78rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--gold-bright); margin-bottom:4px; font-weight:600; }
.contact-info-card p, .contact-info-card a{ color:rgba(255,255,255,0.85); font-size:0.95rem; }
.hours-table{ width:100%; margin-top:6px; font-size:0.88rem; }
.hours-table td{ padding:4px 0; color:rgba(255,255,255,0.75); }
.hours-table td:last-child{ text-align:right; }
.form-success{ display:none; background:#23391F; border:1px solid #3B5C36; color:#CFE8C8; padding:16px; border-radius:4px; font-size:0.92rem; margin-bottom:18px; }
.form-success.show{ display:block; }

/* ---------- Stats row ---------- */
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stat{ }
.stat .n{ font-family:var(--font-display); font-weight:900; font-size:2.3rem; color:var(--ink-black); }
.on-dark .stat .n{ color:var(--white); }
.stat .l{ font-family:var(--font-tag); font-size:0.76rem; letter-spacing:0.04em; text-transform:uppercase; color:var(--slate); margin-top:4px; }
.on-dark .stat .l{ color:rgba(255,255,255,0.6); }

/* =================== RESPONSIVE =================== */
@media (max-width:980px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-grid{ grid-template-columns:1fr; padding-top:40px; padding-bottom:56px; gap:28px; }
  .hero-visual{ order:-1; max-width:300px; margin:0 auto; }
  .hero-logo-display{ padding:22px; min-height:240px; }
  .hero-logo-display img{ max-width:58%; max-height:58%; }
  .hero-visual .tag-badge{ position:static; margin-top:14px; }
  .feature-split{ grid-template-columns:1fr; gap:36px; }
  .feature-split.reverse .feature-text{ order:0; }
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .stats-row{ grid-template-columns:repeat(2,1fr); gap:28px; }
}
@media (max-width:640px){
  .section{ padding:60px 0; }
  .service-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr 1fr; }
  .trust-strip ul{ justify-content:flex-start; }
  .form-row.two{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .cta-row{ flex-direction:column; align-items:stretch; }
  .cta-row .btn{ justify-content:center; }
  .header-row{ padding:12px 18px; }
  .phone-link span{ display:none; }
  .badge-row{ gap:32px; }
  .badge-row img{ height:54px; }
  .hero-grid{ padding-top:28px; gap:22px; }
  .hero-visual{ display:block; max-width:340px; margin:0 auto; }
  .hero-logo-display{ min-height:auto; aspect-ratio:auto; padding:12px 10px; background:none; border:none; }
  .hero-desktop-logo{ display:none; }
  .hero-mobile-logo{ display:block; width:100%; max-width:320px; max-height:none; height:auto; margin:0 auto; }
  .hero-visual .tag-badge{ margin-top:8px; }
  .hero .tag-badge.gold{ font-size:0.64rem; letter-spacing:0.08em; }
  .hero h1{ font-size:clamp(2rem, 9vw, 2.6rem); }
  .hero .lede{ font-size:1rem; }
  .hero-trustline{ gap:10px 14px; margin-top:22px; }
}

/* Mobile nav drawer */
.mobile-nav{
  position:fixed; inset:0; background:var(--black-deep); z-index:60; transform:translateX(100%);
  transition:transform .25s ease; padding:90px 28px 28px; overflow-y:auto;
}
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav a{ display:block; padding:16px 0; border-bottom:1px solid var(--line-dark); font-family:var(--font-display); font-weight:700; font-size:1.2rem; color:var(--white); }
.mobile-nav .btn{ margin-top:24px; width:100%; justify-content:center; }
.nav-close{ position:fixed; top:16px; right:18px; z-index:61; color:var(--white); font-size:1.6rem; display:none; }
.mobile-nav.open ~ .nav-close, .mobile-nav.open + .nav-close{ display:block; }

/* ---------- Mobile header overflow fix ---------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-header, .header-row {
  max-width: 100vw;
}

.logo {
  min-width: 0;
}

.logo-word {
  white-space: nowrap;
}

@media (max-width:640px){
  .header-actions .btn {
    display: none;
  }

  .header-row {
    gap: 10px;
    padding: 10px 14px;
  }

  .logo img {
    height: 34px;
  }

  .logo-word {
    font-size: 0.82rem;
  }

  .logo-word span {
    font-size: 0.52rem;
  }

  .nav-toggle {
    flex: none;
    display: flex;
  }
}

@media (max-width:420px){
  .logo-word {
    display: none;
  }
}

/* ===========================================================
   HOMEPAGE REDESIGN — MOTION SYSTEM, HERO, LOGO STRIP,
   IMAGE-LED SERVICES, CAROUSEL, MOBILE BAR, FAQ
   =========================================================== */

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(30px); transition:opacity .8s cubic-bezier(.16,.8,.24,1), transform .8s cubic-bezier(.16,.8,.24,1); }
.reveal.visible{ opacity:1; transform:none; }

.reveal-stagger > *{ opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1); }
.reveal-stagger.visible > *{ opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(1){ transition-delay:.02s; }
.reveal-stagger.visible > *:nth-child(2){ transition-delay:.10s; }
.reveal-stagger.visible > *:nth-child(3){ transition-delay:.18s; }
.reveal-stagger.visible > *:nth-child(4){ transition-delay:.26s; }
.reveal-stagger.visible > *:nth-child(5){ transition-delay:.34s; }
.reveal-stagger.visible > *:nth-child(6){ transition-delay:.42s; }

/* Section headings move up + accent line expands */
.section-head .eyebrow::before{ transition:width .7s cubic-bezier(.16,.8,.24,1) .15s; }
.section-head.reveal.visible .eyebrow::before{ width:18px; }
.section-head.reveal .eyebrow::before{ width:0; }

/* Image mask reveal (clip-path) */
.mask-reveal{ overflow:hidden; }
.mask-reveal img{ clip-path:inset(0 0 0 0); transition:clip-path 1s cubic-bezier(.16,.8,.24,1), transform .6s ease; }
.mask-reveal.reveal img{ clip-path:inset(0 0 100% 0); }
.mask-reveal.reveal.visible img{ clip-path:inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *, .mask-reveal img{ opacity:1 !important; transform:none !important; clip-path:none !important; transition:none !important; }
}

/* ---------- Header entrance ---------- */
.site-header{ transform:translateY(-100%); transition:transform .65s cubic-bezier(.16,.8,.24,1); }
.site-header.in{ transform:translateY(0); }
.site-header .logo img, .site-header .logo-mark{ opacity:0; transition:opacity .6s ease .35s; }
.site-header.in .logo img, .site-header.in .logo-mark{ opacity:1; }
@media (prefers-reduced-motion: reduce){
  .site-header{ transform:none; }
  .site-header .logo img, .site-header .logo-mark{ opacity:1; }
}

/* ---------- Hero v2 ---------- */
.hero-v2{ position:relative; background:var(--black-deep); overflow:hidden; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; object-position:center 32%; transform:scale(1.14); animation:heroZoomOut 20s ease-out forwards; }
@keyframes heroZoomOut{ from{ transform:scale(1.14); } to{ transform:scale(1.02); } }
.hero-overlay{ position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(5,5,5,.82) 0%, rgba(5,5,5,.58) 38%, rgba(5,5,5,.92) 100%); }
.hero-gradient-fx{ position:absolute; inset:0; z-index:1; background:radial-gradient(ellipse 60% 50% at 25% 15%, rgba(224,189,99,.20), transparent 65%); mix-blend-mode:screen; animation:heroGlow 9s ease-in-out infinite alternate; }
@keyframes heroGlow{ from{ opacity:.45; } to{ opacity:1; } }
.hero-v2-inner{ position:relative; z-index:2; display:grid; grid-template-columns:1.15fr 0.85fr; gap:52px; align-items:center; padding:150px 24px 96px; max-width:var(--container); margin:0 auto; }

.hero-anim{ opacity:0; transform:translateY(22px); transition:opacity .75s cubic-bezier(.16,.8,.24,1), transform .75s cubic-bezier(.16,.8,.24,1); }
.hero-headline .line{ display:block; overflow:hidden; }
.hero-headline .line span{ display:block; opacity:0; transform:translateY(100%); transition:opacity .75s cubic-bezier(.16,.8,.24,1), transform .75s cubic-bezier(.16,.8,.24,1); }
.hero-v2.in .hero-anim{ opacity:1; transform:none; }
.hero-v2.in .hero-headline .line span{ opacity:1; transform:none; }
.hero-v2.in [data-anim="badge"]{ transition-delay:.15s; }
.hero-v2.in .hero-headline .line:nth-child(1) span{ transition-delay:.35s; }
.hero-v2.in .hero-headline .line:nth-child(2) span{ transition-delay:.5s; }
.hero-v2.in [data-anim="lede"]{ transition-delay:.68s; }
.hero-v2.in [data-anim="cta1"]{ transition-delay:.85s; }
.hero-v2.in [data-anim="cta2"]{ transition-delay:.95s; }
.hero-v2.in [data-anim="trust"]{ transition-delay:1.1s; }
.hero-v2.in [data-anim="form"]{ transition-delay:.55s; }
@media (prefers-reduced-motion: reduce){
  .hero-anim, .hero-headline .line span{ opacity:1 !important; transform:none !important; }
  .hero-bg img{ animation:none; transform:none; }
  .hero-gradient-fx{ animation:none; opacity:.6; }
}

.hero-headline{ color:var(--white); margin-bottom:18px; }
.hero-v2 .lede{ color:rgba(255,255,255,0.8); max-width:520px; margin-bottom:6px; }
.hero-v2 .cta-row{ margin-top:30px; }
.btn-lg{ padding:17px 30px; font-size:0.86rem; }
.btn-outline-light{ background:transparent; border:1px solid rgba(255,255,255,.55); color:var(--white); }
.btn-outline-light:hover{ background:var(--white); color:var(--ink-black); transform:translateY(-2px); }
.hero-v2 .hero-trustline{ margin-top:34px; }

.scroll-indicator{ position:absolute; left:50%; bottom:26px; transform:translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:8px; font-family:var(--font-tag); font-size:0.68rem; letter-spacing:0.14em; text-transform:uppercase; color:rgba(255,255,255,0.6); }
.scroll-indicator .dot-track{ width:1px; height:34px; background:rgba(255,255,255,0.25); position:relative; overflow:hidden; }
.scroll-indicator .dot-track::after{ content:""; position:absolute; left:-1px; top:-10px; width:3px; height:10px; background:var(--gold-bright); animation:scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot{ 0%{ top:-10px; } 60%{ top:34px; } 100%{ top:34px; } }
@media (prefers-reduced-motion: reduce){ .scroll-indicator .dot-track::after{ animation:none; top:10px; } }
@media (max-width:980px){ .scroll-indicator{ display:none; } }

/* Hero estimate form card */
.hero-form-card{ background:var(--white); border-radius:6px; padding:32px 30px; box-shadow:0 40px 70px -24px rgba(0,0,0,.55); position:relative; }
.hero-form-card h3{ font-size:1.35rem; margin-bottom:6px; }
.hero-form-card > p{ font-size:0.9rem; margin-bottom:22px; }
.hero-form-card .btn{ margin-top:4px; }
.hero-form-success{ display:none; background:#23391F; border:1px solid #3B5C36; color:#CFE8C8; padding:14px 16px; border-radius:4px; font-size:0.88rem; margin-bottom:16px; }
.hero-form-success.show{ display:block; }

/* ---------- Trust / logo marquee ---------- */
/* ---------- Trust bar (static, Proven Results / Trusted Service) ---------- */
.trust-bar-wrap{ background:var(--black-deep); border-top:1px solid var(--line-dark); border-bottom:1px solid var(--line-dark); padding:48px 0; }
.trust-bar-label{ text-align:center; font-family:var(--font-tag); font-size:0.76rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold-bright); margin-bottom:34px; display:flex; align-items:center; justify-content:center; gap:14px; }
.trust-bar-label::before, .trust-bar-label::after{ content:""; width:40px; height:1px; background:var(--line-dark); }
.trust-bar{ display:grid; grid-template-columns:repeat(4,1fr); max-width:900px; margin:0 auto; }
.trust-item{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:0 20px; border-right:1px solid var(--line-dark); transition:transform .3s cubic-bezier(.16,.8,.24,1); }
.trust-item:last-child{ border-right:none; }
.trust-item:hover{ transform:translateY(-4px); }
.trust-item img{ height:52px; width:auto; object-fit:contain; }
.trust-item span{ font-family:var(--font-tag); font-size:0.72rem; letter-spacing:0.05em; text-transform:uppercase; color:rgba(255,255,255,0.55); text-align:center; }
@media (max-width:768px){
  .trust-bar{ grid-template-columns:repeat(2,1fr); row-gap:36px; max-width:420px; }
  .trust-item{ border-right:none; }
  .trust-item:nth-child(odd){ border-right:1px solid var(--line-dark); }
}

/* ---------- Image-led service cards ---------- */
.service-grid-v2{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.service-card-v2{ position:relative; border-radius:4px; overflow:hidden; aspect-ratio:4/3.5; }
.service-card-v2 img{ width:100%; height:100%; object-fit:cover; transition:transform .7s cubic-bezier(.16,.8,.24,1); }
.service-card-v2:hover img{ transform:scale(1.08); }
.service-card-v2::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(5,5,5,0) 30%, rgba(5,5,5,.55) 66%, rgba(5,5,5,.92) 100%); transition:opacity .3s ease; }
.service-card-v2-body{ position:absolute; left:0; right:0; bottom:0; z-index:2; padding:20px 20px; }
.service-card-v2-body h3{ color:var(--white); font-size:1.05rem; margin-bottom:5px; }
.service-card-v2-body p{ color:rgba(255,255,255,0.8); font-size:0.82rem; margin-bottom:12px; max-width:30ch; }
.service-card-v2-body .more{ font-family:var(--font-tag); font-size:0.7rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--gold-bright); font-weight:600; display:inline-flex; align-items:center; gap:6px; transition:gap .2s ease; }
.service-card-v2-body .more svg{ width:12px; height:12px; }
.service-card-v2:hover .more{ gap:10px; }
@media (max-width:1100px){ .service-grid-v2{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:768px){ .service-grid-v2{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .service-grid-v2{ grid-template-columns:1fr; } .service-card-v2{ aspect-ratio:4/3; } }

/* ---------- Emergency response band (signature mid-page moment) ---------- */
.emergency-band{ position:relative; overflow:hidden; background:var(--black-deep); padding:78px 0; }
.emergency-bg-fx{ position:absolute; inset:0; background:
    radial-gradient(ellipse 55% 80% at 12% 50%, rgba(224,189,99,.14), transparent 65%),
    radial-gradient(ellipse 40% 60% at 95% 15%, rgba(224,189,99,.08), transparent 60%);
  pointer-events:none;
}
.emergency-band::after{ content:""; position:absolute; inset:0; background-image:repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 26px); pointer-events:none; }
.emergency-inner{ position:relative; z-index:1; display:grid; grid-template-columns:auto 1fr; gap:56px; align-items:center; }

.emergency-visual{ position:relative; width:132px; height:132px; display:flex; align-items:center; justify-content:center; flex:none; }
.pulse-ring{ position:absolute; inset:0; border-radius:50%; border:1.5px solid var(--gold); opacity:0; animation:pulseRing 3.2s cubic-bezier(.2,.7,.3,1) infinite; }
.pulse-ring.r2{ animation-delay:1.05s; }
.pulse-ring.r3{ animation-delay:2.1s; }
@keyframes pulseRing{
  0%{ transform:scale(.55); opacity:.85; }
  80%{ opacity:0; }
  100%{ transform:scale(1.35); opacity:0; }
}
.pulse-core{ position:relative; z-index:2; width:78px; height:78px; border-radius:50%; background:linear-gradient(155deg, var(--gold-bright), var(--gold)); display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 6px rgba(224,189,99,.08), 0 14px 30px -10px rgba(0,0,0,.6); }
.pulse-core svg{ width:34px; height:34px; color:var(--black-deep); }
@media (prefers-reduced-motion: reduce){ .pulse-ring{ animation:none; opacity:0; } }

.emergency-text .tag-badge{ margin-bottom:16px; }
.emergency-text h2{ color:var(--white); margin-bottom:12px; font-size:clamp(1.5rem, 2.6vw, 2.1rem); }
.emergency-text p{ color:rgba(255,255,255,0.72); max-width:520px; margin-bottom:0; }
.emergency-text .cta-row{ margin-top:26px; }

.pulse-btn{ position:relative; }
.pulse-btn::after{ content:""; position:absolute; inset:0; border-radius:1px; box-shadow:0 0 0 0 rgba(224,189,99,.55); animation:pulseBtn 2.6s ease-out infinite; pointer-events:none; }
@keyframes pulseBtn{
  0%{ box-shadow:0 0 0 0 rgba(224,189,99,.45); }
  70%{ box-shadow:0 0 0 14px rgba(224,189,99,0); }
  100%{ box-shadow:0 0 0 0 rgba(224,189,99,0); }
}
@media (prefers-reduced-motion: reduce){ .pulse-btn::after{ animation:none; } }

@media (max-width:768px){
  .emergency-band{ padding:56px 0; }
  .emergency-inner{ grid-template-columns:1fr; text-align:center; gap:28px; justify-items:center; }
  .emergency-text p{ margin-left:auto; margin-right:auto; }
  .emergency-text .cta-row{ justify-content:center; }
}
.ba-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.ba-slider{ position:relative; aspect-ratio:16/11; border-radius:4px; overflow:hidden; --pos:50%; cursor:ew-resize; touch-action:none; -webkit-user-select:none; user-select:none; direction:ltr; }
.ba-media{ position:absolute; inset:0; }
.ba-media .photo-slot{ position:absolute; inset:0; aspect-ratio:auto; border-radius:0; }
.ba-media .photo-slot img{ -webkit-user-drag:none; user-select:none; pointer-events:none; }
.ba-after{ z-index:1; }
.ba-before{ z-index:2; -webkit-clip-path:inset(0 calc(100% - var(--pos)) 0 0); clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
.ba-range{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ba-divider{ position:absolute; top:0; bottom:0; left:var(--pos); width:2px; background:var(--gold-bright); z-index:4; pointer-events:none; transform:translateX(-1px); box-shadow:0 0 0 1px rgba(0,0,0,.3); }
.ba-handle-dot{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:38px; height:38px; border-radius:50%; background:var(--gold); display:flex; align-items:center; justify-content:center; box-shadow:0 6px 16px -4px rgba(0,0,0,.5); }
.ba-handle-dot svg{ width:18px; height:18px; color:var(--black-deep); }
.ba-tag{ position:absolute; top:14px; z-index:4; font-family:var(--font-tag); font-size:0.68rem; letter-spacing:0.08em; text-transform:uppercase; font-weight:700; padding:6px 12px; border-radius:20px; background:rgba(5,5,5,.6); color:var(--white); pointer-events:none; }
.ba-tag-before{ left:14px; }
.ba-tag-after{ right:14px; }
.ba-caption{ margin-top:14px; font-family:var(--font-tag); font-size:0.85rem; color:var(--slate); text-align:center; }
@media (max-width:900px){ .ba-grid{ grid-template-columns:1fr; gap:36px; } }

/* ---------- Alternating sections ---------- */
.alt-section{ padding:96px 0; }
.alt-section .container{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.alt-section.reverse .container > .alt-visual{ order:-1; }
.alt-visual .photo-slot{ aspect-ratio:5/4; }
.alt-section .accent-rule{ width:0; height:2px; background:var(--gold); margin-bottom:20px; transition:width .8s cubic-bezier(.16,.8,.24,1) .1s; }
.alt-section .accent-rule.visible{ width:56px; }
@media (max-width:900px){
  .alt-section{ padding:64px 0; }
  .alt-section .container{ grid-template-columns:1fr; gap:32px; }
  .alt-section.reverse .container > .alt-visual{ order:0; }
}

/* ---------- Featured project carousel ---------- */
.carousel-wrap{ position:relative; }
.carousel-track-outer{ overflow:hidden; border-radius:4px; cursor:grab; }
.carousel-track-outer.dragging{ cursor:grabbing; }
.carousel-track{ display:flex; will-change:transform; }
.carousel-slide{ flex:0 0 100%; aspect-ratio:16/8.2; position:relative; }
.carousel-slide img{ width:100%; height:100%; object-fit:cover; user-select:none; -webkit-user-drag:none; transform:scale(1.06); transition:transform 1.1s cubic-bezier(.16,.8,.24,1); }
.carousel-slide.is-active img{ transform:scale(1); }
.carousel-caption{ position:absolute; left:0; bottom:0; right:0; padding:22px 26px; background:linear-gradient(0deg, rgba(5,5,5,.75), transparent); color:var(--white); font-family:var(--font-tag); font-size:0.88rem; letter-spacing:0.03em; }
.carousel-nav{ position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; background:rgba(5,5,5,.55); border:1px solid rgba(255,255,255,.25); color:var(--white); display:flex; align-items:center; justify-content:center; z-index:3; transition:background .2s ease, transform .2s ease; }
.carousel-nav:hover{ background:var(--gold); color:var(--black-deep); }
.carousel-nav.prev{ left:14px; }
.carousel-nav.next{ right:14px; }
.carousel-nav svg{ width:20px; height:20px; }
.carousel-dots{ display:flex; justify-content:center; gap:9px; margin-top:20px; }
.carousel-dots button{ width:9px; height:9px; border-radius:50%; background:var(--line); transition:background .2s ease, transform .2s ease; }
.carousel-dots button.active{ background:var(--gold); transform:scale(1.25); }
.carousel-counter{ position:absolute; top:18px; right:18px; z-index:3; background:rgba(5,5,5,.55); color:var(--white); font-family:var(--font-tag); font-size:0.76rem; letter-spacing:0.05em; padding:6px 12px; border-radius:20px; }
@media (max-width:640px){
  .carousel-nav{ width:38px; height:38px; }
  .carousel-slide{ aspect-ratio:4/3.6; }
}

/* ---------- FAQ accordion ---------- */
.faq-list{ max-width:800px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px 0; text-align:left; font-family:var(--font-display); font-weight:700; font-size:1.05rem; color:var(--ink-black); }
.faq-q svg{ width:18px; height:18px; flex:none; color:var(--gold); transition:transform .3s cubic-bezier(.16,.8,.24,1); }
.faq-item.open .faq-q svg{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s cubic-bezier(.16,.8,.24,1); }
.faq-a p{ padding:0 0 22px; font-size:0.96rem; max-width:66ch; }
.faq-item.open .faq-a{ max-height:240px; }

/* ---------- Mobile bottom contact bar ---------- */
.mobile-bar{ display:none; }
@media (max-width:900px){
  .mobile-bar{
    display:grid; grid-template-columns:repeat(3,1fr); position:fixed; left:0; right:0; bottom:0; z-index:55;
    background:var(--ink-black); border-top:1px solid var(--line-dark); box-shadow:0 -10px 30px -14px rgba(0,0,0,.5);
  }
  .mobile-bar a{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:11px 4px 13px;
    font-family:var(--font-tag); font-size:0.68rem; letter-spacing:0.04em; text-transform:uppercase; color:rgba(255,255,255,0.82); font-weight:600;
    border-right:1px solid var(--line-dark);
  }
  .mobile-bar a:last-child{ border-right:none; }
  .mobile-bar a svg{ width:19px; height:19px; color:var(--gold-bright); }
  .mobile-bar a.primary{ background:var(--gold); color:var(--black-deep); }
  .mobile-bar a.primary svg{ color:var(--black-deep); }
  body{ padding-bottom:64px; }
}

/* ---------- Footer fade-in ---------- */
.site-footer.reveal{ transform:translateY(18px); }

/* ---------- CTA band accent motion ---------- */
.cta-band{ }
.cta-band::before{ content:""; position:absolute; inset:0; background:radial-gradient(ellipse 50% 60% at 50% 0%, rgba(224,189,99,.14), transparent 70%); pointer-events:none; }

/* ---------- Responsive tweaks for hero v2 ---------- */
@media (max-width:980px){
  .hero-v2-inner{ grid-template-columns:1fr; padding:118px 24px 56px; gap:36px; }
}
@media (max-width:640px){
  .hero-v2-inner{ padding:104px 18px 44px; }
  .hero-form-card{ padding:26px 22px; }
}
