/* ==========================================================================
   A B C PALACE DAYCARE CENTER & NURSERY
   Design system: warm, sunny, hand painted feel with structure underneath.
   Palette pulled directly from the client's own painted mural and building.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* ---- Color: pulled from the mural (yellow, sky blue, grass green, coral) ---- */
  --sun-h: 43;  --sun-s: 88%;  --sun-l: 56%;
  --sky-h: 199; --sky-s: 74%;  --sky-l: 45%;
  --leaf-h: 146; --leaf-s: 38%; --leaf-l: 30%;
  --coral-h: 8; --coral-s: 76%; --coral-l: 58%;

  --color-sun: hsl(var(--sun-h) var(--sun-s) var(--sun-l));
  --color-sun-soft: hsl(var(--sun-h) 90% 94%);
  --color-sun-deep: hsl(var(--sun-h) 80% 42%);

  --color-sky: hsl(var(--sky-h) var(--sky-s) var(--sky-l));
  --color-sky-soft: hsl(var(--sky-h) 65% 94%);
  --color-sky-deep: hsl(var(--sky-h) 80% 32%);

  --color-leaf: hsl(var(--leaf-h) var(--leaf-s) var(--leaf-l));
  --color-leaf-soft: hsl(var(--leaf-h) 40% 94%);

  --color-coral: hsl(var(--coral-h) var(--coral-s) var(--coral-l));
  --color-coral-soft: hsl(var(--coral-h) 70% 95%);

  --color-cream: hsl(42 46% 97%);
  --color-surface: hsl(40 35% 99%);
  --color-ink: hsl(25 22% 14%);
  --color-ink-soft: hsl(25 14% 38%);
  --color-ink-faint: hsl(25 10% 56%);
  --color-border: hsl(35 25% 88%);

  --color-placeholder-bg: hsl(43 90% 94%);
  --color-placeholder-text: hsl(30 60% 32%);

  /* ---- Typography ---- */
  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Lato', sans-serif;

  --text-xs: 13px;
  --text-sm: 15px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 38px;
  --text-4xl: 50px;
  --text-5xl: 64px;

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Radius: large, playful ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* ---- Shadows: warm tinted, two part ---- */
  --shadow-xs: 0 1px 2px hsl(30 40% 20% / 0.07);
  --shadow-sm: 0 1px 4px hsl(30 40% 20% / 0.09), 0 1px 2px hsl(30 40% 20% / 0.06);
  --shadow-md: 0 6px 16px hsl(30 40% 20% / 0.12), 0 2px 5px hsl(30 40% 20% / 0.08);
  --shadow-lg: 0 16px 36px hsl(30 40% 20% / 0.14), 0 4px 10px hsl(30 40% 20% / 0.08);
  --shadow-xl: 0 26px 64px hsl(30 40% 20% / 0.18), 0 8px 18px hsl(30 40% 20% / 0.10);

  --max-width: 1180px;
}

/* ---------------------------------------------------------------- RESET */

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

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

p { max-width: 65ch; color: var(--color-ink-soft); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sun-deep);
  background: var(--color-sun-soft);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section { padding: var(--space-9) 0; position: relative; }
.section-sm { padding: var(--space-7) 0; }
.section-tight { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-cream { background: var(--color-cream); }
.bg-surface { background: var(--color-surface); }
.bg-sky-soft { background: var(--color-sky-soft); }
.bg-leaf-soft { background: var(--color-leaf-soft); }
.bg-sun-soft { background: var(--color-sun-soft); }

/* ---- Placeholder flag styling: makes brackets easy to spot for edit ---- */
.tbd {
  background: var(--color-placeholder-bg);
  color: var(--color-placeholder-text);
  border-radius: var(--radius-sm);
  padding: 0 6px;
  font-style: italic;
  box-decoration-break: clone;
}

/* --------------------------------------------------------- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 15px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0px); }

.btn-primary {
  background: var(--color-coral);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: hsl(var(--coral-h) var(--coral-s) 50%); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-secondary:hover { background: var(--color-ink); color: var(--color-cream); }

.btn-light {
  background: white;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-block { width: 100%; justify-content: center; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

/* ------------------------------------------------------------- NAV ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(40 35% 99% / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.brand-mark {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-sun), var(--color-coral));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--color-ink-faint); letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 3px;
  background: var(--color-coral);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--color-ink); }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--color-ink); }
.nav-link.is-active::after { width: 100%; }

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: white;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: rotate(45deg); }
.nav-toggle.is-open::after { transform: rotate(-45deg); }

/* ------------------------------------------------------------- HERO --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0 var(--space-9);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}

.hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}
.hero h1 em { color: var(--color-coral); font-style: normal; }

.hero p.lead {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  max-width: 46ch;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
}
.hero-media-inner {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, hsl(25 30% 10% / 0) 55%, hsl(25 40% 8% / 0.45) 100%);
}
.hero-media-tag {
  position: absolute;
  left: var(--space-5); bottom: var(--space-5);
  z-index: 2;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex; align-items: center; gap: var(--space-2);
}
.hero-media-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-coral); box-shadow: 0 0 0 4px hsl(0 0% 100% / 0.25); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-9);
}

.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trust-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.trust-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.trust-card p { font-size: var(--text-sm); }
.trust-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-sun-deep);
  display: block;
  margin-bottom: var(--space-3);
}

/* ------------------------------------------------------- DECORATIVE --- */

.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: -1px;
}

.mural-strip {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  overflow: hidden;
  padding: var(--space-4) 0;
  opacity: 0.9;
}
.mural-strip span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  flex-shrink: 0;
}

/* ------------------------------------------------------------ CARDS --- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-top-accent { border-top: 5px solid var(--color-sun); }
.card-top-accent.accent-sky { border-top-color: var(--color-sky); }
.card-top-accent.accent-leaf { border-top-color: var(--color-leaf); }
.card-top-accent.accent-coral { border-top-color: var(--color-coral); }

.program-card h3 { font-size: var(--text-xl); margin-bottom: 2px; }
.program-card .age-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-sky-deep);
  background: var(--color-sky-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.program-card p { font-size: var(--text-sm); }

/* ------------------------------------------------------------- ABOUT -- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split img, .split .photo-frame { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.photo-frame { overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); max-width: 640px; }
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--color-sky), var(--color-leaf));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
}
.team-card h4 { font-size: var(--text-base); }
.team-card p { font-size: var(--text-sm); margin-top: 2px; }

.values-list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.value-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.value-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-leaf-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-leaf); font-weight: 700; font-family: var(--font-display);
}
.value-row h4 { font-size: var(--text-base); margin-bottom: 2px; }
.value-row p { font-size: var(--text-sm); }

/* ----------------------------------------------------------- GALLERY -- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/5;
}
.gallery-item.wide { aspect-ratio: 8/5; grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, hsl(25 40% 8% / 0.75), transparent);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.gallery-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-sky-soft);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-sky-deep);
}

/* --------------------------------------------------------------- CTA -- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-7);
  color: white;
  text-align: center;
  background: linear-gradient(135deg, hsl(var(--coral-h) 70% 52%), hsl(var(--sun-h) 85% 55%), hsl(var(--sky-h) 65% 45%));
  background-size: 260% 260%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-band h2 { color: white; font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.cta-band p { color: hsl(0 0% 100% / 0.9); margin: 0 auto var(--space-6); }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-primary { background: white; color: var(--color-ink); }
.cta-band .btn-primary:hover { background: hsl(0 0% 96%); }
.cta-band .btn-secondary { border-color: white; color: white; }
.cta-band .btn-secondary:hover { background: white; color: var(--color-ink); }

/* -------------------------------------------------------------- STEPS - */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.step-card { position: relative; padding-top: var(--space-3); }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-sun);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.step-card h4 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.step-card p { font-size: var(--text-sm); }

/* --------------------------------------------------------------- FORM - */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-field.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
}
label .req { color: var(--color-coral); }

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 4px hsl(var(--sky-h) var(--sky-s) var(--sky-l) / 0.18);
}

fieldset { border: none; margin-bottom: var(--space-5); }
fieldset legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-ink);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-sun-soft);
  width: 100%;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-ink-faint);
  margin-top: var(--space-2);
}

.form-privacy {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--color-leaf-soft);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: hsl(var(--leaf-h) 45% 22%);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-7) var(--space-5);
}
.form-success.is-visible { display: block; }
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-leaf-soft);
  color: var(--color-leaf);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: 28px;
}
.form-success h3 { margin-bottom: var(--space-3); }

/* ------------------------------------------------------ PARENT FORMS -- */

.doc-list { display: grid; gap: var(--space-5); }
.doc-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.doc-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-coral-soft);
  color: var(--color-coral);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
}
.doc-card h3 { font-size: var(--text-base); margin-bottom: 4px; }
.doc-card p { font-size: var(--text-sm); margin: 0; }

/* -------------------------------------------------------------- MAP --- */

.map-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

.contact-row { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-sun-soft);
  color: var(--color-sun-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.contact-row a, .contact-row span.value { font-family: var(--font-display); font-weight: 600; }

/* ------------------------------------------------------------ FOOTER -- */

.site-footer {
  background: var(--color-ink);
  color: hsl(40 20% 88%);
  padding: var(--space-8) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid hsl(40 15% 24%);
}
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: white; }
.site-footer p { color: hsl(40 15% 68%); font-size: var(--text-sm); }
.footer-col h4 {
  font-family: var(--font-display);
  color: white;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-col a, .footer-col li {
  display: block;
  color: hsl(40 15% 72%);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--color-sun); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: hsl(40 15% 58%);
}
.footer-bottom a { color: hsl(40 15% 58%); }
.footer-bottom a:hover { color: var(--color-sun); }

/* -------------------------------------------------------- REVEAL/MOTION */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.09s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.18s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.27s; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------- RESPONSIVE */

@media (max-width: 1024px) {
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .split .photo-frame { order: -1; }
  .trust-strip, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .hero h1 { font-size: var(--text-3xl); }
  .trust-strip, .grid-3, .grid-2, .grid-4, .steps, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 48px 1fr; }
  .doc-card .btn { grid-column: 1 / -1; margin-top: var(--space-3); }
  .cta-band { padding: var(--space-6) var(--space-4); }
  .cta-band h2 { font-size: var(--text-2xl); }
  .section { padding: var(--space-7) 0; }
  .hero-media { order: -1; }

  /* iOS parallax fix */
  .hero-media-inner { background-attachment: scroll !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .hero h1 { font-size: var(--text-2xl); }
  .btn { padding: 14px 22px; font-size: var(--text-sm); width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}

/* Tap target safety */
a, button, .btn, .nav-link, input, textarea, select { min-height: 44px; }
.nav-link { display: inline-flex; align-items: center; min-height: auto; }
