/* styles.css */
:root{
  --bg: #FAF9F7;
  --card: #FFFFFF;
  --text: #2F2F2F;
  --muted: #6B6B6B;

  --blue: #03086E;
  --blue2: #040A90;
  --pink: #B43AA1;

  --radius: 16px;
  --shadow: 0 10px 24px rgba(0,0,0,0.06);
  --shadow2: 0 6px 16px rgba(0,0,0,0.06);
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: var(--blue); text-decoration: none; }
a:hover{ color: var(--blue2); text-decoration: underline; }

.container{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,247,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(3,8,110,0.10);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand-logo{ height: 44px; width: auto; display: block; }

.nav{
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a{
  color: var(--text);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.nav a:hover{
  background: rgba(180,58,161,0.08);
  text-decoration: none;
}
.nav a.active{
  background: rgba(3,8,110,0.10);
  color: var(--blue);
}
.nav .nav-cta{
  color: white;
  background: var(--blue);
  padding: 10px 16px;
}
.nav .nav-cta:hover{ background: var(--blue2); }

/* Mobile nav */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(3,8,110,0.15);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow2);
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 22px;
  background: var(--blue);
  margin: 5px auto;
  border-radius: 2px;
}

/* Page hero */
.hero{
  position: relative;
  overflow: hidden;
}

/* Fixed hero band */
.hero-band{
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 35%, rgba(180,58,161,0.16), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(3,8,110,0.14), transparent 62%);
}
.hero-band-inner{
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner{
  padding: 40px 0 18px; /* ↓ slightly tighter bottom so spacing matches image/section */
  text-align: center;
}

.hero h1{
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 18px auto 18px;
  color: var(--blue);
  max-width: 900px;
}

.lead{
  max-width: 820px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0; /* important: spacing will now be controlled consistently */
}

/* Logo lockup */
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(3,8,110,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.hero-badge-text{ text-align: center; }
.hero-badge-title{ font-weight: 800; color: var(--blue); letter-spacing: 0.01em; }
.hero-badge-subtitle{
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pink);
}

/* Sections */
.section{
  padding: 16px 0;
}
.section-alt{ background: #fff; }
.section-pinkwash{
  background: rgba(180,58,161,0.08);
  padding-top: 18px; /* match the gap above */
}

.section-head{ margin-bottom: 28px; }
.section-head.center{ text-align: center; }
.section-head h2{ font-size: 32px; margin: 0 0 10px; color: var(--blue); }
.section-head p{ margin: 0; color: var(--muted); max-width: 820px; }
.section-head.center p{ margin: 0 auto; }

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3{ margin: 10px 0 10px; color: var(--blue); }
.card p{ margin: 0; color: var(--muted); }

.pillars{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pillar{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.pillar-title{ font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.pillar-text{ color: var(--muted); font-size: 14px; }

.profiles{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.profile{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile h3{ margin: 0 0 8px; color: var(--blue); }
.profile p{ margin: 0; color: var(--muted); }
.profile .btn{ margin-top: 18px; }

.avatar-img{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  margin: 0 auto 16px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 3px solid rgba(180,58,161,0.35);
}

/* Callouts */
.callout{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(3,8,110,0.10);
}
.callout.subtle{ background: rgba(250,249,247,0.6); }
.callout h3{ margin: 0 0 6px; color: var(--blue); }
.callout p{ margin: 0; color: var(--muted); }

/* Lists */
.list{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.contact-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid rgba(3,8,110,0.10);
  display: flex;
  flex-direction: column;
}
.contact-card h3{ margin: 0 0 10px; }
.contact-card p{ margin: 8px 0; line-height: 1.45; }

.contact-card form{
  display: flex;
  flex-direction: column;
  height: 100%;
}

label{
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--text);
}
input, textarea{
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(3,8,110,0.16);
  background: #fff;
  font: inherit;
}
input:focus, textarea:focus{
  outline: 3px solid rgba(180,58,161,0.16);
  border-color: rgba(180,58,161,0.42);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btn-primary{ background: var(--blue); color: #fff; }
.btn-primary:hover{ background: var(--blue2); color: #fff; text-decoration: none; }
.btn-ghost{
  background: transparent;
  border-color: rgba(3,8,110,0.28);
  color: var(--blue);
}
.btn-ghost:hover{
  border-color: rgba(180,58,161,0.45);
  background: rgba(180,58,161,0.08);
  text-decoration: none;
}

/* Address + map */
.address-block h3{ margin: 0 0 6px; }
.address-block p{ margin: 0; }

.location-map{
  margin: 16px auto 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(3,8,110,0.10);
  max-width: 560px;
}
.location-map-img{
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.contact-highlight{
  color: var(--blue);
  font-weight: 400;
}

/* ✅ GLOBAL IMAGE BREAK (used on other pages) — restored */
.image-break-section{
  margin: 24px 0 42px;
}
.image-break-wrapper{
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}
.image-break{
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* ✅ CONTACT PAGE CLINIC IMAGE — isolated so it won’t affect other pages */
.clinic-image-section{
  display: flex;
  justify-content: center;
  padding: 18px 0; /* matches the spacing above/below */
  background: transparent;
}
.clinic-image-wrapper{
  background: #fff;
  padding: 8px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(3,8,110,0.10);
  display: inline-block;
}
.clinic-image{
  width: 8cm;
  height: 4cm;
  object-fit: contain; /* show whole image */
  display: block;
  border-radius: 12px;
  background: #fff;
}

/* Dropdown */
.nav-item{
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-menu{
  position: absolute;
  top: 100%;
  margin-top: 0;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(3,8,110,0.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 200;
}
.dropdown-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.dropdown-menu a:hover{
  background: rgba(180,58,161,0.08);
  text-decoration: none;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  display: block;
}

/* Allow full width for body text areas */
.privacy-content .section-head p,
.privacy-content p,
.privacy-content li{
  max-width: none;
}
.privacy-content p{ margin: 0 0 16px; }
.privacy-content ul{ margin: 0 0 18px 20px; }
.privacy-content li{ margin-bottom: 8px; }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(3,8,110,0.10);
  padding: 18px 0;
  background: rgba(250,249,247,0.9);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-logo{ height: 34px; width: auto; display: block; }
.footer-left{ display: flex; align-items: center; gap: 12px; }
.footer-right a{ color: var(--muted); }

/* Responsive */
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .pillars{ grid-template-columns: 1fr 1fr; }
  .profiles{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .callout{ flex-direction: column; align-items: flex-start; }

  .nav-toggle{ display: inline-block; }
  .nav{
    position: absolute;
    right: 24px;
    top: 70px;
    background: #fff;
    border: 1px solid rgba(3,8,110,0.12);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
  }
  .nav a{ padding: 10px 12px; }
  .nav.open{ display: flex; }

  .hero-band{ height: 170px; }
  .hero-inner{ padding-top: 32px; }

  /* Global image break size on mobile */
  .image-break{ height: 220px; }

  /* Contact clinic image smaller on mobile */
  .clinic-image{ width: 90%; height: auto; max-width: 420px; }
}

/* ===== Clinician bio photo: centred ===== */

.bio-photo-card{
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 centres photo + text */
  justify-content: center;
  margin: 0 auto;        /* 👈 centres the card itself */
  text-align: center;
  max-width: 360px;
}

.bio-photo{
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #fff;
}

.bio-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bio-name {
  font-size: 20px; /* increase name size */
  font-weight: 700; /* bold but not shouty */
  color: var(--blue); /* matches site heading colour */
  margin-bottom: 4px;
}

.bio-roles {
  font-size: 16px; /* slightly smaller than name */
  font-weight: 600;
  color: var(--muted); /* softer contrast */
}

/* Accordion */
.accordion-wrap {
  margin-top: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid rgba(3, 8, 110, 0.10);
}

.accordion-title {
  margin: 0 0 6px;
  color: var(--blue);
}

.accordion {
  margin-top: 12px;
  border-top: 1px solid rgba(3, 8, 110, 0.10);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 6px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-btn:hover {
  color: var(--blue);
}

.accordion-panel {
  padding: 0 6px 12px;
}

.accordion-icon {
  font-size: 18px;
  color: var(--pink);
  width: 24px;
  text-align: center;
}

.btn-special {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* =========================
   MOBILE-ONLY FIXES
   Paste at VERY bottom of styles.css
   Desktop remains unchanged
   ========================= */

@media (max-width: 980px){

  /* Make container a bit narrower so content doesn't feel cramped */
  .container{
    width: min(var(--max), calc(100% - 28px));
  }

  /* Reduce “air” on mobile */
  .hero-inner{
    padding: 28px 0 22px;
  }
  .section{
    padding-top: 22px;
    padding-bottom: 22px;
  }

  /* Headings scale down a touch */
  .section-head h2{
    font-size: 26px;
  }
  .lead{
    font-size: 16px;
    margin-bottom: 18px;
  }

  /* Buttons: make them feel nicer stacked */
  .hero-actions{
    gap: 10px;
  }
  .btn{
    width: 100%;
    max-width: 420px;
  }

  /* Two-column grids become single column (you already do some; this makes sure) */
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profiles{
    grid-template-columns: 1fr;
  }
  .pillars{
    grid-template-columns: 1fr;
  }

  /* Callouts: prevent awkward side-by-side squeeze */
  .callout{
    flex-direction: column;
    align-items: stretch;
  }
  .callout .btn{
    width: 100%;
    max-width: 420px;
  }

  /* Images: never overflow horizontally */
  img{
    max-width: 100%;
    height: auto;
  }

  /* If you’re using the clinic “snug” image section */
  .clinic-image-section{
    padding: 14px 0 22px;
  }
  .clinic-image-wrapper{
    padding: 10px;
    border-radius: 16px;
  }

  /* IMPORTANT: cm sizing can behave oddly on phones.
     On mobile, switch the clinic image to responsive sizing */
  .clinic-image{
    width: min(92vw, 520px) !important;
    height: auto !important;
    max-height: 260px;
    object-fit: contain;
  }

  /* Map image: make shorter so it doesn't dominate the page */
  .location-map-img{
    height: 220px;
    object-fit: cover;
  }

  /* Reduce huge “break” images (if used elsewhere) */
  .image-break{
    height: 220px;
  }
}
// ===== Mobile dropdown tap support (desktop hover unchanged) =====
(() => {
  const mq = window.matchMedia("(max-width: 980px)");
  const dropdowns = document.querySelectorAll(".nav-item.dropdown");

  function setupMobileDropdowns() {
    dropdowns.forEach(dd => {
      const toggle = dd.querySelector(".dropdown-toggle");
      const menu = dd.querySelector(".dropdown-menu");
      if (!toggle || !menu) return;

      // Prevent duplicate handlers
      toggle.onclick = null;

      toggle.addEventListener("click", (e) => {
        if (!mq.matches) return; // desktop: do nothing (hover remains)
        e.preventDefault();

        // Close other open dropdowns
        dropdowns.forEach(other => {
          if (other !== dd) other.classList.remove("open");
        });

        dd.classList.toggle("open");
      });
    });

    // Tap outside to close
    document.addEventListener("click", (e) => {
      if (!mq.matches) return;
      if (!e.target.closest(".nav-item.dropdown")) {
        dropdowns.forEach(dd => dd.classList.remove("open"));
      }
    });
  }

  setupMobileDropdowns();
})();

@media (max-width: 980px){
  .dropdown.open .dropdown-menu{
    display: block;
    position: static;     /* makes it stack nicely in the mobile menu */
    min-width: unset;
    margin-top: 6px;
  }
}
/* ===== MOBILE MENU: centre ALL items consistently (desktop unchanged) ===== */
@media (max-width: 980px){

  /* Make each menu row full width */
  .nav a,
  .nav-item{
    width: 100%;
  }

  /* Centre text + centre the “pill” background */
  .nav a{
    text-align: center;
    justify-content: center;
  }

  /* Dropdown wrappers were flex rows – turn into stacked blocks on mobile */
  .nav-item.dropdown{
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Centre the dropdown toggle like other links */
  .nav-item.dropdown > a{
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  /* If dropdown menus are being shown on mobile, centre those too */
  .dropdown-menu{
    width: 100%;
    text-align: center;
  }

  .dropdown-menu a{
    text-align: center;
    justify-content: center;
  }
}
