/* ===========================
   White Oak Children's Academy
   styles.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Quicksand:wght@500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand palette (new) */
  --blue-pastel:  #cce8f7;   /* dominant brand tone */
  --blue-soft:    #e8f4fc;
  --blue-primary: #2596be;   /* deeper blue — buttons, links, accents */
  --blue-hover:   #1a6a8a;
  --cream:        #fcfaf7;   /* warmer page bg */
  --amber:        #b76e4e;   /* warm terracotta for tag */
  --amber-light:  #fbe9df;
  --text:         #3a3530;   /* warm dark */
  --text-light:   #6b6660;
  --white:        #ffffff;
  --border:       #d9ebf5;
  --shadow:       0 4px 18px rgba(50, 80, 110, 0.08);
  --shadow-hover: 0 10px 28px rgba(50, 80, 110, 0.12);
  --radius:       18px;
  --radius-sm:    10px;
  --nav-height:   70px;
  --max-width:    1100px;

  /* Legacy aliases — keep older rules working without find/replace */
  --green-mid:   var(--blue-primary);
  --green-dark:  var(--blue-hover);
  --green-light: var(--blue-pastel);
  --green-hover: var(--blue-hover);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--cream); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Quicksand', sans-serif; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--blue-primary); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; color: var(--blue-primary); margin-bottom: .4rem; font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

/* ---------- Container ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: 999px;
  font-family: 'Quicksand', 'Lato', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 150, 190, 0.25);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37, 150, 190, 0.35); }
.btn-outline {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 150, 190, 0.25);
}
.btn-outline:hover { background: var(--blue-hover); border-color: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37, 150, 190, 0.35); }

/* ---------- Section Spacing ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--green-light); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title p { max-width: 600px; margin: .5rem auto 0; }

/* ================================
   HEADER & NAV
   ================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--blue-hover);
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  height: var(--nav-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.logo-img {
  height: 50px;
  width: auto;
}
.logo-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  max-width: 180px;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: .15rem; }
.primary-nav a {
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .45rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.primary-nav a:hover,
.primary-nav a.active { background: rgba(255,255,255,.15); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  padding: .5rem 0 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.mobile-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ================================
   ANNOUNCEMENT BANNER
   ================================ */
.announcement-banner {
  background: var(--white);
  border-bottom: 3px solid var(--green-light);
  padding: .85rem 1.5rem;
  text-align: center;
}
.announcement-banner p {
  margin: 0;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.announcement-banner .tag {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-right: .4rem;
}
.announcement-banner .tag-notice { background: #c4614a; } /* terracotta red */
.announcement-banner .tag-open   { background: #5a8a63; } /* terracotta green */

/* ================================
   HERO
   ================================ */
.hero {
  position: relative;
  background: var(--green-dark);
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 640px;
  padding: 3rem 0;
}
.hero-content h1 { color: var(--white); margin-bottom: .75rem; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero-content .tagline {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  margin-bottom: .5rem;
}

/* ================================
   HOME — ABOUT / PROGRAMS / STAFF CARDS
   ================================ */
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.home-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.home-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--green-light);
}
.home-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.home-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.home-card-body p { flex: 1; }
.home-card-body .btn { align-self: flex-start; margin-top: 1rem; }

/* ================================
   HOME — EMAIL CTA
   ================================ */
.email-cta { text-align: center; }
.email-cta a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-mid);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s;
}
.email-cta a:hover { text-decoration-color: var(--green-mid); }

/* ================================
   ABOUT PAGE
   ================================ */
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-body img { border-radius: var(--radius); box-shadow: var(--shadow); }
.calendar-dates { margin-top: 1.5rem; }
.calendar-dates h3 { margin-bottom: .75rem; }
.calendar-dates ul { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; }
.calendar-dates li { font-size: .9rem; color: var(--text-light); padding: .3rem 0; border-bottom: 1px solid var(--border); }
.calendar-dates li strong { color: var(--text); }
.highlight-list { margin: .75rem 0 1rem 1rem; }
.highlight-list li { list-style: disc; color: var(--text-light); margin-bottom: .3rem; font-size: .95rem; }

/* ================================
   PROGRAMS PAGE
   ================================ */
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.program-card-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 1.25rem 1.5rem;
}
.program-card-header h3 { color: var(--white); font-size: 1.35rem; margin: 0; }
.program-card-header .age-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  font-size: .8rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin-top: .35rem;
  font-weight: 700;
}
.program-card-body { padding: 1.4rem 1.5rem; flex: 1; }
.program-detail { display: flex; gap: .6rem; margin-bottom: .6rem; align-items: flex-start; font-size: .92rem; }
.program-detail .label {
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  min-width: 80px;
}
.program-detail .value { color: var(--text-light); }
.program-card-body p { font-size: .92rem; margin-top: .75rem; }

.summer-section { background: var(--green-light); border-radius: var(--radius); padding: 2rem; margin-top: 2rem; }
.summer-section h3 { color: var(--green-dark); margin-bottom: .5rem; }

.quote-block {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 2px solid var(--border);
  margin-top: 2rem;
}
.quote-block blockquote {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.3rem;
  color: var(--green-dark);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}
.quote-block cite { display: block; margin-top: .75rem; font-size: .9rem; color: var(--text-light); font-style: normal; }

/* ================================
   STAFF PAGE
   ================================ */
.staff-section-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-primary);
  border-bottom: 2px solid var(--blue-pastel);
  padding-bottom: .5rem;
  margin: 2.5rem 0 1.25rem;
}
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.staff-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: 50% 70%;
}
.staff-photo-placeholder {
  width: 100%;
  height: 220px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--green-mid);
}
.staff-card-body { padding: 1.2rem 1rem; }
.staff-card-body h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.staff-card-body .title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-mid);
  margin-bottom: .6rem;
}
.staff-card-body p { font-size: .85rem; line-height: 1.55; }

/* ================================
   NEWS & EVENTS
   ================================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.news-card h3 { margin-bottom: .5rem; }
.news-card .date { font-size: .82rem; color: var(--green-mid); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }

/* ================================
   CONTACT PAGE
   ================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-detail .icon { font-size: 1.25rem; margin-top: .1rem; flex-shrink: 0; }
.contact-detail p { margin: 0; }
.contact-detail a { color: var(--green-mid); }
.contact-detail a:hover { text-decoration: underline; }

.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.contact-form h3 { margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green-mid); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error { display: none; color: #b91c1c; font-size: .82rem; margin-top: .3rem; }
.form-error.visible { display: block; }
.form-success {
  display: none;
  background: var(--green-light);
  border: 1.5px solid var(--green-mid);
  color: var(--green-dark);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
}
.form-success.visible { display: block; }

/* ================================
   FAQ PAGE
   ================================ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
}
.faq-question:hover { background: var(--green-light); }
.faq-question.active { background: var(--green-light); color: var(--green-dark); }
.faq-chevron { font-size: 1rem; color: var(--green-mid); transition: transform .25s; flex-shrink: 0; }
.faq-question.active .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-answer.open { max-height: 400px; }
.faq-answer-inner { padding: 0 1.4rem 1.25rem; color: var(--text-light); font-size: .95rem; line-height: 1.7; }

/* ================================
   FAQ & FORMS PAGE
   ================================ */
.forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.form-download-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.form-download-card .icon { font-size: 2.5rem; }
.form-download-card h3 { font-size: 1rem; margin: 0; }
.form-download-card p { font-size: .88rem; margin: 0; }

/* ================================
   FOOTER
   ================================ */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.footer-col h4 {
  font-family: 'Quicksand', sans-serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .75rem;
}
.footer-col p, .footer-col a { font-size: .88rem; color: rgba(255,255,255,.75); line-height: 1.7; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.social-links { display: flex; gap: .75rem; margin-top: .5rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  font-size: 1rem;
  transition: background .2s;
}
.social-links a:hover { background: rgba(255,255,255,.25); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* ================================
   PAGE HERO (inner pages)
   ================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-hover));
  padding: 2.5rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.75); margin: .4rem 0 0; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
  .home-cards { grid-template-columns: 1fr 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .calendar-dates ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .home-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .staff-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .hero { min-height: 320px; }
  .hero-content h1 { font-size: 1.6rem; }
}
