/* =========================================================================
   CECE'S ABACUS JOURNEY — SITE STYLES
   -------------------------------------------------------------------------
   HOW TO RESTYLE THE WHOLE SITE
   Everything below the ":root" block reads its colors, fonts, radii and
   shadows from the CSS variables defined there. Change a value once in
   :root and it updates on every page automatically.
   ========================================================================= */

:root {
  /* ---- Brand palette --------------------------------------------------- */
  --color-cream: #FDF6F1;       /* main page background */
  --color-blush: #FCEAE6;       /* soft secondary background / footer */
  --color-card: #FFFFFF;        /* card background */
  --color-navy: #0F2A4A;        /* headings, nav text, dark buttons */
  --color-navy-soft: #35516E;   /* secondary body text on light bg */
  --color-coral: #EE6F6D;       /* primary accent / buttons / links */
  --color-coral-dark: #DD5654;  /* hover state for coral */
  --color-coral-tint: #FDE7E5;  /* pale coral for badges/highlights */
  --color-gold: #D9A441;        /* icons, stars, borders, numbers */
  --color-gold-tint: #FBEED2;   /* pale gold background */
  --color-text: #4A4438;        /* default body copy */
  --color-text-muted: #8A8478;
  --color-border: #F0E1D8;

  /* ---- Typography -------------------------------------------------------
     Display face  : elegant serif for all headings
     Script face   : cursive accent for a single flourish word per section
     Body face     : friendly rounded sans for everything else            */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Shape & shadow ---------------------------------------------------*/
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-round: 999px;
  --shadow-soft: 0 10px 30px rgba(15, 42, 74, 0.08);
  --shadow-lift: 0 16px 40px rgba(15, 42, 74, 0.14);

  /* ---- Layout ------------------------------------------------------------*/
  --container-width: 1180px;
  --section-space: 88px;
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  margin: 0 0 .4em;
  line-height: 1.15;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.script {
  font-family: var(--font-script);
  color: var(--color-coral);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 14px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-gold);
}

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-heading p { color: var(--color-text-muted); font-size: 17px; margin-top: 10px; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-round);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--color-navy); color: #fff; }
.btn-primary:hover { background: #0A1F38; box-shadow: var(--shadow-lift); }

.btn-coral { background: var(--color-coral); color: #fff; }
.btn-coral:hover { background: var(--color-coral-dark); box-shadow: var(--shadow-lift); }

.btn-outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: #fff; }

/* =========================================================================
   HEADER / NAV  (populated by js/nav.js from js/config.js)
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--color-navy); line-height: 1.1; }
.brand-tagline { font-size: 12px; color: var(--color-text-muted); letter-spacing: .03em; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--color-coral); }
.nav-links a.active { color: var(--color-coral); border-color: var(--color-coral); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 32px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
}

/* =========================================================================
   HERO PATTERN (shared background flourish, used at bottom of hero sections)
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero-pattern {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background-image: radial-gradient(circle at 10px 0, transparent 12px, var(--color-blush) 12.5px);
  background-size: 40px 40px;
  background-position: center bottom;
  opacity: .7;
  pointer-events: none;
}

/* =========================================================================
   STAT PILLS / STAT BAR
   ========================================================================= */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px;
}
.stat-item { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 0 12px; border-left: 1px solid var(--color-border); }
.stat-item:first-child { border-left: none; }
.stat-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-coral-tint);
  border: 1.5px solid var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-coral); flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-number { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--color-navy); line-height: 1; }
.stat-label { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

@media (max-width: 760px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat-item { border-left: none; }
}

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.icon-badge {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-coral-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-coral); margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.gold { background: var(--color-gold-tint); color: var(--color-gold); }
.icon-badge.navy { background: #E9EEF4; color: var(--color-navy); }

/* =========================================================================
   SECTIONS
   ========================================================================= */
section { padding: var(--section-space) 0; }
.section-alt { background: var(--color-blush); }

/* =========================================================================
   FOOTER  (populated by js/nav.js)
   ========================================================================= */
.site-footer-cta {
  background: var(--color-blush);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.site-footer-cta-left { display: flex; align-items: center; gap: 16px; }
.site-footer-cta .icon-badge { margin: 0; background: #fff; }

.site-footer { background: var(--color-blush); padding: 20px 0 32px; margin-top: 60px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--color-navy); }
.footer-links a.active, .footer-links a:hover { color: var(--color-coral); }
.footer-copy { font-size: 12px; color: var(--color-text-muted); text-align: center; width: 100%; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-coral); }
.footer-social svg { width: 17px; height: 17px; }

/* =========================================================================
   GALLERY GRID + LIGHTBOX
   ========================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .gallery-grid, .gallery-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }

.gallery-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-blush);
  border: 1px solid var(--color-border);
  cursor: pointer;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-tile:hover img { transform: scale(1.06); }

.gallery-tile.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--color-text-muted); gap: 8px; cursor: default; }
.gallery-tile.placeholder svg { width: 28px; height: 28px; opacity: .6; }
.gallery-tile.placeholder span { font-size: 12px; }

.gallery-caption { text-align: center; margin-top: 10px; font-size: 13px; color: var(--color-navy-soft); }
.gallery-caption strong { display: block; color: var(--color-navy); font-size: 14px; }

.video-tile { position: relative; }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 42, 74, 0.28);
}
.video-play span {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.video-play svg { width: 20px; height: 20px; color: var(--color-coral); margin-left: 3px; }
.video-title-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(0deg, rgba(15,42,74,.75), transparent);
  color: #fff; font-size: 12px; font-weight: 600;
}

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 20, 30, 0.86);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-box { position: relative; width: 100%; max-width: 880px; }
.lightbox-box img { width: 100%; border-radius: var(--radius-md); }
.lightbox-video-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.lightbox-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 18px; height: 18px; color: var(--color-navy); }

/* =========================================================================
   TIMELINE (My Journey page)
   ========================================================================= */
.timeline-scroll { overflow-x: auto; padding-bottom: 12px; }
.timeline { display: flex; align-items: flex-start; gap: 0; min-width: 900px; position: relative; padding-top: 30px; }
.timeline::before {
  content: "";
  position: absolute; top: 55px; left: 30px; right: 30px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-gold) 0 6px, transparent 6px 12px);
}
.timeline-step { flex: 1; text-align: center; padding: 0 10px; position: relative; }
.timeline-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-card); border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; position: relative; z-index: 2;
  color: var(--color-navy);
}
.timeline-icon svg { width: 24px; height: 24px; }
.timeline-step.done .timeline-icon { border-color: var(--color-gold); background: var(--color-gold-tint); color: var(--color-gold); }
.timeline-step.current .timeline-icon { border-color: var(--color-coral); background: var(--color-coral); color: #fff; box-shadow: 0 0 0 6px var(--color-coral-tint); }
.timeline-card { background: var(--color-card); border-radius: var(--radius-md); padding: 16px 10px; box-shadow: var(--shadow-soft); }
.timeline-step.current .timeline-card { border: 2px solid var(--color-coral); }
.timeline-card h4 { font-size: 15px; margin-bottom: 2px; }
.timeline-card p { font-size: 12px; color: var(--color-text-muted); margin: 0; }
.timeline-date { font-size: 11px; color: var(--color-gold); font-weight: 600; margin-top: 8px; }
.timeline-check { margin-top: 10px; color: var(--color-gold); }

/* Progress bars */
.progress-row { margin-bottom: 16px; }
.progress-row:last-child { margin-bottom: 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--color-navy); font-weight: 600;}
.progress-track { height: 8px; border-radius: var(--radius-round); background: var(--color-blush); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-round); background: var(--color-coral); }

/* =========================================================================
   FORMS (Contact page)
   ========================================================================= */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--color-navy); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-coral); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================================================
   UTILITY LAYOUT CLASSES
   ========================================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  :root { --section-space: 56px; }
  h1 { font-size: 34px !important; }
}

.rounded-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.pill-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-round);
  background: var(--color-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill-tag.gold { background: var(--color-gold); }
.pill-tag.coral { background: var(--color-coral); }
.pill-tag.outline { background: transparent; color: var(--color-navy); border: 1.5px solid var(--color-navy); }
