/* ============================================================================
   AURELIA ARCHITECTURAL ATELIER — LUXURY REMODELING DESIGN SYSTEM
   MotionSites.ai Editorial Luxury Archetype
   Palette: Warm Ivory (#F9F6F0), Obsidian (#0A0A0C), Charcoal (#121212),
            Muted Bronze (#A68A64), Champagne Gold (#D4AF37)
   ============================================================================ */

:root {
  --color-ivory: #F9F6F0;
  --color-ivory-soft: #EFECE6;
  --color-charcoal: #121212;
  --color-obsidian: #0A0A0C;
  --color-surface: #16161A;
  --color-surface-elevated: #1E1E24;
  --color-bronze: #A68A64;
  --color-gold: #D4AF37;
  --color-gold-light: #E8CC6E;
  --color-muted: #9E988E;
  --color-border: rgba(212, 175, 55, 0.22);
  --color-border-subtle: rgba(249, 246, 240, 0.09);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container-max: 1380px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-obsidian);
  color: var(--color-ivory);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-obsidian);
  color: var(--color-ivory);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* ============================================================================
   1. ANIMATED BRANDED PRELOADER
   ============================================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s var(--ease-out-expo), visibility 0.65s var(--ease-out-expo);
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-crest {
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  animation: pulseGold 2s infinite ease-in-out;
}
.preloader-bar-track {
  width: 220px;
  height: 2px;
  background: rgba(249, 246, 240, 0.12);
  overflow: hidden;
  border-radius: 2px;
  margin-top: 14px;
}
.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-bronze), var(--color-gold));
  transition: width 0.4s ease;
}
@keyframes pulseGold {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ============================================================================
   2. STICKY TRANSPARENT GLASS NAVIGATION & ANIMATED MOBILE DRAWER
   ============================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 0;
  border-bottom-color: var(--color-border);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo img {
  height: 42px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-ivory);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(212, 175, 55, 0.14);
  color: var(--color-gold);
}
.nav-icon {
  width: 14px;
  height: 14px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Dropdown for 11 Services */
.nav-item-dropdown {
  position: relative;
}
.dropdown-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: -80px;
  width: 580px;
  background: rgba(18, 18, 22, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.28s var(--ease-out-expo);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.7);
}
.nav-item-dropdown:hover .dropdown-mega,
.nav-item-dropdown:focus-within .dropdown-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-mega a {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile Toggle & Drawer */
.mobile-menu-toggle {
  display: none;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-border);
  color: var(--color-ivory);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 90vw);
  background: #101014;
  border-left: 1px solid var(--color-border);
  z-index: 1100;
  padding: 84px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out-expo);
}
.mobile-drawer.is-open {
  transform: translateX(0);
}
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================================
   3. CUSTOM 3D INTERACTIVE BUTTONS WITH DEPTH, PERSPECTIVE & MAGNETIC LIFT
   ============================================================================ */
.btn-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, filter 0.25s ease;
  user-select: none;
  border: none;
}
.btn-3d-gold {
  background: linear-gradient(135deg, #E5C878 0%, #D4AF37 50%, #AA8220 100%);
  color: #0A0A0C;
  box-shadow:
    0 6px 0 #785910,
    0 12px 24px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-3d-gold:hover {
  transform: translateY(-4px) rotateX(6deg);
  box-shadow:
    0 10px 0 #785910,
    0 20px 36px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-3d-gold:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #785910,
    0 5px 12px rgba(212, 175, 55, 0.2);
}

.btn-3d-charcoal {
  background: linear-gradient(135deg, #25252C 0%, #16161B 100%);
  color: var(--color-ivory);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow:
    0 6px 0 #070709,
    0 12px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-3d-charcoal:hover {
  transform: translateY(-4px) rotateX(6deg);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow:
    0 10px 0 #070709,
    0 20px 34px rgba(0, 0, 0, 0.65);
}
.btn-3d-charcoal:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #070709;
}

/* ============================================================================
   4. CINEMATIC FULL-SCREEN HERO + WEBGL CANVAS OVERLAY
   ============================================================================ */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 96px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 35%, rgba(166, 138, 100, 0.16), transparent 60%), var(--color-obsidian);
}
.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10,10,12,0.75) 0%, rgba(10,10,12,0.45) 50%, rgba(10,10,12,0.96) 100%);
}
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 4;
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 16ch;
  color: var(--color-ivory);
}
.hero-headline em {
  font-style: italic;
  color: var(--color-gold);
}
.hero-subheadline {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: #D2CBBF;
  max-width: 60ch;
  margin: 0 0 38px;
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 56px;
}

/* Animated Counters Bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 32px;
  background: rgba(22, 22, 26, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.metric-item {
  border-left: 2px solid var(--color-gold);
  padding-left: 18px;
}
.metric-number {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 600;
  color: var(--color-ivory);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric-suffix {
  color: var(--color-gold);
}
.metric-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 6px;
}

/* ============================================================================
   5. INFINITE MATERIALITY MARQUEE
   ============================================================================ */
.marquee-band {
  background: #101014;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: scrollMarquee 32s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-bronze);
}
.marquee-diamond {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: rotate(45deg);
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================================
   6. SECTIONS, EDITORIAL HEADINGS & WARM IVORY / OBSIDIAN CONTRAST BANDS
   ============================================================================ */
.section-pad {
  padding: 110px 0;
}
.section-ivory {
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
}
.section-ivory .section-sub,
.section-ivory p {
  color: #3E3B36;
}
.section-charcoal {
  background-color: var(--color-surface);
  color: var(--color-ivory);
}
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  max-width: 20ch;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 54ch;
  margin: 14px 0 0;
}

/* ============================================================================
   7. 3D TILT INTERACTIVE SERVICE & PORTFOLIO CARDS
   ============================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.service-card {
  position: relative;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}
.service-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}
.service-card:hover .service-card-media img {
  transform: scale(1.07);
}
.service-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  margin: 0 0 10px;
  color: var(--color-ivory);
}
.service-card-excerpt {
  font-size: 0.95rem;
  color: #B8B2A6;
  margin: 0 0 20px;
  flex-grow: 1;
}
.service-card-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 12px;
  color: var(--color-bronze);
  margin-bottom: 18px;
}

/* ============================================================================
   8. INTERACTIVE BEFORE & AFTER COMPARISON SLIDER
   ============================================================================ */
.ba-slider-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  user-select: none;
  background: #000;
  aspect-ratio: 16 / 10;
  max-height: 640px;
  width: 100%;
}
.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before-layer {
  clip-path: inset(0 50% 0 0);
}
.ba-label {
  position: absolute;
  bottom: 20px;
  padding: 8px 16px;
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--color-border);
  color: var(--color-ivory);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 5;
}
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; color: var(--color-gold); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-gold);
  z-index: 6;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #0A0A0C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}

/* ============================================================================
   9. HORIZONTAL SCROLL PORTFOLIO GALLERY & PROJECT CARDS
   ============================================================================ */
.horizontal-gallery-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: #121216;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
}
.project-card-img {
  height: 320px;
  overflow: hidden;
  position: relative;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.project-card:hover .project-card-img img {
  transform: scale(1.06);
}
.project-card-content {
  padding: 28px;
}

/* ============================================================================
   10. ANIMATED PROCESS TIMELINE
   ============================================================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  position: relative;
}
.process-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.process-step-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
}
.process-step-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 12px;
}

/* ============================================================================
   11. MULTI-STEP QUOTE WIZARD & FORMS
   ============================================================================ */
.quote-wizard-box {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 44px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.wizard-step-pill {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-subtle);
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  font-weight: 600;
}
.wizard-step-pill.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.wizard-pane {
  display: none;
}
.wizard-pane.active {
  display: block;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D5CFC4;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-ivory);
  background: rgba(10, 10, 12, 0.75);
  border: 1px solid rgba(249, 246, 240, 0.16);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* ============================================================================
   12. FLOATING ANIMATED WHATSAPP CONCIERGE WIDGET
   ============================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1E1E24 0%, #0E0E12 100%);
  border: 1px solid var(--color-gold);
  color: var(--color-ivory);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.whatsapp-float.pos-left {
  right: auto;
  left: 26px;
}
.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 44px rgba(212, 175, 55, 0.28);
  color: var(--color-gold);
}
.whatsapp-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   13. BREADCRUMBS & SOPHISTICATED FOOTER
   ============================================================================ */
.breadcrumb-nav {
  margin-bottom: 20px;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.breadcrumb-sep {
  margin-left: 8px;
  color: var(--color-gold);
}

.site-footer {
  background: #070709;
  border-top: 1px solid var(--color-border);
  padding: 96px 0 48px;
  color: #B8B2A6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-ivory);
  margin: 0 0 20px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--color-gold);
}
.footer-monument {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 8.5rem);
  text-align: center;
  letter-spacing: 0.16em;
  color: rgba(249, 246, 240, 0.04);
  line-height: 0.9;
  margin: 32px 0;
  user-select: none;
}

/* Scroll Reveal Classes */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   14. RESPONSIVE BREAKPOINTS (320px to 1920px+)
   ============================================================================ */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-cinematic { padding: 120px 0 72px; }
  .section-pad { padding: 72px 0; }
  .metrics-bar { grid-template-columns: 1fr; padding: 22px; }
  .services-grid, .horizontal-gallery-track { grid-template-columns: 1fr; }
  .wizard-progress { grid-template-columns: 1fr 1fr; }
  .quote-wizard-box { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .whatsapp-float .wa-text { display: none; }
  .whatsapp-float { padding: 12px; border-radius: 50%; }
}

@media (max-width: 414px) {
  .container, .nav-container { padding: 0 18px; }
  .hero-headline { font-size: 2.35rem; }
  .btn-3d { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   15. MOTIONSITES 3D TILT GLARE, CINEMA VIDEO & INTERACTIVE 3D STAGE
   ============================================================================ */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  z-index: 1;
  pointer-events: none;
}

.service-card,
.project-card,
.process-step-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  border-radius: inherit;
}

.spatial-3d-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.spatial-3d-stage {
  position: relative;
  min-height: 500px;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.14), rgba(10, 10, 12, 0.96) 72%);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: grab;
}
.spatial-3d-stage:active {
  cursor: grabbing;
}
.spatial-3d-canvas {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
}
.spatial-hud-top {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.spatial-hud-bottom {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 12, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  padding: 12px 18px;
  border-radius: 12px;
}

.layer-btn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.layer-switch-btn {
  text-align: left;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-ivory);
  cursor: pointer;
  transition: all 0.25s ease;
}
.layer-switch-btn:hover,
.layer-switch-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-gold);
  transform: translateX(4px);
}

/* Living 3D Pulse on Floating WhatsApp Button */
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 14px 36px rgba(0, 0, 0, 0.65); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 14px 36px rgba(0, 0, 0, 0.65); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 14px 36px rgba(0, 0, 0, 0.65); }
}
.whatsapp-icon-circle {
  animation: whatsappPulse 2.4s infinite;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .spatial-3d-grid {
    grid-template-columns: 1fr;
  }
}
