/* ══════════════════════════════════════════════════════
   Sorrisinho Daycare — styles.css
   Mobile-first, no framework
══════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────── */
:root {
  --green-deep:    #1e6641;
  --green-mid:     #2d7a4f;
  --green-light:   #e6f4ec;
  --green-border:  #b8dfc8;
  --gold:          #c98a00;
  --gold-light:    #f5d97a;
  --gold-pale:     #fef8e0;
  --cream:         #fdf8f0;
  --cream-dark:    #f5ede0;
  --white:         #ffffff;
  --text-dark:     #1a2b1e;
  --text-body:     #3d4e43;
  --text-muted:    #6b7c72;
  --text-light:    #8fa396;
  --error:         #c0392b;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     24px;
  --radius-full:   9999px;
  --transition:    200ms ease;
  --font-body:     'Nunito', sans-serif;
  --font-display:  'Playfair Display', serif;
  --max-width:     1120px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Layout helpers ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section--tinted {
  background: var(--green-light);
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-full);
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}

.section--tinted .section-label {
  background: var(--white);
}

em { font-style: italic; color: var(--green-mid); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-deep);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(30,102,65,.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30,102,65,.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--full { width: 100%; }

.btn-spinner {
  width: 1.25rem;
  height: 1.25rem;
  animation: spin .75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,240,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-deep);
  flex-shrink: 0;
}

.logo-sun {
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}

/* Desktop nav */
.main-nav {
  display: none;
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: .25rem;
}

.main-nav a {
  padding: .45rem .85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .925rem;
  color: var(--text-body);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover { background: var(--green-light); color: var(--green-deep); }

.main-nav .nav-cta {
  background: var(--green-deep);
  color: var(--white) !important;
  box-shadow: 0 2px 8px rgba(30,102,65,.25);
}

.main-nav .nav-cta:hover { background: var(--green-mid) !important; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .7rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--green-border);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-body);
  transition: border-color var(--transition), background var(--transition);
}

.lang-toggle:hover { border-color: var(--green-mid); background: var(--green-light); }
.lang-divider { color: var(--text-light); }
.lang-active { color: var(--green-deep); }
.lang-inactive { color: var(--text-muted); }

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.2rem;
  height: 2.2rem;
  padding: .3rem;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-toggle:hover { background: var(--green-light); }

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 4rem 0 0 0;
  background: var(--cream);
  z-index: 99;
  padding: 1.5rem 1.25rem;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  border-top: 1px solid var(--cream-dark);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav ul { display: flex; flex-direction: column; gap: .5rem; }

.mobile-nav a {
  display: block;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: background var(--transition);
}

.mobile-nav a:hover { background: var(--green-light); color: var(--green-deep); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 98;
  backdrop-filter: blur(2px);
}

.nav-overlay.open { display: block; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(145deg, #1a5c3a 0%, #2d7a4f 55%, #1e6641 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  background: var(--gold-light);
}

.hero-circle--1 { width: 420px; height: 420px; top: -120px; right: -80px; }
.hero-circle--2 { width: 280px; height: 280px; bottom: 60px; left: -60px; opacity: .08; }
.hero-circle--3 { width: 160px; height: 160px; top: 40%; left: 42%; opacity: .06; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .75rem;
  opacity: .85;
}

.hero-headline {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.hero-headline em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  font-size: 1.05rem;
  padding: .9rem 2.25rem;
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(201,138,0,.4);
}

.hero-cta:hover {
  background: #b07a00;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,138,0,.5);
}

.hero-note {
  margin-top: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 0;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ── About ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-text p { font-size: 1.05rem; color: var(--text-body); }

.about-cards {
  display: grid;
  gap: 1rem;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.about-card__icon { font-size: 1.6rem; margin-bottom: .6rem; }
.about-card h3 { color: var(--green-deep); }
.about-card p { font-size: .95rem; color: var(--text-muted); }

/* ── Program ────────────────────────────────────────── */
.program-intro {
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.program-grid {
  display: grid;
  gap: 1.25rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.program-card__age {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: .3rem;
}

.program-card__range {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.program-card ul { display: flex; flex-direction: column; gap: .45rem; }

.program-card li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text-body);
}

.program-card li::before {
  content: '✦';
  color: var(--gold);
  font-size: .7rem;
  margin-top: .35rem;
  flex-shrink: 0;
}

.program-notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--text-body);
}

.program-notice span { font-size: 1.2rem; flex-shrink: 0; margin-top: .05rem; }
.program-notice p { margin: 0; }

/* ── Waitlist Form ──────────────────────────────────── */
.waitlist {
  background: var(--white);
}

.waitlist-intro {
  max-width: 580px;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.waitlist-form {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  max-width: 700px;
}

.form-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group--full { margin-bottom: 1.25rem; }

label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-dark);
}

.required { color: var(--green-mid); margin-left: .15rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input:hover { border-color: var(--green-border); }

input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,122,79,.15);
}

input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .5;
  cursor: pointer;
}

.field-error {
  font-size: .82rem;
  color: var(--error);
  min-height: 1em;
}

.form-privacy {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Form states */
.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-success__icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { margin-bottom: .75rem; color: var(--green-deep); }
.form-success p { color: var(--text-muted); }

.form-error-msg {
  background: #fdf0ef;
  border: 1px solid #f0b8b3;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  max-width: 700px;
}

.form-error-msg p { color: var(--error); margin: 0; font-size: .95rem; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-sun { color: var(--gold-light); font-size: 1.3rem; }
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  display: inline-block;
  margin-left: .35rem;
}

.footer-brand p { margin-top: .5rem; font-size: .85rem; }

.footer-contact p { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.footer-contact a { color: var(--gold-light); transition: opacity var(--transition); display: block; margin-bottom: .3rem; }
.footer-contact a:hover { opacity: .75; }
.footer-location { font-size: .85rem; }

.lang-toggle--footer {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
}

.lang-toggle--footer:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}

.footer-bottom {
  padding: 1.25rem 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ── Focus visible ───────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Responsive breakpoints ─────────────────────────── */

/* sm: 480px */
@media (min-width: 480px) {
  .about-cards { grid-template-columns: 1fr 1fr; }
}

/* md: 768px */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .section { padding: 6rem 0; }

  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .lang-toggle { margin-left: 0; }

  .hero { min-height: 88vh; padding: 6rem 0 7rem; }
  .hero-content { max-width: 620px; }

  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 3.5rem; }
  .about-cards { grid-template-columns: 1fr; }

  .program-grid { grid-template-columns: repeat(3, 1fr); }

  .form-row { grid-template-columns: 1fr 1fr; }

  .waitlist-form { padding: 2.5rem 2.5rem; }

  .footer-inner { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .about-cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
