/* ============================================================
   LAYOUT.CSS — Shared section, typography & utility styles
   Barnet Premier Swim
   ============================================================ */

/* ── Sections — full viewport width ── */
section {
  width: 100%;
  padding: 80px 24px;
}

/* ── Section label ── */
.lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}
.lbl::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Section title ── */
.sec-h {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.12;
}

/* ── Section subtitle ── */
.sec-s {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.75;
  max-width: 600px;
}

.head          { margin-bottom: 52px; }
.head.c        { text-align: center; }
.head.c .sec-s { margin: 0 auto; }
.head.c .lbl   { margin: 0 auto 12px; }

/* ── Shared buttons — pill shaped, friendlier ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pool);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(10, 175, 224, 0.28);
}
.btn-primary:hover  { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10, 175, 224, 0.38); }
.btn-primary:active { transform: scale(0.97); }

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green-bg);
  border: 1.5px solid var(--green-bd);
  color: var(--green);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-wa:hover  { background: rgba(37, 211, 102, 0.18); transform: translateY(-2px); }
.btn-wa:active { transform: scale(0.97); }

/* ── Scroll reveal ── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   FLOATING WHATSAPP — bubble + button
══════════════════════════════════════ */
.float-wa-wrap {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}

/* Speech bubble */
.float-wa-bubble {
  background: var(--white);
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 16px;
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.15);
  white-space: nowrap;
  pointer-events: none;
  animation: bubble-in 0.5s var(--ease) 1.4s both;
}

@keyframes bubble-in {
  from { opacity: 0; transform: scale(0.85) translateX(12px); }
  to   { opacity: 1; transform: scale(1)    translateX(0); }
}

/* WhatsApp circle */
.float-wa {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  flex-shrink: 0;
}
.float-wa-wrap:hover .float-wa { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55); }
.float-wa-wrap:active .float-wa { transform: scale(0.95); }

/* ── Safe area (iPhone notch) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .float-wa-wrap { bottom: calc(24px + env(safe-area-inset-bottom)); }
  footer         { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}