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

html {
  overflow-x: hidden;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* === CSS Variables === */
:root {
  --color-primary:   #FF6B35;
  --color-secondary: #FFD166;
  --color-accent:    #06D6A0;
  --color-deep:      #073B4C;
  --color-blush:     #FFF1E6;
  --color-white:     #FFFFFF;
  --color-text:      #1A1A2E;
  --color-text-muted:#5A6472;
  --shadow-soft:     0 4px 24px rgba(7,59,76,0.10);
  --shadow-lift:     0 12px 40px rgba(7,59,76,0.18);
  --radius-card:     20px;
  --radius-btn:      50px;
}

/* === Film Grain Overlay === */
#grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* === Typography — BIG & BOLD === */
h1, h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-deep);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.accent-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--color-primary);
}

/* Big statement text */
.big-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-deep);
  letter-spacing: -0.02em;
}

/* === Text Reveal Animations === */
/* Keep each word intact on one line; words wrap at the real spaces. */
.char-reveal .char-word {
  display: inline-block;
  white-space: nowrap;
}

.char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateZ(8deg);
  filter: blur(4px);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.char-reveal.revealed .char {
  opacity: 1;
  transform: translateY(0) rotateZ(0deg);
  filter: blur(0px);
}

/* Whitespace between words */
.char-reveal .char-space {
  display: inline-block;
  width: 0.3em;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--color-blush);
}

.text-center {
  text-align: center;
}

/* === Scroll Reveal === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Scrub reveal — used by GSAP */
.scrub-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
}

/* === Parallax Layers === */
.parallax-wrap {
  position: relative;
  overflow: hidden;
}

[data-speed] {
  will-change: transform;
}

/* === Buttons === */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 18px 40px;
  border-radius: var(--radius-btn);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,107,53,0.45);
}

.btn-secondary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-deep);
  padding: 18px 40px;
  border-radius: var(--radius-btn);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6,214,160,0.45);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-deep);
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  border: 3px solid var(--color-deep);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--color-deep);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.badge--orange {
  background: rgba(255,107,53,0.15);
  color: var(--color-primary);
}

.badge--yellow {
  background: rgba(255,209,102,0.3);
  color: #b38600;
}

.badge--green {
  background: rgba(6,214,160,0.15);
  color: #059669;
}

.badge--teal {
  background: rgba(7,59,76,0.1);
  color: var(--color-deep);
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 8px auto 0;
}

.section-label {
  font-family: 'Pacifico', cursive;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: block;
}

/* === Horizontal Scroll Section === */
.hscroll-section {
  position: relative;
  overflow: hidden;
}

.hscroll-pin {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.hscroll-panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
}

.hscroll-panel--half {
  width: 50vw;
}

/* Photo-backed panels: full-bleed image + strong dark overlay so the
   white text stays crisp on top. Falls back to solid deep teal if the
   image is missing. Adjust the ::before alpha to make the photo more
   (lower numbers) or less (higher numbers) visible. */
.hscroll-panel--photo {
  background-color: var(--color-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hscroll-panel--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,59,76,0.82), rgba(7,59,76,0.66));
  z-index: 1;
}

.hscroll-panel--photo .hscroll-panel__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

/* Script eyebrow in sunshine yellow, matching the intro panel. */
.hscroll-panel--photo .section-label {
  color: var(--color-secondary);
}

/* Big Fraunces heading — white with an orange italic accent word. */
.hscroll-panel--photo .hscroll-panel__content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(7,59,76,0.45);
}

.hscroll-panel--photo .hscroll-panel__content p {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin: 0 auto;
  text-shadow: 0 1px 14px rgba(7,59,76,0.4);
}

/* === Marquee === */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
}

.marquee__inner {
  display: inline-flex;
  animation: marquee-scroll 20s linear infinite;
}

.marquee__item {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--color-deep);
  opacity: 0.08;
  padding: 0 40px;
  white-space: nowrap;
}

.marquee__item .emoji {
  display: inline-block;
  opacity: 1;
  font-size: 0.8em;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === SVG Childcare Illustrations === */
.illustration {
  width: 100%;
  max-width: 500px;
}

.illustration--float {
  animation: float 4s ease-in-out infinite;
}

/* Decorative shapes */
.deco-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

.deco-blob--orange {
  background: var(--color-primary);
}

.deco-blob--yellow {
  background: var(--color-secondary);
}

.deco-blob--green {
  background: var(--color-accent);
}

/* === Page Banner === */
.page-banner {
  background: var(--color-deep);
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
}

.page-banner__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.page-banner__wave svg {
  width: 100%;
  height: auto;
}

/* === Footer === */
.site-footer {
  background: var(--color-deep);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 30px;
  position: relative;
}

.site-footer__wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.site-footer__wave svg {
  width: 100%;
  height: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand .footer-tagline {
  font-family: 'Pacifico', cursive;
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* === Smooth wrapper (for GSAP ScrollSmoother-like feel) === */
#smooth-content {
  will-change: transform;
}
