/* ============================================
   Swim with Mayla — Custom Styles (Bootstrap 5 base)
   ============================================ */

:root {
  --swim-primary: #0891b2;
  --swim-primary-dark: #0e7490;
  --swim-light: #ecfeff;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
}

/* ── Hero ─────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--swim-primary) 0%, #0ea5e9 50%, #38bdf8 100%);
  padding: 5rem 0 4rem;
}

.hero img {
  object-fit: cover;
  background: rgba(255,255,255,0.1);
}

.hero .btn-light {
  color: var(--swim-primary-dark);
  font-size: 1.1rem;
}

.hero .btn-light:hover {
  background: #f0f9ff;
  color: var(--swim-primary-dark);
}

/* ── Detail Bubbles ───────────────────────── */
.detail-bubble {
  transition: transform 0.2s, box-shadow 0.2s;
}

.detail-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}

/* ── Signup Form ──────────────────────────── */
.signature-input {
  font-style: italic;
}

/* Child entry cards */
.child-entry {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #f8f9fa;
}

.child-entry .child-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.child-entry .child-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  margin: 0;
}

/* Bootstrap overrides for brand color */
.btn-primary {
  background-color: var(--swim-primary);
  border-color: var(--swim-primary);
}

.btn-primary:hover {
  background-color: var(--swim-primary-dark);
  border-color: var(--swim-primary-dark);
}

.btn-outline-primary {
  color: var(--swim-primary);
  border-color: var(--swim-primary);
}

.btn-outline-primary:hover {
  background-color: var(--swim-primary);
  border-color: var(--swim-primary);
  color: #fff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--swim-primary);
  box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

.form-check-input:checked {
  background-color: var(--swim-primary);
  border-color: var(--swim-primary);
}

/* Validation */
.field-error, .invalid-feedback {
  font-size: 0.85rem;
}

/* Success message */
.success-message {
  text-align: center;
  padding: 2rem 1rem;
}

.success-message h2 {
  color: #198754;
}

/* ── Smooth scroll ────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Print ────────────────────────────────── */
@media print {
  .hero { padding: 2rem 0; }
  .btn { box-shadow: none !important; }
}
