/* 4) Micro-overlap the navbar upward to kill any sub-pixel seam */
.header-style1 .navbar-default {
  margin-top: -4px !important;
}

/*Hide half circle*/
.d-none.d-sm-inline-block.p-18.rounded-circle.bg-primary.position-absolute.z-index-1.top-n15.right {
  display: none !important;
}

/* Make sure the hero sits flush under the header */
.header-style1+.page-title-section {
  margin-top: -138px !important;
  /* tiny overlap to kill any hairline seam */

}

/* Fix hover color for Book Online button */
.butn.appointment.top-butn:hover {
  color: #967BB6 !important;
  /* lavender text */
  background-color: #ffffff !important;
  /* optional: invert background */
  border-color: #967BB6 !important;
  /* keep border in theme */
}

.butn.appointment {
  /* optional: invert background */
  border-color: #ffffff !important;
  /* keep border in theme */
}

/* Active menu item (current page) */
.navbar-nav>li.active>a,
.navbar-nav>li>a.active {
  color: #734F96 !important;
  background-color: #f5f0fa;
}

/* Submenu hover */
.navbar-nav li ul li a:hover,
.navbar-nav li ul li a:focus {
  color: #734F96 !important;
  background-color: #f5f0fa;
}

/* Parents (top-level & intermediate) show lavender text when any descendant is active */
.navbar-nav>li.active-ancestor>a,
.navbar-nav li.active-ancestor>a {
  color: #734F96 !important;
  background-color: transparent !important;
  /* parents: no bg */
}

/* Top-level parent on hover/active itself */
.navbar-nav>li>a:hover,
.navbar-nav>li>a:focus,
.navbar-nav>li.active>a,
.navbar-nav>li>a.active {
  color: #734F96 !important;
  background-color: transparent !important;
}

/* Submenus (all depths): hover/active = lavender text + soft bg */
.navbar-nav li ul li a:hover,
.navbar-nav li ul li a:focus,
.navbar-nav li ul li.active>a,
.navbar-nav li ul li>a.active,
.navbar-nav li ul li ul li a:hover,
.navbar-nav li ul li ul li a:focus,
.navbar-nav li ul li ul li.active>a,
.navbar-nav li ul li ul li>a.active {
  color: #734F96 !important;
  background-color: #f5f0fa !important;
}

/* Ensure ANY ancestor level gets the lavender text */
.navbar-nav li.active-ancestor>a,
.navbar-nav li.active-ancestor>.dropdown-toggle,
.navbar-nav li.active-ancestor>.menu-title,
.navbar-nav li.active-ancestor>span,
.navbar-nav a.active-ancestor-link {
  color: #734F96 !important;
  background-color: transparent !important;
}

.page-title-section h1 {
  color: #967BB6 !important;
  position: absolute;
  bottom: 10px;
  /* or top:120px depending on placement */
  left: 16%;
  transform: translateX(-50%);
}

.page-title-section ul {
  color: #967BB6 !important;
  transform: translateY(97%);
}

.page-title-section ul li a {
  color: #734F96 !important;
}

.page-title-section ul li a.active,
.page-title-section ul li a:hover,
.page-title-section ul li a:focus {
  color: #967BB6 !important;
}

.pagetitle-breadcrumb {
  color: #734F96 !important;
}

.pagetitle-breadcrumb.bg404 {
  background: transparent;
}

section {
  padding: 60px 0 !important;
}

#team-section {
  padding: 60px 0 !important;
}

#services {
  padding: 40px 0 !important;
}

.team {
  padding: 40px 0 !important;
}

.about-img {
  height: 724px !important;
  width: 589px !important;
}

.footer-bar {
  background-color: #895129;
}

/* Scroll to top */

.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  background: #967BB6;
  /* your lavender */
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  border-color: #ffffff !important;
  z-index: 10000;
  /* above sliders/headers */
  display: none;
  /* JS toggles this */
}

.scroll-to-top i {
  font-size: 18px;
}

/* if any global styles set it hidden/transparent on lg screens, neutralize that */
@media (min-width: 992px) {
  .scroll-to-top {
    opacity: 1;
    visibility: visible;
  }
}

/* --- Shared footer hover style --- */
.footer-social-style1 a,
.top-social-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  /* default icon color */
  transition: background .25s, color .25s, transform .2s;
}

/* make <i> inherit color */
.footer-social-style1 a i,
.top-social-icon a i {
  color: currentColor !important;
}

/* Hover effect (same in footer & top bar) */
.footer-social-style1 a:hover,
.top-social-icon a:hover {
  background: #ffffff;
  color: #967BB6 !important;
  transform: translateY(-1px);
}

/* --- Sizes --- */
.footer-social-style1 a {
  width: 40px;
  height: 40px;
}

.top-social-icon a {
  width: 30px;
  height: 30px;
  font-size: 14px;
  /* slightly smaller icons */
}

/* Optional: spacing between top-bar icons */
.top-social-icon {
  display: flex;
  gap: 2px;
  /* adjust spacing */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Optional: spacing between footer icons */
.footer-social-style1 {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- 2) Reduce footer size using CSS only (override Bootstrap utilities) --- */
/* Your row has py-8 py-lg-9 which is very tall. Override inside footer only. */
footer.bg-primary .py-8 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

@media (min-width: 992px) {
  footer.bg-primary .py-lg-9 {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }

  /* Cap the footer height on desktops */
  footer.bg-primary {
    max-height: 380px;
    overflow: hidden;
    /* prevents spillover if content exceeds */
  }
}

/* Optional tightening for elements inside footer (safe, CSS-only) */
footer.bg-primary .footer-logo img {
  max-width: 180px;
  height: auto;
}

footer.bg-primary p.opacity9 {
  margin-bottom: 1rem;
}

footer.bg-primary .footer-list-style1 li {
  margin-bottom: .5rem;
}

footer.bg-primary .footer-list-style1 li:last-child {
  margin-bottom: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-social-style1 a {
    transition: none;
  }
}

/* --- Vertically center the copyright line in the footer bar --- */
footer .footer-bar {
  padding: 0 !important;
  /* remove theme padding */
}

.top-bar-style {
  font-size: 14px;
  color: #ffffff
}

.no-display {
  display: none;
}

.bg-section-style {
  background-image: url("img/contact-1.webp");
  background-size: cover;
  /* scales to cover the banner area */
  background-repeat: no-repeat;
  background-position: center top;
  /* pick focus area */
  height: 232px;
}

.map-style {
  width: 100%;
  height: 450px;
  border: 0;
}

.bg-animation-style {
  background-image: url(&quot;img/contact-1.webp&quot;);
  visibility: visible;
  animation-delay: 600ms;
  animation-name: fadeIn;
}

.appt-link-style {
  color: white;
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
}

.phone-call-action {
  color: white;
  font-weight: 600;
  font-style: italic;
}

.tooth-stain {
  object-position: 80% top
}

.weight-500 {
  font-weight: 500;
}

.width-270 {
  width: 270px;
}

.title-text-border {
  text-shadow:
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white;
  /* white border effect */
}

.tel-link {
  color: #ffffff !important;
}

:root {
  --brand: #967BB6;
  /* primary */
  --brand-2: #b89dd6;
  /* secondary tint */
  --ink: #0b1220;
  --muted: #566074;
  --card-bg: rgba(255, 255, 255, 0.86);
  --radius: 20px;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.2);
}

/* ========== Animated gradient background ========== */
.error-hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.25) 35%, transparent 60%),
    conic-gradient(from 180deg at 50% 50%, var(--brand), var(--brand-2), var(--brand));
  animation: hue 18s linear infinite;
  filter: saturate(1.05);
}

@keyframes hue {
  to {
    filter: hue-rotate(360deg) saturate(1.05);
  }
}

/* Soft floating â€œblobsâ€ for depth */
.blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.06) 60%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  animation: float 24s ease-in-out infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.blob.b1 {
  left: -15vmax;
  top: -10vmax;
  animation-delay: -3s;
}

.blob.b2 {
  right: -20vmax;
  bottom: -15vmax;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(5vmax, -3vmax, 0) scale(1.05);
  }
}

/* ========== Content card ========== */
.error-card {
  z-index: 1;
  width: min(980px, 92vw);
  margin-inline: auto;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}

@media (max-width: 860px) {
  .error-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .error-actions {
    justify-content: center;
  }
}

/* ========== Floating tooth SVG ========== */
.tooth-wrap {
  position: relative;
  aspect-ratio: 1/1;
}

.tooth {
  width: clamp(200px, 32vw, 300px);
  height: auto;
  display: block;
  margin-inline: auto;
  animation: bob 3.6s ease-in-out infinite;
  filter: drop-shadow(0 20px 25px rgba(2, 6, 23, 0.25));
  transform-style: preserve-3d;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Sparkles */
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #967BB6;
  opacity: 0;
}

.sparkle.s1 {
  left: 16%;
  top: 30%;
  animation: twinkle 2.4s ease-in-out infinite 0.2s;
}

.sparkle.s2 {
  right: 14%;
  top: 18%;
  animation: twinkle 2.8s ease-in-out infinite 0.6s;
}

.sparkle.s3 {
  left: 10%;
  bottom: 22%;
  animation: twinkle 2.6s ease-in-out infinite 1s;
}

.sparkle.s4 {
  right: 8%;
  bottom: 12%;
  animation: twinkle 3s ease-in-out infinite 1.3s;
}

@keyframes twinkle {

  0%,
  100% {
    transform: scale(0.4);
    opacity: 0;
  }

  50% {
    transform: scale(1);
    opacity: 0.95;
  }
}

/* Text + actions */
.error-title {
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.error-sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.butn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  background: linear-gradient(135deg, var(--btn-bg), #7e66a0);
  color: var(--btn-fg) !important;
  border: none !important;
  padding: 12px 18px;

  font-weight: 600;
  box-shadow: 0 12px 20px rgba(150, 123, 182, .25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s ease, filter .2s ease;
}

.butn:hover {
  color: #967BB6 !important;
  /* lavender text */
  background-color: #ffffff !important;
  /* optional: invert background */
  border-color: #967BB6 !important;
  /* optional: invert border */
}

.tooth path:first-of-type {
  stroke: #967BB6;
}

/* Footer readability on gradient */
.footer-tint {
  color: rgba(255, 255, 255, 0.9);
}

.footer-tint a {
  color: #fff;
  text-decoration: underline;
}

:root {
  --ads-purple: #967BB6;
  --ads-cn-radius: 16px;
  /* rounded corners for the banner */
}

.ads-callnow {
  position: relative;
  background: var(--ads-purple);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--ads-cn-radius);
  /* rounded corners */
  padding: 14px 0;
  overflow: hidden;

  /* subtle pattern + tooth watermark (optional) */
  background-image:
    radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 2px),
    radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 2px),
    url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\<path opacity='0.10' fill='%23ffffff' d='M32 6c-6 0-12 4-14 10-3 8 1 15 5 20 3 4 5 10 5 16 0 3 2 6 5 6s5-3 5-6c0-6 2-12 5-16 4-5 8-12 5-20-2-6-8-10-14-10z'/>\</svg>");
  background-size: 48px 48px, 48px 48px, 520px auto;
  background-position: 0 0, 24px 24px, right -60px center;
  background-repeat: repeat, repeat, no-repeat;
}

.ads-slogan {
  color: #fff;
  /* keep slogan white */
  font-weight: 700;
  letter-spacing: .2px;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

/* Button default */
.ads-callbtn {
  background: var(--ads-purple);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  /* pill button */
  padding: .65rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .20);
}

.ads-callbtn i {
  color: currentColor;
}

/* icon follows text color */

/* Button hover/focus: background becomes white; border, icon, and text = purple */
.ads-callbtn:hover,
.ads-callbtn:focus,
.ads-callbtn:focus-visible {
  background: #fff;
  color: var(--ads-purple);
  border-color: var(--ads-purple);
  text-decoration: none;
  outline: none;
}

@media (max-width: 575.98px) {
  .ads-callnow {
    padding: 12px 0;
  }
}

.accordion-style .card-header {
  padding-top: 40px;
}

:root {
  --ads-purple: #967BB6;
  --ads-radius: 0px;
}

/* Top bar with brand background; NO bottom line */
#top-bar.top-bar-ads {
  position: relative;
  background: #967BB6;
  color: #fff;
  border: 0 !important;
  /* remove white line */
  box-shadow: none !important;
  /* just in case theme adds one */
  border-radius: 0 0 var(--ads-radius) var(--ads-radius);
  padding: .6rem 0;
  margin-bottom: 0;
  /* avoid hairlines from margins */
  overflow: hidden;

  /* dotted pattern + faint tooth watermark */
  background-image:
    radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 2px),
    radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 2px),
    url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\<path opacity='0.10' fill='%23ffffff' d='M32 6c-6 0-12 4-14 10-3 8 1 15 5 20 3 4 5 10 5 16 0 3 2 6 5 6s5-3 5-6c0-6 2-12 5-16 4-5 8-12 5-20-2-6-8-10-14-10z'/>\</svg>");
  background-size: 42px 42px, 42px 42px, 420px auto;
  background-position: 0 0, 21px 21px, right -110px center;
  background-repeat: repeat, repeat, no-repeat;
}

/* Text & links */
#top-bar.top-bar-ads a,
#top-bar.top-bar-ads .fw-bold {
  color: #fff;
}

#top-bar.top-bar-ads a:hover {
  color: #f5f1fa;
  text-decoration: none;
}

/* Phone chip â€” hover exactly like Call Now */
.topbar-phone .tel-link {
  border: 2px solid #fff;
  border-radius: 999px;
  /* pill corners */
  padding: .35rem .75rem;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  line-height: 1;
  transition: all .2s ease;
}

.topbar-phone .tel-link i {
  color: currentColor;
}

.topbar-phone .tel-link:hover,
.topbar-phone .tel-link:focus,
.topbar-phone .tel-link:focus-visible {
  background: #fff;
  /* like Call Now hover */
  color: #967BB6;
  border-color: #967BB6;
  outline: none;
  text-decoration: none;
}

/* Social icons */
.top-social-icon i {
  color: #fff;
  opacity: .9;
  transition: opacity .2s ease;
}

.top-social-icon a:hover i {
  opacity: 1;
}

@media (max-width: 575.98px) {
  #top-bar.top-bar-ads {
    padding: .5rem 0;
  }
}

:root {
  --ads-purple: #967BB6;
}

/* 1) Remove any underlines/lines and hairlines on the bar */
#top-bar.top-bar-ads {
  border: 0 !important;
  /* kills white line */
  box-shadow: none !important;
  /* in case the theme adds one */
  margin-bottom: 0;
  /* prevents subpixel hairlines */
  background-clip: padding-box;
  /* avoids bleed */
}

/* 2) Keep the generic hover for other links, BUT exclude the phone chip */
#top-bar.top-bar-ads a:hover:not(.tel-link) {
  color: #f5f1fa;
  text-decoration: none;
}

/* 3) Phone chip hover â€” outrank the generic rule (uses #top-bar for specificity) */
#top-bar.top-bar-ads .topbar-phone .tel-link:hover,
#top-bar.top-bar-ads .topbar-phone .tel-link:focus,
#top-bar.top-bar-ads .topbar-phone .tel-link:focus-visible {
  background: #fff;
  color: var(--ads-purple) !important;
  /* force purple text */
  border-color: var(--ads-purple) !important;
  text-decoration: none;
  outline: none;
}

/* Icon follows text color; add explicit rule just in case */
#top-bar.top-bar-ads .topbar-phone .tel-link:hover i,
#top-bar.top-bar-ads .topbar-phone .tel-link:focus i {
  color: var(--ads-purple) !important;
}

/* ====== TOP BAR: PHONE CHIP HOVER FIX ====== */
:root {
  --ads-purple: #967BB6;
}

/* remove any hairline under the bar (again, just in case) */
#top-bar.top-bar-ads {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0;
  background-clip: padding-box;
}

/* generic link hover in the top bar (exclude the phone chip) */
#top-bar.top-bar-ads a:hover:not(.tel-link) {
  color: #f5f1fa !important;
  text-decoration: none !important;
}

/* THE PHONE CHIP â€” force hover like Call Now */
#top-bar.top-bar-ads .topbar-phone a.tel-link {
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: all .2s ease;
}

/* strongest, most specific selector + !important for safety */
#top-bar.top-bar-ads .topbar-phone a.tel-link:hover,
#top-bar.top-bar-ads .topbar-phone a.tel-link:focus,
#top-bar.top-bar-ads .topbar-phone a.tel-link:focus-visible {
  background: #fff !important;
  color: var(--ads-purple) !important;
  border-color: var(--ads-purple) !important;
  text-decoration: none !important;
  outline: none;
}

/* make the icon and text follow the color on hover */
#top-bar.top-bar-ads .topbar-phone a.tel-link i,
#top-bar.top-bar-ads .topbar-phone a.tel-link span {
  color: currentColor !important;
}

#top-bar.top-bar-ads .topbar-phone a.tel-link.butn:hover,
#top-bar.top-bar-ads .topbar-phone a.tel-link.btn:hover {
  background: #fff !important;
  color: var(--ads-purple) !important;
  border-color: var(--ads-purple) !important;
}

.list-style3 li a {
  border: 1px solid #967BB6 !important;
  ;
  background: #ffffff;
  color: #967BB6;
  padding: 12px 14px !important;
  font-size: 16px;
}

.list-style3 li a:hover,
.list-style3 li a:active,
.list-style3 li a:focus {
  background: #967BB6;
  color: #ffffff;
}

.butn.appointment {
  background: #967BB6;
  color: #ffffff;
  padding: 12px 14px !important;
  font-size: 16px;
}

.butn.appointment:hover {
  background: #ffffff;
  color: #967BB6;
  border: 2px solid #967BB6
}

.top-butn:hover {
  color: #967BB6;
  background-color: #ffffff;
  border: 2px solid #967BB6
}

/* ---------------------------------------------
   3) CTA BUTTONS — UNIFIED LOOK & TRANSITION
   --------------------------------------------- */

.butn.appointment,
.ads-callbtn {
  background: var(--brand) !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
  /* white ring as requested */
  border-radius: var(--cta-radius) !important;
  padding: 8px 16px !important;
  font-size: 15px !important;
  box-shadow: var(--cta-shadow) !important;
  transition: background-color .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease !important;
  will-change: transform;
}

/* Kill any theme overlay on .butn that causes mismatch between buttons */
.butn.appointment::before {
  content: none !important;
}

.butn.appointment:hover,
.ads-callbtn:hover,
.butn.appointment:focus,
.ads-callbtn:focus {
  background: var(--white) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--cta-shadow-hover) !important;
  text-decoration: none !important;
}

/* Make the mini phone icon inside CTA follow the text color */
.ads-callbtn i {
  color: currentColor !important;
}

/* =========================
   AGAPE — Post-revert CSS (drop at end of custom.css)
   ========================= */

/* Brand tokens */
:root {
  --brand: #967BB6;
  /* Lavender */
  --white: #fff;
  --cta-radius: 10px;
  --cta-shadow: 0 8px 20px rgba(150, 123, 182, .33);
  --cta-shadow-hover: 0 8px 16px rgba(150, 123, 182, .26);
}

/* 1) PRIMARY CTAs — Book Online & Call (identical look) */
.butn.appointment,
.ads-callbtn {
  background: var(--brand) !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
  /* white ring */
  border-radius: var(--cta-radius) !important;
  /* 10px */
  padding: 8px 16px !important;
  font-size: 15px !important;
  box-shadow: var(--cta-shadow) !important;
  transition: background-color .25s ease !important,
    color .25s ease !important,
    transform .2s ease !important,
    box-shadow .25s ease !important;
  will-change: transform;
}

.butn.appointment::before {
  content: none !important;
}

/* neutralize theme overlay */

.butn.appointment:hover,
.ads-callbtn:hover,
.butn.appointment:focus,
.ads-callbtn:focus {
  background: var(--white) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--cta-shadow-hover) !important;
  text-decoration: none !important;
}

/* Icons inside CTAs follow text color + consistent spacing */
.butn.appointment i,
.ads-callbtn i {
  color: currentColor !important;
  margin-right: .5rem;
  vertical-align: middle;
}

/* 4) Footer bottom gap safety */
footer .footer-bar {
  margin: 0 !important;
  padding: 10px 0 !important;
}

footer .footer-bar p {
  margin: 0 !important;
}

footer>ul:last-child {
  display: none !important;
}

/* hides stray UL if present */

/* 2) FOOTER QUICK LINKS — clear, visible hover (no underline needed) */
footer .footer-list-style1 li a {
  color: #fff !important;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease !important;
}

footer .footer-list-style1 li a:hover,
footer .footer-list-style1 li a:focus {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  transform: translateX(2px);
  opacity: .95;
  text-decoration: none !important;
}

.fw-bold {
  font-size: 15px !important;
}

.tel-link {
  background: var(--brand) !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
  /* white ring */
  border-radius: var(--cta-radius) !important;
  /* 10px */
  padding: 4px 16px !important;
  font-size: 15px !important;
  box-shadow: var(--cta-shadow) !important;
  transition: background-color .25s ease !important,
    color .25s ease !important,
    transform .2s ease !important,
    box-shadow .25s ease !important;
  will-change: transform;
}

.tel-link::before {
  content: none !important;
}

/* neutralize theme overlay */

.tel-link:hover,
.tel-link:focus,
{
background: var(--white) !important;
color: var(--brand) !important;
border-color: var(--brand) !important;
transform: translateY(-2px) scale(1.02);
box-shadow: var(--cta-shadow-hover) !important;
text-decoration: none !important;
}

/* Icons inside CTAs follow text color + consistent spacing */
.tel-link i {
  color: currentColor !important;
  margin-right: .5rem;
  vertical-align: middle;
}

footer .footer-list-style1 li a {
  color: #fff !important;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease !important;
}

/* Fix Contact layout: align label/value and allow multi-line values */
.footer-contact.footer-list-style1 li {
  display: flex;
  align-items: flex-start;
  /* top-align multi-line values */
  justify-content: space-between;
  gap: .75rem;
}

.footer-contact.footer-list-style1 li>span:first-child {
  flex: 0 0 90px;
  /* label column width */
  color: rgba(255, 255, 255, .85);
  /* optional tone */
}

.footer-contact.footer-list-style1 li>span:last-child {
  flex: 1 1 auto;
  text-align: right;
  /* keep values right-aligned */
  min-width: 0;
  /* prevent overflow */
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Keep label/value on one line when needed */
.nowrap {
  white-space: nowrap;
}

/* Flex layout for footer lists (prevents float-collapse + “cut” bar) */
.footer-contact.footer-list-style1 li,
.footer-hours.footer-list-style1 li {
  display: flex;
  align-items: flex-start;
  /* top-align multi-line values */
  justify-content: space-between;
  gap: .75rem;
}

.footer-contact.footer-list-style1 li>span:first-child,
.footer-hours.footer-list-style1 li>span:first-child {
  flex: 0 0 90px;
  /* label column width */
  color: rgba(255, 255, 255, .85);
}

.footer-contact.footer-list-style1 li>span:last-child,
.footer-hours.footer-list-style1 li>span:last-child {
  flex: 1 1 auto;
  text-align: right;
  /* or left if you prefer */
  min-width: 0;
}

/* Make sure the bottom bar can’t sit under anything */
.footer-bar {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
}

footer.bg-primary {
  overflow: visible;
}

/* just in case a theme sets hidden */

/* Prevent line break in the first address line */
.addr-line1 {
  white-space: nowrap;
}

/* Flex layout for Contact + Hours (no floats, no clipping) */
.footer-contact.footer-list-style1 li,
.footer-hours.footer-list-style1 li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

/* Give the label a slimmer column so the value has more room */
.footer-contact.footer-list-style1 li>span:first-child,
.footer-hours.footer-list-style1 li>span:first-child {
  flex: 0 0 80px;
  /* was 90px; tune as you like */
  color: rgba(255, 255, 255, .85);
}

/* Value column */
.footer-contact.footer-list-style1 li>span:last-child,
.footer-hours.footer-list-style1 li>span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  /* left-align reads better for addresses */
}

/* Optional: on very wide screens, trim label a bit more for extra space */
@media (min-width: 1200px) {

  .footer-contact.footer-list-style1 li>span:first-child,
  .footer-hours.footer-list-style1 li>span:first-child {
    flex-basis: 72px;
  }
}

.footer-bar {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
}

/* avoid theme overflow:hidden cutting the bar */
/* Remove the white separator above the copyright bar */
.footer-bar {
  margin-top: 0;
  /* no gap */
  border-top: 0 !important;
  /* some themes draw a white border */
  background-color: #6b3f1f;
  /* your brown bar color — keep/change as needed */
  position: relative;
  padding: 1rem 0;
}

/* Some themes create the stripe with a pseudo-element */
.footer-bar::before,
.footer-bar::after {
  content: none !important;
  display: none !important;
}

/* Make sure nothing else shows through */
footer.bg-primary {
  overflow: visible;
}

/* avoid clipping */
footer .footer-divider,
footer hr {
  display: none;
}

/* === FINAL FOOTER PATCH (paste at end of custom.css) === */

/* 1) Never clip the footer; the earlier rule sets a max-height + overflow */
@media (min-width: 992px) {
  footer.bg-primary {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* 2) Unify the copyright bar styles and nuke any separator/hairline */
.footer-bar {
  background-color: #6b3f1f !important;
  /* pick ONE brown; keep it consistent */
  border-top: 0 !important;
  /* some themes draw a white top border */
  margin-top: -2px !important;
  /* micro-overlap to cover any subpixel seam */
  padding: 12px 0 !important;
  /* consistent padding */
  position: relative;
  z-index: 2;
}

.footer-bar::before,
.footer-bar::after {
  content: none !important;
  display: none !important;
}

/* 3) Make sure the section above can’t add a gap */
footer.bg-primary .py-8,
footer.bg-primary .py-lg-9 {
  padding-bottom: 32px !important;
  /* keep, but no extra gap */
}

footer .footer-divider,
footer hr {
  display: none !important;
}

/*# sourceMappingURL=styles.css.map */

/* ===== A11Y additions (site-wide) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #fff;
  color: #000;
  padding: .5rem .75rem;
  border: 2px solid #000;
  border-radius: 6px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus {
  outline: 2px solid transparent;
}

:focus-visible {
  outline: 3px solid #734F96;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* treat icon fonts as decorative by default */
i[class^="fa"],
i[class*=" fa-"] {
  speak: none;
}

/* Footer hours label width and no-wrap to avoid line breaks */
.footer-hours.footer-list-style1 li>span:first-child {
  flex: 0 0 110px !important;
  white-space: nowrap !important;
}

/* ===== A11Y v6: strong, visible, and first-tab-focus skip link ===== */
.skip-link {
  position: fixed !important;
  left: 12px !important;
  top: 12px !important;
  transform: translateY(-200%) !important;
  /* hidden until focused */
  z-index: 2147483647 !important;
  background: #fff;
  color: #000;
  padding: .5rem .75rem;
  border: 2px solid #000;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.1;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none !important;
  /* reveal on keyboard focus */
  outline: 3px solid #734F96 !important;
  outline-offset: 3px !important;
}

/* Make native jump land below sticky header */
#services {
  scroll-margin-top: 160px !important;
}

#services:focus,
#services:focus-visible {
  outline: 3px solid #734F96 !important;
  outline-offset: 4px !important;
}

/* If any overlay blocks clicks */
#preloader {
  pointer-events: none !important;
}

/* ===== NAV: transparent at top with extra-subtle brand scrim; white after scroll ===== */

/* Transparent bar at the top */
.header-style1 .navbar-default {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* White links + soft halo only when at the top */
.header-style1:not(.is-scrolled) .navbar-nav>li>a {
  color: #fff !important;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, .22),
    0 0 6px rgba(0, 0, 0, .12);
}

/* On scroll: white nav like the original design */
.header-style1.is-scrolled .navbar-default {
  background: #fff !important;
  border-bottom: 1px solid rgba(0, 0, 0, .06) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.header-style1.is-scrolled .navbar-nav>li>a {
  color: #1f2937 !important;
  /* near-black */
  text-shadow: none !important;
}

/* Dropdowns readable everywhere (light panel) */
.header-style1 .navbar-nav li ul {
  background: rgba(255, 255, 255, .97) !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
  backdrop-filter: blur(6px);
}

.header-style1 .navbar-nav li ul li a {
  color: #1f2937 !important;
}

.header-style1 .navbar-nav li ul li a:hover {
  background: rgba(150, 123, 182, .10) !important;
  color: #1f2937 !important;
}

/* Active underline (brand) */
.navbar-nav>li>a.active,
.navbar-nav>li.active>a {
  background: transparent !important;
}

.navbar-nav>li>a.active::after,
.navbar-nav>li.active>a::after {
  content: "";
  display: block;
  height: 2px;
  background: #967BB6;
  margin-top: 6px;
  border-radius: 2px;
}

/* —— Even more toned, brand-tinted gradient scrim under the nav (no “bar”) —— */
:root {
  /* tune these two numbers for more/less subtlety */
  --nav-scrim-0: rgba(150, 123, 182, .08);
  /* top opacity (very light) */
  --nav-scrim-1: rgba(150, 123, 182, .00);
  /* fades to nothing */
}

.full-screen {
  position: relative;
}

.full-screen::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 96px;
  /* shorter & subtler */
  background: linear-gradient(to bottom, var(--nav-scrim-0) 0%, var(--nav-scrim-1) 100%);
  pointer-events: none;
  z-index: 1;
}

/* keep nav above the scrim */
.header-style1 {
  position: relative;
  z-index: 2;
}

/* Mobile: always use white background for clarity */
@media (max-width: 991.98px) {
  .header-style1 .navbar-default {
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, .06) !important;
    box-shadow: none !important;
  }

  .header-style1 .navbar-nav>li>a {
    color: #1f2937 !important;
    text-shadow: none !important;
  }
}

/* === Always-white navbar + black links (overrides) === */
.header-style1 .navbar-default,
.header-style1 .navbar-default.scrolled,
.header-style1 .navbar-default.at-top {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .06);
  /* subtle, remove if you don't want a shadow */
}

.header-style1 .navbar-default::before {
  content: none !important;
}

/* top-level items */
.header-style1 .navbar-default .navbar-nav>li>a {
  color: #111 !important;
  text-shadow: none !important;
  background: transparent !important;
}

/* hover/focus keep text black; optional underline feedback */
.header-style1 .navbar-default .navbar-nav>li>a:hover,
.header-style1 .navbar-default .navbar-nav>li>a:focus {
  color: #111 !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 #967BB6;
  /* thin brand underline; delete this line if you want zero color */
}

/* active/current page stays black (no lavender fill) */
.header-style1 .navbar-nav>li.active>a,
.header-style1 .navbar-nav>li>a.active {
  color: #111 !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 #967BB6;
  /* match hover underline */
}

/* dropdown links: black text on white; soft hover */
.header-style1 .navbar-default .navbar-nav li ul li a {
  color: #111 !important;
  background: #fff !important;
}

.header-style1 .navbar-default .navbar-nav li ul li a:hover,
.header-style1 .navbar-default .navbar-nav li ul li a:focus {
  color: #111 !important;
  background: #f5f6f8 !important;
}

/* kill older lavender overrides from earlier blocks */
.navbar-nav li.active-ancestor>a,
.navbar-nav a.active-ancestor-link {
  color: #111 !important;
  background: transparent !important;
}

/* mobile toggler contrast on white */
.navbar-light .navbar-toggler,
.header-style1 .navbar-default .navbar-toggler {
  color: #111 !important;
  border-color: #d1d5db !important;
}

/* === Compact navbar height (desktop + mobile) === */
.header-style1 .navbar-default {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Logo: slightly smaller */
.header-style1 .navbar-default .navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
}

#logo {
  max-height: 48px !important;
  width: auto !important;
}

/* Menu item paddings */
.header-style1 .navbar-default .navbar-nav>li>a {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.2 !important;
}

/* “Book Appointment” button: match the tighter bar */
.header-style1 .navbar-default .attr-nav>ul>li>a.butn,
.header-style1 .navbar-default .attr-nav>ul>li>a.top-butn {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Mobile (keeps it usable but tighter) */
@media (max-width: 991.98px) {
  #logo {
    max-height: 44px !important;
  }

  .header-style1 .navbar-default .navbar-nav>li>a {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* === NAV: single underline for the selected item === */

/* 1) Nuke any built-in underline indicators that cause doubles */
.header-style1 .navbar-default .navbar-nav li>a::before,
.header-style1 .navbar-default .navbar-nav li>a::after,
.header-style1 .navbar-default .navbar-nav li.active>a::before,
.header-style1 .navbar-default .navbar-nav li.active>a::after {
  content: none !important;
}

/* 2) Ensure links don't add borders/shadows themselves */
.header-style1 .navbar-default .navbar-nav>li>a {
  position: relative;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* 3) Our single brand underline ONLY on the current/active item */
.header-style1 .navbar-default .navbar-nav>li>a.active,
.header-style1 .navbar-default .navbar-nav>li.active>a {
  color: #000 !important;
  /* keep black text on white bar */
}

.header-style1 .navbar-default .navbar-nav>li>a.active::after,
.header-style1 .navbar-default .navbar-nav>li.active>a::after {
  content: "";
  position: absolute;
  left: 12px;
  /* shorten a bit from edges */
  right: 12px;
  bottom: 6px;
  /* adjust to taste */
  height: 2px;
  background: #967BB6;
  /* brand lavender */
  border-radius: 2px;
}

/* Optional: no underline on hover for non-active items */
.header-style1 .navbar-default .navbar-nav>li>a:hover::after {
  content: none !important;
}

/* NAV: selected/current item = brand lavender */
.header-style1 .navbar-default .navbar-nav>li>a.active,
.header-style1 .navbar-default .navbar-nav>li.active>a,
.header-style1 .navbar-default .navbar-nav>li>a[aria-current="page"],
.header-style1 .navbar-default .navbar-nav>li>a.active-ancestor-link {
  color: #967BB6 !important;
}

/* if you’re using the single-underline style from earlier, match it to the brand */
.header-style1 .navbar-default .navbar-nav>li>a.active::after,
.header-style1 .navbar-default .navbar-nav>li.active>a::after,
.header-style1 .navbar-default .navbar-nav>li>a[aria-current="page"]::after {
  background: #967BB6 !important;
}

/* ===== NAV — brand color for active submenu + its parent ===== */

/* 1) Submenu item itself (when that page is active) */
.header-style1 .navbar-default .navbar-nav li li>a.active,
.header-style1 .navbar-default .navbar-nav li li>a[aria-current="page"] {
  color: #967BB6 !important;
}

/* 2) Parent top-level item when any descendant is active
   - Works via your JS-added .active-ancestor class
   - Plus a :has() fallback for browsers that support it */
.header-style1 .navbar-default .navbar-nav>li.active-ancestor>a,
.header-style1 .navbar-default .navbar-nav>li:has(.active)>a {
  color: #967BB6 !important;
}

/* 3) Single underline style — keep it lavender on current parent too */
.header-style1 .navbar-default .navbar-nav>li>a {
  position: relative;
}

.header-style1 .navbar-default .navbar-nav>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: transparent;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease, background .2s ease;
}

.header-style1 .navbar-default .navbar-nav>li>a:hover::after,
.header-style1 .navbar-default .navbar-nav>li>a:focus::after {
  background: #967BB6 !important;
  transform: scaleX(1);
}

/* Active states (top-level current OR has an active submenu) */
.header-style1 .navbar-default .navbar-nav>li>a.active::after,
.header-style1 .navbar-default .navbar-nav>li.active>a::after,
.header-style1 .navbar-default .navbar-nav>li.active-ancestor>a::after,
.header-style1 .navbar-default .navbar-nav>li:has(.active)>a::after {
  background: #967BB6 !important;
  transform: scaleX(1);
}

/* ===== NAV — ensure ALL ancestor levels (top + submenu) go lavender when a sub-sub page is active ===== */

/* The active page link itself (any depth) */
.header-style1 .navbar-default .navbar-nav li a.active,
.header-style1 .navbar-default .navbar-nav li a[aria-current="page"] {
  color: #967BB6 !important;
}

/* Any ancestor menu item (works for mid-level submenu AND top-level)
   - via the JS-added .active-ancestor-link
   - plus a :has() enhancement for modern browsers */
.header-style1 .navbar-default .navbar-nav li .active-ancestor-link,
.header-style1 .navbar-default .navbar-nav li.active-ancestor>a,
.header-style1 .navbar-default .navbar-nav li:has(.active)>a {
  color: #967BB6 !important;
}

/* Keep the single underline only for TOP-LEVEL items, not submenus */
.header-style1 .navbar-default .navbar-nav>li>a {
  position: relative;
}

.header-style1 .navbar-default .navbar-nav>li>a:hover::after,
.header-style1 .navbar-default .navbar-nav>li>a:focus::after,
.header-style1 .navbar-default .navbar-nav>li>a.active::after,
.header-style1 .navbar-default .navbar-nav>li.active>a::after,
.header-style1 .navbar-default .navbar-nav>li.active-ancestor>a::after,
.header-style1 .navbar-default .navbar-nav>li:has(.active)>a::after {
  background: #967BB6 !important;
  transform: scaleX(1);
}

/* No underline on submenu items */
.header-style1 .navbar-default .navbar-nav li li>a::after,
.header-style1 .navbar-default .navbar-nav li li li>a::after {
  content: none !important;
}

/* ===== NAVBAR LOGO: max size without increasing menu height ===== */
@media (min-width: 992px) {

  /* Set your desktop navbar height once (match current, don't grow) */
  :root {
    --navH: 64px;
  }

  /* tweak to 60–72px if your bar is a bit different */

  /* Keep the navbar from stretching taller */
  .header-style1 .navbar-default .navbar {
    min-height: var(--navH);
  }

  /* Make the brand area exactly the bar height and center the logo inside */
  .header-style1 .navbar-default .navbar-brand {
    height: var(--navH);
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
  }

  /* Let the image fill that height (minus a little breathing room) */
  .header-style1 .navbar-default .navbar-brand #logo {
    display: block;
    height: calc(var(--navH) - 10px);
    /* ~5px top/bottom padding */
    max-height: calc(var(--navH) - 10px);
    width: auto;
    /* preserve aspect ratio */
    max-width: none;
    /* avoid Bootstrap shrinking it */
  }

  /* Ensure menu links don't force extra height */
  .header-style1 .navbar-default .navbar-nav>li>a {
    padding-top: 18px;
    /* adjust these two to match your current look */
    padding-bottom: 18px;
    /* keep total <= --navH to avoid growth */
    line-height: 1.2;
  }
}

/* Mobile/tablet: give the logo a sensible size without pushing the bar */
@media (max-width: 991.98px) {
  .header-style1 .navbar-default .navbar-brand {
    padding: 4px 0 !important;
  }

  .header-style1 .navbar-default .navbar-brand #logo {
    height: 44px;
    /* fits typical mobile header */
    width: auto;
  }
}

/* ===== NAVBAR: lock height + let logo fill it (desktop) ===== */
@media (min-width: 992px) {
  :root {
    --navH: 64px;
  }

  /* adjust to 60–68px if needed */

  /* Keep the bar from growing */
  .header-style1 .navbar-default .navbar {
    height: var(--navH) !important;
    min-height: var(--navH) !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-style1 .navbar-default .navbar>.container-fluid,
  .header-style1 .navbar-default .menu_area,
  .header-style1 .navbar-default .navbar-header-custom {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Brand block fills the bar; no extra padding to push height */
  .header-style1 .navbar-default .navbar-brand {
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Make the logo as big as possible within the fixed bar height */
  .header-style1 .navbar-default .navbar-brand #logo {
    height: calc(var(--navH) - 12px) !important;
    /* ~6px top/bottom breathing room */
    max-height: calc(var(--navH) - 12px) !important;
    width: auto !important;
    /* preserve aspect */
    max-width: none !important;
    /* avoid theme caps */
    display: block !important;
  }

  /* Menu links: no extra vertical padding; center with line-height */
  .header-style1 .navbar-default .navbar-nav>li>a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: var(--navH) !important;
    /* vertically centers text */
  }

  /* Attribute nav (right-side button) aligned to same height */
  .header-style1 .navbar-default .attr-nav>ul>li>a,
  .header-style1 .navbar-default .attr-nav>ul>li {
    line-height: var(--navH) !important;
  }

  /* Remove any margins that might add height */
  .header-style1 .navbar-default .navbar-nav>li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Mobile/tablet: keep header compact but let logo be nicely sized */
@media (max-width: 991.98px) {

  .header-style1 .navbar-default .navbar-brand #logo {
    height: 44px !important;
    /* safe mobile height */
    width: auto !important;
  }
}

/* ===== NAV: bigger logo without increasing bar height, keep CTA intact ===== */
@media (min-width: 992px) {
  :root {
    --navH: 78px;
  }

  /* tweak to 76–82px to taste */

  /* Keep the bar from changing height */
  .header-style1 .navbar-default .navbar {
    height: var(--navH) !important;
    min-height: var(--navH) !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-style1 .navbar-default .menu_area,
  .header-style1 .navbar-default .navbar>.container-fluid,
  .header-style1 .navbar-default .navbar-header-custom {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Brand block + image: fill the bar */
  .header-style1 .navbar-default .navbar-brand {
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Catch all theme selectors that cap the logo */
  .header-style1 .navbar-default .navbar-brand #logo,
  .header-style1 .navbar-default .navbar-brand img,
  .logochange img,
  .navbar .navbar-brand img {
    height: calc(var(--navH) - 12px) !important;
    /* ~6px breathing room top/bottom */
    max-height: calc(var(--navH) - 12px) !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
  }

  /* Menu links: center text without inflating the bar */
  .header-style1 .navbar-default .navbar-nav {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-style1 .navbar-default .navbar-nav>li>a {
    height: var(--navH) !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Right-side area (Book Online) */
  .header-style1 .navbar-default .attr-nav {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-style1 .navbar-default .attr-nav>ul {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  .header-style1 .navbar-default .attr-nav>ul>li {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  /* Do NOT force the CTA to inherit nav line-height */
  .header-style1 .navbar-default .attr-nav>ul>li>a {
    line-height: 1 !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .header-style1 .navbar-default .attr-nav .butn {
    line-height: 1.2 !important;
    height: auto !important;
    padding: 10px 16px !important;
    /* restore pill look */
  }

  /* Remove stray vertical margins that can change the bar height */
  .header-style1 .navbar-default .navbar-nav>li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* === Move Book Online to the far right + add spacing from menu === */
@media (min-width: 992px) {

  /* ensure the navbar is a flex row */
  .header-style1 .navbar-default .navbar {
    display: flex !important;
    align-items: center !important;
  }

  /* push the CTA block to the far right */
  .header-style1 .navbar-default .attr-nav {
    margin-left: auto !important;
    /* anchor to right edge */
    padding-left: clamp(24px, 3vw, 48px) !important;
    /* gap from menu */
  }

  /* optional: a little space between top-level menu items */
  .header-style1 .navbar-default .navbar-nav {
    column-gap: 18px;
    /* adjust to taste */
  }
}

/* ===== Book Online: pin to far right + add gap from menu ===== */
@media (min-width: 992px) {

  /* Force the navbar back to a single flex row */
  .menu_area>nav.navbar {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Keep logo fixed size, then the menu, then CTA */
  .menu_area>nav.navbar .navbar-header {
    flex: 0 0 auto !important;
  }

  .menu_area>nav.navbar>ul#nav {
    order: 2 !important;
    margin-left: 20px !important;
    /* small gap after logo */
  }

  /* <-- this is the button container */
  .menu_area>nav.navbar>.attr-nav {
    order: 3 !important;
    margin-left: auto !important;
    /* push to far right */
    padding-left: 42px !important;
    /* breathing room from menu */
  }

  /* Make sure the CTA’s own list doesn’t collapse */
  .menu_area>nav.navbar>.attr-nav>ul {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }
}

/* Fallback (if some pages still use floats) */
@media (min-width: 992px) {
  .menu_area>nav.navbar>.attr-nav {
    float: right !important;
  }
}

/* Site-wide paragraph justification */
html {
  text-rendering: optimizeLegibility;
}

html[lang="en"] p,
p {
  text-align: justify;
  text-justify: inter-word;
  /* improves spacing in supported browsers */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  /* reduces “rivers” by allowing hyphenation */
}

/* Opt-out utility (use on any container or single paragraph you don't want justified) */
.no-justify p,
p.no-justify {
  text-align: start;
  hyphens: manual;
}

/* Keep UI/headers un-justified (menus, buttons, small captions, etc.) */
.navbar p,
#top-bar p,
.attr-nav p,
.breadcrumb p,
.footer p,
.card-title,
.modal-title,
.alert,
.badge,
.btn,
.butn,
small,
.figure-caption {
  text-align: start !important;
}

/* Optional: if mobile looks too stretched, left-align paragraphs on very narrow screens */
@media (max-width: 420px) {
  p {
    text-align: left;
  }

  .justify-sm {
    text-align: justify !important;
  }

  /* opt-in per block if needed */
}

/* ================================
   Agape unified button style
   ================================*/
:root {
  --agape-primary: #967BB6;
  /* lavender */
  --agape-primary-2: #7e66a6;
  /* a touch darker for gradient */
  --agape-shadow: rgba(150, 123, 182, .35);
}

/* Base button (used site-wide) */
.butn,
a.butn,
button.butn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.25rem;
  /* uniform padding */
  min-width: 180px;
  /* consistent button width */
  line-height: 1.1;
  font-weight: 600;
  border-radius: 10px;
  /* consistent radius */
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff !important;
  background: linear-gradient(180deg, var(--agape-primary), var(--agape-primary-2));
  box-shadow: 0 10px 24px var(--agape-shadow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
  text-decoration: none;
}

/* Appointment buttons should look the SAME as other .butn */
.butn.appointment,
a.butn.appointment {
  background: linear-gradient(180deg, var(--agape-primary), var(--agape-primary-2));
  color: #fff !important;
  border-color: rgba(255, 255, 255, .25);
}

/* Normalize icon sizes inside buttons (kills mismatched .display-28, etc.) */
.butn i,
.butn .fa,
.butn .far,
.butn .fas,
.butn .fa-solid {
  font-size: 1.1rem !important;
  line-height: 1 !important;
}

/* Hover / focus / active: identical for both buttons */
.butn:hover,
.butn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--agape-shadow);
  filter: brightness(1.02);
}

.butn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px var(--agape-shadow);
}

/* Ensure hidden text utility on XXL doesn't shrink the button width */
.butn .d-xxl-inline-block {
  display: inline-block !important;
  /* keep text visible for consistent sizing */
}

/* If any theme utility makes one of them look “ghosty”, force solid style */
.butn.top-butn,
.butn.appointment.top-butn {
  background: linear-gradient(180deg, var(--agape-primary), var(--agape-primary-2)) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  box-shadow: 0 10px 24px var(--agape-shadow) !important;
}

/* Full-width option you can opt into with .w-100; sizing remains consistent */
/* Optional extra-tightening if needed */
#team-section .container>.row {
  margin-bottom: 0 !important;
}

#team-section .cta-block+* {
  margin-top: 0 !important;
}

/* tiny breathing room between the two callouts */
:root {
  --callout-gap: 4px;
}

/* adjust to 6–12px if you want */

section#agape-plan {
  margin-top: var(--callout-gap) !important;
  /* was 0 */
  padding-top: 0 !important;
}

/* spacing above the FIRST callout (after the paragraph block) */
:root {
  --first-callout-gap: 12px;
  /* tweak to 10–16px to taste */
  --callout-gap: 8px;
  /* already used between the two callouts */
}

#team-section .cta-block {
  margin-top: var(--first-callout-gap) !important;
}

/* keep tiny gap between the two callouts */
section#agape-plan {
  margin-top: var(--callout-gap) !important;
  padding-top: 0 !important;
}

/* ===== FORCE HOVER ON *ALL* AGAPE BUTTONS ===== */
/* Base (kept for context) */
a.butn,
.butn,
button.butn {
  cursor: pointer;
  background: linear-gradient(180deg, var(--agape-primary), var(--agape-primary-2)) !important;
  box-shadow: 0 10px 24px var(--agape-shadow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease, background .15s ease;
}

/* Stronger, visible hover: swap gradient, lift, stronger shadow */
a.butn:hover,
a.butn:focus-visible,
button.butn:hover,
button.butn:focus-visible,
.butn:hover,
.butn:focus-visible,
.attr-nav a.butn:hover,
.attr-nav a.butn:focus-visible,
.cta-actions a.butn:hover,
.cta-actions a.butn:focus-visible,
.header-style1 a.butn:hover,
.header-style1 a.butn:focus-visible {
  background: linear-gradient(180deg, #a990c8, #8c73b4) !important;
  /* brighter lavender on hover */
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 32px var(--agape-shadow) !important;
  filter: none !important;
  outline: none;
}

/* Active press */
a.butn:active,
button.butn:active,
.butn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 18px var(--agape-shadow) !important;
}

/* Normalize icons so they don't "jump" */
.butn i,
.butn .fa,
.butn .far,
.butn .fas,
.butn .fa-solid {
  font-size: 1.1rem !important;
  line-height: 1 !important;
  transition: transform .15s ease;
}

a.butn:hover i,
button.butn:hover i,
.butn:hover i {
  transform: translateY(-.5px);
}

/* If any utility class is suppressing hover (e.g., .btn, .disabled), un-do it for our styled buttons */
.butn.disabled,
.butn[aria-disabled="true"] {
  pointer-events: auto;
  opacity: 1;
}

/* Ensure nothing global hides the hero */
#map-hero {
  isolation: isolate;
}

/* new stacking context */
.map-hero-wrap {
  position: relative;
  min-height: 420px;
}

/* Bigger, explicit height map — no WOW dependency required */
.map-hero-embed {
  display: block;
  width: 100%;
  border: 0;
  height: 62vh;
  /* tall on mobile */
  min-height: 420px;
  z-index: 0;
  /* behind overlay */
}

@media (min-width: 992px) {
  .map-hero-embed {
    height: 72vh;
    min-height: 560px;
  }
}

@media (min-width: 1400px) {
  .map-hero-embed {
    height: 78vh;
    min-height: 680px;
  }
}

/* Brand glass overlay with safe stacking */
.map-hero-overlay {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 3vw, 2rem);
  max-width: 560px;
  padding: 1rem 1rem;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(150, 123, 182, .92), rgba(126, 102, 166, .92));
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(150, 123, 182, .35);
  z-index: 2;
  /* above iframe */
}

.map-hero-overlay .map-link {
  color: #fff;
  text-decoration: underline;
  position: relative;
  z-index: 1;
}

/* Keep the overlay clickable even if theme sets pointer-events:none somewhere */
.map-hero-overlay,
.map-hero-overlay a {
  pointer-events: auto !important;
}

/* Gentle spacing below hero */
#contact-details {
  padding-top: 1.25rem;
}

/* Smaller hero map heights */
.map-hero-embed {
  display: block;
  width: 100%;
  border: 0;
  height: 48vh;
  /* was taller; trimmed down */
  min-height: 360px;
  /* keep usable on small screens */
}

@media (min-width: 992px) {
  .map-hero-embed {
    height: 56vh;
    min-height: 480px;
  }
}

@media (min-width: 1400px) {
  .map-hero-embed {
    height: 60vh;
    min-height: 540px;
  }
}

#oral-surgery {
  object-fit: cover;
  /* fill box w/ cropping */
  object-position: center 25%;
  /* lower the image in the frame */
  /* or: object-position: center calc(50% + 60px); */
}

#bone-grafting {
  object-fit: cover;
  /* fill box w/ cropping */
  object-position: center 70%;
  /* lower the image in the frame */
  /* or: object-position: center calc(50% + 60px); */
}

#tooth-extraction {
  object-fit: cover;
  /* fill box w/ cropping */
  object-position: center 40%;
  /* lower the image in the frame */
  /* or: object-position: center calc(50% + 60px); */
}

#hero-1 {
  background-position: center calc(20%) !important;
}

#hero-2 {
  background-position: center calc(20%) !important;
}

#hero-3 {
  background-position: center calc(20%) !important;
}

#reviews .rounded {
  border-radius: 12px;
}
#reviews .shadow-sm {
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
#reviews h2 {
  color: #967BB6; /* your brand lavender */
}
/* --- Reviews Carousel --- */
.review-slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible; /* allows arrows outside */
}

.review-viewport {
  overflow: hidden; /* window for the slides */
}

.review-track {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

/* Slides: responsive columns */
.review-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 12px;
}
@media (min-width: 768px)  { .review-slide { flex-basis: 50%; } }
@media (min-width: 1200px) { .review-slide { flex-basis: 33.3333%; } }

/* Card styling (brand) */
.review-card {
  height: 100%;
  padding: 20px;
  border: 2px solid #967BB6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(150,123,182,.15);
  display: flex; flex-direction: column; justify-content: space-between;
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-photo  { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #967BB6; }
.review-name   { font-weight: 700; }
.review-stars  { color: #FFD700; line-height: 1; }
.review-text   { font-style: italic; margin: 10px 0 6px; }

/* Arrows placed OUTSIDE the viewport */
.review-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid #967BB6; background: #fff; color: #967BB6;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  cursor: pointer; transition: all .2s ease; z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.review-nav:hover { background: #967BB6; color: #fff; }
.review-nav.prev  { left: -54px; }
.review-nav.next  { right: -54px; }

/* Dots */
.review-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.review-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #967BB6; background: transparent; cursor: pointer;
  transition: background .2s ease;
}
.review-dot[aria-selected="true"] { background: #967BB6; }

/* Button inside this section */
#reviews .butn {
  background-color: #967BB6; color: #fff; border-radius: 30px;
  padding: 10px 20px; text-decoration: none; transition: all .3s ease;
}
#reviews .butn:hover { background-color: #7d65a0; color: #fff; }
.review-card {
  height: 100%;
  padding: 20px;
  border: 2px solid #967BB6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(150,123,182,.15);

  /* new layout */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* keep content at top */
}

.review-body {
  margin-top: auto; /* pushes the body down if there’s extra space */
}
/* Ensure the track doesn’t center items vertically */
.review-track { align-items: stretch !important; }

/* Ensure columns/wrappers don’t vertically center the slide/card */
.review-slide, .review-card { align-self: stretch !important; }

/* === Force reviews layout: content at TOP, leftover space at BOTTOM === */
#reviews .review-track {
  display: flex;
  align-items: stretch !important; /* no vertical centering */
}

#reviews .review-slide {
  display: flex;                 /* make slide stretch card */
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 12px;
  align-self: stretch !important;
}
@media (min-width: 768px)  { #reviews .review-slide { flex-basis: 50%; } }
@media (min-width: 1200px) { #reviews .review-slide { flex-basis: 33.3333%; } }

#reviews .review-card {
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 2px solid #967BB6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(150,123,182,.15);

  /* CRITICAL: no distribute spacing, keep content at top */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

/* Header sits at the top, with a small, fixed gap below */
#reviews .review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 0 !important;
}

/* Body follows header immediately — DO NOT push it down */
#reviews .review-body {
  margin-top: 0 !important;
  width: 100%;
}

/* Normalize paragraph spacing so it doesn't look like a big top gap */
#reviews .review-text {
  margin: 8px 0 6px 0 !important;
  font-style: italic;
}

/* Star/Avatar cosmetics (unchanged) */
#reviews .review-photo  { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #967BB6; }
#reviews .review-name   { font-weight: 700; }
#reviews .review-stars  { color: #FFD700; line-height: 1; }
