/* ====================================
   VitaRegen Medical - Fresh Build
   Clean, Professional, Fast
   ==================================== */

/* ============ CSS VARIABLES ============ */
:root {
  /* Colors - VitaRegen Brand */
  --green-900: #023430;       /* primary deep forest */
  --green-800: #034a44;
  --gold-600: #C2A14C;        /* antique gold - PRIMARY */
  --gold-500: #A88B3D;        /* deeper gold for hover */
  --gold-400: #D7BE6E;        /* lighter gold for accents */
  --cream-100: #EDE8DE;
  --cream-50: #F7F3EA;
  --white: #FFFFFF;
  --ink-900: #1a1a1a;
  --ink-700: #3a3f43;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Typography */
  --font-serif: 'Libre Bodoni', Georgia, serif;
  --font-sans: 'Raleway', -apple-system, sans-serif;

  /* Borders */
  --radius: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green-900);
  text-decoration: none;
  transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--green-900);
}

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

p { max-width: 70ch; }

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

.container-narrow {
  max-width: 800px;
}

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

.section-dark {
  background: var(--green-900);
  color: var(--cream-100);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--cream-100);
}

/* ============ GRID ============ */
.grid {
  display: grid;
  gap: var(--space-6);
  align-items: stretch; /* KEY: Makes cards equal height */
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: var(--space-4) 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 44px;
  }
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .nav {
    display: none; /* Will add mobile menu later */
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-500);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--ink-900);
  color: var(--white);
}

/* Secondary button for dark backgrounds */
.btn-secondary-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  font-weight: 600;
}

.btn-secondary-light:hover {
  background: var(--white);
  color: var(--green-900);
}

/* ============ HERO ============ */
.hero {
  background: var(--green-900);
  color: var(--cream-100);
  text-align: center;
  padding: var(--space-9) 0 var(--space-8);
}

.hero h1 {
  color: var(--cream-100);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--gold-600);
  margin-bottom: var(--space-3);
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(237, 232, 222, 0.9);
  max-width: 60ch;
  margin: 0 auto var(--space-6);
}

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

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);

  /* KEY: Make cards fill height */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  flex-grow: 1; /* Pushes button to bottom */
  margin-bottom: var(--space-4);
  color: var(--ink-700);
}

.card .btn {
  margin-top: auto; /* Stick to bottom */
}

/* ============ MEMBERSHIP CARDS ============ */
.membership-card {
  background: var(--green-900);
  color: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  border: 2px solid rgba(184, 137, 107, 0.2);
  transition: var(--transition);

  /* KEY: Equal heights */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.membership-card:hover {
  border-color: var(--gold-600);
  transform: translateY(-4px);
}

.membership-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-3);
}

.membership-title {
  font-size: 1.75rem;
  color: var(--cream-100);
  margin-bottom: var(--space-2);
}

.membership-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--gold-600);
  margin-bottom: var(--space-5);
}

.membership-price small {
  font-size: 0.6em;
  opacity: 0.8;
}

.membership-features {
  list-style: none;
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.membership-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  color: rgba(237, 232, 222, 0.9);
}

.membership-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-600);
}

.membership-card .btn {
  margin-top: auto;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--green-900);
  color: var(--cream-100);
  padding: var(--space-8) 0 var(--space-5);
  border-top: 3px solid var(--gold-600);
}

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

.footer-section h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-4);
}

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

.footer-section li {
  margin-bottom: var(--space-2);
}

.footer-section a {
  color: rgba(237, 232, 222, 0.85);
}

.footer-section a:hover {
  color: var(--cream-100);
}

.footer-bottom {
  border-top: 2px solid rgba(237, 232, 222, 0.15);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(237, 232, 222, 0.7);
}

.footer-bottom a {
  color: rgba(237, 232, 222, 0.85);
  text-decoration: none;
}

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

/* ============ VIDEO ============ */
.video-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-900);
  aspect-ratio: 16 / 9;
}

.video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-portrait {
  aspect-ratio: 9 / 16;
  max-width: 420px;
  margin-inline: auto;
}

.video-portrait-4x5 {
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin-inline: auto;
}

.video-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.video-split > .video-block {
  margin-inline: 0;
}

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

/* ============ UTILITY CLASSES ============ */
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-6 { margin-top: var(--space-6); }
