/* ============================================================
   Belize Friends Pre-Primary School
   Palette drawn from the school's playground branding:
   sunshine yellow, sky blue, leaf green, coral red, warm cream.
   ============================================================ */

:root {
  --red:    #E8564C;
  --yellow: #FFC93C;
  --green:  #68B84C;
  --blue:   #58B7E6;
  --blue-deep: #2E86C1;
  --ink:    #3A3335;
  --ink-soft: #6B625C;

  /* official Belize Friends School logo colors */
  --logo-teal:  #1B7DA4;
  --logo-green: #6FAE3F;
  --cream:  #FFF9EF;
  --cream-deep: #FFF1D9;
  --white:  #FFFFFF;

  --font-display: "Fredoka", "Trebuchet MS", "Comic Sans MS", cursive, sans-serif;
  --font-body: "Nunito", "Segoe UI", Verdana, sans-serif;

  --radius: 22px;
  --shadow: 0 6px 20px rgba(58, 51, 53, 0.10);
  --max-width: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.35em; }

p + p { margin-top: 0.9em; }

.center { text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 0.6em;
}

.section-lead {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: var(--ink-soft);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(58, 51, 53, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo { display: block; height: 54px; width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.5rem); }

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { color: var(--blue-deep); border-bottom-color: var(--yellow); }

.site-nav .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border-bottom: none;
}
.site-nav .nav-cta:hover { background: #d24338; color: var(--white); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #d24338; }

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

.btn-blue { background: var(--blue-deep); color: var(--white); margin-top: 1.2rem; }
.btn-blue:hover { background: #256fa1; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #CDEBFA 0%, #E7F6FE 70%, #F4FBFF 100%);
  padding: clamp(3rem, 8vw, 6rem) 1.5rem 5.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; z-index: 2; }

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero-title span { display: inline-block; padding: 0 0.08em; }
.w-red    { color: var(--red);    transform: rotate(-2deg); }
.w-blue   { color: var(--blue-deep); transform: rotate(1.5deg); }
.w-green  { color: var(--green);  transform: rotate(-1deg); }
.w-yellow { color: #E8A100; transform: rotate(2deg); }
.w-ink    { color: var(--ink);    transform: rotate(-1.5deg); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-sun {
  position: absolute;
  top: 34px;
  right: 6%;
  width: clamp(70px, 10vw, 120px);
  animation: sun-spin 40s linear infinite;
}

@keyframes sun-spin { to { transform: rotate(360deg); } }

.cloud { position: absolute; color: var(--white); opacity: 0.9; }
.cloud-1 { width: 130px; top: 60px; left: 5%; animation: drift 14s ease-in-out infinite alternate; }
.cloud-2 { width: 90px; top: 150px; right: 18%; animation: drift 18s ease-in-out infinite alternate-reverse; }

@keyframes drift { from { transform: translateX(0); } to { transform: translateX(28px); } }

.scallop {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 42px;
  color: var(--cream);
  display: block;
}

/* ---------------- Motto ---------------- */

.motto {
  background: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem 2.2rem;
}

.motto blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  color: var(--blue-deep);
  max-width: 760px;
  margin: 0 auto;
}

.motto-note { margin-top: 0.6rem; color: var(--ink-soft); font-style: italic; }

/* ---------------- Sections ---------------- */

.section { padding: clamp(3rem, 7vw, 5rem) 1.5rem; }

.section-inner { max-width: var(--max-width); margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.two-col.reverse { grid-template-columns: 0.85fr 1.15fr; }

/* ---------------- About ---------------- */

.about { background: var(--cream); }

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transform: rotate(1.5deg);
}

.about-illustration { display: block; width: 100%; height: auto; }

/* ---------------- Mission ---------------- */

.mission {
  background: linear-gradient(120deg, var(--logo-teal) 0%, var(--blue-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.mission-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 0.9em;
}

.mission-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------------- Values ---------------- */

.values { background: var(--white); }

.value-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 1rem;
}

.value-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border-top: 6px solid var(--yellow);
  box-shadow: 0 3px 10px rgba(58, 51, 53, 0.06);
  transition: transform 0.15s ease;
}

.value-card:hover { transform: translateY(-4px); }

.value-card.v-red    { border-top-color: var(--red); }
.value-card.v-yellow { border-top-color: var(--yellow); }
.value-card.v-green  { border-top-color: var(--green); }
.value-card.v-blue   { border-top-color: var(--blue); }

.value-letter {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.l-red    { background: var(--red); }
.l-yellow { background: #E8A100; }
.l-green  { background: var(--green); }
.l-blue   { background: var(--blue-deep); }

.value-card p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------------- SOAR ---------------- */

.soar { background: var(--cream); }

.soar-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}

.soar-photo {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 0.9rem 0.6rem;
  transform: rotate(-1.5deg);
  max-width: 430px;
  margin: 0 auto;
}

.soar-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.soar-photo figcaption {
  text-align: center;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
  padding: 0.6rem 0.2rem 0.3rem;
}

.soar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.soar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(58, 51, 53, 0.07);
}

.soar-card p { font-size: 0.95rem; color: var(--ink-soft); }

.soar-tag {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--blue-deep);
  margin-top: 2.2rem;
}

/* ---------------- Families ---------------- */

.families { background: var(--cream-deep); }

.section-inner.narrow { max-width: 720px; }

.families h2 { margin-bottom: 1em; }

/* ---------------- Our Day ---------------- */

.day { background: var(--cream-deep); }

.day-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}

.day-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(58, 51, 53, 0.07);
}

.day-card.wide { grid-column: 1 / -1; }

.day-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 13px;
}

.day-badge svg { width: 100%; height: 100%; }

.b-red    { background: #FDE4E2; color: var(--red); }
.b-blue   { background: #E0F2FC; color: var(--blue-deep); }
.b-green  { background: #E5F4DF; color: var(--green); }
.b-yellow { background: #FFF3D1; color: #E8A100; }
.b-ink    { background: #EDEAE8; color: var(--ink); }

.day-card p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------------- Busy Bees ---------------- */

.busy-bees { background: var(--white); }

.bee-illustration { display: block; width: 100%; height: auto; }

/* ---------------- Visit / Contact ---------------- */

.visit { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(58, 51, 53, 0.07);
  display: flex;
  flex-direction: column;
}

.contact-emoji { font-size: 2rem; margin-bottom: 0.6rem; }

.contact-card p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }

.contact-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 800;
  color: var(--blue-deep);
  text-decoration: none;
  word-break: break-word;
}

.contact-link:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  background: var(--ink);
  color: #EDEAE8;
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  margin-top: 42px;
}

.scallop-footer {
  top: -41px;
  bottom: auto;
  color: var(--ink);
  transform: none;
  height: 42px;
}

.footer-motto {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-details a { color: var(--blue); text-decoration: none; }
.footer-details a:hover { text-decoration: underline; }

.footer-copy { margin-top: 1rem; font-size: 0.85rem; opacity: 0.65; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .soar-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }

  .two-col.reverse .bee-art { order: 2; }

  .about-card { max-width: 420px; margin: 0 auto; }

  /* mobile nav */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
  }

  .nav-toggle-label span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 0.6rem 1.2rem 1.2rem;
    box-shadow: 0 10px 18px rgba(58, 51, 53, 0.12);
    display: none;
  }

  .site-nav a { padding: 0.7rem 0.3rem; border-bottom: 1px solid #F0EBE3; }
  .site-nav .nav-cta { text-align: center; margin-top: 0.6rem; }

  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .value-grid, .day-grid, .contact-grid, .soar-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sun, .cloud { animation: none; }
}
