/* ============================================================
   Talia Children's Home — palette drawn from the logo
   Purple (primary) · Rose Pink · Gold · Green · Blue on cream
   ============================================================ */
:root {
  --purple: #6a4c93;
  --purple-dark: #472e6f;
  --purple-soft: #efeaf6;
  --pink: #d14d82;
  --pink-dark: #b23a6b;
  --pink-soft: #fbeaf1;
  --gold: #f2a93b;
  --gold-soft: #fdf1dc;
  --green: #7cb342;
  --blue: #2e86c1;
  --cream: #faf7f2;
  --ink: #2e2438;
  --ink-soft: #5a5165;
  --white: #ffffff;
  --border: #ece6dd;

  --shadow-sm: 0 2px 8px rgba(71, 46, 111, 0.08);
  --shadow-md: 0 12px 32px rgba(71, 46, 111, 0.12);
  --shadow-lg: 0 24px 60px rgba(71, 46, 111, 0.18);
  --radius: 16px;
  --radius-lg: 28px;
  --max: 1140px;

  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--purple-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple-soft); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--purple); }
.brand-tag { font-size: .72rem; color: var(--pink); font-weight: 700; letter-spacing: .02em; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: .95rem; transition: background .2s, color .2s;
}
.primary-nav a:hover { background: var(--purple-soft); color: var(--purple); }
.primary-nav a.active { background: var(--purple-soft); color: var(--purple); }
.primary-nav .nav-cta { background: var(--pink); color: #fff; }
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta.active { background: var(--pink-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--purple); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 15%, var(--gold-soft) 0%, transparent 60%),
    radial-gradient(55% 55% at 10% 90%, var(--pink-soft) 0%, transparent 60%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--font-head); font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 14px; }
.eyebrow-pink { color: var(--pink); }
.eyebrow-gold { color: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 20px; }
.hl-purple { color: var(--purple); }
.hl-pink { color: var(--pink); }
.hl-gold { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 42ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--purple); }
.hero-stats span { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-logo { width: min(360px, 90%); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; }
.blob-purple { width: 220px; height: 220px; background: var(--purple-soft); top: -10px; left: -6px; }
.blob-gold { width: 180px; height: 180px; background: var(--gold-soft); bottom: -12px; right: -6px; }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 66px 0 54px; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 80% 0%, var(--gold-soft) 0%, transparent 55%),
    radial-gradient(55% 80% at 15% 100%, var(--pink-soft) 0%, transparent 55%),
    var(--purple-soft);
  opacity: .8;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; list-style: none; font-size: .85rem; font-weight: 700; margin-bottom: 18px; color: var(--ink-soft); }
.breadcrumb a { color: var(--purple); }
.breadcrumb li + li::before { content: "\203A"; margin-right: 8px; color: var(--pink); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--purple), var(--purple-dark)); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: #e6ddf2; max-width: 52ch; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-band .btn-primary { background: var(--gold); color: var(--purple-dark); }
.cta-band .btn-primary:hover { background: #e5991f; }

/* ---------- Prose (info pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 8px; }
.prose .callout { background: var(--purple-soft); border-left: 5px solid var(--purple); border-radius: 12px; padding: 18px 20px; margin: 22px 0; }
.prose .callout p { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Teaser links ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.arrow-link { font-family: var(--font-head); font-weight: 600; color: var(--purple); display: inline-flex; align-items: center; gap: 6px; }
.arrow-link:hover { color: var(--pink); }
.arrow-link::after { content: "\2192"; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }
.section h2 { font-weight: 700; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.hl-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.hl-card h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.hl-card p { font-size: .92rem; margin: 0; }
.hl-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.dot-blue { background: var(--blue); }
.dot-green { background: var(--green); }
.about-quote { background: linear-gradient(150deg, var(--purple), var(--purple-dark)); color: #fff; padding: 40px 34px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-quote blockquote { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.4; margin-bottom: 18px; }
.about-quote cite { font-style: normal; font-weight: 700; color: var(--gold); }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: var(--cream); border-radius: var(--radius); padding: 30px 24px; text-align: center; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.value-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.v-purple::before { background: var(--purple); }
.v-pink::before { background: var(--pink); }
.v-green::before { background: var(--green); }
.v-gold::before { background: var(--gold); }
.value-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; }
.v-purple .value-icon { background: var(--purple); }
.v-pink .value-icon { background: var(--pink); }
.v-green .value-icon { background: var(--green); }
.v-gold .value-icon { background: var(--gold); }
.value-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-top { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 12px; display: inline-block; padding-bottom: 6px; border-bottom: 3px solid; }
.top-purple { color: var(--purple); border-color: var(--purple); }
.top-pink { color: var(--pink); border-color: var(--pink); }
.top-green { color: var(--green); border-color: var(--green); }
.top-gold { color: var(--gold); border-color: var(--gold); }
.top-blue { color: var(--blue); border-color: var(--blue); }
.service-card p { color: var(--ink-soft); }

/* ---------- Facilities ---------- */
.facilities-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.facilities-list li { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.fac-mark { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--gold)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.contact-copy > p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-details li { display: flex; flex-direction: column; }
.c-label { font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); font-weight: 600; }
.contact-details a, .contact-details span:not(.c-label) { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.contact-details a:hover { color: var(--purple); }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px; background: var(--cream); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
.form-note { font-size: .82rem; color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-dark); color: #efeaf6; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { width: 72px; height: 72px; border-radius: 14px; }
.footer-brand p { font-family: var(--font-head); color: var(--gold); font-size: 1.05rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-nav h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #d8cde8; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom p { font-size: .88rem; color: #c9bcdd; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: auto; }
  .about-quote { order: 2; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .facilities-list { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 420px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px; }
  .primary-nav a { padding: 12px 14px; }
  .primary-nav .nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 560px) {
  .values-grid, .services-grid, .facilities-list, .about-highlights { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .brand-tag { display: none; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
