/* =========================================================
   Mrs. Clark's Pre-K Class — Room A108
   Cambridge Elementary School, South Brunswick School District
   Boho, muted, preschool-friendly theme — palette pulled from the
   2026-2027 Welcome Letter (sage, terracotta, mustard, dusty blue).
   ========================================================= */

:root {
  --sage: #6e8874;
  --sage-dark: #4c6153;
  --sage-deep: #38493f;
  --terracotta: #c77357;
  --terracotta-dark: #a85940;
  --mustard: #e2ae52;
  --mustard-dark: #c68f37;
  --dusty-blue: #5f8fa6;
  --dusty-blue-dark: #477084;

  --cream: #f8f4ea;
  --pastel-mint: #e8ede8;
  --pastel-peach: #f4e7d6;
  --pastel-blue: #e8f0f3;
  --pastel-blush: #f7e9df;

  --ink: #25352d;
  --ink-soft: #5b6b5f;
  --white: #ffffff;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 14px 32px rgba(56, 73, 63, 0.14);
  --shadow-card: 0 6px 18px rgba(56, 73, 63, 0.09);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Georgia", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--sage-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }

/* Soft rainbow squiggle under h2 — echoes the letter's rainbow mark */
h2::after {
  content: "";
  display: block;
  width: 66px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--mustard), var(--dusty-blue));
}

.section-head h2::after { margin-left: auto; margin-right: auto; }
.card h2::after, .notice h2::after { display: none; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--dusty-blue-dark); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

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

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

.eyebrow-label {
  font-family: "Nunito", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  display: block;
  margin-bottom: 6px;
}

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sage-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* -------------------- Header / Nav -------------------- */
.site-header {
  background: var(--sage);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  border-bottom: 5px solid var(--mustard);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

.brand-text .brand-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.brand-text .brand-sub {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 0.76rem;
  color: #e6ede4;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #f3f1e7;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255,255,255,0.16);
  text-decoration: none;
  transform: translateY(-1px);
}

.main-nav a.active {
  background: var(--mustard);
  color: var(--sage-deep);
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 14% 26%, rgba(255,255,255,0.10) 0, transparent 9%),
    radial-gradient(circle at 84% 18%, rgba(226,174,82,0.22) 0, transparent 11%),
    radial-gradient(circle at 90% 72%, rgba(199,115,87,0.18) 0, transparent 10%),
    radial-gradient(circle at 10% 82%, rgba(95,143,166,0.20) 0, transparent 9%);
  pointer-events: none;
}

/* Soft wave divider along the bottom of the hero, in the page cream color */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg { width: 100%; height: auto; display: block; }

.rainbow-deco {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 1;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .rainbow-deco { width: 64px; height: auto; top: 14px; right: 16px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 68px 24px 96px;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero h1 { color: var(--white); }

.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.38);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero p.lead {
  color: #f2efe6;
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

.page-hero {
  padding: 48px 24px 24px;
  text-align: center;
}

.page-hero .eyebrow { margin-bottom: 14px; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: var(--white);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn:hover {
  background: var(--terracotta-dark);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.btn.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: none;
}

.btn.btn-outline:hover {
  background: rgba(255,255,255,0.16);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

/* -------------------- Resource links -------------------- */
.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid var(--pastel-mint);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  font-weight: 800;
  color: var(--sage-deep);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
  border-color: var(--terracotta);
  text-decoration: none;
  transform: translateY(-3px);
}

.link-card .ico {
  font-size: 1.5rem;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-blue);
}

.link-list .link-card:nth-child(3n+1) .ico { background: var(--pastel-peach); }
.link-list .link-card:nth-child(3n+2) .ico { background: var(--pastel-blue); }
.link-list .link-card:nth-child(3n+3) .ico { background: var(--pastel-mint); }

/* -------------------- Sections -------------------- */
.section {
  padding: 60px 24px;
  position: relative;
}

.section.alt {
  background: var(--pastel-mint);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--pastel-mint);
  border-top: 6px solid var(--mustard);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

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

/* -------------------- Placeholder image tiles -------------------- */
.placeholder-tile {
  position: relative;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(135deg, var(--pastel-blue) 0 14px, #f6faf9 14px 28px);
  border: 3px dashed var(--terracotta);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
  padding: 18px;
  min-height: 160px;
  aspect-ratio: 4 / 3;
}

.placeholder-tile::before {
  content: "🖼️";
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.placeholder-tile .ph-label {
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  max-width: 90%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}

.gallery-grid .placeholder-tile:nth-child(4n+1) { border-color: var(--terracotta); }
.gallery-grid .placeholder-tile:nth-child(4n+2) { border-color: var(--mustard-dark); }
.gallery-grid .placeholder-tile:nth-child(4n+3) { border-color: var(--sage); }
.gallery-grid .placeholder-tile:nth-child(4n+4) { border-color: var(--dusty-blue); }

/* -------------------- Info cards (education, experience, hours, etc.) -------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--pastel-mint);
  text-align: center;
}

.info-card .ico {
  font-size: 1.7rem;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.info-grid .info-card:nth-child(3n+1) .ico { background: var(--pastel-peach); }
.info-grid .info-card:nth-child(3n+2) .ico { background: var(--pastel-blue); }
.info-grid .info-card:nth-child(3n+3) .ico { background: var(--pastel-mint); }

.info-card h3 { margin-bottom: 6px; }

.pastel-card {
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.pastel-card.peach { background: var(--pastel-peach); }
.pastel-card.blue { background: var(--pastel-blue); }
.pastel-card.mint { background: var(--pastel-mint); }
.pastel-card.blush { background: var(--pastel-blush); }
.pastel-card h3 { margin-bottom: 8px; }
.pastel-card p:last-child { margin-bottom: 0; }

.pastel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

/* -------------------- Quote / note callout -------------------- */
.notice {
  border-radius: var(--radius-md);
  padding: 24px 28px;
  background: var(--pastel-peach);
  border: 2px solid var(--terracotta);
  color: var(--ink);
  margin: 20px 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
}

.notice strong { color: var(--terracotta-dark); }

.notice.info {
  background: var(--pastel-blue);
  border-color: var(--dusty-blue);
  font-family: "Nunito", sans-serif;
  font-style: normal;
  font-size: 1rem;
}
.notice.info strong { color: var(--dusty-blue-dark); }

.notice.plain {
  font-family: "Nunito", sans-serif;
  font-style: normal;
  font-size: 0.98rem;
  background: var(--pastel-mint);
  border-color: var(--sage);
}

/* -------------------- Date cards (Dates & Reminders) -------------------- */
.date-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.date-badge {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Nunito", sans-serif;
}

.date-badge .dm {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.date-badge .dd {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.date-badge.terracotta { background: var(--terracotta); }
.date-badge.sage { background: var(--sage); }
.date-badge.dusty-blue { background: var(--dusty-blue); }

.date-body h3 { margin-bottom: 6px; }
.date-body p { margin-bottom: 0; }

@media (max-width: 560px) {
  .date-card { flex-direction: column; align-items: flex-start; }
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--sage-deep);
  color: #dce6de;
  padding: 44px 24px 28px;
  margin-top: 40px;
  border-top: 6px solid var(--terracotta);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-col h4 {
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-col a {
  color: #d7e4d9;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.82rem;
  color: #aebfb0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

/* -------------------- Responsive nav -------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 4px;
  }

  .main-nav a { display: block; }

  .nav-bar { flex-wrap: wrap; }
}
