/* Date With Self — Sandalwood theme */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  /* Sandalwood palette */
  --espresso: #3B2A25;
  --walnut: #684E43;
  --mauve: #8A6A6D;
  --rose: #B58A84;
  --sand: #D9B7AC;
  --cream: #F2E6D9;
  --cream-dark: #E8D5C8;

  /* Semantic aliases (used across site) */
  --plum: var(--espresso);
  --plum-dark: #2A1E1A;
  --gold: var(--rose);
  --gold-light: var(--sand);
  --text: var(--espresso);
  --text-muted: var(--walnut);
  --white: #ffffff;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 10px 30px rgba(59, 42, 37, 0.08);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;
  --font-quote: "Playfair Display", Georgia, serif;
  --max: 72rem;
  --nav-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--walnut); text-decoration: none; }
a:hover { color: var(--rose); }
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 600;
}
.font-quote { font-family: var(--font-quote); font-style: italic; font-weight: 500; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 100;
  width: auto; height: auto; padding: 0.75rem 1.25rem;
  background: var(--espresso); color: var(--cream); border-radius: 0.5rem;
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark a { color: var(--sand); }
.section-dark a.btn-primary {
  color: var(--cream);
}
.section-dark a.btn-primary:hover {
  color: #fff;
  background: var(--walnut);
}
.section-dark a.btn-secondary {
  color: var(--espresso);
}
.section-dark a.btn-secondary:hover {
  color: #fff;
  background: var(--rose);
}
.section-dark a.btn-outline {
  color: var(--cream);
}
.section-dark a.btn-outline:hover {
  color: var(--espresso);
  background: var(--sand);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 0.75rem; color: var(--espresso); }
.section-dark .section-title { color: var(--cream); }
.section-sub { color: var(--text-muted); max-width: 40rem; margin: 0 0 2rem; }
.section-dark .section-sub { color: rgba(242, 230, 217, 0.78); }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 230, 217, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 42, 37, 0.08);
  height: var(--nav-h);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--espresso); font-family: var(--font-heading); font-weight: 600;
}
.logo img { height: 2rem; width: auto; }
.nav-links { display: none; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--espresso); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--rose); }
.nav-links a.btn-primary,
.nav-mobile a.btn-primary {
  color: var(--cream);
}
.nav-links a.btn-primary:hover,
.nav-mobile a.btn-primary:hover {
  color: #fff;
  background: var(--walnut);
}
.nav-links a.btn-outline,
.nav-mobile a.btn-outline {
  color: var(--espresso);
}
.nav-toggle {
  display: inline-flex; background: none; border: 0; cursor: pointer; padding: 0.5rem; color: var(--espresso);
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.nav-mobile {
  display: none; flex-direction: column; gap: 1rem; padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(59, 42, 37, 0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--espresso); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: 0.2s ease;
  font-family: var(--font-body); text-decoration: none;
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { background: var(--walnut); color: #fff; }
.btn-secondary { background: var(--sand); color: var(--espresso); }
.btn-secondary:hover { background: var(--rose); color: #fff; }
.btn-outline { background: transparent; border-color: var(--sand); color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.section-dark .btn-outline { border-color: var(--sand); color: var(--cream); }
.section-dark .btn-outline:hover { background: var(--sand); color: var(--espresso); }
.cta-band .btn-outline {
  border-color: var(--sand);
  color: var(--cream);
}
.cta-band .btn-outline:hover {
  background: var(--sand);
  color: var(--espresso);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(181, 138, 132, 0.28), transparent 52%),
    radial-gradient(ellipse at 85% 70%, rgba(104, 78, 67, 0.14), transparent 48%),
    linear-gradient(160deg, var(--cream) 0%, var(--sand) 100%);
  overflow: hidden;
}
.hero-inner { padding: 3rem 0 4rem; max-width: 42rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--espresso);
  margin: 0 0 1rem;
}
.brand-mark {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-lead { font-size: 1.15rem; color: var(--walnut); margin: 0 0 1rem; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.hero-highlights li {
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--espresso); background: rgba(181, 138, 132, 0.2); padding: 0.35rem 0.75rem; border-radius: 999px;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; max-width: 28rem; }
.stat-value { font-family: var(--font-heading); font-size: 2rem; color: var(--espresso); font-weight: 600; }
.stat-label { font-size: 0.85rem; color: var(--walnut); }

.page-hero {
  background: var(--espresso);
  color: var(--cream);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); }
.page-hero p { margin: 0; color: rgba(242, 230, 217, 0.82); max-width: 36rem; }

/* Cards & grids */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(59, 42, 37, 0.12); }
.card-featured { outline: 2px solid var(--rose); }
.program-level { color: var(--mauve); font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 700; font-family: var(--font-body); }
.program-name { margin: 0.35rem 0; color: var(--espresso); font-size: 1.35rem; }
.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text-muted);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rose);
}

.quote-card { position: relative; }
.quote-card blockquote {
  font-family: var(--font-quote); font-size: 1.15rem; margin: 0 0 1rem; color: var(--espresso); font-style: italic;
}
.sample-badge {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--sand); color: var(--walnut); padding: 0.2rem 0.5rem; border-radius: 999px;
}

.diff-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.diff-table th, .diff-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--cream-dark); }
.diff-table th { background: var(--espresso); color: var(--cream); font-family: var(--font-heading); font-weight: 600; }
.diff-table td:last-child { color: var(--espresso); font-weight: 600; }

.journey-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem;
  border-bottom: 3px solid transparent; transition: 0.25s ease; box-shadow: var(--shadow);
}
.journey-card:hover { border-bottom-color: var(--rose); }
.journey-card h3 { margin: 0 0 0.5rem; color: var(--espresso); letter-spacing: 0.04em; }

.meet-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .meet-grid { grid-template-columns: 200px 1fr; } }
.avatar { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto; background: var(--sand); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  background: rgba(181, 138, 132, 0.22); color: var(--espresso); padding: 0.35rem 0.85rem;
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}

.timeline { display: grid; gap: 1.25rem; }
.timeline-item {
  display: grid; gap: 0.35rem; padding: 1.25rem 1.5rem;
  background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--rose); box-shadow: var(--shadow);
}
.timeline-year { color: var(--mauve); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); }

.cta-band {
  background: var(--espresso); color: var(--cream); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 0.75rem; color: var(--cream); }

/* Forms */
.form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); max-width: 32rem;
}
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--espresso); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--sand);
  border-radius: 0.75rem; font: inherit; background: var(--cream); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: 2px solid var(--rose); border-color: transparent;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 3rem;
}
.password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--walnut);
  cursor: pointer;
  padding: 0;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--espresso);
  background: rgba(181, 138, 132, 0.2);
  outline: none;
}
.password-toggle svg { display: block; }
.password-toggle [hidden] { display: none !important; }
.success-box {
  background: rgba(217, 183, 172, 0.35); border: 1px solid var(--rose);
  border-radius: var(--radius); padding: 1.5rem; color: var(--espresso);
}

.flash { padding: 0.85rem 1.15rem; border-radius: 0.75rem; margin: 1rem 0; }
.flash-error { background: #f5e4e2; color: #6b3030; }
.flash-success { background: #e8efe4; color: #3a4d32; }
.flash-info { background: rgba(217, 183, 172, 0.4); color: var(--espresso); }

details.faq {
  background: var(--white); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; box-shadow: var(--shadow);
}
details.faq summary { cursor: pointer; font-weight: 600; color: var(--espresso); }
details.faq p { margin: 0.75rem 0 0; color: var(--text-muted); }

/* Footer */
.footer { background: var(--espresso); color: rgba(242, 230, 217, 0.85); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { color: var(--cream); margin: 0 0 1rem; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); }
.footer a { color: rgba(242, 230, 217, 0.8); display: block; margin-bottom: 0.45rem; }
.footer a:hover { color: var(--sand); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(242, 230, 217, 0.15); font-size: 0.85rem; }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; color: var(--text-muted); }
.prose h2 { color: var(--espresso); margin: 2rem 0 0.75rem; }

.animate-fade-up { animation: fade-up 0.7s ease-out both; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Blog */
.blog-list { display: grid; gap: 2rem; }
.blog-card {
  display: grid;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 700px) {
  .blog-card { grid-template-columns: 240px 1fr; align-items: stretch; }
}
.blog-card-image img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.blog-card-body h2 a { color: var(--espresso); }
.blog-card-body h2 a:hover { color: var(--rose); }
.blog-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.blog-featured {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  max-height: 420px;
  object-fit: cover;
}
.blog-body { line-height: 1.7; color: var(--text); }
.blog-body p { margin: 0 0 1.1rem; }
.blog-body h2, .blog-body h3 { color: var(--espresso); margin: 1.75rem 0 0.75rem; }
.blog-body img { border-radius: var(--radius); margin: 1rem 0; }
.blog-body a { text-decoration: underline; }
