/* ================================================================
   styles.css — Madeline Keeling Babysitting
   Shared stylesheet for all pages
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --pink:         #F03E8E;
  --pink-hover:   #D42F7D;
  --pink-light:   #F9C0DA;
  --pink-pale:    #FDE8F1;
  --cream:        #FFF7F2;
  --white:        #FFFFFF;
  --dark:         #2A1A1F;
  --muted:        #7A5060;
  --border:       #EDD8E4;
  --sidebar-w:    240px;
  --radius:       0.75rem;
  --radius-lg:    1.25rem;
  --radius-pill:  999px;
  --shadow-sm:    0 2px 10px rgba(240,62,142,.07);
  --shadow:       0 4px 22px rgba(240,62,142,.12);
  --shadow-lg:    0 10px 40px rgba(240,62,142,.18);
  --transition:   0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
h1,h2,h3,h4 { font-family: 'Fredoka One', cursive; line-height: 1.15; }
p { line-height: 1.65; }

/* ── Layout ─────────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--white);
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 100;
}

.sidebar-brand {
  padding: 1.6rem 1.4rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.sidebar-heart {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  animation: heartbeat 3s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  15%     { transform: scale(1.1); }
  30%     { transform: scale(1); }
  45%     { transform: scale(1.06); }
}
.sidebar-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.2;
}
.sidebar-sub {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.sidebar-nav {
  flex: 1;
  padding: 1.1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.95rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.91rem;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-link:hover {
  background: var(--pink-pale);
  color: var(--pink);
}
.nav-link.active {
  background: var(--pink-pale);
  color: var(--pink);
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px;
  background: var(--pink);
  border-radius: 0 2px 2px 0;
}

.sidebar-footer {
  padding: 1rem 1.4rem;
  border-top: 1.5px solid var(--border);
  font-size: 0.73rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ── Mobile Header ──────────────────────────────────────────────── */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  padding: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.mobile-brand {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--dark);
}
.menu-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--pink-pale);
  color: var(--pink);
  flex-shrink: 0;
}
.menu-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42,26,31,0.4);
  z-index: 150;
  opacity: 0;
  transition: opacity var(--transition);
}
.sidebar-overlay.active { opacity: 1; }

/* ── Main Content ───────────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2.5rem 4rem;
}

/* ── Page Header ────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.page-header .subtitle {
  font-size: 0.97rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Section Labels ─────────────────────────────────────────────── */
.section-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--border);
  border-radius: 1px;
}

/* ── Stack ──────────────────────────────────────────────────────── */
.stack    { display: flex; flex-direction: column; gap: 1.25rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.8rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2rem; }

/* ── Grids ──────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── Card ───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.card-icon {
  width: 38px;
  height: 38px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 18px; height: 18px; fill: var(--white); }
.card-icon.soft {
  background: var(--pink-pale);
}
.card-icon.soft svg { fill: var(--pink); }
.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.18rem;
  color: var(--dark);
}

/* ── Bullet List ────────────────────────────────────────────────── */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}
.bullet-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.45em;
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: 50%;
}

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--pink);
  color: var(--white);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.28rem 0.82rem;
  border-radius: var(--radius-pill);
}
.badge-soft {
  background: var(--pink-pale);
  color: var(--pink);
}
.badge-outline {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}

/* ── Tagline Rows ───────────────────────────────────────────────── */
.tagline {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(240,62,142,.28);
}
.btn-primary:hover {
  background: var(--pink-hover);
  box-shadow: 0 5px 20px rgba(240,62,142,.36);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}
.btn-outline:hover { background: var(--pink-pale); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.form-label {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.form-label .req { color: var(--pink); margin-left: 0.1em; }
.form-input,
.form-textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.62rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(240,62,142,.11);
}
.form-input.error  { border-color: #d9234f; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-hint {
  font-size: 0.79rem;
  color: var(--muted);
}
.form-error {
  font-size: 0.79rem;
  color: #d9234f;
  font-weight: 600;
  display: none;
}
.form-error.show { display: block; }
.form-group.has-error .form-input  { border-color: #d9234f; }
.form-group.has-error .form-error  { display: block; }

.form-or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-or-divider::before,
.form-or-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--border);
}

/* ── Turnstile container ────────────────────────────────────────── */
.captcha-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.captcha-wrap .form-hint { margin-top: 0.1rem; }

/* ── Contact Strip ──────────────────────────────────────────────── */
.contact-strip {
  background: var(--pink);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.contact-strip-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  color: var(--white);
}
.contact-details-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity var(--transition);
}
.contact-detail:hover { opacity: 0.82; }
.contact-detail svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ── Credential Card ────────────────────────────────────────────── */
.cred-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cred-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--pink-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cred-icon svg { width: 22px; height: 22px; fill: var(--pink); }
.cred-title {
  font-family: 'Fredoka One', cursive;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}
.cred-desc {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

/* ── Age / Experience Tile ──────────────────────────────────────── */
.exp-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.exp-tile:hover { border-color: var(--pink-light); box-shadow: var(--shadow-sm); }
.exp-emoji { font-size: 2rem; margin-bottom: 0.45rem; }
.exp-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  color: var(--dark);
}
.exp-range { font-size: 0.78rem; color: var(--muted); margin-top: 0.18rem; font-weight: 600; }

/* ── Info Tiles ─────────────────────────────────────────────────── */
.info-tile {
  background: var(--pink-pale);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}
.info-tile-val {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--pink);
}
.info-tile-lbl {
  font-size: 0.79rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Hero (homepage) ────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.hero::after {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 220px; height: 220px;
  background: var(--pink-pale);
  border-radius: 50%;
  pointer-events: none;
}
.hero-heart {
  flex-shrink: 0;
  width: 95px;
  height: 85px;
  position: relative;
  z-index: 1;
  animation: heartbeat 3s ease-in-out infinite;
}
.hero-body { position: relative; z-index: 1; }
.hero-eyebrow {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.3rem;
}
.hero-name {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 0.2rem;
}
.hero-headline {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--pink);
}

/* ── Feature Card (homepage) ────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ── Booking Embed ──────────────────────────────────────────────── */
.booking-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.booking-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ── Divider ────────────────────────────────────────────────────── */
.divider { height: 1.5px; background: var(--border); border-radius: 1px; }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.5s ease both; }
.delay-1   { animation-delay: 0.07s; }
.delay-2   { animation-delay: 0.14s; }
.delay-3   { animation-delay: 0.21s; }
.delay-4   { animation-delay: 0.28s; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Switch to mobile layout */
  .layout { display: block; }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    z-index: 200;
    height: 100%;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-overlay { display: block; }
  .mobile-header   { display: flex; }

  .main-content { padding: 1.5rem 1.1rem 3rem; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .hero::after { display: none; }
  .tagline { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-strip { flex-direction: column; }
}

@media (max-width: 580px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
