/* ==========================================================================
   TERRAFORM & CRAFT ARCHITECTURAL CONSTRUCTION & LAND LAB
   Lead Project Manager: Raphael
   Design System & 3D Interactive Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #070a12;
  --bg-surface: #0e1422;
  --bg-card: rgba(18, 26, 44, 0.7);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-glass: rgba(14, 20, 34, 0.65);
  
  --primary: #c89d56;
  --primary-light: #e6be7e;
  --primary-dark: #9c7332;
  --primary-glow: rgba(200, 157, 86, 0.35);

  --blueprint: #38bdf8;
  --blueprint-light: #7dd3fc;
  --blueprint-glow: rgba(56, 189, 248, 0.3);

  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(200, 157, 86, 0.3);
  --border-blueprint: rgba(56, 189, 248, 0.3);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-3d: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(200, 157, 86, 0.08);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(200, 157, 86, 0.05) 0%, transparent 45%),
    linear-gradient(to bottom, #070a12, #0b101d 50%, #060911);
  background-attachment: fixed;
  position: relative;
}

/* Subtle blueprint background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

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

picture {
  width: 100%;
  height: 100%;
}

img {
  image-rendering: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utility Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 7rem 0;
}

/* Header & Glass Navigation */
.header-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1240px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: rgba(14, 20, 34, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.35s var(--ease-spring);
}

.header-nav.scrolled {
  background: rgba(10, 15, 26, 0.92);
  border-color: rgba(200, 157, 86, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  top: 0.75rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-cube {
  width: 36px;
  height: 36px;
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #a6792e);
  border-radius: 8px;
  box-shadow: 0 0 15px var(--primary-glow);
  color: #070a12;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease-spring);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Sound Effect / Interactive audio toggle */
.audio-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.audio-toggle-btn:hover {
  background: rgba(200, 157, 86, 0.15);
  color: var(--primary-light);
  border-color: var(--primary);
}

.audio-toggle-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #070b14;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 157, 86, 0.5);
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-spring);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  background: #25D366;
  color: #070a12;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s var(--ease-spring);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: #000;
}

.phone-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #4ade80;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  transition: all 0.25s;
}

.phone-quick-link:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25D366;
  transform: translateY(-1px);
}

.btn-blueprint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-blueprint);
  color: var(--blueprint-light);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: all 0.3s;
}

.btn-blueprint:hover {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 20px var(--blueprint-glow);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(200, 157, 86, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-tag.lead-pm-tag {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-blueprint);
  color: var(--blueprint-light);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-gold {
  background: linear-gradient(135deg, #ffffff 10%, #edd4a8 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .blueprint-glow-text {
  color: var(--blueprint-light);
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Hero Stats Bar */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-number .accent {
  color: var(--primary);
  font-size: 1.4rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Hero 3D Card / Interactive Visual Container */
.hero-visual-col {
  position: relative;
  perspective: 1200px;
}

.hero-3d-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  background: var(--bg-surface);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
  transform-style: preserve-3d;
}

.hero-3d-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-glow);
}

.hero-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface);
}

.hero-img-box picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.hero-3d-card:hover .hero-img-box img {
  transform: scale(1.04);
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.95) 0%, rgba(7, 10, 18, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.hero-floating-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(9, 13, 22, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blueprint-light);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-card-meta {
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-title-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.meta-title-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.floating-pm-avatar-chip {
  position: absolute;
  bottom: 5.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.1rem;
  background: rgba(14, 20, 34, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 10;
  transition: transform 0.3s var(--ease-spring);
}

.floating-pm-avatar-chip:hover {
  transform: translateY(-4px) scale(1.02);
}

.floating-pm-avatar-chip picture {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.floating-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.floating-avatar-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.floating-avatar-text span {
  font-size: 0.72rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   INTERACTIVE 3D VIRTUAL ARCHITECTURAL LAB (Three.js WebGL)
   ========================================================================== */
.lab-section {
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(18, 28, 50, 0.5) 0%, rgba(7, 10, 18, 0.95) 70%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* 3D Lab Canvas Container & HUD Controls */
.lab-container {
  position: relative;
  width: 100%;
  height: 680px;
  background: #060912;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 100px rgba(0, 0, 0, 0.5);
}

#three-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* HUD Overlay Controls */
.lab-hud-top {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.hud-panel {
  pointer-events: auto;
  background: rgba(10, 15, 26, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hud-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blueprint-light);
  font-weight: 500;
}

.hud-views-group {
  display: flex;
  gap: 0.4rem;
}

.hud-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hud-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--blueprint);
  color: var(--blueprint-light);
}

.hud-lighting-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.hud-lighting-toggle:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Layer Inspection Bottom Dock */
.lab-hud-bottom {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(9, 14, 24, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.9rem;
  z-index: 20;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.layer-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s var(--ease-spring);
}

.layer-btn:hover {
  color: #fff;
}

.layer-btn.active {
  background: linear-gradient(135deg, var(--primary), #a87b32);
  color: #070a12;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* 3D Hotspot Card Preview floating */
.hotspot-info-card {
  position: absolute;
  top: 5rem;
  right: 1.5rem;
  width: 290px;
  background: rgba(14, 20, 34, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  z-index: 20;
  box-shadow: var(--shadow-3d);
  transition: all 0.3s var(--ease-spring);
  display: none;
}

.hotspot-info-card.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.hotspot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.hotspot-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary-light);
  background: rgba(200, 157, 86, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.hotspot-close {
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

.hotspot-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.hotspot-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Three.js Canvas Hint Badge */
.canvas-hint {
  position: absolute;
  bottom: 5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* ==========================================================================
   THE 5-STAGE "LAND TO KEY" TURNKEY JOURNEY
   ========================================================================== */
.stages-section {
  position: relative;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.journey-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-spring);
  transform-style: preserve-3d;
}

.journey-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(200, 157, 86, 0.15);
}

.stage-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(200, 157, 86, 0.3);
  margin-bottom: 0.8rem;
  line-height: 1;
  transition: color 0.3s;
}

.journey-card:hover .stage-number {
  color: var(--primary);
}

.stage-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

.journey-card:hover .stage-icon {
  background: rgba(200, 157, 86, 0.15);
  border-color: var(--primary);
  transform: scale(1.05);
}

.stage-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.stage-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.stage-pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.stage-pill {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stage-pill::before {
  content: '▸';
  color: var(--primary);
}

/* ==========================================================================
   INTERACTIVE BEFORE / AFTER SLIDER: PLAN TO REALITY
   ========================================================================== */
.comparison-section {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(14, 20, 34, 0.5), transparent);
}

.split-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
}

.split-img-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.split-img-layer picture,
.split-img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.split-img-layer.after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  border-right: none;
}

.split-img-layer.after picture,
.split-img-layer.after img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-handle-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 30;
  touch-action: none;
}

.slider-handle-knob {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #070a12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 0 25px var(--primary-glow);
  border: 3px solid #fff;
  transition: transform 0.2s;
}

.slider-handle-bar:hover .slider-handle-knob {
  transform: scale(1.12);
}

.slider-caption-left, .slider-caption-right {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(7, 10, 18, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
}

.slider-caption-left {
  left: 1.5rem;
  color: var(--blueprint-light);
  border: 1px solid var(--border-blueprint);
}

.slider-caption-right {
  right: 1.5rem;
  color: var(--primary-light);
  border: 1px solid var(--border-gold);
}

/* ==========================================================================
   RAPHAEL — LEAD PROJECT MANAGER SPOTLIGHT
   ========================================================================== */
.pm-spotlight-section {
  position: relative;
}

.pm-spotlight-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.pm-portrait-container {
  position: relative;
  perspective: 1200px;
}

.pm-3d-tilt-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-3d);
  background: var(--bg-surface);
  transition: transform 0.35s var(--ease-spring);
}

.pm-3d-tilt-frame picture {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.pm-3d-tilt-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.pm-3d-tilt-frame:hover img {
  transform: scale(1.03);
}

.pm-live-status {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(10, 16, 28, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.status-dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.pm-badge-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(12, 18, 32, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pm-badge-col h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
}

.pm-badge-col span {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
}

.pm-bio-col .pm-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pm-bio-col h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.pm-role-title {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.pm-quote-box {
  position: relative;
  padding: 1.25rem 1.5rem;
  background: rgba(200, 157, 86, 0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.pm-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.pm-pillar-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.pm-pillar-icon {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.pm-pillar-item h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.pm-pillar-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pm-credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.cred-chip {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.cred-chip.highlight {
  border-color: var(--border-gold);
  color: var(--primary-light);
  background: rgba(200, 157, 86, 0.1);
}

/* ==========================================================================
   INTERACTIVE "LAND + BUILD" ESTIMATOR CALCULATOR
   ========================================================================== */
.estimator-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(200, 157, 86, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
}

.estimator-box {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-3d);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.calc-label span.value-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-light);
  background: rgba(200, 157, 86, 0.15);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Segmented Buttons */
.segmented-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.seg-btn {
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.seg-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.seg-btn.active {
  background: rgba(200, 157, 86, 0.18);
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 15px rgba(200, 157, 86, 0.2);
}

/* Custom Range Slider */
.custom-range {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 15px var(--primary-glow);
  transition: transform 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Live Estimate Results Card */
.estimate-summary-card {
  background: rgba(9, 14, 24, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.summary-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.summary-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.summary-row .label {
  color: var(--text-muted);
}

.summary-row .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

.summary-row.total-row {
  border-top: 1px dashed var(--border-gold);
  padding-top: 1.25rem;
  font-size: 1.15rem;
}

.summary-row.total-row .label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.summary-row.total-row .amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  text-shadow: 0 0 20px rgba(200, 157, 86, 0.4);
}

.timeline-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
}

.timeline-badge span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-badge strong {
  font-family: var(--font-mono);
  color: var(--blueprint-light);
  font-size: 0.9rem;
}

/* ==========================================================================
   SUBPAGE LAYOUTS & HERO BANNERS
   ========================================================================== */
.subpage-hero {
  padding-top: 8.5rem;
  padding-bottom: 3.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(200, 157, 86, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, rgba(14, 20, 34, 0.9) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--primary-light);
}

.breadcrumbs span.separator {
  color: var(--border-gold);
}

.breadcrumbs span.current {
  color: var(--primary-light);
}

.subpage-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.subpage-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.7;
}

/* Feature Detail Grid */
.detail-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.detail-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.3s var(--ease-spring);
}

.detail-feature-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.detail-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(200, 157, 86, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Timeline & Milestones */
.pm-timeline {
  position: relative;
  border-left: 2px solid var(--border-gold);
  margin-left: 1rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-step-node {
  position: relative;
}

.timeline-step-node::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.25rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.timeline-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Grid */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(200, 157, 86, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-link.active-page {
  color: var(--primary-light);
}

.nav-link.active-page::after {
  width: 100%;
}

/* Responsive Subpage */
@media (max-width: 1024px) {
  .detail-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PORTFOLIO PROJECTS SHOWCASE (3D Tilt Cards)
   ========================================================================== */
.portfolio-section {
  position: relative;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-pill.active {
  background: var(--primary);
  color: #070a12;
  border-color: var(--primary);
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-spring), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 157, 86, 0.15);
}

.project-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-thumbnail-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

.project-card:hover .project-thumbnail-wrapper img {
  transform: scale(1.06);
}

.project-tag-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.35rem 0.85rem;
  background: rgba(7, 10, 18, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--primary-light);
}

.project-content-block {
  padding: 1.75rem;
  background: var(--bg-surface);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.project-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.metric-col small {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.metric-col strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #fff;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pm-stamp {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pm-stamp .check {
  color: var(--emerald);
}

.view-case-study {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.project-card:hover .view-case-study {
  gap: 0.55rem;
}

/* ==========================================================================
   CLIENT TESTIMONIALS & TRUST GUARANTEE
   ========================================================================== */
.testimonials-section {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(14, 20, 34, 0.4), transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-spring);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 157, 86, 0.3);
}

.stars-row {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.test-quote {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.client-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-light);
  border: 1px solid var(--border-gold);
}

.client-meta h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.client-meta span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER & DIRECT CONTACT
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060c;
  padding: 5rem 0 2.5rem 0;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.25rem 0;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: var(--primary-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   INTERACTIVE MODAL: BOOK RAPHAEL / CONSULTATION
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  width: min(100%, 640px);
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(200, 157, 86, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-header {
  margin-bottom: 1.75rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: rgba(200, 157, 86, 0.04);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.toast-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(14, 22, 38, 0.95);
  border: 1px solid var(--emerald);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  color: #fff;
  font-size: 0.9rem;
}

.toast-alert.show {
  display: flex;
  animation: slideInUp 0.3s ease;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Navigation Hamburger Toggle Button */
.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.25s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(200, 157, 86, 0.15);
  border-color: var(--primary);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (All Screen Types & Orientations)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pm-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .header-nav nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 10, 18, 0.98);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
    padding: 1.5rem 2rem 2.5rem;
    display: none;
    flex-direction: column;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .header-nav.mobile-menu-open nav {
    display: flex;
    animation: fadeIn 0.25s ease forwards;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .section-padding {
    padding: 4.5rem 0;
  }
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .split-slider-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }
  .slider-caption-left, .slider-caption-right {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
    bottom: 0.75rem;
  }
  .slider-caption-left {
    left: 0.75rem;
  }
  .slider-caption-right {
    right: 0.75rem;
  }
  .floating-pm-avatar-chip {
    position: static;
    margin-top: 1rem;
    width: 100%;
    justify-content: flex-start;
  }
  .lab-hud-bottom {
    width: 95%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    bottom: 1rem;
  }
  .brand-text h1 {
    font-size: 0.95rem;
  }
  .phone-quick-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .stat-number {
    font-size: 1.35rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .segmented-opts {
    grid-template-columns: 1fr 1fr;
  }
  .project-metrics-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Print Styles */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .header-nav, .nav-actions, .audio-toggle-btn, .mobile-nav-toggle {
    display: none;
  }
}
