:root {
  /* Palette: Burgundy Estate Flow */
  --bg-canvas: #2a0812; /* Darker burgundy background */
  --bg-surface: #3b0d1a; /* Base burgundy */
  --bg-surface-hover: #4e1123;
  --text-primary: #fdfbf7; /* Cream text */
  --text-muted: #d4c3c7;
  --accent-primary: #e8d5a8; /* Champagne */
  --accent-secondary: #c2aa78;
  --border-color: #591a27;
  
  /* System Fonts & Weights */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading-weight: 800;
  --tracking-tight: -0.05em;
  
  /* Spacing & Radii */
  --radius-sm: 4px;
  --space-unit: 1rem;
  
  /* Effects */
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Background Patterns */
.bg-grid {
  background-image: 
    linear-gradient(rgba(232, 213, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 168, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-dots {
  background-image: radial-gradient(rgba(232, 213, 168, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; color: var(--text-muted); }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent-secondary); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.copy-container {
  max-width: 68ch;
  margin: 0 auto;
}

/* Header */
header {
  padding: 1.5rem 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
}

.brand {
  font-weight: var(--font-heading-weight);
  font-size: 1.25rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

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

.nav-links a {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  position: relative;
}

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

.hero-content { z-index: 2; }
.hero-content p { font-size: 1.25rem; }

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
}

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

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  color: var(--bg-canvas);
}

/* Vertical Flow Architecture */
.flow-wrapper {
  position: relative;
  padding: 4rem 0;
}

.flow-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2rem;
  width: 1px;
  background: var(--border-color);
  z-index: 0;
}

.flow-section {
  position: relative;
  padding-left: 6rem;
  margin-bottom: 6rem;
  z-index: 1;
}

.flow-number {
  position: absolute;
  left: 1.25rem; /* Centered on the line */
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--bg-surface);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-surface-hover);
}

.card-img-wrapper {
  margin: -2rem -2rem 1.5rem -2rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ Toggles */
.faq-item {
  margin-bottom: 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-primary);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, select, textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Footer */
footer {
  background: var(--bg-surface);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--accent-primary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: space-between; gap: 0; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 2rem 5%;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  
  .flow-line { left: 1rem; }
  .flow-section { padding-left: 3rem; }
  .flow-number { left: 0.25rem; }
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}
th {
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

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