/* ============================================
   KYLE SMYTH REALTY — Modern Design System
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Colors */
  --navy: #0a1628;
  --navy-light: #132238;
  --navy-lighter: #1a2d4a;
  --cream: #f5f0e8;
  --fog: #e8e4dc;
  --fog2: #d9d5cd;
  --granite: #6b7280;
  --granite-light: #9ca3af;
  --white: #ffffff;
  --accent: #c9a96e;
  --accent-hover: #b8985a;
  --accent-soft: rgba(201, 169, 110, 0.15);
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 768px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 40px rgba(201, 169, 110, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--granite);
  max-width: 65ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--granite);
  max-width: 60ch;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--space-4xl) 0;
}

.section-head {
  margin-bottom: var(--space-3xl);
  max-width: 640px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin-bottom: var(--space-md);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255,255,255,0.7);
}

.section--navy .eyebrow {
  color: var(--accent);
}

.section--fog2 {
  background: var(--fog2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ============================================
   UTILITY BAR
   ============================================ */
.utility-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brokerage-tag a {
  color: var(--accent);
  transition: opacity var(--transition-fast);
}

.brokerage-tag a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .utility-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.site-nav.scrolled .brand,
.site-nav.scrolled .nav-links a,
.site-nav.scrolled .nav-phone {
  color: var(--navy);
}

.site-nav.scrolled .nav-toggle {
  color: var(--navy);
}

.site-nav.solid {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
}

.site-nav.solid .brand,
.site-nav.solid .nav-links a,
.site-nav.solid .nav-phone {
  color: var(--navy);
}

.site-nav.solid .nav-toggle {
  color: var(--navy);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
  transition: color var(--transition-base);
}

.brand span {
  color: var(--accent);
}

.brand small {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition-base);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  padding: 4px;
  transition: color var(--transition-base);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-lg);
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--navy) !important;
    font-size: 1.125rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
    z-index: var(--z-dropdown);
  }

  .nav-phone {
    display: none;
  }

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

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: calc(var(--z-dropdown) - 1);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-lighter) 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.3) 0%,
    rgba(10, 22, 40, 0.5) 50%,
    rgba(10, 22, 40, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 120px;
  max-width: 900px;
}

.hero-content .eyebrow {
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-content .lede {
  color: rgba(255,255,255,0.8);
  margin: 0 auto var(--space-xl);
  font-size: 1.125rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   SEARCH DOCK
   ============================================ */
.search-dock {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  margin-bottom: var(--space-4xl);
}

.search-dock form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: var(--space-sm);
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--granite);
}

.search-field input,
.search-field select,
.filter-bar input,
.filter-bar select {
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--fog2);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  transition: all var(--transition-fast);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.search-field input:focus,
.search-field select:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-field select,
.filter-bar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

@media (max-width: 768px) {
  .search-dock form {
    grid-template-columns: 1fr;
  }
  .search-dock {
    margin-top: -40px;
    padding: 0 var(--space-md);
  }
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

.stat {
  text-align: center;
  padding: var(--space-lg);
}

.stat .num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat .label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* ============================================
   LISTING CARDS
   ============================================ */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--fog);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--fog2);
}

.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fog) 0%, var(--fog2) 100%);
}

.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.listing-card:hover .listing-photo img {
  transform: scale(1.05);
}

.status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status.for-sale {
  background: var(--success);
  color: var(--white);
}

.status.new {
  background: var(--accent);
  color: var(--navy);
}

.status.pending {
  background: var(--warning);
  color: var(--navy);
}

.status.sold {
  background: var(--granite);
  color: var(--white);
}

.status.waterfront {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: var(--white);
}

.video-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--navy);
  color: var(--white);
  z-index: 2;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition-fast);
}

.video-badge:hover {
  background: var(--accent);
  color: var(--navy);
}

.placeholder-tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--granite);
  font-size: 0.875rem;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--fog) 0%, var(--fog2) 100%);
}

.listing-body {
  padding: var(--space-lg);
}

.listing-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.listing-address {
  font-size: 0.9375rem;
  color: var(--granite);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.listing-specs {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
  margin-bottom: var(--space-sm);
}

.listing-specs span {
  font-size: 0.8125rem;
  color: var(--granite);
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-specs span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.listing-mls {
  font-size: 0.75rem;
  color: var(--granite-light);
  font-weight: 500;
}

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

/* ============================================
   DEVELOPMENT CARDS
   ============================================ */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.dev-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--fog);
  display: flex;
  flex-direction: column;
}

.dev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dev-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
  overflow: hidden;
}

.dev-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.dev-card:hover .dev-photo img {
  transform: scale(1.05);
}

.dev-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.dev-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dev-body .loc {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--granite);
  margin-bottom: var(--space-xs);
}

.dev-body h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.dev-body p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  flex: 1;
}

.dev-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.dev-highlights span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--navy);
}

@media (max-width: 900px) {
  .dev-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   AREAS GRID
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.area-tile {
  background: var(--white);
  border: 1.5px solid var(--fog);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.area-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.area-tile .name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.area-tile .count {
  font-size: 0.875rem;
  color: var(--granite);
}

@media (max-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--fog);
  transition: all var(--transition-base);
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial .quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial .quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial .who {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--granite);
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 140px 0 var(--space-3xl);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.page-header p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  align-items: end;
}

@media (max-width: 900px) {
  .filter-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ============================================
   IDX PANEL
   ============================================ */
.idx-panel {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.06);
}

.idx-panel h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.idx-panel p {
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.idx-embed-slot {
  background: rgba(0,0,0,0.2);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  text-align: left;
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}

/* ============================================
   SPLIT MEDIA
   ============================================ */
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--fog) 0%, var(--fog2) 100%);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media .cap {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.footer-grid ul li {
  margin-bottom: var(--space-sm);
}

.footer-grid ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-grid ul li a:hover {
  color: var(--accent);
}

.footer-legal {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children > *:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.25rem;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9375rem;
  color: var(--granite);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--fog);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--fog2);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--navy);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Form states */
.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 140px 0 var(--space-3xl);
}

.about-hero h1 {
  color: var(--white);
}

.about-hero p {
  color: rgba(255,255,255,0.7);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.credential-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--fog);
  transition: all var(--transition-base);
}

.credential-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.credential-card .icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--accent);
  font-size: 1.5rem;
}

.credential-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.credential-card p {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   DEVELOPMENTS PAGE
   ============================================ */
.dev-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 140px 0 var(--space-3xl);
  text-align: center;
}

.dev-hero h1 {
  color: var(--white);
}

.dev-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

.dev-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.dev-detail-content h2 {
  margin-bottom: var(--space-md);
}

.dev-detail-content p {
  margin-bottom: var(--space-lg);
}

.dev-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--fog);
  position: sticky;
  top: 100px;
}

.dev-sidebar h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--fog);
}

.dev-sidebar ul li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--fog);
  font-size: 0.875rem;
}

.dev-sidebar ul li:last-child {
  border-bottom: none;
}

.dev-sidebar .label {
  color: var(--granite);
}

.dev-sidebar .value {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 900px) {
  .dev-detail-grid {
    grid-template-columns: 1fr;
  }
  .dev-sidebar {
    position: static;
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--fog) 25%, var(--fog2) 50%, var(--fog) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-nav, .utility-bar, .hero-video, .hero-scroll,
  .nav-toggle, .btn, .search-dock, .nav-cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  a {
    text-decoration: underline;
    color: #000;
  }

  .container {
    max-width: 100%;
  }

  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}
