/* =========================================================
   Teraju Kinabalu Enterprise — main stylesheet
   Brand: deep navy + construction gold (from company posters)
   ========================================================= */

:root {
    --navy-950: #050d24;
    --navy-900: #081536;
    --navy-800: #0a1a3f;
    --navy-700: #132a5e;
    --navy-600: #1d3a7a;
    --gold: #e8ad25;
    --gold-600: #cf9312;
    --gold-100: #fbf0d4;
    --ink: #111a2e;
    --muted: #586179;
    --line: #e2e5ec;
    --tint: #f4f2ec;
    --white: #fff;

    --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(8, 21, 54, .06), 0 8px 24px rgba(8, 21, 54, .08);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .8em 1.35em; border-radius: 8px; border: 2px solid transparent;
    font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #f3bd3d; }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn--outline { border-color: var(--line); color: var(--navy-800); background: var(--white); }
.btn--outline:hover { border-color: var(--navy-800); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy-700); text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-size: .92rem; font-weight: 600; color: var(--gold-600); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow--gold { color: var(--gold); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-950); color: #c6cde0; font-size: .86rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.topbar__creds span + span::before { content: "·"; margin-right: 18px; color: var(--gold); }
.topbar__contact a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--white); }
.topbar__contact a:hover { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-800); color: var(--white); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand__mark { width: 44px; height: 44px; color: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand__text strong { font-size: 1.5rem; font-weight: 800; color: var(--gold); letter-spacing: .01em; }
.brand__text small { font-size: .95rem; font-weight: 600; letter-spacing: .32em; color: var(--white); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; text-decoration: none; font-weight: 500; color: #dfe4f0; border-radius: 6px; }
.nav ul a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav ul a[aria-current="page"] { color: var(--gold); }
.nav__cta { padding: .65em 1.1em; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-900); overflow: hidden; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; }
.hero__bg img, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5, 13, 36, .92) 0%, rgba(5, 13, 36, .72) 45%, rgba(5, 13, 36, .25) 100%),
                linear-gradient(0deg, rgba(5, 13, 36, .85) 0%, transparent 40%);
}
.hero {
    background:
        radial-gradient(ellipse at 85% 20%, rgba(232, 173, 37, .14), transparent 55%),
        linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.hero__inner {
    position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
    padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(150px, 14vw, 170px);
}
.hero__media { position: relative; padding-bottom: 48px; }
.hero__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center bottom; border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.hero__img2 {
    position: absolute; left: -32px; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius-lg); border: 4px solid var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.hero__title { max-width: 14ch; margin-bottom: .35em; font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.hero__lead { max-width: 560px; font-size: 1.15rem; color: #d7ddeb; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 13, 36, .6); backdrop-filter: blur(6px); }
.hero__stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 20px 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat span { font-size: .92rem; color: #c6cde0; }

.page-hero { position: relative; color: var(--white); background: var(--navy-900); }
.page-hero__bg img { object-position: center bottom; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 13, 36, .94), rgba(5, 13, 36, .62)); }
.page-hero__inner { position: relative; padding: clamp(64px, 9vw, 110px) var(--gutter); }
.page-hero h1 { max-width: 18ch; }
.page-hero__lead { max-width: 620px; font-size: 1.12rem; color: #d7ddeb; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: #aab3c9; margin-bottom: 22px; }
.crumbs a { color: #d7ddeb; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy-800); color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head--light p:last-child { color: #c6cde0; }
.section-head--light .eyebrow { color: var(--gold); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--split h2 { margin: 0; }
.fineprint { margin-top: 24px; font-size: .92rem; color: var(--muted); }

.rounded { border-radius: var(--radius-lg); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--gold-600); margin-top: .2em; stroke-width: 2.6; }
.checklist--sm { font-size: .98rem; gap: 8px; margin: 0; }
.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service-card {
    grid-column: span 2; display: flex; flex-direction: column; text-decoration: none;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card--lg { grid-column: span 3; }
.service-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-700); }
.service-card__media img, .service-card__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { position: relative; padding: 32px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card__body p { color: var(--muted); }
.service-card__icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
    background: var(--gold); color: var(--navy-900);
}
.service-card__body .service-card__icon { position: absolute; top: -24px; left: 24px; }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy-700); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__body p { color: var(--muted); }
.badge-years {
    position: absolute; right: -12px; bottom: -24px; display: flex; align-items: center; gap: 12px;
    background: var(--navy-800); color: var(--white); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
    border-bottom: 4px solid var(--gold);
}
.badge-years strong { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--gold); }
.badge-years span { font-size: .95rem; line-height: 1.2; font-weight: 600; }

/* ---------- Crew ---------- */
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.crew-card { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-700); }
.crew-card img, .crew-card .img-placeholder { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.crew-card figcaption {
    position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; color: var(--white); font-weight: 600; line-height: 1.3;
    background: linear-gradient(0deg, rgba(5, 13, 36, .9), transparent);
}

/* ---------- Government works ---------- */
.gov-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); overflow: hidden; }
.gov-card { background: var(--navy-800); padding: 28px 24px; }
.gov-card__icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 16px; }
.gov-card h3 { font-size: 1.3rem; margin-bottom: .3em; }
.gov-card p { margin: 0; color: #b9c2d8; font-size: .96rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.price-card h3 { font-size: 1.5rem; color: var(--navy-800); }
.price-card__price { font-family: var(--font-head); font-size: 4rem; font-weight: 800; line-height: 1; color: var(--navy-800); margin: 8px 0 24px; }
.price-card__price span { font-size: 1.6rem; vertical-align: top; margin-right: 2px; }
.price-card__price small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price-card--featured { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.price-card--featured h3, .price-card--featured .price-card__price { color: var(--gold); }
.price-card--featured .price-card__price small { color: #c6cde0; }
.price-card--featured .checklist .icon { color: var(--gold); }
.price-card__tag { position: absolute; top: -13px; left: 28px; background: var(--gold); color: var(--navy-900); font-size: .82rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

.calc { display: grid; grid-template-columns: 1.4fr 1fr; margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.calc__form { padding: 32px; }
.calc__form h3 { display: flex; align-items: center; gap: 10px; color: var(--navy-800); }
.calc__form h3 .icon { color: var(--gold-600); }
.calc__result { background: var(--navy-800); color: var(--white); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.calc__result p { margin: 0; color: #c6cde0; }
.calc__result output { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.calc__result small { color: #c6cde0; margin-bottom: 20px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; transition: all .15s; }
.seg input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.paint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.paint-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.paint-card h3 { margin: 0; padding: 18px 24px; color: var(--white); font-size: 1.6rem; }
.paint-card--dulux h3 { background: var(--navy-700); }
.paint-card--nippon h3 { background: #b4232a; }
.paint-card__rates { display: grid; grid-template-columns: 1fr 1fr; }
.paint-card__rates div { padding: 24px; display: flex; flex-direction: column; }
.paint-card__rates div + div { border-left: 1px solid var(--line); }
.paint-card__rates span { font-weight: 600; color: var(--muted); }
.paint-card__rates strong { font-family: var(--font-head); font-size: 2.8rem; line-height: 1.1; color: var(--navy-800); }
.paint-card__rates small { color: var(--muted); }

.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.special-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.special-card__media img, .special-card__media .img-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.special-card__body { padding: 24px; }
.special-card__price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--navy-800); line-height: 1; margin: 4px 0 4px; }
.special-card__unit { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }

/* ---------- Galleries ---------- */
.gallery { display: grid; gap: 16px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-700); }
.gallery__item img, .gallery__item .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: var(--white); font-weight: 600; line-height: 1.3;
    background: linear-gradient(0deg, rgba(5, 13, 36, .88), transparent);
}
.gallery--home { grid-template-columns: repeat(3, 1fr); }
.gallery--home .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--home .gallery__item:first-child img { aspect-ratio: auto; }
.gallery--detail { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 32px; }
.gallery--portfolio { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__cat { display: block; font-size: .8rem; font-weight: 500; color: var(--gold); margin-bottom: 2px; }
.gallery__item.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 500; transition: all .15s; }
.chip:hover { border-color: var(--navy-800); }
.chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 13, 36, .9); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox__caption { color: var(--white); text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox__close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.lightbox__close .icon { width: 28px; height: 28px; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.process__step { position: relative; padding-top: 24px; border-top: 3px solid var(--line); }
.process__step:first-child { border-top-color: var(--gold); }
.process__num { position: absolute; top: 16px; right: 0; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--line); line-height: 1; }
.process__icon { width: 34px; height: 34px; color: var(--gold-600); margin-bottom: 14px; }
.process__step h3 { font-size: 1.3rem; }
.process__step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Service detail ---------- */
.service-list { display: grid; gap: clamp(56px, 8vw, 96px); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; scroll-margin-top: 100px; }
.service-row--flip .service-row__media { order: 2; }
.service-row__media img, .service-row__media .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-row__body > p { color: var(--muted); }
.service-row__body .service-card__icon { margin-bottom: 16px; }

.detail { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail__intro { font-size: 1.15rem; color: var(--muted); }
.detail__main h3 { margin-top: 1.4em; color: var(--navy-800); }
.detail__aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { padding: 28px; border-radius: var(--radius-lg); background: var(--navy-800); color: var(--white); display: grid; gap: 12px; }
.aside-card .eyebrow { color: var(--gold); margin: 0; }
.aside-card__price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.15; margin: 0 0 8px; }
.aside-card .link-arrow { color: var(--gold); justify-self: start; }
.aside-card--plain { background: var(--tint); color: var(--ink); }
.aside-card--plain .eyebrow { color: var(--gold-600); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover { color: var(--navy-600); }
.aside-links .icon { color: var(--gold-600); }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--tint); color: var(--muted); margin-top: 24px; }
.note .icon { width: 24px; height: 24px; color: var(--gold-600); }
.note p { margin: 0; }

/* ---------- About ---------- */
.cred-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cred-card { background: var(--white); padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.cred-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); margin-bottom: 16px; }
.cred-card__icon .icon { width: 26px; height: 26px; }
.cred-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value__icon { width: 36px; height: 36px; color: var(--navy-700); margin-bottom: 14px; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #cfd4df; border-radius: 8px; background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29, 58, 122, .15); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #b42318; font-weight: 600; }

.offices { display: grid; gap: 20px; }
.office-card { border-radius: var(--radius-lg); background: var(--navy-800); color: var(--white); overflow: hidden; }
.office-card h3 { display: flex; align-items: center; gap: 10px; padding: 24px 24px 0; }
.office-card h3 .icon { color: var(--gold); }
.office-card address { padding: 0 24px; color: #c6cde0; }
.office-card__links { list-style: none; margin: 16px 0 0; padding: 0 24px 20px; display: grid; gap: 8px; }
.office-card__links a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.office-card__links span { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: #c6cde0; min-width: 72px; }
.office-card__links .icon { color: var(--white); }
.office-card__map { display: block; width: 100%; height: 220px; border: 0; filter: grayscale(.2); }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--gold); color: var(--navy-900); padding: clamp(48px, 7vw, 72px) 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; max-width: 560px; font-size: 1.08rem; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--gold { background: var(--navy-800); color: var(--white); }
.cta-band .btn--gold:hover { background: var(--navy-600); }
.cta-band .btn--ghost { border-color: var(--navy-800); color: var(--navy-900); }
.cta-band .btn--ghost:hover { background: rgba(8, 21, 54, .08); }

.site-footer { background: var(--navy-950); color: #b9c2d8; padding-top: 72px; font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: .4em; }
.site-footer__motto { font-family: var(--font-head); font-size: 1.25rem; font-style: italic; color: var(--white); }
.site-footer__heading { color: var(--white); font-weight: 600; margin-bottom: 14px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__contact { margin-top: 14px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px 12px 14px; border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }

.img-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
    aspect-ratio: 4 / 3; padding: 16px; color: #aab3c9; font-size: .9rem;
    background: repeating-linear-gradient(135deg, var(--navy-800) 0 14px, var(--navy-700) 14px 28px);
}
.img-placeholder .icon { width: 32px; height: 32px; color: var(--gold); }

.error-page { text-align: center; min-height: 50vh; }
.error-page .eyebrow { justify-content: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav ul a { padding: 8px 8px; }
    .nav { gap: 16px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .process { grid-template-columns: repeat(3, 1fr); }
    .gov-grid, .cred-grid, .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 116px 0 0 0; flex-direction: column; align-items: stretch; gap: 20px;
        padding: 24px var(--gutter); background: var(--navy-800); overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
    }
    .nav.is-open { transform: none; visibility: visible; }
    .nav ul { flex-direction: column; }
    .nav ul a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
    .nav__cta { padding: 1em; }
    body.nav-open { overflow: hidden; }

    .topbar__creds { display: none !important; }
    .topbar__inner { justify-content: center; }

    .split, .service-row, .detail, .contact, .calc { grid-template-columns: 1fr; }
    .service-row--flip .service-row__media { order: 0; }
    .detail__aside { position: static; }
    .badge-years { right: 12px; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .service-card, .service-card--lg { grid-column: span 1; }
    .crew-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid, .special-grid { grid-template-columns: 1fr; max-width: 520px; }
    .price-card--featured { order: -1; }
    .gallery--home { grid-template-columns: 1fr 1fr; }
    .hero__stats { position: relative; }
    .hero__inner { padding-bottom: 56px; grid-template-columns: 1fr; }
    .hero__img2 { left: auto; right: 12px; width: 34%; }
    .hero__stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .topbar { font-size: .8rem; }
    .brand__mark { width: 38px; height: 38px; }
    .brand__text strong { font-size: 1.25rem; }
    .brand__text small { font-size: .8rem; }
    .site-header__inner { min-height: 66px; }
    .nav { inset: 106px 0 0 0; }
    .service-grid, .crew-grid, .gallery--home, .process, .gov-grid, .cred-grid, .values, .paint-grid, .field-row, .site-footer__grid { grid-template-columns: 1fr; }
    .gallery--home .gallery__item:first-child { grid-column: auto; grid-row: auto; }
    .gallery--home .gallery__item:first-child img { aspect-ratio: 4 / 3; }
    .crew-card img { aspect-ratio: 4 / 3; }
    .paint-card__rates strong { font-size: 2.2rem; }
    .calc__form, .calc__result { padding: 24px; }
    .hero__actions .btn { width: 100%; }
    .cta-band__actions, .cta-band__actions .btn { width: 100%; }
    .wa-float span { display: none; }
    .wa-float { padding: 14px; }
}
