/* ═══════════════════════════════════════
   THE RESURRECTION ALGORITHM
   Design System & Base Styles
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* ═══ CSS VARIABLES ═══ */
:root {
  /* Colors */
  --ivory: #FAF6F0;
  --champagne: #EDE4D3;
  --gold: #B89968;
  --plum: #6B2C39;
  --rose: #D9B5B0;
  --text-primary: #2C2822;
  --text-muted: #6B6259;

  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* ═══ RESET & BASE ═══ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
}

a {
  color: var(--plum);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* ═══ LAYOUT ═══ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section-divider {
  height: 1px;
  background-color: var(--champagne);
  border: none;
  margin: 0;
}

/* ═══ HEADER & NAVIGATION ═══ */
header {
  background-color: var(--ivory);
  border-bottom: 1px solid rgba(107, 98, 89, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(250, 246, 240, 0.95);
  width: 100%;
}

/* Override .container styles for header nav */
header nav.container {
  max-width: none;
  margin: 0;
  padding: var(--space-sm) 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 24px;
  width: 100%;
}

@media (max-width: 768px) {
  header nav.container,
  nav {
    padding: var(--space-sm) 16px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 115px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--ivory);
  border: 1px solid rgba(107, 98, 89, 0.15);
  border-radius: 2px;
  min-width: 200px;
  padding: 0.5rem 0;
  padding-top: 1rem;
  margin-top: -0.5rem;
  box-shadow: 0 4px 12px rgba(44, 40, 34, 0.1);
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background-color: var(--champagne);
  color: var(--plum);
}

/* Mobile dropdown toggle */
.nav-dropdown.active .nav-dropdown-menu {
  display: block;
  position: relative;
  margin-top: 0.5rem;
  box-shadow: none;
  border: none;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--ivory);
    border-bottom: 1px solid rgba(107, 98, 89, 0.15);
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .nav-links.active {
    display: flex;
  }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--plum);
  color: var(--ivory);
}

.btn-primary:hover {
  background-color: #5a2430;
  color: var(--ivory);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--plum);
  border: 1px solid var(--plum);
}

.btn-secondary:hover {
  background-color: var(--plum);
  color: var(--ivory);
  transform: translateY(-1px);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--ivory);
}

.btn-gold:hover {
  background-color: #a68858;
  color: var(--ivory);
  transform: translateY(-1px);
}

/* ═══ HERO SECTION ═══ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--champagne) 100%);
  position: relative;
  padding: var(--space-xl) var(--space-md);
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .lead {
  margin: 0 auto var(--space-lg);
}

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

/* Hero refinements */
.hero h1 {
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

/* Watermark */
.hero-watermark {
  position: absolute;
  top: 10%;
  right: 5%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-watermark img {
  width: 220px;
  height: auto;
}

/* Hero Form Component */
.hero-form-wrapper {
  margin-top: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-form-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 1rem;
  text-align: center;
}

.hero-form-description {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  text-align: center;
}

.hero-form {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.hero-form input[type="email"] {
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  border: 1px solid var(--plum);
  background: white;
  color: var(--text-primary);
  border-radius: 4px;
  font-family: var(--font-sans);
  box-sizing: border-box;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(44, 40, 34, 0.06);
  transition: all 0.2s ease;
}

.hero-form input[type="email"]:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 2px 12px rgba(106, 44, 57, 0.12);
}

.hero-form button[type="submit"] {
  width: 100%;
  background: var(--plum);
  color: var(--ivory);
  padding: 18px 36px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(106, 44, 57, 0.2);
  transition: all 0.2s ease;
}

.hero-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(106, 44, 57, 0.3);
}

.hero-form-privacy {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ═══ ACCENT LINE ═══ */
.accent-line {
  width: 100px;
  height: 2px;
  background-color: var(--gold);
  margin: var(--space-md) auto;
  opacity: 0.7;
}

.accent-line-left {
  width: 100px;
  height: 2px;
  background-color: var(--gold);
  margin: var(--space-md) 0;
  opacity: 0.7;
}

/* ═══ CARDS ═══ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background-color: white;
  padding: var(--space-md);
  border-radius: 4px;
  border: 1px solid rgba(107, 98, 89, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 40, 34, 0.08);
}

.card h3 {
  color: var(--plum);
  margin-bottom: var(--space-sm);
}

.card .btn {
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
}

.card-subtitle {
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-meta {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Assessment grid */
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Video container */
.video-container {
  max-width: 600px;
  margin: 3rem auto;
}

.video-container video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(44, 40, 34, 0.15);
}

.video-caption {
  margin-top: 1rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ═══ FOOTER ═══ */
footer {
  background-color: var(--text-primary);
  color: var(--champagne);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

footer a {
  color: var(--champagne);
}

footer a:hover {
  color: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-section h4 {
  color: var(--ivory);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-serif);
}

.footer-section:first-child h4 {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 32px;
  height: 32px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: var(--gold);
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(237, 228, 211, 0.2);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ═══ UTILITY CLASSES ═══ */
.text-center {
  text-align: center;
}

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

.mt-lg {
  margin-top: var(--space-lg);
}

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

.py-xl {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .hero {
    min-height: 70vh;
    padding: 4rem var(--space-md);
  }

  section {
    padding: 4rem 0;
  }

  .py-xl {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
