/* ============================================================
   S2C Spelling Bea — stylesheet
   Brand palette: honey yellow, charcoal black, warm off-white
   ============================================================ */

:root {
  --honey: #f5b500;
  --honey-deep: #e0a000;
  --ink: #1c1b18;
  --ink-soft: #3a3833;
  --cream: #fffdf7;
  --cream-tint: #fbf4e0;
  --paper: #ffffff;
  --muted: #6b675e;
  --line: #ece6d8;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(28, 27, 24, 0.06);
  --shadow-md: 0 14px 40px rgba(28, 27, 24, 0.12);
  --shadow-lg: 0 28px 60px rgba(28, 27, 24, 0.18);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--honey-deep); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.7rem); }
h3 { font-size: 1.25rem; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--honey-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--honey);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--honey-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.primary-nav a:hover { background: var(--cream-tint); color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
}
.nav-cta:hover { background: var(--honey-deep) !important; color: var(--ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 181, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--honey-deep);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--honey); }

#hero-heading {
  font-size: clamp(2.6rem, 1.5rem + 6vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 0.4em;
}
.hero-voice {
  position: relative;
  display: inline-block;
  color: var(--honey-deep);
}
.hero-voice::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.16em;
  background: var(--honey);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.55;
}
.heart { color: var(--honey-deep); font-size: 0.5em; vertical-align: super; margin-left: 0.1em; }

.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 32ch;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-media { position: relative; }
.hero-media > img {
  width: 100%;
  height: auto; /* show the photo at its natural ratio — no side cropping */
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-media-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  width: clamp(90px, 11vw, 128px);
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--shadow-md);
}
.hero-media-badge img { border-radius: 50%; }

/* ============================================================
   SECTIONS — generic
   ============================================================ */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tint { background: var(--cream-tint); }
.section-head { max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section-intro-light { color: rgba(255,255,255,0.82); }

.lead-mini { font-weight: 700; margin-bottom: 0.6rem; }

.pull-quote {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--honey);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 1.6rem 0 0;
}

.callout {
  background: var(--honey);
  color: var(--ink);
  font-weight: 600;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin: 1.4rem 0;
}

.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }
.text-link:hover { color: var(--ink); }

/* Tick lists */
.tick-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.55rem; }
.tick-list li {
  position: relative;
  padding-left: 1.9rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--honey);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b18' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-repeat: no-repeat;
  background-position: center;
}
.tick-list-light li { color: rgba(255,255,255,0.92); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media { position: relative; }
.about-portrait {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-snap {
  position: absolute;
  bottom: -28px;
  right: -20px;
  width: 46%;
  border-radius: var(--radius-sm);
  border: 5px solid var(--cream);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ============================================================
   WHAT IS S2C
   ============================================================ */
.s2c-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.s2c-media { display: grid; gap: 1.2rem; }
.s2c-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.s2c-media img:first-child { aspect-ratio: 4 / 3; }
.s2c-media img:last-child { aspect-ratio: 16 / 9; }

/* ============================================================
   VOICES
   ============================================================ */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
@media (max-width: 600px) {
  .voices-grid { grid-template-columns: 1fr; }
}
.voice-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.voice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.voice-card::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  color: var(--honey);
  position: absolute;
  top: 0.4rem;
  left: 1rem;
  opacity: 0.5;
}
.voice-card blockquote {
  margin: 1.4rem 0 1.1rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.voice-card figcaption {
  margin-top: auto; /* pin the name to the bottom so equal-height cards look intentional */
  padding-top: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.voice-card figcaption::before { content: "— "; color: var(--honey-deep); }

/* ============================================================
   PARTNERSHIP (dark)
   ============================================================ */
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.partnership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.info-card h3 { margin-bottom: 0.8rem; }
.info-card p { color: rgba(255, 255, 255, 0.82); }

/* ============================================================
   CERTIFICATION
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cert-media img {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-cta {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(245, 181, 0, 0.22), transparent 60%),
    var(--cream);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 50ch; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
}
.contact-list a, .contact-list li > span:last-child { font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--honey-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand p { margin: 0; font-family: var(--font-head); font-style: italic; color: #fff; }
.footer-logo { width: 48px; height: 48px; background: #fff; border-radius: 50%; padding: 7px; object-fit: contain; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--honey); }
.footer-legal { width: 100%; margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.2rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .s2c-grid,
  .cert-grid,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-media { order: -1; max-width: 460px; margin-inline: auto; }
  .about-media { max-width: 460px; margin-inline: auto; }
  .about-snap { right: 0; }
  .cert-copy { order: -1; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .primary-nav.open { transform: translateY(0); visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem; gap: 0.35rem; }
  .primary-nav a { display: block; padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .about-snap { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
