html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fffaf9;
  line-height: 1.7;
}

/* Logo */
.logo {
  max-width: 160px;
  display: block;
  margin: 0.5rem auto;
}

/* Floating Hamburger */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: rgba(242, 140, 140, 0.85);
  border: none;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 20px;
  color: white;
  z-index: 2200;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(242,140,140,0.4);
  transition: background 0.3s, transform 0.3s;
}
.menu-toggle:hover { background: rgba(227,109,109,0.9); transform: scale(1.05); }
.menu-toggle.open { background: rgba(146,91,122,0.9); }

/* Navbar Desktop */
nav {
  background: rgba(238, 201, 210, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05), 0 0 10px rgba(242,140,140,0.3);
}
nav a {
  color: #4b3d3d;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  padding: 0.4rem;
}
nav a:hover { color: #925b7a; }

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(to bottom, rgba(252,234,234,0.9), rgba(245,217,224,0.95));
  color: #4b3d3d;
}
.hero.has-bg {
  background:
    linear-gradient(to bottom, rgba(252,234,234,0.7), rgba(245,217,224,0.8)),
    url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 2.6rem; }
.hero p  { font-size: 1.15rem; margin: 1rem auto; max-width: 800px; color: #6b5c5c; }

/* CTA */
.cta {
  display: inline-block;
  margin: 1.5rem auto 0;
  padding: 0.9rem 1.8rem;
  background: #f28c8c;
  color: white;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
}
.cta:hover { background: #e36d6d; }
.cta-wrapper { text-align: center; margin-top: 2rem; clear: both; }

/* Floating CTA Buttons */
.floating-cta {
  position: fixed;
  bottom: 20px;
  background: #f28c8c;
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 15px rgba(242,140,140,0.6);
  z-index: 3000;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
.floating-cta.hidden { opacity: 0; visibility: hidden; }
#floatingBtn { right: 20px; }

/* Back to Top Button */
.top-btn {
  left: 20px;
  background: rgba(255, 255, 255, 0.7);
  color: #4b3d3d !important; /* ensure arrow visible */
  font-size: 1rem;
  font-weight: bold;
  padding: 0.6rem 0.9rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s, color 0.3s;
}
.top-btn:hover { background: #fff; color: #2c1e1e !important; transform: scale(1.1); }

/* Sections */
section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}
section ul, section ol {
  text-align: left;
  padding-left: 1.5rem;
  display: inline-block;
}

/* About */
.about-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.coach-photo {
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.coach-photo:hover { transform: scale(1.05); }

/* Testimonials */
blockquote {
  background: #fdf3f6;
  border-left: 4px solid #f28c8c;
  padding: 1rem;
  margin: 1.5rem auto;
  font-style: italic;
  max-width: 700px;
  border-radius: 8px;
}

/* Contact Tabs */
.contact-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1rem auto 1.5rem;
}
.tab-btn {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #e2c6d3;
  background: #fff;
  color: #4b3d3d;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.1s;
}
.tab-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-1px); }
.tab-btn.active {
  background: #f28c8c;
  color: #fff;
  border-color: #f28c8c;
  box-shadow: 0 4px 12px rgba(242,140,140,0.35);
}

/* Tab Panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Contact form width */
#tab-message form {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 500px; margin: 1rem auto 0;
}
#contact input, #contact textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e2c6d3;
  border-radius: 8px;
}
#contact input:focus, #contact textarea:focus {
  outline: none; border-color: #f28c8c; box-shadow: 0 0 6px rgba(242,140,140,0.4);
}
#contact button.cta { align-self: center; max-width: 250px; border: none; }

/* Embedded frames (Calendly + SurveyHeart) */
.embedded-form { max-width: 900px; margin: 1.2rem auto 0; }
.embedded-form iframe {
  width: 100%;
  height: 70vh;           /* desktop/tablet height */
  border-radius: 10px;
  border: 1px solid #e2c6d3;
  background: #fff;       /* avoids iOS translucency during load */
}
@media (max-width: 768px) {
  .embedded-form iframe { height: 85vh; } /* taller on mobile */
}

/* Footer */
footer {
  text-align: center;
  padding: 1.2rem;
  background: #f2d7de;
  color: #4b3d3d;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 2px solid #e2c6d3;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    position: fixed;     /* makes menu work anywhere on scroll */
    top: 60px; left: 0; right: 0;
    visibility: hidden;
    max-height: 0;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #fdeff2, #f8d7e5);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    transition: max-height 0.4s ease, padding 0.4s ease, visibility 0.4s;
    z-index: 2000;
  }
  nav.show { visibility: visible; max-height: 500px; padding: 1rem 0.5rem; }

  nav a {
    display: block;
    width: 90%;
    margin: 0.4rem auto;
    padding: 0.8rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #4b3d3d;
    background: #fff;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  nav.show a { opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav a:hover { background: #f28c8c; color: #fff; transform: scale(1.05); }
}

/* ✅ Success Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;               /* sits above floating buttons */
  transform: translateX(-50%) translateY(20px);
  background: #e9f9ef;        /* soft green */
  color: #246b3f;
  border: 1px solid #bfe9ce;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 3500;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  
/* --- Sending state (button spinner) --- */
button.cta.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

button.cta.is-loading .spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.5em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Error toast style --- */
.toast.error {
  background: #fdecec;          /* soft red */
  color: #7a1f1f;
  border-color: #f5bcbc;
}