/* ============================================
   THE MORGAN INSTITUTE FOR HEALING
   Feminine Redesign — Warm, Organic, Luminous
   Inspired by Aviva Romm | Vanessa's Brand Palette
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Primary Palette — Vanessa's brand, feminized */
  --cream: #FBF8F4;
  --warm-white: #FFFCF8;
  --blush: #F5EDE6;
  --sand: #E8DDD1;
  --sage: #B8C9B8;
  --sage-light: #D4E0D4;
  --sage-deep: #6B8C6B;
  --mauve: #8C5A6E;
  --mauve-light: #C49AAD;
  --mauve-soft: rgba(140, 90, 110, 0.08);
  --gold: #C5A255;
  --gold-light: #D4B96A;
  --gold-dark: #A8883A;
  --gold-soft: rgba(197, 162, 85, 0.1);
  --teal: #1B5E4B;
  --teal-light: #6BA3BE;
  --navy: #0B1D3A;
  --navy-soft: #2A3D55;
  --charcoal: #3A3A3A;
  --text-dark: #2D2926;
  --text-medium: #5A5450;
  --text-light: #7A7470;
  --text-on-dark: #F5F0EA;
  --white: #FFFFFF;
  --error: #C53030;
  --success: #2F855A;

  /* Typography */
  --font-display: 'trajan-pro-3', 'Trajan Pro', 'Cinzel', serif;
  --font-heading: 'loretta-display', 'Loretta Display', 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Spacing */
  --section-pad: clamp(56px, 8vw, 110px);
  --section-pad-sm: clamp(36px, 5vw, 64px);
  --container: 1120px;
  --container-narrow: 760px;
  --container-wide: 1280px;

  /* Easing */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 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: 19px;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--cream);
}

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

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

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

/* --- Typography --- */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--navy);
  font-size: clamp(28px, 4.5vw, 52px);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--navy);
  font-size: clamp(32px, 5vw, 60px);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 12px;
}

h4 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 8px;
}

p {
  margin-bottom: 1em;
  color: var(--text-medium);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections --- */
.section {
  padding: var(--section-pad) 0;
}

.section-sm {
  padding: var(--section-pad-sm) 0;
}

/* Warm cream — parchment texture on light sections */
.section-linen {
  background-color: var(--blush);
  background-image:
    linear-gradient(rgba(245, 237, 230, 0.85), rgba(245, 237, 230, 0.85)),
    url('/images/texture-parchment.png');
  background-size: auto, 1000px 1000px;
}

/* Soft sage — organic, nature feel */
.section-sage {
  background-color: var(--sage-light);
}

/* Dark section — real blue leather texture */
.section-dark {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(11, 29, 58, 0.55), rgba(11, 29, 58, 0.55)),
    url('/images/texture-leather-dark.png');
  background-size: auto, 900px 900px;
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--gold);
}

.section-dark p {
  color: var(--text-on-dark);
}

/* Slate — slate blue leather texture */
.section-slate {
  background-color: var(--navy-soft);
  background-image:
    linear-gradient(rgba(42, 61, 85, 0.5), rgba(42, 61, 85, 0.5)),
    url('/images/texture-leather-slate.png');
  background-size: auto, 900px 900px;
  color: var(--text-on-dark);
}

.section-slate h2,
.section-slate h3 {
  color: var(--gold);
}

/* Clean white */
.section-white {
  background-color: var(--warm-white);
}

.section-ice {
  background-color: var(--sand);
}

/* Section Labels */
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 12px;
  display: block;
}

.section-dark .section-label,
.section-slate .section-label {
  color: var(--gold-light);
}

/* Divider — organic, feminine */
.divider {
  width: 60px;
  height: 1px;
  background: var(--mauve-light);
  margin: 24px 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero --- */
.hero {
  background-color: #0B1D3A;
  background-image:
    /* Slight dark overlay for text readability */
    linear-gradient(rgba(11, 29, 58, 0.4), rgba(11, 29, 58, 0.6)),
    url('/images/hero-background.png');
  background-size: cover;
  background-position: center;
  color: var(--text-on-dark);
  text-align: center;
  padding: clamp(100px, 14vw, 180px) 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(197, 162, 85, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero .logo {
  max-width: 200px;
  margin: 0 auto 32px;
}

.hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8vw, 17px);
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-on-dark);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140, 90, 110, 0.2);
}

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

.btn-secondary:hover {
  background: var(--mauve);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--mauve);
  border: 1px solid var(--mauve-light);
  padding: 12px 32px;
}

.btn-ghost:hover {
  border-color: var(--mauve);
  background: var(--mauve-soft);
}

.btn-lg {
  font-size: 17px;
  padding: 20px 52px;
}

/* Dark section buttons */
.section-dark .btn-primary,
.section-slate .btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.section-dark .btn-primary:hover,
.section-slate .btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(197, 162, 85, 0.3);
}

.section-dark .btn-secondary,
.section-slate .btn-secondary {
  color: var(--gold);
  border-color: var(--gold);
}

.section-dark .btn-secondary:hover,
.section-slate .btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
}

.section-dark .btn-ghost,
.section-slate .btn-ghost {
  color: var(--gold);
  border-color: rgba(197, 162, 85, 0.3);
}

.section-dark .btn-ghost:hover,
.section-slate .btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(197, 162, 85, 0.1);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 162, 85, 0.15);
}

.card-dark:hover {
  border-color: rgba(197, 162, 85, 0.3);
}

/* --- Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Testimonials --- */
.testimonial {
  position: relative;
  padding: 32px;
  padding-left: 48px;
  border-radius: 12px;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 64px;
  color: var(--mauve-light);
  opacity: 0.5;
  position: absolute;
  top: 8px;
  left: 12px;
  line-height: 1;
}

.testimonial-text {
  font-size: 19px;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--mauve);
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-light);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-medium);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  padding: 14px 16px;
  border: 1px solid var(--sand);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.form-input::placeholder {
  color: var(--text-light);
}

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

.form-hint {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

.form-error {
  border-color: var(--error) !important;
}

.form-error-msg {
  font-size: 14px;
  color: var(--error);
  margin-top: 4px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--navy);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(11, 29, 58, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}

.nav.scrolled .nav-logo {
  height: 36px;
  width: 36px;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s var(--ease);
}

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

.nav-links a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(197, 162, 85, 0.3);
}

.nav-links .btn {
  font-size: 13px;
  padding: 10px 24px;
}

/* Nav CTA button — gold on navy */
.nav-links .btn.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
}

.nav-links .btn.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(197, 162, 85, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: all 0.3s var(--ease);
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 29, 58, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

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

/* --- Curriculum Module List --- */
.module-list {
  list-style: none;
  counter-reset: module;
}

.module-item {
  counter-increment: module;
  padding: 20px 0;
  border-bottom: 1px solid rgba(140, 90, 110, 0.12);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.module-item::before {
  content: counter(module, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--mauve);
  min-width: 32px;
  padding-top: 2px;
}

.module-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.section-dark .module-title {
  color: var(--text-on-dark);
}

.module-desc {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.6;
}

.section-dark .module-desc {
  color: rgba(245, 240, 234, 0.7);
}

/* --- Pricing Tiers --- */
.tier-card {
  background: var(--white);
  border: 2px solid var(--sand);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tier-card:hover {
  border-color: var(--mauve-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.tier-card.featured {
  border-color: var(--mauve);
  position: relative;
  box-shadow: 0 4px 20px rgba(140, 90, 110, 0.1);
}

.tier-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--mauve);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.tier-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--mauve);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.tier-duration {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.tier-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 16px;
  color: var(--text-medium);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.tier-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--mauve-light);
  font-size: 12px;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 15px;
  color: rgba(245, 240, 234, 0.8);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 15px;
  color: rgba(245, 240, 234, 0.8);
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgba(245, 240, 234, 0.6);
  text-align: center;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-mauve { color: var(--mauve); }
.text-navy { color: var(--navy); }
.text-light { color: var(--text-light); }
.text-on-dark { color: var(--text-on-dark); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-narrow { max-width: var(--container-narrow); }
.max-w-sm { max-width: 540px; }

/* --- Animations --- */
.fade-in {
  transform: translateY(16px);
  transition: transform 0.6s var(--ease);
}

.fade-in.visible {
  transform: translateY(0);
}

@keyframes soft-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(140, 90, 110, 0.1); }
  50% { box-shadow: 0 0 30px rgba(140, 90, 110, 0.18); }
}

/* Vanessa headshot — soft rounded edges */
.vanessa-photo {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* --- Print --- */
@media print {
  .nav, .footer, .btn { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
