/* ============================================
   Way Preschool — Shared Stylesheet
   Part of Way Church, Hillsboro
   ============================================ */

:root {
  --sun:        #FFC857;
  --sun-dark:   #F2A93C;
  --sky:        #4DA8DA;
  --sky-dark:   #3589BD;
  --grass:      #6FB178;
  --coral:      #F4845F;
  --coral-dark: #E0653C;
  --cream:      #FFF8EC;
  --ink:        #3B3A36;
  --ink-soft:   #6B6A66;
  --white:      #FFFFFF;
  --border:     #EFE3CC;
  --radius-lg:  22px;
  --radius-md:  14px;
  --radius-sm:  8px;
  --shadow:     0 10px 30px rgba(59, 58, 54, 0.08);
  --shadow-sm:  0 4px 14px rgba(59, 58, 54, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

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

a { color: var(--sky-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

.section-tight { padding: 40px 0; }

.bg-white { background: var(--white); }
.bg-sky-tint { background: #EAF6FC; }
.bg-sun-tint { background: #FFF6E0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--coral-dark);
  background: #FFE7DC;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-dark); }

.btn-secondary { background: var(--white); color: var(--ink); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--sky); color: var(--sky-dark); }

.btn-sky { background: var(--sky); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-sky:hover { background: var(--sky-dark); }

.btn-sun { background: var(--sun); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-sun:hover { background: var(--sun-dark); }

.btn-block { width: 100%; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text-sub {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--coral-dark); text-decoration: none; }
.nav-links a.active { color: var(--coral-dark); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 80px;
  background: linear-gradient(180deg, #FFF6E0 0%, var(--cream) 100%);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-art {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-art .tile {
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.tile-sun { background: #FFF1CC; }
.tile-sky { background: #E1F1FA; }
.tile-grass { background: #E7F4E9; }
.tile-coral { background: #FDE7DE; }

.hero h1 { margin-bottom: 18px; }
.hero p.lede { font-size: 1.15rem; max-width: 540px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 881px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.icon-sun { background: #FFF1CC; }
.icon-sky { background: #E1F1FA; }
.icon-grass { background: #E7F4E9; }
.icon-coral { background: #FDE7DE; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 56px;
  border-left: 2px dashed var(--border);
  margin-left: 22px;
}
.steps li:last-child { border-left: 2px dashed transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -22px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h4 { margin-bottom: 4px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.checkbox-row input { margin-top: 4px; }

fieldset { border: none; padding: 0; margin: 0 0 20px; }
legend {
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  margin-bottom: 10px;
  color: var(--ink);
}

.radio-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pills label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--cream);
}

.form-note {
  background: #FFF6E0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ---------- Banner / CTA strips ---------- */
.cta-strip {
  background: var(--sky);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h2, .cta-strip p { color: var(--white); }
.cta-strip p { opacity: 0.92; }

/* ---------- Pricing / payment cards ---------- */
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
}
.price-card .amount {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--coral-dark);
  margin: 10px 0;
}
.price-card .amount sup { font-size: 1rem; color: var(--ink-soft); font-family: 'Nunito', sans-serif; }
.price-card ul { text-align: left; padding-left: 0; list-style: none; margin: 18px 0; color: var(--ink-soft); font-size: 0.92rem; }
.price-card ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.price-card ul li:last-child { border-bottom: none; }

.edit-flag {
  display: inline-block;
  background: #FFE7DC;
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2F3B33;
  color: #D9E3DC;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #D9E3DC; }
.site-footer a:hover { color: var(--sun); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  color: #9FAFA5;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.map-placeholder {
  background: #3D4B41;
  border-radius: var(--radius-sm);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9FAFA5;
  font-size: 0.82rem;
  text-align: center;
  padding: 12px;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, #FFF6E0 0%, var(--cream) 100%);
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }

.alert-success {
  display: none;
  background: #E7F4E9;
  border: 1px solid #BFE0C6;
  color: #2C6B3C;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 700;
}
.alert-success.show { display: block; }
