/* ============================================================
   Marati Family Day Care — "Sunshine & Soft"
   Design tokens
   ============================================================ */
:root {
  --cream:     #FFFBEB;
  --butter:    #FDE68A;
  --butter-soft: #FEF3C7;
  --marigold:  #F59E0B;
  --marigold-deep: #D97706;
  --cocoa:     #78350F;
  --cocoa-soft: #92400E;
  --white:     #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;

  --radius: 22px;
  --radius-small: 12px;
  --shadow: 0 10px 30px -12px rgba(120, 53, 15, 0.18);
  --shadow-soft: 0 4px 14px -6px rgba(120, 53, 15, 0.12);

  --space-section: clamp(4rem, 9vw, 7rem);
  --container: 1120px;
}

/* ============ Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.25rem; }

p + p { margin-top: 0.9em; }
a { color: var(--cocoa); }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.section { padding: var(--space-section) 0; scroll-margin-top: 100px; }
.section-butter { background: var(--butter-soft); }
.center { text-align: center; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cocoa-soft);
  margin-bottom: 0.7rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--cocoa); color: var(--cream); padding: 0.6rem 1rem; z-index: 99;
}
.skip-link:focus { left: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--cocoa-soft);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--cocoa); box-shadow: var(--shadow); }

.btn-ghost {
  border: 2px solid var(--butter);
  color: var(--cocoa-soft);
}
.btn-ghost:hover { background: var(--butter-soft); }

.btn-dark {
  background: var(--cocoa);
  color: var(--butter);
  font-size: 1.15rem;
  padding: 1.05rem 2.3rem;
}
.btn-dark:hover { background: #5f2a0c; }

.btn-small { padding: 0.7rem 1.3rem; font-size: 0.95rem; }

/* Attention glow for primary conversion CTAs */
.btn-glow { animation: ctaGlow 2.4s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 6px 18px -6px rgba(120, 53, 15, 0.35), 0 0 0 0 rgba(245, 158, 11, 0); }
  50%      { box-shadow: 0 6px 18px -6px rgba(120, 53, 15, 0.45), 0 0 28px 7px rgba(245, 158, 11, 0.6); }
}
.btn-glow:hover { animation-play-state: paused; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--butter);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.header-right { display: flex; align-items: center; gap: 0.6rem; }
.header-cta { display: none; }

.wordmark {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  text-decoration: none;
}
.wordmark em { font-style: normal; font-weight: 400; color: var(--cocoa-soft); }
.wordmark-sun { width: 26px; height: 26px; fill: var(--marigold); stroke: var(--marigold); stroke-width: 1.6; }
.wordmark-sun line { stroke: var(--marigold); }

.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav-links a:not(.btn):hover { color: var(--marigold-deep); }

.nav-toggle {
  display: none;
  font: inherit; font-weight: 700;
  background: var(--butter); border: none; border-radius: var(--radius-small);
  padding: 0.65rem 1rem; cursor: pointer; color: var(--cocoa);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--cream); border-bottom: 1px solid var(--butter);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem; gap: 0.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; width: 100%; padding: 0.75rem 0.25rem; }
  .nav-links .btn-small { display: none; }
  .header-cta { display: inline-block; }
}

@media (max-width: 400px) { .wordmark em { display: none; } }

/* ============ Hero ============ */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: -140px; right: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--butter) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  position: relative;
}
.hl { background: linear-gradient(transparent 62%, var(--butter) 62%); padding: 0 0.1em; }
.lede { font-size: 1.2rem; color: var(--cocoa-soft); margin: 1.1rem 0 1.6rem; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero-facts { margin-top: 1.3rem; font-weight: 700; font-size: 0.95rem; color: var(--cocoa-soft); letter-spacing: 0.02em; }

.hero-photo { aspect-ratio: 4 / 3.4; }

.wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.wave svg { width: 100%; height: 38px; }
.wave path { fill: var(--butter-soft); }

@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
}

/* ============ Photo slots (placeholders until real photos land) ============ */
.photo-slot {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--butter-soft), var(--butter));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.placeholder-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.ph-sun { fill: var(--marigold); opacity: 0.75; }
.ph-hill { fill: var(--marigold-deep); opacity: 0.25; }
.ph-tree { fill: none; stroke: var(--cocoa-soft); stroke-width: 3; opacity: 0.4; }
.photo-label {
  position: relative; z-index: 1;
  background: rgba(255, 251, 235, 0.85);
  color: var(--cocoa-soft);
  font-size: 0.8rem; font-weight: 700;
  padding: 0.35rem 0.9rem; border-radius: 999px;
}

/* ============ Trust bar ============ */
.trust { background: var(--butter-soft); padding: 2.2rem 0; }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem; text-align: center;
}
.trust-item p { font-size: 1rem; line-height: 1.45; color: var(--cocoa-soft); }
.trust-item strong { color: var(--cocoa); font-size: 1rem; }
.trust-icon { font-size: 1.6rem; display: block; margin-bottom: 0.4rem; }

@media (max-width: 780px) { .trust-inner { grid-template-columns: repeat(2, 1fr); } }

/* ============ About ============ */
.about-inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about-photo { aspect-ratio: 1; max-width: 400px; border-radius: 50% var(--radius) 50% var(--radius); }
@media (max-width: 780px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
}

/* ============ Why cards ============ */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem; margin-top: 2.4rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon { font-size: 2rem; display: block; margin-bottom: 0.7rem; }
.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { font-size: 1rem; color: var(--cocoa-soft); }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2.4rem;
}
.gallery-grid .photo-slot { aspect-ratio: 4 / 3; }
.gallery-grid .photo-slot:nth-child(even) { background: linear-gradient(150deg, var(--butter), var(--butter-soft)); }
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-hint { margin-top: 1.6rem; font-weight: 700; color: var(--cocoa-soft); font-size: 0.95rem; }

.gallery-tile { cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, aspect-ratio 0.35s ease; }
.gallery-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-tile:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.tile-reveal {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(255, 251, 235, 0.95);
  padding: 1.1rem 1.4rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: left;
  transform: translateY(102%);
  transition: transform 0.35s ease;
}
.tile-reveal strong { font-family: var(--font-display); font-size: 1.15rem; }
.tile-reveal p { margin-top: 0.3rem; font-size: 0.95rem; color: var(--cocoa-soft); }

.gallery-tile.open { grid-column: 1 / -1; aspect-ratio: auto; padding-bottom: 5.2rem; }
.gallery-tile.open img {
  position: static;
  width: auto; height: auto;
  max-width: 100%; max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius-small);
}
.gallery-tile.open .tile-reveal { transform: translateY(0); }
.gallery-tile.open .photo-label { opacity: 0; transition: opacity 0.25s ease; }

/* ============ Testimonials ============ */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem; margin-top: 2.4rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.testimonial-card::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.4rem; line-height: 1;
  color: var(--marigold);
  position: absolute; top: 0.6rem; left: 1.2rem;
}
.testimonial-card blockquote { padding-top: 1.6rem; font-size: 1rem; color: var(--cocoa-soft); font-style: italic; }
.testimonial-card figcaption { margin-top: 1rem; font-weight: 700; font-size: 0.9rem; }
.testimonial-card cite { font-style: normal; }
.testimonial-card.is-placeholder blockquote { opacity: 0.55; }

/* ============ FAQ ============ */
.faq-inner { max-width: 760px; }
.faq details {
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-soft);
  margin-top: 0.9rem;
  padding: 1.05rem 1.3rem;
}
.faq details:first-of-type { margin-top: 2.2rem; }
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--marigold); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.8rem; color: var(--cocoa-soft); font-size: 1rem; }

/* ============ Enquire ============ */
.enquire {
  background: linear-gradient(160deg, var(--butter) 0%, var(--marigold) 130%);
  padding: var(--space-section) 0;
  text-align: center;
  scroll-margin-top: 100px;
}
.enquire-inner { max-width: 620px; }
.enquire-sun { width: 46px; height: 46px; fill: var(--cocoa); stroke: var(--cocoa); stroke-width: 1.6; margin-bottom: 0.8rem; animation: spin 40s linear infinite; }
.enquire-sun line { stroke: var(--cocoa); }
@keyframes spin { to { transform: rotate(360deg); } }
.enquire p { color: var(--cocoa); max-width: 32em; margin-left: auto; margin-right: auto; }
.enquire .btn-dark { margin-top: 1.6rem; }
.enquire-phone { margin-top: 1.2rem; font-weight: 700; }
.enquire-phone span { font-weight: 400; font-size: 1rem; }
.sms-copied {
  margin-top: 1rem; font-weight: 700;
  background: var(--cream); display: inline-block;
  padding: 0.5rem 1.2rem; border-radius: 999px;
}
.sms-copied[hidden] { display: none; }

/* ============ Footer ============ */
.site-footer { background: var(--cocoa); color: var(--butter-soft); padding: 2rem 0; text-align: center; }
.site-footer a { color: var(--butter); }
.site-footer p { font-size: 0.9rem; }
.site-footer p + p { margin-top: 0.4rem; opacity: 0.8; }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .enquire-sun { animation: none; }
  .tile-reveal, .gallery-tile { transition: none; }
  .btn-glow { animation: none; box-shadow: 0 6px 18px -6px rgba(120, 53, 15, 0.4), 0 0 22px 5px rgba(245, 158, 11, 0.5); }
}
