/* ==========================================================================
   Heather's Child's Place — Modern Stylesheet
   A warm, child-friendly yet professional design for a family childcare center.
   ========================================================================== */

:root {
  --green: #2f7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --amber: #f9a825;
  --amber-light: #fff8e1;
  --cream: #faf7f2;
  --ink: #2b2b2b;
  --muted: #5f6b5f;
  --white: #ffffff;
  --line: #e3e0d8;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--green-dark); font-weight: 700; }
h1 { font-size: 2.1rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.6rem; margin: 0 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.brand-name { font-size: 1.15rem; font-weight: 800; color: var(--green-dark); line-height: 1.15; }
.brand-tag { font-size: 0.78rem; color: var(--muted); }

/* ---------- Navigation ---------- */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }
.main-nav .active a { color: var(--green-dark); background: var(--green-light); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--green-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--green-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #3a2a00; }
.btn-amber:hover { background: #f57f17; color: #3a2a00; }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-light), #f1f8e9 60%, var(--amber-light));
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem;
  color: var(--green); font-weight: 700;
}
.section-head p { color: var(--muted); }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card .icon { font-size: 2rem; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--green); font-weight: 800;
}

/* ---------- Callout / CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #e8f5e9; max-width: 640px; margin: 0 auto 20px; }

/* ---------- Info boxes ---------- */
.info-box { background: var(--green-light); border-left: 4px solid var(--green); padding: 16px 20px; border-radius: 8px; margin: 0 0 20px; }
.warn-box { background: var(--amber-light); border-left: 4px solid var(--amber); padding: 16px 20px; border-radius: 8px; margin: 0 0 20px; }

/* ---------- Tables ---------- */
table.data { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--green); color: #fff; font-weight: 700; }
table.data tr:nth-child(even) { background: #f7faf7; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--green-dark); }
.faq details[open] summary { margin-bottom: 8px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 20px 0 0; }
.breadcrumb a { color: var(--green); }
.breadcrumb span { margin: 0 6px; color: var(--line); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--green-light), var(--amber-light)); padding: 40px 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 6px; }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #d7ecd8; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 30px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #cfe8d0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 0; font-size: 0.85rem; color: #b7d3b8; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px; }
  .main-nav a { padding: 12px; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 40px 0; }
  .section { padding: 40px 0; }
}
