/* YoungCoders Booking — Base Styles */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 16px;
  --radius-sm: 8px;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 680px; }
.text-center { text-align: center; }
.bg-soft { background: var(--bg-soft); }

/* NAV */
.site-header { padding: 1rem 0; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; background: var(--bg); z-index: 100; }
.nav-bar { display: flex; align-items: center; gap: 2rem; }
.brand-logo { height: 100px; width: auto; }
.nav-primary { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-link { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* BUTTONS */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: none; text-align: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* HERO */
.hero { padding: 4rem 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { background: var(--bg-soft); border: 1px solid #e2e8f0; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; color: var(--muted); }
.hero-media img { border-radius: var(--radius); }

/* SECTIONS */
.section { padding: 4rem 0; }
.section-subtitle { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.section-cta { margin-top: 2rem; text-align: center; }

/* GRID */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* CARDS */
.card { background: var(--bg); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.5rem; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-meta { display: flex; justify-content: space-between; margin: 1rem 0; color: var(--muted); font-size: 0.9rem; }
.card-meta .price { font-weight: 700; color: var(--primary); }

/* SERVICE ICONS */
.service-icon { width: 90px; height: 90px; object-fit: contain; }
.step-icon { width: 56px; height: 56px; margin-bottom: 1rem; object-fit: contain; }

/* Service card header — icon inline with title */
.service-header { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.75rem; }
.service-header h3 { margin: 0; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.step { text-align: center; padding: 1.5rem; }
.step-number { width: 48px; height: 48px; background: var(--primary); color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }

/* CTA BAND */
.section-cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 4rem 0; text-align: center; }
.section-cta-band h2 { color: white; }
.section-cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.section-cta-band .btn-primary { background: white; color: var(--primary); }
.section-cta-band .btn-primary:hover { background: var(--bg-soft); }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-body); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

/* ALERTS */
.alert { padding: 1.5rem; border-radius: var(--radius-sm); margin-top: 1rem; }
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* FOOTER */
.site-footer { background: var(--ink); color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; font-size: 0.85rem; }
.footer-bottom small { color: #cbd5e1; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-primary { display: none; }
  h1 { font-size: 2rem; }
}

/* ============ STACK/CARDS CAROUSEL ============ */
.flip-carousel {
  position: relative;
  min-height: 300px;
  max-width: 500px;
  margin: 0 auto;
}
.flip-page {
  position: absolute;
  inset: 0;
  background: var(--bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s, box-shadow 0.5s;
  opacity: 0.6;
  transform: scale(0.9) translateY(12px);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* Active card — on top */
.flip-page.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 3;
}
/* Card behind (next) — slightly smaller, peeking below */
.flip-page.behind-1 {
  opacity: 0.7;
  transform: scale(0.94) translateY(8px);
  z-index: 2;
  pointer-events: none;
}
/* Card further back */
.flip-page.behind-2 {
  opacity: 0.4;
  transform: scale(0.88) translateY(16px);
  z-index: 1;
  pointer-events: none;
}
.flip-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.flip-counter { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
