/* A & M Construction and Consulting — site styles */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --navy: #102630;
  --navy-2: #173540;
  --navy-line: rgba(255, 255, 255, 0.14);
  --gold: #d79a4a;
  --gold-hover: #e4ab5f;
  --gold-text: #8a5716;
  --cream: #f6f2ea;
  --cream-2: #efe8db;
  --paper: #fffdf9;

  --color-bg: var(--cream);
  --color-surface: var(--paper);
  --color-text: #14232b;
  --color-muted: #4d5a62;
  --color-line: rgba(20, 35, 43, 0.12);
  --color-primary: var(--navy);

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --shadow-md: 0 10px 30px -12px rgba(16, 38, 48, 0.28);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --header-h: 76px;
  --sticky-h: 0px;
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { background: var(--color-bg); }
a { color: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: var(--space-3) var(--space-4);
  font-weight: 700; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: var(--text-2xl); line-height: 1.04; }
h2 { font-size: var(--text-xl); line-height: 1.1; }
h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: var(--space-3);
}
.lede { font-size: var(--text-base); color: var(--color-muted); max-width: 62ch; }
.muted { color: var(--color-muted); }
.on-dark { color: #e9eef0; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .lede, .on-dark .muted { color: #c3cfd4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(20, 35, 43, 0.3); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(16, 38, 48, 0.04); }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  font-weight: 700; font-size: var(--text-sm); color: var(--navy); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-top: 2px; line-height: 1.2;
}
.text-link:hover { color: var(--gold-text); }
.on-dark .text-link { color: #fff; }
.on-dark .text-link:hover { color: var(--gold); }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, 0.96);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--color-line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 92px; height: auto; }
.main-nav { display: none; margin-inline: auto; }
.main-nav ul { display: flex; gap: clamp(0.75rem, 1.4vw, 1.75rem); list-style: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text); position: relative;
}
.main-nav a:hover { color: var(--gold-text); }
.main-nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.header-phone {
  display: none; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--text-sm);
  text-decoration: none; color: var(--navy); min-height: 44px;
}
.header-phone svg { width: 17px; height: 17px; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: var(--radius-sm); color: var(--navy);
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle:hover { background: rgba(16, 38, 48, 0.06); }
.mobile-nav {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid transparent;
}
.mobile-nav > div { overflow: hidden; }
.mobile-nav.open { grid-template-rows: 1fr; border-top-color: var(--color-line); }
.mobile-nav ul { list-style: none; padding: var(--space-2) 0 var(--space-6); }
.mobile-nav li a {
  display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 600;
  font-size: var(--text-base); border-bottom: 1px solid var(--color-line);
}
.mobile-nav li a[aria-current='page'] { color: var(--gold-text); }
.mobile-nav .btn { width: 100%; margin-top: var(--space-4); }

@media (min-width: 1160px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-nav { display: none; }
  .header-cta { display: inline-flex; }
  .header-actions { margin-left: 0; }
}
@media (min-width: 1500px) { .header-phone { display: inline-flex; } }
.main-nav a, .header-phone, .header-cta { white-space: nowrap; }

/* ---------- Sticky mobile action bar ---------- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: var(--navy); box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, 0.35);
}
.action-bar .btn { min-height: 50px; padding: 0 var(--space-3); }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 1160px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-navy { background: var(--navy); }
.section-paper { background: var(--paper); }
.section-sand { background: var(--cream-2); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-12); }
}

/* ---------- Home hero ---------- */
.hero { background: var(--navy); }
.hero-grid { display: grid; }
.hero-copy { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); }
.hero-copy h1 { color: #fff; max-width: 15ch; margin-bottom: var(--space-5); }
.hero-copy .tagline { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--gold); margin-bottom: var(--space-4); }
.hero-copy .lede { color: #c9d4d8; margin-bottom: var(--space-8); }
.hero-media { position: relative; min-height: 280px; aspect-ratio: 4 / 3; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: var(--space-4); bottom: var(--space-4); background: rgba(16, 38, 48, 0.82);
  color: #fff; font-size: var(--text-xs); font-weight: 600; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(640px, calc(100vh - var(--header-h))); }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: clamp(2rem, 4vw, 4rem); }
  .hero-media { aspect-ratio: auto; min-height: 100%; }
}

/* Trust strip */
.trust { background: var(--paper); border-bottom: 1px solid var(--color-line); }
.trust ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.trust li {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-3);
  font-size: var(--text-sm); line-height: 1.3; border-bottom: 1px solid var(--color-line);
}
.trust li:nth-child(odd) { border-right: 1px solid var(--color-line); }
.trust svg { width: 22px; height: 22px; color: var(--gold-text); flex: none; }
.trust strong { display: block; color: var(--navy); }
.trust a { text-decoration-color: rgba(20, 35, 43, 0.35); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { border-bottom: 0; border-right: 1px solid var(--color-line); padding: var(--space-5) var(--space-6); }
  .trust li:last-child { border-right: 0; }
}

/* Offer banner */
.offer { background: var(--gold); color: var(--navy); }
.offer-inner { display: grid; gap: var(--space-5); padding-block: clamp(2rem, 4vw, 2.75rem); align-items: center; }
.offer h2 { color: var(--navy); font-size: var(--text-xl); }
.offer p { color: #2b2516; max-width: 64ch; }
.offer .eyebrow { color: var(--navy); opacity: 0.8; }
@media (min-width: 900px) { .offer-inner { grid-template-columns: 1fr auto; gap: var(--space-12); } }

/* Services list (home) */
.services-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.services-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream-2); }
.services-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .services-media { order: 2; aspect-ratio: 4 / 3; } }
.service-rows { list-style: none; border-top: 1px solid var(--color-line); }
.service-rows a {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-line); text-decoration: none; align-items: center;
}
.service-rows h3 { font-size: var(--text-lg); color: var(--navy); }
.service-rows p { grid-column: 1; color: var(--color-muted); font-size: var(--text-sm); }
.service-rows .arrow {
  grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--color-line); color: var(--navy); transition: background var(--transition-interactive), border-color var(--transition-interactive);
}
.service-rows .arrow svg { width: 18px; height: 18px; }
.service-rows a:hover .arrow { background: var(--navy); border-color: var(--navy); color: #fff; }
.service-rows a:hover h3 { color: var(--gold-text); }
@media (min-width: 960px) {
  .services-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .services-media { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Work grid (home) */
.work-grid { display: grid; gap: var(--space-4); }
.work-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--navy); text-decoration: none; }
.work-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.work-card img { object-position: center 60%; }
.work-card:hover img { transform: scale(1.03); }
.work-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-8) var(--space-5) var(--space-4);
  background: linear-gradient(to top, rgba(10, 24, 30, 0.88), rgba(10, 24, 30, 0)); color: #fff;
}
.work-card .cap strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; }
.work-card .cap span { font-size: var(--text-xs); color: #d6dfe2; }
@media (min-width: 800px) {
  .work-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
  .work-grid .work-card:first-child { grid-row: span 2; }
  .work-grid .work-card:first-child img { aspect-ratio: auto; min-height: 100%; }
}

/* Steps */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--navy-line); }
.steps li { display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--navy-line); }
.steps .num { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--gold); line-height: 1.2; }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: #c3cfd4; }
.section:not(.section-navy) .steps { border-top-color: var(--color-line); }
.section:not(.section-navy) .steps li { border-bottom-color: var(--color-line); }
.section:not(.section-navy) .steps .num { color: var(--gold-text); }
.section:not(.section-navy) .steps p { color: var(--color-muted); }
@media (min-width: 900px) {
  .steps.cols-2 { grid-template-columns: 1fr 1fr; column-gap: var(--space-12); }
  .steps.cols-3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-8); }
  .steps.cols-3 li { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* Audience blocks */
.audiences { display: grid; gap: var(--space-4); }
.audience {
  display: grid; background: var(--paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
}
.audience .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.audience .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.audience:hover .media img { transform: scale(1.03); }
.audience .body { padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.audience .body p { color: var(--color-muted); }
.audience .go { font-weight: 700; font-size: var(--text-sm); color: var(--navy); display: inline-flex; gap: var(--space-2); align-items: center; }
.audience .go svg { width: 16px; height: 16px; }
.audience:hover .go { color: var(--gold-text); }
@media (min-width: 900px) {
  .audiences { grid-template-columns: 1.3fr 1fr; }
  .audiences .audience:first-child { grid-row: span 2; }
  .audiences .audience:first-child .media { aspect-ratio: 4 / 3; }
  .audiences .audience:not(:first-child) { grid-template-columns: 0.9fr 1.1fr; }
  .audiences .audience:not(:first-child) .media { aspect-ratio: auto; min-height: 100%; }
}

/* Reviews band */
.reviews { display: grid; gap: var(--space-6); align-items: center; }
.reviews .stars { display: flex; gap: 4px; color: var(--gold); margin-bottom: var(--space-3); }
.reviews .stars svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1.2fr 1fr; gap: var(--space-12); } .reviews .btn-row { justify-content: flex-end; } }

/* Area */
.area { display: grid; gap: var(--space-8); }
.city-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.city-list li {
  padding: var(--space-2) var(--space-4); border: 1px solid var(--color-line); border-radius: 999px;
  font-size: var(--text-sm); font-weight: 600; background: var(--paper); max-width: none;
}
@media (min-width: 900px) { .area { grid-template-columns: 1fr 1.2fr; gap: var(--space-16); align-items: start; } }

/* CTA band */
.cta-band { display: grid; gap: var(--space-6); }
.cta-band h2 { font-size: var(--text-2xl); max-width: 18ch; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: end; } .cta-band .btn-row { justify-content: flex-end; } }

/* ---------- Interior page hero ---------- */
.page-hero { background: var(--navy); }
.page-hero-grid { display: grid; }
.page-hero-copy { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.page-hero-copy h1 { color: #fff; margin-bottom: var(--space-5); max-width: 18ch; }
.page-hero-copy .lede { color: #c9d4d8; margin-bottom: var(--space-8); }
.page-hero-media { position: relative; aspect-ratio: 16 / 10; }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.no-media .page-hero-copy { padding-inline: 0; }
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: 1.1fr 1fr; min-height: 480px; }
  .page-hero-copy { display: flex; flex-direction: column; justify-content: center; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: var(--space-12); }
  .page-hero-media { aspect-ratio: auto; }
  .page-hero.no-media .page-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .page-hero.no-media .page-hero-copy { padding-left: 0; }
}
.breadcrumbs { font-size: var(--text-xs); color: #a9b8be; margin-bottom: var(--space-5); }
.breadcrumbs a { color: #dfe7ea; text-underline-offset: 3px; }
.breadcrumbs span[aria-hidden] { margin-inline: var(--space-2); }

/* Scope columns */
.scope-cols { display: grid; gap: var(--space-8); }
.scope-col h3 { padding-bottom: var(--space-3); border-bottom: 2px solid var(--navy); margin-bottom: var(--space-3); }
.scope-col ul { list-style: none; }
.scope-col li { display: flex; gap: var(--space-3); padding: var(--space-2) 0; color: var(--color-text); font-size: var(--text-base); }
.scope-col li svg { width: 18px; height: 18px; color: var(--gold-text); flex: none; margin-top: 0.3em; }
@media (min-width: 800px) { .scope-cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-10); } }

/* Two column text/media */
.split { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-2); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .copy > * + * { margin-top: var(--space-4); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .media { order: 2; }
}

/* Callout */
.callout {
  background: var(--paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: var(--space-4);
}
@media (min-width: 900px) { .callout.row { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-12); } }

/* Before / after */
.ba { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; }
.ba figure { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--cream-2); }
.ba img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.ba.wide img { aspect-ratio: 4 / 3; }
.tag {
  position: absolute; top: var(--space-3); left: var(--space-3); background: var(--navy); color: #fff;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-sm);
}
.tag.after { background: var(--gold); color: var(--navy); }
@media (max-width: 520px) { .ba.wide { grid-template-columns: 1fr; } }

/* Project entries */
.project { display: grid; gap: var(--space-6); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--color-line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project .meta { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.project .copy > * + * { margin-top: var(--space-3); }
@media (min-width: 960px) { .project { grid-template-columns: 1fr 2fr; gap: var(--space-12); align-items: start; } .project .copy { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Filter chips */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: 999px;
  border: 1px solid var(--color-line); background: var(--paper); text-decoration: none; font-weight: 600; font-size: var(--text-sm);
}
.chips a:hover { border-color: var(--navy); }

/* Gallery */
.gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--cream-2); padding: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-2); }
.gallery .feature { grid-column: span 2; }
.gallery .feature img { aspect-ratio: 16 / 9; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery .feature { grid-column: span 2; grid-row: span 2; } .gallery .feature img { aspect-ratio: auto; height: 100%; } .gallery .feature button { height: calc(100% - 1.9rem); } }

.photo-row { display: grid; gap: var(--space-4); }
.photo-row figure img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-row figcaption { margin-top: var(--space-3); }
.photo-row figcaption strong { display: block; color: var(--navy); font-size: var(--text-base); }
.photo-row figcaption span { font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 700px) { .photo-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 18, 23, 0.92); }
.lightbox-inner { position: relative; height: 100%; display: grid; place-items: center; padding: var(--space-16) var(--space-4); }
.lightbox img { max-height: 82vh; max-width: min(1400px, 100%); width: auto; border-radius: var(--radius-md); }
.lightbox p { color: #dfe7ea; text-align: center; margin: var(--space-3) auto 0; font-size: var(--text-sm); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff;
  display: grid; place-items: center;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: var(--space-4); right: var(--space-4); }
.lightbox .lb-prev { left: var(--space-3); top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: var(--space-3); top: 50%; translate: 0 -50%; }

/* Estimate page */
.estimate-grid { display: grid; gap: var(--space-8); }
.estimate-aside > * + * { margin-top: var(--space-8); }
.estimate-aside h2 + .steps { margin-top: var(--space-4); }
.estimate-aside .contact-list { list-style: none; display: grid; gap: var(--space-2); }
.estimate-aside .contact-list a { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: none; }
.estimate-aside .contact-list svg { width: 18px; height: 18px; color: var(--gold-text); }
.dept { display: inline-flex; gap: var(--space-2); align-items: center; background: var(--cream-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); }
.form-frame { background: var(--paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; }
.form-frame iframe { display: block; width: 100%; border: 0; height: 2050px; }
@media (min-width: 700px) { .form-frame iframe { height: 1720px; } }
@media (min-width: 1000px) { .estimate-grid { grid-template-columns: 1fr 1.6fr; gap: var(--space-12); align-items: start; } .estimate-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Prose */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-top: var(--space-10); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-2); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1c23; color: #c3cfd4; padding-block: var(--space-16) var(--space-8); }
.footer-grid { display: grid; gap: var(--space-10); }
.footer-brand img { width: 150px; height: auto; margin-bottom: var(--space-4); background: var(--cream); padding: 10px 14px; border-radius: var(--radius-md); box-sizing: content-box; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-4); font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: var(--space-1); }
.site-footer a { color: #eef3f5; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { font-size: var(--text-sm); }
.footer-base { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: var(--space-12); padding-top: var(--space-6); font-size: var(--text-xs); }
.footer-base .share { display: flex; gap: var(--space-2); }
.footer-base button { color: #eef3f5; font-weight: 600; min-height: 40px; padding: 0 var(--space-3); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: var(--space-2); }
.footer-base button:hover { border-color: var(--gold); color: var(--gold); }
.footer-base button svg { width: 15px; height: 15px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.toast {
  position: fixed; left: 50%; bottom: 96px; translate: -50% 20px; opacity: 0; pointer-events: none; z-index: 80;
  background: var(--navy); color: #fff; padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600;
  transition: opacity 200ms ease, translate 200ms ease;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: var(--space-5); }
@media (min-width: 1500px) {
  .header-inner { gap: var(--space-4); }
  .main-nav ul { gap: 1.1rem; }
  .header-actions { gap: var(--space-2); }
}
