/* ============================================================
   ATCH & CO. HOME SERVICES — Main Stylesheet
   Dark-first brand: near-black surfaces, white text, amber/gold accent
   Fonts: Clash Display (headings) + Satoshi (body)
============================================================ */

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root,
[data-theme='dark'] {
  /* Surfaces — warm near-black */
  --color-bg:              #0f0e0c;
  --color-surface:         #141310;
  --color-surface-2:       #1a1916;
  --color-surface-offset:  #1f1e1b;
  --color-surface-card:    #1c1b18;
  --color-divider:         #2a2926;
  --color-border:          #333230;

  /* Text */
  --color-text:            #e8e6e1;
  --color-text-muted:      #8a8880;
  --color-text-faint:      #4a4946;
  --color-text-inverse:    #0f0e0c;

  /* Accent — amber/gold (construction, craftsmanship) */
  --color-primary:         #c8891a;
  --color-primary-hover:   #e09a20;
  --color-primary-active:  #a57014;
  --color-primary-light:   rgba(200, 137, 26, 0.12);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'EB Garamond', 'Georgia', serif;

  /* Type scale */
  --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.2rem + 2.5vw, 3.5rem);
  --text-3xl:   clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero:  clamp(3rem, 0.5rem + 7vw, 7rem);

  /* Spacing */
  --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;
  --space-32: 8rem;

  /* Layout */
  --content-default: 1160px;
  --content-narrow:  720px;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='light'] {
  --color-bg:              #f5f4f0;
  --color-surface:         #faf9f7;
  --color-surface-2:       #ffffff;
  --color-surface-offset:  #eeede9;
  --color-surface-card:    #ffffff;
  --color-divider:         #dddbd6;
  --color-border:          #cac8c2;
  --color-text:            #1a1916;
  --color-text-muted:      #6b6967;
  --color-text-faint:      #b0aeaa;
  --color-text-inverse:    #f5f4f0;
  --color-primary:         #a0690e;
  --color-primary-hover:   #c8891a;
  --color-primary-active:  #7d500a;
  --color-primary-light:   rgba(160, 105, 14, 0.1);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:              #f5f4f0;
    --color-surface:         #faf9f7;
    --color-surface-2:       #ffffff;
    --color-surface-offset:  #eeede9;
    --color-surface-card:    #ffffff;
    --color-divider:         #dddbd6;
    --color-border:          #cac8c2;
    --color-text:            #1a1916;
    --color-text-muted:      #6b6967;
    --color-text-faint:      #b0aeaa;
    --color-text-inverse:    #f5f4f0;
    --color-primary:         #a0690e;
    --color-primary-hover:   #c8891a;
    --color-primary-active:  #7d500a;
    --color-primary-light:   rgba(160, 105, 14, 0.1);
  }
}

/* ============================================================
   BASE RESET
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  min-height: 100dvh;
}
img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'], ol[role='list'] { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
::selection { background: var(--color-primary-light); color: var(--color-text); }
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6em 1.4em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 16px rgba(200, 137, 26, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-muted);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-lg { padding: 0.75em 1.8em; font-size: var(--text-base); }
.btn-full { width: 100%; }

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.section-title-sm {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-header .section-desc {
  margin-inline: auto;
}
.body-lg {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

/* ============================================================
   HEADER / NAV
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition), box-shadow var(--transition);
}
[data-theme='light'] .site-header {
  background: rgba(245, 244, 240, 0.92);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 72px;
}
.nav-logo {
  flex-shrink: 0;
  color: var(--color-text);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.logo-svg { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  padding: var(--space-1) 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
.mobile-nav {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-6);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.mobile-nav-link {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--color-text); }
.mobile-cta {
  display: block;
  text-align: center;
  margin-top: var(--space-4);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #080807;
}
/* hero bg/img/overlay replaced by animated hero-house.js */
.hero-bg, .hero-img, .hero-overlay { display: none; }

/* Canvas right column — fills its grid cell */
.hero-canvas-col {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Container creates two-column grid — text left, canvas right */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  min-height: 90vh;
  gap: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-24);
  max-width: 520px;
  /* Start invisible — hero-house.js fades this in after animation */
  opacity: 0;
  transition: opacity 0.8s ease;
}
/* CTA group also starts hidden */
.hero-cta {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.0;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(232, 230, 225, 0.85);
  max-width: 56ch;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(232, 230, 225, 0.2);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: rgba(232, 230, 225, 0.6);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(232, 230, 225, 0.2);
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
============================================================ */
.services {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(200, 137, 26, 0.15);
  transform: translateY(-3px);
}
.service-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(160deg, var(--color-surface-card) 0%, rgba(200, 137, 26, 0.06) 100%);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.service-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.service-card-body > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.service-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.service-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition);
  margin-top: auto;
}
.service-link:hover {
  color: var(--color-primary-hover);
}

/* ============================================================
   PORTFOLIO / GALLERY
============================================================ */
.portfolio {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-surface);
}
.portfolio .section-header {
  margin-bottom: var(--space-10);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 6px;
  margin-bottom: var(--space-12);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(transparent, rgba(10, 9, 7, 0.85));
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-cta {
  text-align: center;
}

/* ============================================================
   FOUNDATION SECTION
============================================================ */
.foundation-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
  position: relative;
}
.foundation-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.foundation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.foundation-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}
.foundation-services {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.foundation-service-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.foundation-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}
.foundation-icon svg {
  width: 20px;
  height: 20px;
}
.foundation-service-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.foundation-service-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.foundation-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.foundation-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.foundation-image-caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* ============================================================
   MAINTENANCE PLANS
============================================================ */
.maintenance {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-surface);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.plan-card {
  position: relative;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.plan-card:hover {
  border-color: var(--color-text-faint);
  box-shadow: var(--shadow-md);
}
.plan-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(200, 137, 26, 0.2);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.plan-badge--vip {
  background: #1a1a1a;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.plan-subitem {
  padding-left: var(--space-8) !important;
  font-size: calc(var(--text-sm) - 1px) !important;
  color: var(--color-text-faint) !important;
}
.plan-subitem::before {
  content: '' !important;
  display: none;
}
.plan-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.plan-price { display: flex; flex-direction: column; gap: 2px; }
.plan-price-amount {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
}
.plan-price-period {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.plan-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.plans-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-4);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 137, 26, 0.2);
}

/* ============================================================
   SERVICE AREA
============================================================ */
.service-area {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.service-area-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  flex-wrap: wrap;
}
.service-area-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  max-width: 50ch;
}
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.area-tag {
  display: inline-block;
  padding: 0.3em 0.9em;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
}
.area-tag--muted {
  color: var(--color-text-faint);
  border-style: dashed;
}
.service-area-cta {
  text-align: center;
  flex-shrink: 0;
}
.service-area-cta-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-surface);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 44ch;
  line-height: 1.7;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition);
}
a.contact-item:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  color: var(--color-primary);
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-item-value {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

/* Contact Form */
.contact-form {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65em 0.9em;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}
.form-group select {
  cursor: pointer;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12) var(--space-8);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-6);
}
.footer-logo { height: 38px; width: auto; color: var(--color-text); }
.footer-tagline {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: var(--space-16);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a, .footer-col span {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid .service-card:last-child {
    grid-column: span 2;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
  .foundation-layout {
    grid-template-columns: 1fr;
  }
  .foundation-image {
    order: -1;
  }
  .foundation-image img {
    height: 360px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-actions {
    gap: var(--space-2);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-stats {
    gap: var(--space-5);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid .service-card:last-child {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 2;
  }

  .service-area-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: var(--space-8);
  }
  .footer-links {
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  .stat-divider { display: none; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 1;
  }
  .gallery-item { grid-row: span 1 !important; height: 220px; }
}

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   LIGHTBOX
   ============================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox-content {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev[hidden],
.lightbox-next[hidden] { display: none; }

/* =============================================================
   FORM VALIDATION STATES
   ============================================================= */
.field-error {
  display: block;
  color: #e05c5c;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
input.is-error,
textarea.is-error,
select.is-error {
  border-color: #e05c5c !important;
  outline-color: #e05c5c;
}

/* Form success message */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(var(--color-accent-raw, 200, 137, 26), 0.12);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.form-success svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.1rem;
}
.form-success strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.form-success p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 0;
}
.form-success a { color: var(--color-accent); }

.form-error-banner {
  padding: 16px 20px;
  background: rgba(180, 50, 50, 0.15);
  border: 1px solid rgba(180, 50, 50, 0.4);
  border-radius: 4px;
  color: #f0a0a0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* =============================================================
   ACTIVE NAV LINK
   ============================================================= */
.nav-links a.is-active {
  color: var(--color-accent);
}

/* =============================================================
   HEADER SCROLLED STATE
   ============================================================= */
.site-header.is-scrolled {
  padding-block: 0.625rem;
  background: var(--color-surface);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

/* =============================================================
   MOBILE NAV ANIMATION
   ============================================================= */
.mobile-nav {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   SERIF TYPOGRAPHY REFINEMENTS
   Cormorant Garamond + EB Garamond tuning
   ============================================================= */

/* Garamond reads smaller optically — bump base body size slightly */
body {
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

/* Display headings — Cormorant shines at large sizes, needs generous tracking */
h1, h2, h3, h4, h5, h6 {
  font-feature-settings: "kern" 1, "liga" 1, "swsh" 1;
  letter-spacing: 0.01em;
}

/* Hero headline — serif at display size is dramatic */
.hero-headline {
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-style: normal;
}

/* Section titles — serif looks elegant with a touch of italic contrast */
.section-title {
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* Eyebrow labels — keep as small caps feel */
.section-eyebrow,
.service-card-body .service-link,
.hero-badge {
  letter-spacing: 0.2em;
  font-size: var(--text-xs);
}

/* Service card headings — Cormorant at medium size, give it weight */
.service-card-body h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* Body copy in cards — Garamond needs slightly looser leading */
.service-card-body p,
.service-list li {
  line-height: 1.75;
}

/* Stat numbers — Cormorant lining figures look dramatic */
.stat-number {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Buttons — keep slightly spaced for legibility at smaller sizes */
.btn {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.9375rem);
}

/* Nav links — refined, spaced */
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Foundation section headings */
.foundation-card h3 {
  font-size: clamp(1.25rem, 1rem + 0.75vw, 1.625rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Plan card headings */
.plan-name {
  font-size: clamp(1.5rem, 1.2rem + 0.75vw, 2rem);
  letter-spacing: 0.03em;
}

/* Contact section heading */
.contact h2.section-title {
  font-size: clamp(2rem, 1rem + 3vw, 4rem);
}

/* Footer brand */
.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Form labels */
label {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Input fields — use body serif for a refined feel */
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.hero { background: #0f0e0c !important; }

/* Force before/after pairs to sit side by side */
.gallery-item--pair-left,
.gallery-item--pair-right {
  grid-column: span 1 !important;
}
.gallery-item--pair-left  { grid-column-start: 1; }
.gallery-item--pair-right { grid-column-start: 2; }
@media (max-width: 640px) {
  .gallery-item--pair-left,
  .gallery-item--pair-right {
    grid-column: span 1 !important;
    grid-column-start: auto !important;
  }
}

/* ============================================================
   MOBILE HERO — stack canvas above text on small screens
   ============================================================ */
@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
    min-height: auto;
  }
  .hero-canvas-col {
    width: 100%;
    height: 260px;
    position: relative;
    order: -1;
  }
  #hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
  }
  .hero-content {
    padding-block: var(--space-10) var(--space-8);
    max-width: 100%;
  }
  .hero {
    min-height: auto;
  }
}

/* ============================================================
   GALLERY — BEFORE / AFTER BADGE OVERLAYS
   ============================================================ */
.gallery-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
  line-height: 1.4;
}
.gallery-badge--before {
  background: rgba(20, 18, 14, 0.82);
  color: rgba(232, 230, 225, 0.9);
  border: 1px solid rgba(232, 230, 225, 0.25);
}
.gallery-badge--after {
  background: rgba(200, 137, 26, 0.88);
  color: #fff;
  border: 1px solid rgba(200, 137, 26, 0.6);
  left: auto;
  right: 10px;
}

/* ============================================================
   FOOTER — SOCIAL LINK
   ============================================================ */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  color: rgba(232, 230, 225, 0.6);
  text-decoration: none;
  transition: color var(--transition);
  font-size: var(--text-sm);
}
.footer-social-link:hover {
  color: var(--color-primary);
}
