/* =========================================================
   Peony Kids Centre — static site stylesheet
   ========================================================= */

:root {
  --primary: #fe8eb6;
  --primary-dark: #c84b7f;
  --primary-deep: #8e2f5c;
  --primary-light: #ffe9f2;
  --accent: #ffc63c;
  --accent-dark: #e6a91e;
  --teal: #35bfc4;
  --ink: #3b2a33;
  --muted: #7d6672;
  --line: #f4e3eb;
  --bg: #fff9fc;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 26px rgba(200, 75, 127, 0.10);
  --shadow-lg: 0 16px 44px rgba(200, 75, 127, 0.18);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary-deep); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.05em; }
ul { padding-left: 1.25rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #6b2145; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #5a3d00; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-deep); }
.btn-ghost { border-color: var(--primary); color: var(--primary-dark); background: #fff; }
.btn-ghost:hover { background: var(--primary); color: #6b2145; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, .97);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='78'%3E%3Ccircle cx='14' cy='16' r='3.5' fill='%23fe8eb6' opacity='.28'/%3E%3Ccircle cx='96' cy='60' r='3' fill='%2335bfc4' opacity='.28'/%3E%3Crect x='60' y='10' width='7' height='7' rx='2' fill='%23ffc63c' opacity='.33'/%3E%3Cpath d='M120 18l4.5 9h-9z' fill='%23ff9f6b' opacity='.3'/%3E%3Ccircle cx='36' cy='64' r='3' fill='%23ffc63c' opacity='.3'/%3E%3Crect x='8' y='50' width='6' height='6' rx='2' fill='%2335bfc4' opacity='.25'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
/* Child-themed bunting garland along the top of the header */
.header-garland {
  display: block;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='12'%3E%3Cpath d='M0 0h18l-9 12z' fill='%23fe8eb6'/%3E%3Cpath d='M18 0h18l-9 12z' fill='%23ffc63c'/%3E%3Cpath d='M36 0h18l-9 12z' fill='%2335bfc4'/%3E%3Cpath d='M54 0h18l-9 12z' fill='%23ff9f6b'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 72px 12px;
  position: relative;
  z-index: 2;
}
.header-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.header-deco span { position: absolute; border-radius: 50%; }
.header-deco .s1 { width: 120px; height: 120px; right: -40px; top: -34px; background: radial-gradient(circle at 35% 35%, #ffe3ef, #fe8eb6); opacity: .25; }
.header-deco .s2 { width: 72px; height: 72px; left: 44%; bottom: -48px; background: radial-gradient(circle at 35% 35%, #fff0c8, #ffc63c); opacity: .28; }
.header-deco .s3 { width: 92px; height: 92px; left: -38px; bottom: -52px; background: radial-gradient(circle at 35% 35%, #d9f7f8, #35bfc4); opacity: .22; }
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .96rem; color: var(--ink); white-space: nowrap; }
.brand-text span { font-size: .64rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1px; }
.nav li { position: relative; }
.nav a.nav-link {
  display: block;
  padding: 8px 11px;
  color: var(--ink);
  font-weight: 600;
  font-size: .86rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a.nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav a.nav-link.active { color: var(--primary-dark); }
.nav .has-drop > a::after { content: " \25BE"; font-size: .7em; color: var(--muted); }
.nav .drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  display: none;
  flex-direction: column;
  margin: 0;
}
.nav .drop li { width: 100%; }
.nav .drop a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav .drop a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav li.has-drop:hover .drop,
.nav li.has-drop:focus-within .drop { display: flex; }

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

.header-cta.btn { padding: 8px 16px; font-size: .84rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #4a1a33;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(62, 16, 40, .92) 0%, rgba(62, 16, 40, .62) 55%, rgba(62, 16, 40, .28) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; padding: 96px 0 104px; max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p.lead { font-size: 1.15rem; color: #e8f4f8; margin-bottom: 1.8em; }
.hero .btn + .btn { margin-left: 12px; }
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  background: rgba(255,255,255,.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section.tight { padding: 54px 0; }
.section.alt { background: #fff; }
.section.tint { background: var(--primary-light); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 14px auto 0;
}
.section-head.left h2::after { margin-left: 0; }
.eyebrow-dark {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 26px; }
.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(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card .card-body h3 { margin-bottom: .4em; }
.card .card-body p { color: var(--muted); font-size: .95rem; }
.card .card-body .more { margin-top: auto; font-weight: 600; font-size: .92rem; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split h2 { margin-top: 0; }

/* ---------- Feature list ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 6px 0 6px 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c84b7f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-dark) 68%, #e0628f);
  color: #fff;
  padding: 62px 0 58px;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #ffe3ef; margin: 0; max-width: 720px; }
.breadcrumb { font-size: .85rem; color: #ffd0e2; margin-bottom: 14px; }
.breadcrumb a { color: #fff; opacity: .9; }

/* ---------- Article / prose ---------- */
.prose { max-width: 800px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; box-shadow: var(--shadow); }
.prose blockquote {
  margin: 1.4em 0; padding: 18px 22px; border-left: 4px solid var(--primary);
  background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted);
}
.byline { color: var(--muted); font-size: .92rem; margin-bottom: 1.6em; }

/* ---------- Reviews ---------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow); position: relative;
}
.review::before { content: "\201C"; font-size: 3.6rem; line-height: 1; color: var(--primary-light); position: absolute; top: 12px; right: 22px; font-family: Georgia, serif; }
.review p { color: #3d4c56; font-style: italic; margin-bottom: 1em; position: relative; }
.review .who { font-weight: 700; font-style: normal; color: var(--primary-dark); font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; display: block; box-shadow: var(--shadow); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* ---------- Info / contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card h3 { color: var(--primary-dark); font-size: 1.05rem; }
.info-card p { margin: 0; color: var(--muted); }
.info-card .icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); font-size: 1.5rem; margin-bottom: 14px;
}
.info-card:nth-child(1) .icon { background: #ffe9f2; }
.info-card:nth-child(2) .icon { background: #fff4da; }
.info-card:nth-child(3) .icon { background: #dcf6f6; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem;
  border: 1px solid #cfdde2; border-radius: var(--radius-sm); background: #fbfdfe; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #ffe3ef; }

/* ---------- Blog list ---------- */
.post-item {
  display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px;
}
.post-item img { width: 100%; height: 100%; object-fit: cover; min-height: 210px; }
.post-item .post-body { padding: 26px 28px 26px 0; }
.post-item .post-body h3 { margin-bottom: .3em; }
.post-item .post-body p { color: var(--muted); font-size: .95rem; }
.post-meta { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 20px;
  color: #e7cdd9;
  background-color: #331a27;
  background-image:
    radial-gradient(rgba(255, 255, 255, .06) 1.6px, transparent 2px),
    radial-gradient(rgba(254, 142, 182, .14) 2px, transparent 2.4px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  overflow: hidden;
}
.footer-wave { display: block; width: 100%; height: 54px; margin-top: -1px; position: relative; z-index: 2; }
.footer-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.footer-deco span { position: absolute; opacity: .16; }
.footer-deco .f1 { width: 170px; height: 170px; border-radius: 50%; background: #fe8eb6; top: -50px; right: -40px; }
.footer-deco .f2 { width: 92px; height: 92px; border-radius: 50%; background: #ffc63c; bottom: 26px; left: -34px; }
.footer-deco .f3 { width: 58px; height: 58px; background: #35bfc4; top: 46%; right: 7%; transform: rotate(18deg); border-radius: 12px; }
.footer-deco .f4 { width: 0; height: 0; border-left: 32px solid transparent; border-right: 32px solid transparent; border-bottom: 54px solid #ff9f6b; bottom: 34px; right: 22%; opacity: .14; }
.footer-deco .f5 { width: 44px; height: 44px; border-radius: 50%; background: #ffc63c; top: 26%; left: 38%; opacity: .12; }
.footer-main { padding: 58px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #f3c9da; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 6px; font-size: .93rem; }
.site-footer .brand img { height: 46px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; font-size: .85rem; color: #c3a1b0; position: relative; z-index: 1; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--muted); }
.pill {
  display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.price { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .brand-text span { display: none; }
}

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    display: block;
  }
  .nav.open { max-height: 90vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; }
  .nav a.nav-link { padding: 13px 10px; border-radius: 8px; }
  .nav .drop {
    position: static; display: flex; box-shadow: none; border: 0;
    border-left: 2px solid var(--primary-light); border-radius: 0;
    margin: 2px 0 6px 10px; padding: 2px 0;
  }
  .nav .has-drop > a::after { content: ""; }
  .nav-toggle { display: block; }
}

@media (max-width: 780px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .split-media { order: -1; }
  .hero-inner { padding: 68px 0 74px; }
  .hero .btn + .btn { margin: 12px 0 0; display: inline-block; }
  .post-item { grid-template-columns: 1fr; }
  .post-item .post-body { padding: 0 22px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 34px 26px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .brand img { height: 38px; }
}
