/* ==========================================================
   Chumani Day Care Centre - stylesheet
   Brand colours taken from the logo:
   Blue #014695  |  Pink #EC2B8C
   ========================================================== */

:root {
  --blue: #014695;
  --blue-dark: #022f66;
  --blue-soft: #e8f0fb;
  --pink: #ec2b8c;
  --pink-dark: #c9186f;
  --pink-soft: #fde9f3;
  --ink: #1c2438;
  --muted: #5a6478;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(1, 70, 149, 0.10);
  --shadow-lg: 0 20px 50px rgba(1, 70, 149, 0.18);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--blue-dark);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Grid children may shrink below their content width, so nothing forces sideways scrolling */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .contact-grid > *, .footer-grid > *, .highlights-grid > * { min-width: 0; }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .6rem;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 10px 24px rgba(236, 43, 140, .35); }
.btn-primary:hover { background: var(--pink-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { color: var(--pink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue-dark); }
.brand img { height: 62px; width: auto; }
.brand-name { font-weight: 700; line-height: 1.15; font-size: 1.02rem; }
.brand-name small { display: block; font-weight: 500; color: var(--pink); font-size: .78rem; letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  padding: .55rem .95rem;
  border-radius: 999px;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-links a.active { color: #fff; background: var(--blue); }
.nav-links .nav-cta { background: var(--pink); color: #fff; margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--pink-dark); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--blue-dark);
}
.menu-toggle svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 500px at 95% -10%, rgba(236, 43, 140, .14), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(1, 70, 149, .14), transparent 60%),
    #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 span { color: var(--pink); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2rem; }
.badge {
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
}
.badge.pink { background: var(--pink-soft); color: var(--pink-dark); }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 60%;
  height: 60%;
  border-radius: 28px;
  background: var(--pink);
  z-index: -1;
  transform: rotate(3deg);
  opacity: .9;
}
.hero-media::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 42%;
  height: 42%;
  border-radius: 28px;
  background: var(--blue);
  z-index: -1;
  transform: rotate(-4deg);
}
.hero-media .float-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--blue-dark);
  font-weight: 600;
}
.float-card .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px rgba(236,43,140,.18); }

/* ---------- Highlights strip ---------- */
.highlights {
  background: var(--blue);
  color: #fff;
  padding: 26px 0;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.highlights-grid div { font-weight: 600; font-size: .98rem; }
.highlights-grid span { display: block; font-weight: 400; font-size: .85rem; opacity: .8; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.service .num {
  display: grid;
  margin-bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1f6fd0);
}
.service:nth-child(even) .num { background: linear-gradient(135deg, var(--pink), #ff5ca8); }
.service p { color: var(--muted); margin: 0; font-size: .95rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: .55rem 0 .55rem 2rem;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.photo-pair img:first-child { margin-top: 40px; aspect-ratio: 3 / 4; }
.photo-pair img:last-child { aspect-ratio: 3 / 4; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  color: #fff;
  padding: clamp(64px, 9vw, 110px) 0;
  background: linear-gradient(120deg, rgba(1,70,149,.94), rgba(1,70,149,.82) 55%, rgba(236,43,140,.75)), var(--banner, #014695);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: rgba(255,255,255,.9); max-width: 60ch; font-size: 1.1rem; margin: 0; }
.page-banner .eyebrow { color: #ffd0e8; }

/* ---------- Gallery (masonry) ---------- */
.masonry {
  columns: 3 260px;
  column-gap: 16px;
}
.masonry a {
  display: block;
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.masonry img {
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}
.masonry a::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(1,70,149,.7), rgba(1,70,149,.1));
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: opacity .3s ease;
}
.masonry a:hover img { transform: scale(1.05); }
.masonry a:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 36, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox button:hover { background: var(--pink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.info-card {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: var(--pink);
  opacity: .35;
}
.info-card h3 { color: #fff; font-size: 1.4rem; }
.info-item { display: flex; gap: 14px; margin: 22px 0; position: relative; z-index: 1; }
.info-icon {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}
.info-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; font-weight: 600; }
.info-item a, .info-item span { color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.info-item a:hover { color: #ffd0e8; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--blue-dark); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(236,43,140,.15);
}
.field .error { color: var(--pink-dark); font-size: .82rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--pink); }
.field.invalid .error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 12px; display: none; font-weight: 500; }
.form-status.ok { display: block; background: var(--blue-soft); color: var(--blue-dark); }
.form-status.err { display: block; background: var(--pink-soft); color: var(--pink-dark); }

/* Honeypot: hidden from people and screen readers, visible only to bots that fill every field */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--blue-dark); }

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

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -60px; top: -90px;
  border-radius: 50%;
  background: var(--pink);
  opacity: .22;
}
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { margin: 0; opacity: .9; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.82);
  padding: 56px 0 24px;
  font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #ffd0e8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand img { height: 74px; width: auto; background: #fff; border-radius: 16px; padding: 6px; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .9rem;
}
.designed-by strong { color: #fff; }
.designed-by a { color: #ffb3d9; font-weight: 600; border-bottom: 1px solid transparent; }
.designed-by a:hover { border-bottom-color: #ffb3d9; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4, .highlights-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { margin-top: 12px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem 1rem; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  .brand img { height: 52px; }
  .brand-name { font-size: .92rem; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(100% - 32px, var(--max)); }
  .grid-3, .grid-4, .highlights-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .info-card, .form-card { padding: 28px 22px; }
  .photo-pair img:first-child { margin-top: 24px; }
  .map-wrap iframe { height: 320px; }
  .brand-name small { display: none; }
  .brand img { height: 46px; }
  .masonry { columns: 2 150px; }
  .hero-media::before, .hero-media::after { display: none; }
  .hero-media .frame { aspect-ratio: 4 / 3; }
}

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