/* =====================================================================
   Erin Free Menopause Coaching — shared design system
   Palette (Blue & Coral / poppy field):
     coral  #E87A4E   mint  #9EE2D1   sky-soft #AEDCF0
     teal   #2FA3CE   navy  #0E4453   bg-blue  #E8F4F9   red #DD4F32
   Type: Fraunces (display) + Inter (body)
   ===================================================================== */

:root {
  --coral: #e87a4e;
  --coral-dark: #d05f2f;
  --blush: #9ee2d1;
  --blush-soft: #e2f6f0;
  --sand: #aedcf0;
  --sand-soft: #e3f2f9;
  --teal: #2fa3ce;
  --teal-dark: #176f8b;
  --navy: #0e4453;
  --navy-deep: #0a3340;
  --cream: #e8f4f9;
  --ink: #163f43;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 96px;
}

body {
  background-color: var(--cream);
  color: var(--ink);
}

::selection {
  background: rgba(232, 122, 78, 0.24);
  color: var(--navy-deep);
}

.font-display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease,
    color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, #f4a06d 100%);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(232, 122, 78, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(232, 122, 78, 0.78);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(22, 69, 110, 0.18);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 12px 28px -16px rgba(22, 69, 110, 0.5);
}
.btn-light:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.82rem; }

/* ---------- Header ---------- */
#site-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
#site-header.is-scrolled {
  background: rgba(232, 244, 249, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(22, 69, 110, 0.06), 0 18px 40px -30px rgba(22, 69, 110, 0.6);
}

.nav-link {
  position: relative;
  color: rgba(22, 63, 67, 0.78);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link--active {
  color: var(--navy);
}
.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

/* ---------- Scroll reveal ----------
   Only hide for the animation when JS is active (html.js). If JavaScript
   fails to run, content stays fully visible instead of an invisible page. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js [data-reveal='left'] { transform: translateX(-36px); }
.js [data-reveal='right'] { transform: translateX(36px); }
.js [data-reveal='scale'] { transform: scale(0.94); }
.js .is-revealed {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Decorative blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-slow { animation: float 12s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(8px); }
}

/* Organic image mask */
.mask-blob {
  border-radius: 58% 42% 47% 53% / 42% 47% 53% 58%;
}
.mask-soft { border-radius: 2.5rem; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--coral);
}
.eyebrow--center::after {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--coral);
}

/* ---------- Cards ---------- */
.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(22, 69, 110, 0.08);
  border-radius: 1.75rem;
  box-shadow: 0 24px 50px -34px rgba(22, 69, 110, 0.45);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 60px -30px rgba(22, 69, 110, 0.4);
  border-color: rgba(47, 160, 184, 0.4);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(22, 69, 110, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.faq-tab:hover { border-color: var(--teal); color: var(--teal-dark); }
.faq-tab--active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px -16px rgba(22, 69, 110, 0.7);
}

.faq-item {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(22, 69, 110, 0.1);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item--open {
  border-color: rgba(47, 160, 184, 0.5);
  box-shadow: 0 20px 40px -28px rgba(22, 69, 110, 0.5);
}
.faq-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blush-soft);
  color: var(--coral-dark);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.faq-icon--open {
  transform: rotate(45deg);
  background: var(--coral);
  color: #fff;
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: rgba(22, 63, 67, 0.82);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-panel > div { padding: 0 1.35rem 1.25rem; }

.faq-group-enter > * {
  animation: faqIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.faq-group-enter > *:nth-child(2) { animation-delay: 0.05s; }
.faq-group-enter > *:nth-child(3) { animation-delay: 0.1s; }
.faq-group-enter > *:nth-child(4) { animation-delay: 0.15s; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Marquee / value strip ---------- */
.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}
.value-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coral);
}

/* ---------- Scrollbar hide ---------- */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ---------- Links in prose ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal-dark);
  font-weight: 600;
  transition: gap 0.25s ease, color 0.25s ease;
}
.link-arrow:hover { gap: 0.6rem; color: var(--coral-dark); }

/* ---------- Enquiry form ---------- */
.field-label {
  display: block;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.field-label .req {
  color: var(--coral-dark);
  margin-left: 0.15rem;
}
.field-hint {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(22, 63, 67, 0.6);
}
.field-input,
.field-textarea {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(22, 69, 110, 0.14);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.8rem 1rem;
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.field-textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.6;
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(22, 63, 67, 0.4);
}
.field-input:focus,
.field-textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 160, 184, 0.14);
}
.field-input.is-invalid,
.field-textarea.is-invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 122, 78, 0.12);
}
.field-error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--coral-dark);
}

/* Pill-style single-select (radio) options */
.option-grid {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.option-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 999px;
  border: 1.5px solid rgba(22, 69, 110, 0.14);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.62rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.25s ease;
}
.option-pill:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.option-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.option-pill .dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(22, 69, 110, 0.3);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.option-pill:has(input:checked) {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #f4a06d 100%);
  box-shadow: 0 14px 28px -16px rgba(232, 122, 78, 0.7);
}
.option-pill:has(input:checked) .dot {
  border-color: rgba(255, 255, 255, 0.9);
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--coral);
}
.option-pill input:focus-visible ~ .dot {
  box-shadow: 0 0 0 4px rgba(47, 160, 184, 0.25);
}
.option-group.is-invalid .option-pill {
  border-color: var(--coral);
}

/* Honeypot — visually hidden, off-screen, not announced */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit button busy state */
.btn-primary[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.btn-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
