/* ===================================================================
   NC Total Construction & Renovation — style.css
   Professional charcoal + orange contractor theme. Mobile-first, no frameworks.
   =================================================================== */

:root {
    --blue:        #243140;   /* primary brand: charcoal slate */
    --blue-dark:   #161e29;   /* near-black charcoal (gradient end / footer) */
    --blue-light:  #eef0f4;   /* light neutral (chip / icon backgrounds) */
    --accent:      #f5751f;   /* construction orange — CTAs & highlights */
    --accent-dark: #d85f12;
    --ink:         #1d2733;
    --muted:       #5d6b7e;
    --line:        #e3e7ee;
    --bg:          #ffffff;
    --bg-alt:      #f6f7f9;
    --white:       #ffffff;
    --radius:      14px;
    --radius-sm:   9px;
    --shadow:      0 10px 30px rgba(20, 28, 40, .14);
    --shadow-sm:   0 4px 14px rgba(20, 28, 40, .08);
    --maxw:        1140px;
    --font:        'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-head:   'Plus Jakarta Sans', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 96px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { color: var(--muted); }
a  { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    font-family: var(--font); font-weight: 700; font-size: .98rem;
    padding: .85em 1.5em; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(245,117,31,.38); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: var(--blue-light); color: var(--blue); }
.btn--ghost:hover { background: #e2e6ec; color: var(--blue-dark); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { color: var(--accent-dark); }
.btn--outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--blue); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--mt { margin-top: 18px; }

.pill {
    display: inline-block; background: rgba(245,117,31,.12); color: var(--accent-dark);
    font-weight: 700; font-size: .82rem; padding: .4em 1em; border-radius: 50px;
    margin-bottom: 14px;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-dark); color: #cdd6e0; font-size: .82rem; }
.topbar__inner { display: flex; gap: 22px; justify-content: center; align-items: center; padding: 7px 20px; flex-wrap: wrap; }
.topbar__item { color: #cdd6e0; }
.topbar__item a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.topbar__item a:hover { color: var(--accent); }
.topbar__phone { font-weight: 700; color: #fff; }
.topbar__phone:hover { color: var(--accent); }

/* ---------- Header / Nav ---------- */
.header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 800; }
.brand__logo { height: 46px; width: auto; }
.brand__name { font-size: 1.15rem; letter-spacing: -.2px; }
.brand:hover { color: var(--accent-dark); }

.nav { display: flex; align-items: center; gap: 16px; }
.nav__list { display: flex; list-style: none; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    color: var(--ink); font-weight: 600; font-size: 1rem; padding: .55em .85em;
    border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s;
}
.nav__link:hover { background: var(--bg-alt); color: var(--accent-dark); }
.nav__link.active { color: var(--accent-dark); background: var(--blue-light); }

.nav__sub-toggle {
    background: none; border: 0; cursor: pointer; font-family: inherit; color: var(--ink); font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; gap: .35em;
}
.nav__caret-btn {
    background: none; border: 0; cursor: pointer; color: var(--ink);
    padding: .55em .35em; line-height: 1; display: inline-flex; align-items: center;
}
.nav__parent-link { padding-right: .25em; }
.nav__caret { font-size: .7em; transition: transform .2s ease; }

.nav__sub { display: none; list-style: none; }
.nav__item--has-sub.open .nav__sub { display: block; }
.nav__sublink {
    display: block; padding: .6em .85em; border-radius: 8px;
    color: var(--ink); font-weight: 600; white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav__sublink:hover, .nav__sublink.active { background: var(--blue-light); color: var(--accent-dark); }

@media (min-width: 993px) {
    .nav__sub {
        display: block; position: absolute; top: 100%; left: 0; min-width: 262px;
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
        box-shadow: var(--shadow); padding: 8px; margin-top: 2px; z-index: 200;
        opacity: 0; visibility: hidden; transform: translateY(6px);
        transition: opacity .15s ease, transform .15s ease, visibility .15s;
    }
    .nav__item--has-sub:hover .nav__sub,
    .nav__item--has-sub:focus-within .nav__sub,
    .nav__item--has-sub.open .nav__sub {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    .nav__item--has-sub:hover .nav__caret,
    .nav__item--has-sub:focus-within .nav__caret,
    .nav__item--has-sub.open .nav__caret { transform: rotate(180deg); }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; list-style: none; padding: 9px 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .45em; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; color: var(--muted); opacity: .7; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(245,117,31,.22), transparent 60%),
        linear-gradient(160deg, #2b3a4d 0%, var(--blue-dark) 100%);
    color: #fff; padding: 66px 0 74px;
}
.hero__inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; }
.hero__text h1 { color: #fff; }
.hero__text .hl { color: var(--accent); }
.hero .lead { color: #cfd9e6; font-size: 1.12rem; margin: 16px 0 26px; max-width: 560px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__trust span { font-size: .85rem; color: #fff; font-weight: 600; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); padding: .45em .9em; border-radius: 50px; }
.hero__card {
    background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow);
}
.hero__card h3 { margin-bottom: 6px; font-size: 1.3rem; }
.hero__card p { font-size: .95rem; margin-bottom: 16px; }
.hero__card .btn { margin-bottom: 10px; }
.hero__card-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.hero__card-badge { display: inline-flex; align-items: center; gap: .5em; background: rgba(245,117,31,.12); color: var(--accent-dark); font-weight: 700; font-size: .82rem; padding: .4em 1em; border-radius: 50px; margin-bottom: 14px; }
.hero__card-list { list-style: none; display: grid; gap: 9px; margin: 0 0 18px; }
.hero__card-list li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--ink); font-weight: 500; }
.hero__card-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 26px 20px; text-align: center; }
.strip__item strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--accent-dark); }
.strip__item span { font-size: .86rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section__head p { margin-top: 10px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
.card__icon { font-size: 1.7rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--blue-light); border-radius: 12px; margin-bottom: 14px; }
.card--link { display: flex; flex-direction: column; color: var(--ink); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f4cba6; color: var(--ink); }
.card__from { margin-top: 12px; font-weight: 700; color: var(--accent-dark); font-family: var(--font-head); }
.card__cta { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--accent-dark); font-size: .92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-family: var(--font-head); margin-bottom: 14px; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: .92rem; }

/* ---------- Project gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__tile {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin: 0;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    display: flex; align-items: flex-end; color: #fff; transition: transform .18s, box-shadow .18s;
    background: var(--blue);
}
.gallery__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__tile:hover .gallery__img { transform: scale(1.05); }
.gallery__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,20,28,.78) 0%, rgba(15,20,28,.12) 45%, transparent 70%); }
.gallery__label { position: relative; z-index: 1; width: 100%; padding: 16px 18px; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }

/* ---------- Service areas ---------- */
.area-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.area {
    display: inline-flex; align-items: center; gap: .55em; background: #fff;
    border: 1px solid var(--line); border-radius: 50px; padding: .7em 1.4em;
    font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
}
.area::before { content: "📍"; }
.area--primary { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; }
.review__stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 10px; }
.review__text { color: var(--ink); font-size: .98rem; font-style: italic; }
.review__who { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.review--placeholder { border-style: dashed; background: var(--bg-alt); }
.review--placeholder .review__text { color: var(--muted); font-style: normal; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq__q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 18px 50px 18px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); position: relative;
}
.faq__q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-dark); transition: transform .2s; }
.faq__item.open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 20px 18px; font-size: .96rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #2b3a4d 0%, var(--blue-dark) 100%); color: #fff; padding: 50px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd9e6; margin-top: 6px; }

/* Emergency variant */
.cta-band--emergency { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.cta-band--emergency p { color: #fff3e9; }
.emergency__list { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 4px; list-style: none; }
.emergency__list li { color: #fff; font-weight: 600; font-size: .94rem; }
.emergency__list li::before { content: "⚠️ "; }

/* ---------- Financing ---------- */
.financing { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: var(--shadow); }
.financing h2 { color: #fff; }
.financing p { color: #cfd9e6; max-width: 640px; margin: 12px auto 22px; }

/* ---------- Map ---------- */
.map-section iframe { display: block; }

/* ---------- Prose ---------- */
.prose p { margin-bottom: 16px; font-size: 1.05rem; }
.prose strong { color: var(--ink); }

/* ---------- Contact / Estimate ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-card h2 { margin-bottom: 18px; }
.contact-card h3 { margin: 24px 0 10px; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__ic { font-size: 1.2rem; width: 42px; height: 42px; display: grid; place-items: center; background: var(--blue-light); border-radius: 10px; flex-shrink: 0; }
.contact-list strong { color: var(--ink); display: block; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--accent-dark); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table th, .hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--muted); text-align: right; }

/* Estimate form */
.form { display: grid; gap: 15px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form__field { display: grid; gap: 5px; }
.form label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form input, .form select, .form textarea {
    width: 100%; padding: .72em .9em; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,117,31,.18);
}
.form textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark); color: #aebac9; padding: 54px 0 0; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 40px; }
.footer__col { min-width: 0; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__logo { height: 46px; }
.footer__about { color: #8c9bad; max-width: 320px; }
.footer__rating { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: #cdd6e0; font-size: .9rem; font-weight: 600; }
.footer__rating strong { color: #fff; }
.footer__rating-stars { color: #f5a623; letter-spacing: 1px; }
.footer__rating:hover { color: #fff; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer__social a { color: #cdd6e0; background: rgba(255,255,255,.07); padding: 5px 12px; border-radius: 50px; font-size: .82rem; font-weight: 600; }
.footer__social a:hover { background: var(--accent); color: #fff; }
.footer__links { list-style: none; display: grid; gap: 9px; }
.footer__links a { color: #aebac9; }
.footer__links a:hover { color: #fff; }
.footer__nap { font-style: normal; color: #aebac9; line-height: 1.9; }
.footer__nap a { color: #cdd6e0; }
.footer__nap a:hover { color: var(--accent); }
.footer__hours { margin-top: 14px; color: #8c9bad; font-size: .88rem; line-height: 1.7; }
.footer__hours strong { color: #cdd6e0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; color: #778799; text-align: center; }
.footer__bottom a { color: #cdd6e0; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; gap: 1px; background: var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.mobile-cta__btn { flex: 1; text-align: center; padding: 14px; font-weight: 700; font-size: .98rem; }
.mobile-cta__start { background: var(--accent); color: #fff; }
.mobile-cta__call { background: var(--blue); color: #fff; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__card { max-width: 460px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; top: 72px; right: 0; height: calc(100vh - 72px); width: min(82vw, 320px);
        background: #fff; flex-direction: column; align-items: stretch; gap: 0;
        padding: 18px; box-shadow: -10px 0 30px rgba(0,0,0,.12);
        transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
    }
    .nav.open { transform: translateX(0); }
    .nav__list { flex-direction: column; gap: 2px; align-items: stretch; }
    .nav__link { padding: .8em 1em; font-size: 1.05rem; border-radius: 10px; }
    .nav__sub-toggle { width: 100%; justify-content: space-between; text-align: left; }
    .nav__item--has-sub { display: flex; flex-wrap: wrap; align-items: center; }
    .nav__parent-link { flex: 1 1 auto; }
    .nav__caret-btn { color: inherit; padding: .7em .9em; }
    .nav__sub { padding-left: 12px; flex-basis: 100%; }
    .nav__sublink { font-size: 1rem; padding: .7em 1em; }
    .nav__cta { margin-top: 14px; }
    .nav { z-index: 110; }
}

.nav-overlay {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(8, 20, 40, .5);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
    .cards--3, .steps, .gallery { grid-template-columns: 1fr 1fr; }
    .strip__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .mobile-cta { display: flex; }
    body { padding-bottom: 52px; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .financing { padding: 32px 22px; }
}

@media (max-width: 560px) {
    .cards--3, .steps, .strip__grid, .gallery { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .topbar__inner { gap: 12px; font-size: .76rem; }
    .topbar__item:nth-child(2) { display: none; }
    .hero { padding: 44px 0 54px; }
    .section { padding: 48px 0; }
    .brand__logo { height: 40px; }
    .form__row { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero__text .btn-row .btn { width: 100%; }
    .btn-row { flex-direction: column; }
}

/* ===================================================================
   GSAP animation support
   Pre-hide animated elements ONLY when JS is active (.js on <html>).
   If JS/GSAP fail, the .js class is never added and content stays visible.
   =================================================================== */
.js .section__head,
.js .card,
.js .step,
.js .strip__item,
.js .faq__item,
.js .gallery__tile,
.js .area,
.js .notice,
.js .cta-band__inner > *,
.js .financing,
.js .contact-card,
.js .map-section iframe,
.js .footer__col {
    opacity: 0;
}

.card, .step, .strip__item, .hero__card, .gallery__tile { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .js .hero__text > *,
    .js .hero__card,
    .js .section__head,
    .js .card,
    .js .step,
    .js .strip__item,
    .js .faq__item,
    .js .gallery__tile,
    .js .area,
    .js .notice,
    .js .cta-band__inner > *,
    .js .financing,
    .js .contact-card,
    .js .map-section iframe,
    .js .footer__col {
        opacity: 1 !important;
    }
    .card, .step, .strip__item, .hero__card, .gallery__tile { will-change: auto; }
}

/* ===================================================================
   Inner pages (Pass 2): page/service hero, prose figures, lists, splits
   =================================================================== */

/* Page + service hero (dark band) */
.page-hero, .service-hero {
    background:
        radial-gradient(760px 320px at 88% -20%, rgba(245,117,31,.20), transparent 60%),
        linear-gradient(160deg, #2b3a4d 0%, var(--blue-dark) 100%);
    color: #fff; padding: 56px 0;
}
.page-hero h1, .service-hero h1 { color: #fff; }
.page-hero .lead, .service-hero .lead { color: #cfd9e6; margin: 14px 0 0; max-width: 660px; }
.service-hero .lead { margin-bottom: 22px; }
.service-hero__text { max-width: 760px; }

/* Checklist on dark hero */
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 22px; margin: 0 0 24px; }
.check-list li { position: relative; padding-left: 28px; color: #eaf0f7; font-weight: 600; font-size: .95rem; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Prose figure (photo inside text) */
.content-figure { margin: 0 0 26px; }
.content-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-figure figcaption { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 9px; }

/* Two-column text + image split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.split--rev .split__media { order: -1; }
.split__media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__body h2 { margin-bottom: 14px; }
.split__body p { margin-bottom: 14px; }

/* Light-background checklist (feature grid) */
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; }
.feature-list li { position: relative; padding: 12px 16px 12px 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); }
.feature-list li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; display: grid; place-items: center; background: rgba(245,117,31,.14); color: var(--accent-dark); border-radius: 50%; font-size: .75rem; font-weight: 800; }

/* Highlight notice box */
.notice { background: rgba(245,117,31,.08); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 20px; }
.notice p { color: var(--ink); margin: 0; font-size: .95rem; }

/* Contact map panel */
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 460px; }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }
.contact-social { margin-top: 24px; }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 26px; }
    .split--rev .split__media { order: 0; }
    .split__media img { max-height: 320px; }
    .check-list, .feature-list { grid-template-columns: 1fr; }
}

/* Inner-page reveal: keep hero content visible if JS active (slides only) */
.js .content-figure, .js .split__body, .js .split__media, .js .feature-list li { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .js .content-figure, .js .split__body, .js .split__media, .js .feature-list li { opacity: 1 !important; }
}

/* ===================================================================
   Interactive project gallery: filters, clickable tiles, lightbox
   =================================================================== */

/* Filter bar */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filter {
    font-family: var(--font); font-weight: 700; font-size: .92rem;
    padding: .55em 1.1em; border-radius: 50px; cursor: pointer;
    border: 1.5px solid var(--line); background: #fff; color: var(--muted);
    transition: background .15s, color .15s, border-color .15s; display: inline-flex; align-items: center; gap: .5em;
}
.filter:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter__n { font-size: .72rem; background: rgba(0,0,0,.08); color: inherit; padding: .1em .55em; border-radius: 50px; font-weight: 800; }
.filter.is-active .filter__n { background: rgba(255,255,255,.25); }
.gallery-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Tile as a button (clickable to open lightbox) */
.gallery__tile { -webkit-appearance: none; appearance: none; font: inherit; text-align: left; padding: 0; width: 100%; cursor: pointer; }
.gallery__tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery__cat {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(245,117,31,.92); color: #fff; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px; padding: .35em .7em; border-radius: 50px;
}
.gallery__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gallery__zoom { font-size: 1.1rem; opacity: .85; flex-shrink: 0; }

/* Lightbox */
body.lb-open { overflow: hidden; }
.lb {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    background: rgba(10,14,20,.93); backdrop-filter: blur(6px); padding: 24px;
    animation: lbFade .2s ease;
}
.lb[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb__stage { margin: 0; max-width: min(1100px, 94vw); display: flex; flex-direction: column; align-items: center; }
.lb__img {
    max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55); background: #1a1f29;
}
.lb__cap { margin-top: 16px; text-align: center; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.lb__cat { color: var(--accent); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: 1.5px; }
.lb__title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.lb__counter { color: #9fb0c2; font-size: .85rem; }
.lb__close, .lb__nav {
    position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
    border-radius: 50%; display: grid; place-items: center; transition: background .15s, transform .15s; line-height: 1;
}
.lb__close { top: 18px; right: 22px; width: 46px; height: 46px; font-size: 1.9rem; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.4rem; }
.lb__prev { left: 20px; } .lb__next { right: 20px; }
.lb__close:hover, .lb__nav:hover { background: var(--accent); }
.lb__nav:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 640px) {
    .lb { padding: 12px; }
    .lb__img { max-height: 70vh; }
    .lb__nav { width: 44px; height: 44px; font-size: 1.9rem; }
    .lb__prev { left: 8px; } .lb__next { right: 8px; }
    .lb__close { top: 10px; right: 12px; }
}

/* Linked area chips (service pages → area pages) */
.area { transition: border-color .15s, color .15s, transform .15s; }
a.area { color: var(--ink); }
a.area:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }

/* Clickable neighborhood chips + interactive area map */
button.area { font: inherit; cursor: pointer; }
.area.nbhd:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.area.nbhd.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.area.nbhd.is-active:hover { color: #fff; }
.area-map { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.area-map iframe { display: block; width: 100%; }

/* Area explorer: group sub-headings + ZIP chips */
.area-group__title { text-align: center; font-size: .82rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 24px 0 14px; }
.area-group__title:first-of-type { margin-top: 6px; }
.nbhd--zip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .5px; padding-left: 1.1em; padding-right: 1.1em; }
.nbhd--landmark { background: #fff; }
