/* ============================================================
   AMM CONSTRUCTION SERVICES — STATIC SITE STYLESHEET
   Brand palette from Mike's business card.
   Brick red is the primary brand; amber is the rare accent.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --brick: #8B3A2F;
  --brick-dark: #6B2A22;
  --brick-light: #A8534A;
  --amber: #F0B429;
  --amber-dark: #D89A14;
  --charcoal: #1F1D1B;
  --charcoal-soft: #2A2724;
  --slate: #55504B;
  --slate-light: #7A736C;
  --stone: #EFEAE3;
  --stone-dark: #E2DBD0;
  --cream: #F7F4EF;
  --white: #FFFFFF;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --container: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--charcoal);
}
h1 { letter-spacing: -0.03em; }
a { color: var(--brick); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--brick); color: #fff; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; border-radius: 2px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--stone); }
::-webkit-scrollbar-thumb { background: var(--slate-light); border-radius: 6px; border: 3px solid var(--stone); }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: 1rem; z-index: 100;
  background: var(--brick); color: #fff; padding: 0.5rem 1rem;
  border-radius: 0.375rem; transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--brick), var(--amber));
  transition: width 0.1s ease-out; width: 0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed; bottom: 72px; right: 1rem; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--charcoal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none; transform: translateY(1rem);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--brick); }
@media (min-width: 1024px) { .back-to-top { bottom: 1.5rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 0 rgba(31,29,27,0.08), 0 8px 24px rgba(31,29,27,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 68px;
}
@media (min-width: 1024px) { .header-inner { height: 76px; } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.logo svg { height: 36px; width: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--brick);
}
.logo-sub {
  font-family: var(--font-display); font-weight: 600; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.42em; color: var(--slate);
  margin-top: 2px;
}
.logo.light .logo-wordmark { color: #fff; }
.logo.light .logo-sub { color: var(--amber); }

/* Desktop Nav */
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
  padding: 0.5rem 0.75rem; font-size: 0.92rem; font-weight: 500;
  color: var(--charcoal); border-radius: 0.375rem; transition: color 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem;
}
.nav-link:hover { color: var(--brick); text-decoration: none; }

/* Services Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; left: 50%; top: 100%; width: 640px;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--stone-dark);
  border-radius: var(--radius-lg); padding: 0.75rem;
  box-shadow: 0 20px 50px rgba(31,29,27,0.12);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 0.5rem 0.5rem; }
.dropdown-header span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--slate-light); }
.dropdown-link { display: flex; flex-direction: column; padding: 0.625rem 0.75rem; border-radius: 0.5rem; transition: background 0.2s; text-decoration: none; }
.dropdown-link:hover { background: var(--stone); text-decoration: none; }
.dropdown-link-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--charcoal); }
.dropdown-link-dot { width: 6px; height: 6px; border-radius: 1px; background: var(--amber); }
.dropdown-link-sub { margin-left: 0.875rem; font-size: 0.78rem; color: var(--slate-light); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone {
  display: none; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
  font-size: 0.92rem; font-weight: 600; color: var(--charcoal); text-decoration: none;
  transition: color 0.2s;
}
.header-phone:hover { color: var(--brick); text-decoration: none; }
.header-phone svg { color: var(--brick); }
@media (min-width: 768px) { .header-phone { display: flex; } }
@media (min-width: 1280px) { .header-phone span { display: inline; } }

/* Mobile menu button */
.menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--charcoal); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* ---------- Mobile Drawer ---------- */
.mobile-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.mobile-drawer.open { visibility: visible; }
.mobile-drawer-overlay { position: absolute; inset: 0; background: rgba(31,29,27,0.4); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.mobile-drawer.open .mobile-drawer-overlay { opacity: 1; }
.mobile-drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: 88%; max-width: 24rem;
  background: #fff; box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform 0.3s; overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--stone-dark); }
.drawer-nav { display: flex; flex-direction: column; padding: 1rem 0.75rem; }
.drawer-nav a { padding: 0.75rem 0.75rem; font-size: 1rem; font-weight: 500; color: var(--charcoal); border-radius: 0.5rem; text-decoration: none; transition: background 0.2s; }
.drawer-nav a:hover { background: var(--stone); text-decoration: none; }
.drawer-section { padding: 1rem 0.75rem; border-top: 1px solid var(--stone-dark); margin-top: 0.5rem; }
.drawer-section-title { padding: 0 0.75rem 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--slate-light); }
.drawer-section a { padding: 0.625rem 0.75rem; font-size: 0.92rem; color: var(--slate); border-radius: 0.5rem; text-decoration: none; transition: background 0.2s, color 0.2s; }
.drawer-section a:hover { background: var(--stone); color: var(--brick); text-decoration: none; }
.drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--stone-dark); margin-top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm); transition: all 0.2s; text-decoration: none; cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-brick { background: var(--brick); color: #fff; box-shadow: 0 1px 2px rgba(31,29,27,0.08); }
.btn-brick:hover { background: var(--brick-dark); box-shadow: 0 6px 16px rgba(139,58,47,0.25); }
.btn-amber { background: var(--amber); color: var(--charcoal); font-weight: 700; }
.btn-amber:hover { background: var(--amber-dark); box-shadow: 0 6px 16px rgba(240,180,41,0.35); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brick);
}
.eyebrow::before { content: ""; display: inline-block; width: 1.75rem; height: 2px; background: var(--brick); }
.eyebrow.center { justify-content: center; }
.eyebrow.amber { color: var(--amber); }
.eyebrow.amber::before { background: var(--amber); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--stone-dark); border-radius: var(--radius);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.card:hover { box-shadow: 0 12px 32px rgba(31,29,27,0.08); transform: translateY(-3px); }

/* ---------- Service Card ---------- */
.service-card { display: block; overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 1px 3px rgba(31,29,27,0.06); transition: box-shadow 0.3s, transform 0.3s; text-decoration: none; }
.service-card:hover { box-shadow: 0 20px 50px rgba(31,29,27,0.12); transform: translateY(-3px); text-decoration: none; }
.service-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-badge { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.95); padding: 0.375rem 0.75rem; border-radius: 999px; backdrop-filter: blur(4px); }
.service-card-badge span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--charcoal); }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.25rem; transition: color 0.2s; }
.service-card:hover .service-card-body h3 { color: var(--brick); }
.service-card-body p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--slate); }
.service-card-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--brick); }
.service-card-link svg { transition: transform 0.2s; }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

/* ---------- Icon Card ---------- */
.icon-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border: 1px solid var(--stone-dark); border-radius: var(--radius); background: #fff; transition: border-color 0.3s, box-shadow 0.3s; text-decoration: none; }
.icon-card:hover { border-color: var(--brick); box-shadow: 0 8px 24px rgba(31,29,27,0.06); text-decoration: none; }
.icon-card-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--stone); color: var(--brick); flex-shrink: 0; transition: background 0.2s, color 0.2s; }
.icon-card:hover .icon-card-icon { background: var(--brick); color: #fff; }
.icon-card h3 { font-size: 1rem; transition: color 0.2s; }
.icon-card:hover h3 { color: var(--brick); }
.icon-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--slate-light); }

/* ---------- Prose ---------- */
.prose p { margin-bottom: 1.15rem; color: var(--slate); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--charcoal); font-weight: 600; }
.prose h2 { font-size: 1.875rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--brick); }
.prose ul { margin: 1rem 0; }
.prose ul li { position: relative; padding-left: 1.75rem; margin-bottom: 0.625rem; color: var(--slate); line-height: 1.6; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 8px; height: 8px; background: var(--amber); border-radius: 1px; }

/* ---------- Hero (3D + fallback) ---------- */
.hero-3d-section { position: relative; width: 100%; height: 200vh; }
.hero-3d-wrap { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; background: var(--stone); }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(31,29,27,0.6), transparent, rgba(31,29,27,0.55)); }
.hero-scrim-side { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(31,29,27,0.4), transparent, transparent); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero-content-inner { max-width: 42rem; }
.hero-h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.05; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.35); }
@media (min-width: 640px) { .hero-h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero-h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-h1 { font-size: 4.5rem; } }
.hero-sub { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,0.9); text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; } }
.hero-cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-scroll-hint { position: absolute; bottom: 6rem; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,0.7); pointer-events: none; }
.hero-scroll-hint span { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; }
.hero-scroll-hint::after { content: ""; display: block; margin-top: 0.5rem; width: 1px; height: 2rem; background: rgba(255,255,255,0.4); }
.hero-trust-bar { position: absolute; bottom: 1.5rem; left: 0; right: 0; display: none; }
@media (min-width: 768px) { .hero-trust-bar { display: block; } }
.hero-trust-inner { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0.625rem 1.5rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #fff; }
.hero-trust-item svg { color: var(--amber); }
.hero-trust-divider { width: 1px; height: 1rem; background: rgba(255,255,255,0.2); }

/* Hotspots */
.hotspot { position: absolute; z-index: 20; display: flex; align-items: center; transform: translate(-50%, -50%); transition: opacity 0.5s; cursor: pointer; }
.hotspot-dot { position: relative; display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; }
.hotspot-ping { position: absolute; display: inline-flex; width: 100%; height: 100%; border-radius: 50%; background: var(--amber); opacity: 0.6; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; } }
.hotspot-dot-inner { position: relative; display: inline-flex; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px #fff; }
.hotspot-label { margin-left: 0.5rem; display: flex; flex-direction: column; padding: 0.375rem 0.75rem; background: rgba(255,255,255,0.95); border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: background 0.2s, box-shadow 0.2s; }
.hotspot:hover .hotspot-label { background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.hotspot-label-title { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--charcoal); }
.hotspot-label-sub { font-size: 0.7rem; color: var(--slate); }

/* Fallback hero */
.hero-fallback { position: relative; min-height: 88vh; width: 100%; overflow: hidden; }
.hero-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(31,29,27,0.7), rgba(31,29,27,0.4), rgba(31,29,27,0.8)); }
.hero-fallback-content { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 88vh; padding: 5rem 0; color: #fff; }

/* ---------- Page Hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--charcoal); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--charcoal), rgba(31,29,27,0.7), rgba(31,29,27,0.3)); }
.page-hero-content { position: relative; padding: 5rem 0; }
@media (min-width: 768px) { .page-hero-content { padding: 7rem 0; } }
.page-hero h1 { max-width: 48rem; font-size: 2.25rem; font-weight: 800; line-height: 1.05; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 3.75rem; } }
.page-hero p { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
@media (min-width: 768px) { .page-hero p { font-size: 1.25rem; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.375rem; font-size: 0.875rem; color: var(--slate-light); }
.breadcrumbs li { display: flex; align-items: center; gap: 0.375rem; }
.breadcrumbs a { color: var(--slate-light); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brick); }
.breadcrumbs svg { color: var(--stone-dark); }
.breadcrumbs [aria-current] { color: var(--charcoal); }

/* ---------- Section Heading ---------- */
.section-heading { max-width: 42rem; }
.section-heading.center { margin: 0 auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 1.1; }
@media (min-width: 768px) { .section-heading h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-heading h2 { font-size: 3rem; } }
.section-heading p { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--slate); }
.section-heading.light h2 { color: #fff; }
.section-heading.light p { color: rgba(255,255,255,0.8); }

/* ---------- Grid ---------- */
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-4 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Layout with sidebar */
.layout-sidebar { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .layout-sidebar { grid-template-columns: 1fr 320px; } }
.sidebar { }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 6rem; align-self: start; } }

/* ---------- CTA Block ---------- */
.cta-block { background: var(--brick); padding: 4rem 0; }
@media (min-width: 768px) { .cta-block { padding: 6rem 0; } }
@media (min-width: 1024px) { .cta-block { padding: 7rem 0; } }
.cta-inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: 1.875rem; font-weight: 800; color: #fff; }
@media (min-width: 768px) { .cta-inner h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-inner h2 { font-size: 3rem; } }
.cta-inner p { margin: 1.25rem auto; max-width: 36rem; font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Process Steps ---------- */
.process-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-card { position: relative; height: 100%; border: 1px solid var(--stone-dark); border-radius: var(--radius); background: #fff; padding: 1.5rem; }
.process-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: rgba(240,180,41,0.4); }
.process-icon { margin-top: 0.75rem; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--brick); color: #fff; }
.process-card h3 { margin-top: 1rem; font-size: 1.125rem; }
.process-card p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--slate); }

/* ---------- Testimonial ---------- */
.testimonial { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--stone-dark); border-radius: var(--radius-lg); background: #fff; padding: 1.5rem; }
.testimonial-quote { color: var(--amber); }
.testimonial blockquote { margin-top: 1rem; flex: 1; font-size: 1.05rem; font-style: italic; line-height: 1.7; color: var(--slate); }
.testimonial figcaption { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--stone-dark); }
.testimonial figcaption p:first-child { font-family: var(--font-display); font-weight: 700; color: var(--charcoal); }
.testimonial figcaption p:last-child { font-size: 0.875rem; color: var(--slate-light); }

/* ---------- Town Grid ---------- */
.town-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .town-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .town-grid { grid-template-columns: repeat(3, 1fr); } }
.town-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--stone-dark); border-radius: var(--radius-lg); background: #fff; padding: 1.5rem; transition: border-color 0.3s, box-shadow 0.3s; text-decoration: none; }
.town-card:hover { border-color: var(--brick); box-shadow: 0 12px 32px rgba(31,29,27,0.08); text-decoration: none; }
.town-card-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--brick); color: #fff; }
.town-card h3 { margin-top: 0.75rem; font-size: 1.25rem; transition: color 0.2s; }
.town-card:hover h3 { color: var(--brick); }
.town-card p { margin-top: 1rem; font-size: 0.875rem; color: var(--slate); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.town-card-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--stone-dark); display: flex; align-items: center; justify-content: space-between; }
.town-card-meta { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--slate-light); }
.town-card-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--brick); }
.town-card-link svg { transition: transform 0.2s; }
.town-card:hover .town-card-link svg { transform: translateX(4px); }

/* ---------- Town Pills ---------- */
.town-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.town-pill { border: 1px solid var(--stone-dark); background: #fff; padding: 0.375rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--charcoal); text-decoration: none; transition: all 0.2s; }
.town-pill:hover { border-color: var(--brick); background: var(--brick); color: #fff; text-decoration: none; }

/* ---------- Sidebar Callout ---------- */
.callout { border: 1px solid var(--stone-dark); border-radius: var(--radius-lg); background: var(--stone); padding: 1.5rem; }
.callout h3 { font-size: 1.125rem; }
.callout p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5; color: var(--slate); }
.callout-actions { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.callout-list { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--stone-dark); display: flex; flex-direction: column; gap: 0.5rem; }
.callout-list-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--slate); }
.callout-list-item svg { color: var(--brick); }

/* ---------- FAQ Accordion ---------- */
.accordion-item { overflow: hidden; border: 1px solid var(--stone-dark); border-radius: var(--radius); background: #fff; margin-bottom: 0.75rem; }
.accordion-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; text-align: left; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--charcoal); transition: background 0.2s; cursor: pointer; }
.accordion-trigger:hover { background: var(--stone); }
.accordion-trigger.open { background: var(--stone); }
.accordion-trigger svg { flex-shrink: 0; color: var(--brick); transition: transform 0.2s; }
.accordion-trigger.open svg { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.25s ease-out; }
.accordion-content-inner { padding: 0 1.25rem 1.25rem; font-size: 0.97rem; line-height: 1.7; color: var(--slate); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.gallery-filter { border: 1px solid var(--stone-dark); background: #fff; padding: 0.375rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--charcoal); cursor: pointer; transition: all 0.2s; }
.gallery-filter:hover { border-color: var(--brick); }
.gallery-filter.active { background: var(--brick); color: #fff; border-color: var(--brick); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--stone); cursor: pointer; border: none; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,29,27,0.8), transparent, transparent); opacity: 0; transition: opacity 0.2s; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label { position: absolute; bottom: 0.75rem; left: 0.75rem; background: rgba(255,255,255,0.95); padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: var(--charcoal); opacity: 0; transition: opacity 0.2s; }
.gallery-item:hover .gallery-item-label { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(31,29,27,0.9); backdrop-filter: blur(4px); padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.9); font-size: 0.875rem; }

/* ---------- Estimate Form ---------- */
.form-progress { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.form-step { display: flex; flex: 1; align-items: center; gap: 0.5rem; }
.form-step-dot { display: flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; transition: all 0.2s; }
.form-step-dot.current { background: var(--charcoal); color: #fff; }
.form-step-dot.done { background: var(--brick); color: #fff; }
.form-step-dot.pending { background: var(--stone-dark); color: var(--slate-light); }
.form-step-label { font-size: 0.875rem; font-weight: 500; }
.form-step-label.current { color: var(--charcoal); }
.form-step-label.pending { color: var(--slate-light); }
.form-step-line { height: 1px; flex: 1; background: var(--stone-dark); }

.form-step-panel { display: none; }
.form-step-panel.active { display: block; }
.form-step-panel h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--charcoal); }
.form-label .req { color: var(--brick); }
.form-label .opt { font-weight: 400; color: var(--slate-light); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--stone-dark);
  background: #fff; color: var(--charcoal); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(139,58,47,0.2); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.form-radio-btn { border: 1px solid var(--stone-dark); background: #fff; padding: 0.625rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--charcoal); cursor: pointer; transition: all 0.2s; text-align: center; }
.form-radio-btn:hover { border-color: var(--brick); }
.form-radio-btn.selected { border-color: var(--brick); background: var(--brick); color: #fff; }

.form-actions { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; }
.honeypot { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }

/* Photo callout */
.photo-callout { display: flex; align-items: flex-start; gap: 1rem; border: 1px solid rgba(240,180,41,0.4); background: rgba(240,180,41,0.1); border-radius: var(--radius-lg); padding: 1.25rem; }
.photo-callout svg { flex-shrink: 0; color: var(--brick); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--charcoal); color: var(--stone); }
.footer-inner { padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-inner { padding: 5rem 0; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } }
.footer-brand { }
@media (min-width: 768px) { .footer-brand { grid-column: span 4; } }
.footer-brand p { margin-top: 1.25rem; max-width: 20rem; font-size: 0.95rem; line-height: 1.6; color: rgba(239,234,227,0.7); }
.footer-contact { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact a, .footer-contact p { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: rgba(239,234,227,0.9); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--amber); text-decoration: none; }
.footer-contact svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.footer-insured { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(240,180,41,0.3); background: rgba(240,180,41,0.1); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
.footer-insured svg { color: var(--amber); }
.footer-insured span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber); }
.footer-col h3 { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(239,234,227,0.5); }
.footer-col ul { margin-top: 1rem; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a { font-size: 0.92rem; color: rgba(239,234,227,0.8); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); text-decoration: none; }
@media (min-width: 768px) { .footer-col { grid-column: span 3; } }
@media (min-width: 768px) { .footer-col:last-child { grid-column: span 2; } }
.footer-col-areas { }
@media (min-width: 768px) { .footer-col-areas { grid-column: span 3; } }
.footer-col-areas ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.375rem 0.75rem; }

.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(239,234,227,0.15); display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom p { font-size: 0.75rem; color: rgba(239,234,227,0.5); }

/* ---------- Mobile Action Bar ---------- */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; border-top: 1px solid var(--stone-dark); background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background-color: var(--stone-dark); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; padding: 0.625rem 0; background: #fff; transition: background 0.2s; text-decoration: none; }
.mobile-bar a:hover, .mobile-bar button:hover { text-decoration: none; }
.mobile-bar-call:hover { background: var(--stone); }
.mobile-bar-text { background: var(--brick); }
.mobile-bar-text:hover { background: var(--brick-dark); }
.mobile-bar-estimate { background: var(--amber); }
.mobile-bar-estimate:hover { background: var(--amber-dark); }
.mobile-bar svg { width: 20px; height: 20px; }
.mobile-bar-call svg { color: var(--brick); }
.mobile-bar-text svg { color: #fff; }
.mobile-bar-estimate span { color: var(--charcoal); font-size: 1rem; font-weight: 700; line-height: 1; }
.mobile-bar span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.mobile-bar-call span { color: var(--charcoal); }
.mobile-bar-text span { color: #fff; }
.mobile-bar-estimate span.label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }

/* Body padding for mobile bar */
@media (max-width: 1023px) { body { padding-bottom: 60px; } }

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hotspot-ping { animation: none; }
}

/* ---------- Utility ---------- */
.bg-stone { background: var(--stone); }
.bg-charcoal { background: var(--charcoal); }
.bg-brick { background: var(--brick); }
.bg-white { background: #fff; }
.text-white { color: #fff; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin: 0 auto; }
.hidden { display: none; }
.md\:flex { }
@media (min-width: 768px) { .md\:flex { display: flex; } }
.md\:hidden { }
@media (min-width: 768px) { .md\:hidden { display: none; } }
.lg\:hidden { }
@media (min-width: 1024px) { .lg\:hidden { display: none; } }

/* ---------- Image Placeholder Blocks ---------- */
.img-placeholder { background: linear-gradient(135deg, var(--stone), var(--stone-dark)); display: flex; align-items: center; justify-content: center; min-height: 200px; border-radius: var(--radius); }
.img-placeholder::after { content: "Photo to come"; font-size: 0.875rem; color: var(--slate-light); font-style: italic; }
