/* Willow Creek School — design system.
   Forest green + cream + gold. Deliberately distinct from any embedded widget
   so embeds read as a separate piece dropped into a real school site. */

:root {
  --green: #1f4d3a;
  --green-dark: #143226;
  --green-soft: #2a6249;
  --gold: #c9a23a;
  --gold-soft: #e3c46b;
  --cream: #f7f4ec;
  --ink: #1c2620;
  --muted: #5b6b62;
  --line: #e4ded0;
  --white: #fff;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 10px 30px rgba(20, 50, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
h1, h2, h3, h4, .brand strong { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0.6rem 0; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 700; color: var(--gold); margin: 0 0 0.5rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Utility bar */
.utilbar { background: var(--green-dark); color: #cfe0d6; font-size: 0.8rem; }
.utilbar__row { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0; gap: 1rem; }
.utilbar__links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.utilbar a { color: #cfe0d6; }
.utilbar a:hover { color: #fff; }

/* Masthead + nav (injected by site.js) */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.masthead__row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand:hover { text-decoration: none; }
.brand__crest { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--green); color: var(--cream); font-family: 'Fraunces', serif; font-weight: 700; letter-spacing: 0.02em; box-shadow: inset 0 0 0 2px var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 1.3rem; color: var(--green-dark); }
.brand__text small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.mainnav { display: flex; align-items: center; gap: 1.25rem; }
.mainnav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.mainnav a:hover { color: var(--green); text-decoration: none; }
.mainnav a.active { color: var(--green); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }

/* Buttons */
.btn { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 0; transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--green-dark); }
.btn--primary:hover { background: var(--gold-soft); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--ondark { background: var(--gold); color: var(--green-dark); }

/* Hero (home) */
.hero { position: relative; color: var(--cream); padding: clamp(3rem, 8vw, 6rem) 0; background: linear-gradient(180deg, rgba(31,77,58,0.94), rgba(20,50,38,0.96)); }
.hero__inner { max-width: 720px; }
.hero__lede { font-size: 1.12rem; color: #e7efe8; margin-top: 1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero .eyebrow { color: var(--gold-soft); }

/* Announcement strip */
.announce { background: var(--gold); color: var(--green-dark); font-weight: 600; font-size: 0.9rem; }
.announce__row { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; justify-content: center; text-align: center; }
.announce a { color: var(--green-dark); text-decoration: underline; }

/* Interior page header */
.pagehead { background: linear-gradient(180deg, rgba(31,77,58,0.96), rgba(20,50,38,0.97)); color: var(--cream); padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.pagehead .eyebrow { color: var(--gold-soft); }
.pagehead h1 { color: var(--cream); }
.pagehead p { color: #e7efe8; max-width: 640px; margin-top: 0.6rem; }
.crumbs { font-size: 0.8rem; color: #bcd2c4; margin-bottom: 0.6rem; }
.crumbs a { color: #bcd2c4; }

/* Sections */
.section { padding: clamp(2.4rem, 6vw, 4.2rem) 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--green-dark); color: var(--cream); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section__lede { max-width: 660px; color: var(--muted); margin-top: 0.4rem; }
.section--dark .section__lede { color: #cfe0d6; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--green); }
.stat span { font-size: 0.82rem; color: var(--muted); }
.stats--float { margin-top: -2rem; position: relative; z-index: 2; }

/* Info tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; transition: border-color 0.15s, transform 0.05s; }
.tile:hover { border-color: var(--green); text-decoration: none; transform: translateY(-2px); }
.tile h3 { color: var(--green-dark); }
.tile p { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.tile__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #e8efe9; color: var(--green); margin-bottom: 0.7rem; }

/* Card grids */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card--quiet { background: var(--cream); }
.card h3 { margin-bottom: 0.3rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__img { height: 160px; border-radius: 10px; object-fit: cover; width: 100%; margin-bottom: 0.9rem; background: #dfe7e0; }
.tag { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--green); background: #e8efe9; padding: 0.18rem 0.5rem; border-radius: 999px; margin-bottom: 0.6rem; }
.link { font-weight: 600; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.4rem; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.portrait { border-radius: var(--radius); background: #dfe7e0; aspect-ratio: 4/5; width: 100%; box-shadow: var(--shadow); }
.figure { border-radius: var(--radius); background: #dfe7e0; aspect-ratio: 16/10; width: 100%; box-shadow: var(--shadow); }

/* Lists: events / news */
.list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.list li { padding: 0.7rem 0; border-top: 1px solid var(--line); display: flex; gap: 0.9rem; align-items: baseline; }
.list li:first-child { border-top: 0; }
.date { display: inline-flex; flex: none; min-width: 3.4rem; font-weight: 700; color: var(--green); }
.datebox { flex: none; width: 56px; text-align: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.datebox b { display: block; background: var(--green); color: var(--cream); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.15rem 0; }
.datebox span { display: block; font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; padding: 0.2rem 0; }
.newsitem { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: start; }
.newsitem:first-of-type { border-top: 0; }
.newsitem .card__img { height: 120px; margin: 0; }

/* Staff / directory */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.staff { text-align: center; }
.staff__avatar { width: 84px; height: 84px; border-radius: 999px; background: #dfe7e0; margin: 0 auto 0.6rem; box-shadow: inset 0 0 0 3px var(--gold); }
.staff b { display: block; color: var(--green-dark); }
.staff span { font-size: 0.85rem; color: var(--muted); }

/* Schedule table (static fallback look; the real schedule is embedded) */
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 0.9rem; max-width: 560px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--green-dark); margin-bottom: 0.25rem; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.65rem 0.75rem; font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }

/* Embed slot — invisible until a widget mounts (no scaffolding on a real site). */
.embed-slot:has(iframe) { margin-top: 1.4rem; }

/* Callout */
.callout { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 1.2rem 1.4rem; }

/* Footer (injected by site.js) */
.footer { background: var(--green-dark); color: #cfe0d6; padding: 3rem 0 1.4rem; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: var(--cream); font-size: 0.95rem; margin-bottom: 0.7rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0.35rem 0; font-size: 0.9rem; }
.footer a { color: #cfe0d6; }
.footer a:hover { color: #fff; }
.footer .brand__text strong { color: var(--cream); }
.footer__addr { color: #9fb6a8; font-size: 0.9rem; margin-top: 0.8rem; }
.footer__fine { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1rem; font-size: 0.8rem; color: #9fb6a8; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .mainnav { gap: 0.8rem; font-size: 0.88rem; overflow-x: auto; }
  .stats, .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .cards-2, .staff-grid { grid-template-columns: 1fr 1fr; }
  .split, .split--even { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mainnav a:not(.btn) { font-size: 0.84rem; }
  .cards-3, .cards-2, .staff-grid, .stats, .tiles { grid-template-columns: 1fr; }
  .newsitem { grid-template-columns: 1fr; }
  .utilbar__links a:nth-child(n+3) { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
}
