/* ================================================
   SEED-INSPIRED DESIGN SYSTEM — global.css
   Warm cream • Deep navy • Sage green
   DM Serif Display + DM Sans
   ================================================ */


/* ─── TOKENS ─────────────────────────────────── */
:root {
  --cream:      #EDE8DF;
  --cream-dark: #E0DAD0;
  --cream-deep: #D4CCBF;
  --navy:       #0D1B2A;
  --navy-mid:   #1C3148;
  --sage:       #4A7A65;
  --sage-light: #6B9E86;
  --sand:       #C4A882;
  --sand-light: #D9C4A3;
  --white:      #FDFAF6;
  --text:       #0D1B2A;
  --muted:      #6B6560;
  --border:     rgba(13, 27, 42, 0.12);
  --gold:       #C9A227;
  --gold-light: #E8D5A3;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  12px;
  --radius-xl:  40px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(13,27,42,0.06);
  --shadow-md:  0 4px 24px rgba(13,27,42,0.08);
  --shadow-lg:  0 12px 60px rgba(13,27,42,0.12);

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ─── LAYOUT ─────────────────────────────────── */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

.container--narrow {
  width: min(90%, 760px);
  margin-inline: auto;
}

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-logo-mark svg { width: 16px; height: 16px; }

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  display: block;
  padding: 0 20px;
  height: 64px;
  line-height: 64px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--navy);
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-nav--outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.btn-nav--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-nav--fill {
  background: var(--navy);
  color: var(--white);
}

.btn-nav--fill:hover {
  background: var(--navy-mid);
}

/* ─── MARQUEE / TICKER ───────────────────────── */
.marquee-bar {
  background: var(--navy);
  padding: 11px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 24px;
}

.marquee-track span::before {
  content: '·';
  color: var(--sand);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION LABELS ─────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--sand);
}

/* ─── DISPLAY TYPE ───────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--navy);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--navy);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--navy);
}

.body-lg {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

.body-sm {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  border: none;
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

.btn--sage:hover {
  background: var(--sage-light);
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ─── DIVIDERS ───────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ─── PLACEHOLDER BLOCKS ─────────────────────── */
/* Use these where real images will go */
.ph {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ph-icon {
  opacity: 0.3;
}

.ph-tag {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* Organic circular placeholder */
.ph--circle {
  border-radius: 50%;
}

/* Rounded rectangular placeholder */
.ph--rounded {
  border-radius: var(--radius-xl);
}

/* ─── CARDS ──────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo-name {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 13px; }

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-up {
  animation: fadeUp 0.8s var(--ease) both;
}

.animate-up-2 { animation-delay: 0.15s; }
.animate-up-3 { animation-delay: 0.28s; }
.animate-up-4 { animation-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── MENU BUTTON (mobile & tablet) ──────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.navbar.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-toggle:focus-visible,
.nav-links a:focus-visible,
.btn-nav:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    column-gap: 12px;
  }
  .nav-logo { margin-right: auto; min-height: 64px; order: 1; }
  .nav-logo-name { white-space: nowrap; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-inner > nav { order: 3; }
  .nav-cta { order: 4; }

  /* Menu panel: hidden until the button is pressed */
  .nav-inner > nav,
  .nav-cta { display: none; width: 100%; }

  .navbar.nav-open .nav-inner > nav {
    display: block;
    border-top: 1px solid var(--border);
  }
  .navbar.nav-open .nav-cta {
    display: flex;
    gap: 10px;
    padding: 16px 0 20px;
  }

  .nav-links { flex-direction: column; }
  .nav-links a {
    height: auto;
    line-height: 1.4;
    padding: 15px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: var(--border);
    color: var(--gold);
  }
  .nav-cta .btn-nav {
    flex: 1;
    text-align: center;
    padding: 13px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .navbar.nav-open .nav-cta { flex-direction: column; align-items: stretch; }
}

/* ─── LAYOUT HELPERS FOR SMALL SCREENS ───────── */
@media (max-width: 760px) {
  /* Two-column text sections become one column */
  .stack-mobile { grid-template-columns: 1fr !important; gap: 32px !important; }
}

@media (max-width: 600px) {
  .container,
  .container--narrow { width: calc(100% - 40px); }
  .pad-card { padding: 28px 22px !important; }
  .btn { padding: 13px 24px; }
  .display-xl { letter-spacing: -1px; }
  .display-lg { letter-spacing: -1px; }
  .footer { padding: 56px 0 32px; }
}

/* Fees + schedule tables: each row becomes a card on phones */
@media (max-width: 640px) {
  .stack-table thead { display: none; }
  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td { display: block; width: 100%; }
  .stack-table tr { padding: 14px 0; }
  .stack-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 6px 20px !important;
    text-align: right;
  }
  .stack-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }
  .stack-table td:first-child {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400 !important;
    color: var(--navy);
    text-align: left;
    padding-bottom: 10px !important;
  }
  .stack-table td:first-child::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .animate-up { animation: none; }
  html { scroll-behavior: auto; }
}