/* =========================================================
   MLS Dentistry — Modern brand refresh
   Brand colors: Lavender Purple #766ba9 · Sage Green #98aa78 · Soft Coral #f08f83
   Paste into: Appearance → Customize → Additional CSS → Publish
   Then clear the Jetpack Boost cache.
   To undo: delete this CSS and click Publish.
   ========================================================= */

/* Must stay at the very top */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---------- 1. Brand palette & tokens ---------- */
:root {
  /* the three MLS brand colors */
  --navy:  #766ba9;   /* lavender purple — primary */
  --teal:  #98aa78;   /* sage green — secondary */
  --coral: #f08f83;   /* soft coral — highlights */

  /* supporting shades */
  --purple-dark: #5b5190;
  --purple-tint: #f3f1fa;
  --green-dark:  #6f8452;
  --green-tint:  #f1f5ea;
  --coral-tint:  #fdeeec;
  --mint:  #f7f6fb;   /* soft section background */
  --cream: #ffffff;
  --ink:   #2e2a45;   /* text */
  --muted: #6b6680;
  --white: #ffffff;
  --line:  #e9e6f2;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(46, 42, 69, .07);
  --shadow-lg: 0 22px 50px rgba(118, 107, 169, .18);
  --heading: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --topbar-h: 40px;
}

/* Lets the header stay fixed (overflow:hidden on the page breaks it) */
html, body { overflow-x: clip !important; }
html { scroll-padding-top: 130px; scroll-behavior: smooth; }

/* ---------- 2. Typography ---------- */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4,
.hero h1, .section-head h2, .about h2, .clinical-copy h2,
.card h3, .contact-card h3, .footer h3, .footer h4,
.doctor-card strong, .trust-item b, .brand-text strong {
  font-family: var(--heading) !important;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.06;
}
.hero h1 em, .hero h1 span { color: var(--navy); font-style: normal; }
.section-head h2, .about h2, .clinical-copy h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
}
.hero-copy, .section-head p, .about p, .card p, .clinical-copy p { color: var(--muted); line-height: 1.7; }
.eyebrow {
  display: inline-block;
  color: var(--purple-dark) !important;
  background: var(--purple-tint);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
a { color: var(--navy); }

/* ---------- 3. Fixed top bar + header (stay put while scrolling) ---------- */
.topbar {
  position: sticky !important;
  top: 0;
  z-index: 1001;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: var(--purple-dark) !important;
  color: #ece9f7 !important;
  font-size: .88rem;
}
.topbar a { color: #fff !important; font-weight: 600; }
.site-header {
  position: sticky !important;
  top: var(--topbar-h);
  z-index: 1000;
  background: rgba(255, 255, 255, .92) !important;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(46, 42, 69, .06) !important;
}
body.admin-bar .topbar { top: 32px; }
body.admin-bar .site-header { top: calc(32px + var(--topbar-h)); }
.nav a { color: var(--ink) !important; font-weight: 500; }
.nav a:hover { color: var(--navy) !important; }
.nav a:after { background: var(--coral) !important; height: 2px; }

/* ---------- 4. Buttons (big, easy to tap) ---------- */
.btn {
  border-radius: 999px !important;
  font-weight: 600;
  padding: 14px 28px;
  min-height: 48px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
/* Book an Appointment = soft coral */
.btn-primary {
  background: linear-gradient(135deg, #f08f83, #e8776a) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 1px rgba(120, 40, 30, .25);
  box-shadow: 0 10px 24px rgba(240, 143, 131, .40);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e8776a, #db6557) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(240, 143, 131, .50);
}
.btn-outline {
  background: #fff !important;
  border: 1.5px solid var(--teal) !important;
  color: var(--green-dark) !important;
}
.btn-outline:hover { background: var(--green-tint) !important; transform: translateY(-2px); }

/* ---------- 5. Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, var(--purple-tint) 0%, rgba(243,241,250,0) 60%),
    radial-gradient(700px 420px at 0% 100%, var(--green-tint) 0%, rgba(241,245,234,0) 60%),
    #ffffff !important;
}
.hero:after { display: none !important; }
.assurance span { color: var(--muted) !important; font-weight: 500; }
.assurance span:before { color: var(--teal) !important; }
.doctor-card {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid var(--line) !important;
  border-left: 4px solid var(--coral) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ---------- 6. Trust strip ---------- */
.trust-strip { background: #fff !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.trust-item b { color: var(--ink) !important; }
.trust-item span { color: var(--muted) !important; }

/* ---------- 7. Service cards ---------- */
.services { background: var(--mint) !important; }
.card {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:before { display: none !important; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; border-color: #d6d0ec !important; }
.service-icon, .icon {
  background: linear-gradient(135deg, var(--purple-tint), var(--green-tint)) !important;
  border-radius: 14px !important;
}

/* ---------- 8. About / doctor ---------- */
.about-photo, .about-photo img { border-radius: 24px !important; box-shadow: var(--shadow-lg); }
.checklist span {
  background: var(--green-tint) !important;
  border: 1px solid #dfe7d2 !important;
  border-radius: 999px !important;
  color: var(--ink) !important;
}
.checklist span:before { color: var(--green-dark) !important; }

/* ---------- 9. Clinical feature ---------- */
.clinical-feature { background: var(--mint) !important; }

/* ---------- 10. Insurance ---------- */
.insurance { background: #fff !important; }
.insurance-box {
  background: var(--mint) !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}
.insurance-logo-card {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.insurance-logo-card:hover { border-color: #d6d0ec !important; box-shadow: var(--shadow) !important; }

/* ---------- 11. Contact ---------- */
.contact { background: linear-gradient(180deg, #fff 0%, var(--mint) 100%) !important; }
.contact-card, .hours {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}
.hours { border-top: 4px solid var(--teal) !important; }
.whatsapp-link { color: var(--green-dark) !important; }

/* ---------- 12. Footer ---------- */
.footer {
  background: linear-gradient(160deg, #3d3760, #2e2a45) !important;
  color: #d9d5ea !important;
}
.footer h3, .footer h4 { color: #fff !important; }
.footer a { color: #d9d5ea !important; }
.footer a:hover { color: var(--coral) !important; }
.footer-whatsapp { color: #c9dbab !important; }
.copyright { color: #a49fbd !important; border-top-color: rgba(255,255,255,.08) !important; }

/* ---------- 13. Hide unfinished sections ----------
   Delete the matching rule once real content is added. */

/* Hides the clinical section only while it still shows the placeholder. */
.clinical-feature:has(.clinical-placeholder) { display: none !important; }

/* Reviews section: hides the 3 blank review cards but keeps the heading
   and the "Read or Leave a Google Review" button visible.
   Delete this rule after adding real patient reviews in the Customizer. */
.review-grid { display: none !important; }
.reviews { background: var(--mint) !important; }
.reviews-cta,
.reviews a[href*="g.page"] {
  display: inline-flex !important;
  align-items: center;
  min-height: 48px;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f08f83, #e8776a) !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(240, 143, 131, .40);
}

/* ---------- 14. Photos: show the whole picture, no cropping ---------- */
/* Hero photo of Dr. Senatus: a rounded frame shaped exactly like the
   hero photo (1600 × 1130, a 1.41 : 1 landscape), so the picture fills
   the frame edge to edge with nothing cut off and no empty bars.
   WordPress/Jetpack also delivers the hero image in this same shape. */
.doctor-stage {
  align-self: center !important;
  justify-self: center;
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1600 / 1130;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  border-radius: 28px;
  overflow: visible !important;
  background: linear-gradient(160deg, var(--purple-tint), var(--green-tint));
  box-shadow: var(--shadow-lg);
}
.doctor-stage:before { display: none !important; }   /* removes the old circle backdrop */
.doctor-photo {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 28px;
  filter: none !important;
}
/* name card sits just below the photo's bottom-left corner so it never covers her */
.doctor-card { left: -18px !important; bottom: -22px !important; top: auto !important; }
.about-photo { height: auto !important; max-height: none !important; overflow: hidden; }
.about-photo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
}
.clinical-media {
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-lg) !important;
  background: var(--mint);
}
.clinical-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center 30% !important;
}
.insurance-logo-card img { max-width: 100% !important; height: auto !important; object-fit: contain !important; }
.entry-content img,
.wp-block-image img,
.wp-block-media-text__media img { max-width: 100%; height: auto; }
.wp-block-image img,
.wp-block-media-text__media img { border-radius: 18px; object-fit: contain; }

/* ---------- 15. Patient Reviews & Stories page ---------- */
.mls-lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.wp-block-button .wp-block-button__link {
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 700;
  min-height: 48px;
  text-decoration: none !important;
}
.mls-btn-coral .wp-block-button__link {
  background: linear-gradient(135deg, #f08f83, #e8776a) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(240, 143, 131, .40);
}
.mls-btn-green .wp-block-button__link {
  background: #25d366 !important;           /* WhatsApp green */
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .30);
}
.mls-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}
.mls-testimonial {
  margin: 0 !important;
  padding: 26px !important;
  background: #fff;
  border: 1px solid var(--line) !important;
  border-left: 4px solid var(--navy) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-style: normal;
}
.mls-testimonial cite { display: block; margin-top: 12px; color: #d8a62a; font-style: normal; font-weight: 600; }
.mls-share-box {
  background: var(--green-tint);
  border: 1px solid #dfe7d2;
  border-radius: 22px;
  padding: 28px;
  margin: 20px 0 40px;
}
.mls-clinical-photo img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.wp-block-jetpack-contact-form input,
.wp-block-jetpack-contact-form textarea {
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 16px;
}
.wp-block-jetpack-contact-form button,
.wp-block-jetpack-contact-form .wp-block-button__link {
  background: linear-gradient(135deg, #f08f83, #e8776a) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 700;
}

/* ---------- 16. Customer-friendly touches ---------- */
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none !important; }
}

/* ---------- 17. Mobile ---------- */
@media (max-width: 600px) {
  :root { --topbar-h: 52px; }
  body { font-size: 16px; }
  .topbar { font-size: .8rem; text-align: center; }
  html { scroll-padding-top: 150px; }
  .btn { width: 100%; justify-content: center; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .card, .contact-card, .hours { border-radius: 16px !important; }
  .doctor-stage { max-width: 100%; margin: 10px auto 34px; }
  .doctor-card { left: 8px !important; bottom: -26px !important; max-width: calc(100% - 16px); }
}