/* ==========================================================================
   Dental & Ozone Clinic — Homepage styles
   Built on Bootstrap 5.3 (no CSS Grid). Sections follow index.html order.
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --brand: #176b60;
  --brand-2: #398f80;
  --brand-dark: #0f4a42;
  --brand-deep: #0c3a34;
  --mint: #eaf5f1;
  --mint-2: #d6ebe4;
  --soft: #f7faf9;
  --white: #ffffff;
  --heading: #263633;
  --body: #5c6865;
  --border: #e4ece8;
  --accent-light: #a9dccf;
  --whatsapp: #15803d;
  --whatsapp-hover: #116a32;

  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(23, 58, 52, 0.06);
  --shadow: 0 12px 32px -12px rgba(23, 58, 52, 0.18);
  --shadow-lg: 0 24px 56px -20px rgba(15, 74, 66, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--body);
  --bs-body-bg: var(--white);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 23, 107, 96;
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 15, 74, 66;
  --bs-border-color: var(--border);
  --bs-focus-ring-color: rgba(23, 107, 96, 0.35);
}

/* 2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

/* Container gutter: 16px on phones */
.container {
  --bs-gutter-x: 2rem;
}

:focus-visible {
  outline: 3px solid rgba(23, 107, 96, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* 3. Reusable components
   -------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section-soft {
  background-color: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-eyebrow::before,
.text-center .section-eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.section-eyebrow-light {
  color: var(--accent-light);
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.075rem;
  margin-bottom: 0;
}

.icon-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-color: var(--mint);
  color: var(--brand);
  font-size: 1.05rem;
}

.icon-badge-whatsapp {
  background-color: #e3f5ea;
  color: var(--whatsapp);
}

/* Buttons */
.btn {
  --bs-btn-font-family: var(--font-heading);
  --bs-btn-font-weight: 700;
  --bs-btn-font-size: 0.95rem;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-border-radius: 999px;
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(23, 107, 96, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-lg {
  --bs-btn-padding-x: 1.85rem;
  --bs-btn-padding-y: 0.95rem;
  --bs-btn-font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-brand {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
  box-shadow: 0 10px 22px -10px rgba(23, 107, 96, 0.6);
}

.btn-light-brand {
  --bs-btn-color: var(--brand-dark);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--white);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-hover-bg: var(--mint);
  --bs-btn-hover-border-color: var(--mint);
  --bs-btn-active-color: var(--brand-dark);
  --bs-btn-active-bg: var(--mint-2);
  --bs-btn-active-border-color: var(--mint-2);
}

.btn-ghost-light {
  --bs-btn-color: var(--white);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.35);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.6);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.16);
  --bs-btn-active-border-color: rgba(255, 255, 255, 0.6);
  border-width: 1.5px;
}

.btn-ghost-light .fa-whatsapp {
  font-size: 1.2em;
}

.btn-link-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-active-color: var(--brand-dark);
  --bs-btn-padding-x: 0.5rem;
}

.btn-link-brand:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* CTA button with circular arrow */
.btn-cta {
  --bs-btn-padding-x: 0.45rem;
  padding-left: 1.4rem;
  gap: 0.85rem;
}

.btn-lg.btn-cta {
  padding-left: 1.75rem;
}

.btn-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.btn-lg .btn-cta-icon {
  width: 40px;
  height: 40px;
}

.btn-light-brand .btn-cta-icon {
  background-color: var(--brand);
  color: var(--white);
}

.btn-cta:hover .btn-cta-icon {
  transform: rotate(45deg);
}

/* 4. Top information bar (light)
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--mint);
  border-bottom: 1px solid var(--mint-2);
  color: var(--heading);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.topbar-list {
  gap: 0.35rem 1.4rem;
}

.topbar-list li,
.topbar-list a,
.topbar-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-weight: 500;
}

.topbar-list a:hover {
  color: var(--brand);
}

.topbar-list i,
.topbar-hours i {
  color: var(--brand);
}

.topbar-social {
  gap: 0.3rem;
  padding-left: 1rem;
  border-left: 1px solid var(--mint-2);
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--brand);
  font-size: 0.8rem;
}

.topbar-social a:hover {
  background-color: var(--brand);
  color: var(--white);
}

/* 5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(23, 58, 52, 0.4);
}

.site-header .navbar {
  min-height: var(--header-h);
  padding: 0.75rem 0;
}

.navbar-brand {
  display: inline-flex;
  min-width: 0;
  flex-shrink: 1;
  padding: 0;
  margin-right: 1rem;
}

.brand-logo {
  display: block;
  width: 218px;
  max-width: 100%;
  height: auto;
}

.btn-icon-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--mint);
  color: var(--brand);
}

.btn-icon-round:hover {
  background-color: var(--brand);
  color: var(--white);
}

.navbar-toggler {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--brand);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 107, 96, 0.3);
}

.toggler-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--white);
}

.toggler-bar:nth-child(2) {
  width: 12px;
  margin-left: 6px;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.show,
.navbar-nav .nav-link.active {
  color: var(--brand);
}

.dropdown-toggle::after {
  border: 0;
  content: "\F282"; /* bootstrap-icons chevron-down */
  font-family: "bootstrap-icons";
  font-size: 0.7rem;
  vertical-align: 0.05em;
  margin-left: 0.35rem;
  transition: transform 0.25s var(--ease);
}

.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-link-color: var(--heading);
  --bs-dropdown-link-hover-color: var(--brand);
  --bs-dropdown-link-hover-bg: var(--mint);
  --bs-dropdown-link-active-color: var(--brand);
  --bs-dropdown-link-active-bg: var(--mint);
  --bs-dropdown-item-padding-x: 0.85rem;
  --bs-dropdown-item-padding-y: 0.6rem;
  --bs-dropdown-padding-x: 0.5rem;
  --bs-dropdown-padding-y: 0.5rem;
  --bs-dropdown-font-size: 0.93rem;
  border-radius: 16px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 10px;
  font-weight: 500;
  white-space: normal;
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--brand-2);
}

.dropdown-item-all {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.header-actions .btn-cta {
  width: 100%;
  justify-content: space-between;
}

/* Mobile offcanvas (< 1200px) */
.offcanvas {
  --bs-offcanvas-width: min(360px, 88vw);
}

.offcanvas-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.offcanvas-header .brand-logo {
  width: 180px;
}

.offcanvas-body {
  padding: 1rem 1.25rem 1.75rem;
}

@media (max-width: 1199.98px) {
  /* keep logo + actions on one line; the logo scales down instead of wrapping */
  .site-header .navbar > .container {
    flex-wrap: nowrap;
  }

  .offcanvas-body .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .offcanvas-body .dropdown-menu {
    border: 0;
    background-color: var(--soft);
    margin: 0.4rem 0 0.6rem;
  }
}

.offcanvas-contact {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background-color: var(--soft);
}

.offcanvas-contact-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.offcanvas-contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
  color: var(--heading);
  font-weight: 600;
}

.offcanvas-contact-link small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--body);
  line-height: 1.2;
}

.offcanvas-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

/* Desktop navigation (>= 1200px) */
@media (min-width: 1200px) {
  .navbar-expand-xl .offcanvas-body {
    flex-grow: 1;
    align-items: center;
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.55rem 1rem !important;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.show,
  .navbar-nav .nav-link.active {
    background-color: var(--mint);
  }

  .navbar-nav .dropdown-menu {
    min-width: 290px;
    margin-top: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .navbar-nav .dropdown-menu.show {
    animation: dropdownIn 0.22s var(--ease);
  }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden; /* clips the decorative background panel only */
  padding: 3rem 0 6.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(57, 143, 128, 0.16) 0%, rgba(57, 143, 128, 0) 45%),
    linear-gradient(180deg, var(--soft) 0%, var(--mint) 100%);
}

.hero .container {
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

/* Rotating service phrase: a vertical ticker that pauses on each phrase.
   The first phrase is repeated at the end so the loop restarts seamlessly. */
.hero-rotator {
  display: inline-block;
  height: 1.3em; /* tall enough to contain descenders (y) of each phrase */
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}

.hero-rotator-track {
  display: block;
  animation: heroRotate 10s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

.hero-rotator-track > span {
  display: block;
  height: 1.3em;
  line-height: 1.3;
  color: var(--brand);
}

@keyframes heroRotate {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-20%); }
  50%, 70% { transform: translateY(-40%); }
  75%, 95% { transform: translateY(-60%); }
  100% { transform: translateY(-80%); }
}

.hero-doctor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  color: var(--heading);
}

.hero-doctor-with {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--body);
}

.hero-doctor-name {
  position: relative;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  z-index: 0;
}

.hero-doctor-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.22em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-2) 0%, var(--accent-light) 100%);
  z-index: -1;
}

.hero-text {
  font-size: 1.075rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.btn-dark-brand {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--brand-deep);
  --bs-btn-border-color: var(--brand-deep);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
}

.btn-dark-brand i {
  transition: transform 0.25s var(--ease);
}

.btn-dark-brand:hover i {
  transform: translateX(4px);
}

.btn-outline-dark-brand {
  --bs-btn-color: var(--brand-deep);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--brand-deep);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--brand-deep);
  --bs-btn-hover-border-color: var(--brand-deep);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  border-width: 1.5px;
}

.hero-trust {
  gap: 0.6rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mint-2);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--heading);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust i {
  color: var(--brand);
}

/* Services slider (Bootstrap carousel) */
.hero-visual {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.hero-visual::before {
  /* dotted pattern peeking out behind the slider */
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 120px;
  height: 140px;
  background-image: radial-gradient(var(--brand-2) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.4;
}

.hero-slider {
  position: relative;
  border: 8px solid var(--white);
  border-radius: var(--radius-lg);
  background-color: var(--mint-2);
  box-shadow: var(--shadow-lg);
}

.hero-slider .carousel-inner {
  border-radius: calc(var(--radius-lg) - 8px);
}

.hero-slider .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 58, 52, 0) 50%, rgba(12, 58, 52, 0.45) 100%);
  pointer-events: none;
}

.hero-slider .carousel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-slide-caption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.carousel-item.active .hero-slide-caption {
  animation: captionIn 0.6s 0.15s var(--ease) both;
}

@keyframes captionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--brand);
  color: var(--white);
  font-size: 1.05rem;
}

.hero-slide-body {
  min-width: 0;
}

.hero-slide-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 0.15rem;
}

.hero-slide-text {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.hero-slide-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  background-color: var(--mint);
  color: var(--brand);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-slide-link:hover {
  background-color: var(--brand);
  color: var(--white);
  transform: rotate(45deg);
}

.hero-slider-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem;
}

.hero-slider-count {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--body);
}

.hero-slider-count span {
  color: var(--brand);
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-slider-dots button {
  position: relative;
  width: 22px;
  height: 24px; /* comfortable tap target around a slim bar */
  padding: 0;
  border: 0;
  background: none;
  transition: width 0.3s var(--ease);
}

.hero-slider-dots button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 4px;
  border-radius: 4px;
  background-color: var(--mint-2);
  transition: background-color 0.3s var(--ease);
}

.hero-slider-dots button.active {
  width: 40px;
}

.hero-slider-dots button.active::before {
  background-color: var(--brand);
}

.hero-slider-arrows {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.hero-slider-arrows button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--mint-2);
  background-color: var(--white);
  color: var(--brand);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero-slider-arrows button:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* Small phones: keep the photo visible. The trust strip directly below
   already shows "21+ Years", so the badge is dropped here. */
@media (max-width: 575.98px) {
  .hero-slider .hero-chip-exp {
    display: none;
  }
}

@media (max-width: 424.98px) {
  .hero-slide-text {
    display: none;
  }

  .hero-slide-caption {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.55rem;
  }

  .hero-slide-icon,
  .hero-slide-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .hero-slide-title {
    font-size: 0.92rem;
  }
}

@media (max-width: 374.98px) {
  .hero-slider-count {
    display: none;
  }
}

@media (min-width: 992px) {
  .hero-slider .carousel-item img {
    aspect-ratio: 1 / 1;
  }

  .hero-slide-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.9rem;
  }
}

.hero-chip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 18px;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.hero-chip-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

.hero-chip-text {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--body);
}

.hero-chip-exp .hero-chip-text {
  font-weight: 600;
  color: var(--heading);
}

.hero-chip-exp {
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero {
    padding: 4rem 0 8.5rem;
    background:
      radial-gradient(circle at 0% 10%, rgba(57, 143, 128, 0.14) 0%, rgba(57, 143, 128, 0) 40%),
      var(--soft);
  }

  .hero::before {
    /* soft mint panel on the right */
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    border-bottom-left-radius: 260px;
    background: linear-gradient(160deg, var(--mint) 0%, var(--mint-2) 100%);
  }

  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(180deg, rgba(247, 250, 249, 0) 0%, var(--soft) 100%);
  }

  .hero .container {
    z-index: 1;
  }
}

@media (min-width: 1200px) {
  .hero-chip-exp {
    top: 2rem;
    left: -2.5rem;
  }
}

/* 7. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.trust-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem 0.5rem;
}

.trust-strip .col-12:not(:last-child) .trust-item {
  border-bottom: 1px solid var(--border);
}

.trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-2) 100%);
  color: var(--brand);
  font-size: 1.25rem;
}

.trust-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.trust-label {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .trust-card {
    padding: 0.5rem;
  }

  .trust-item {
    padding: 1.25rem;
  }

  .trust-strip .col-12 .trust-item {
    border-bottom: 0;
  }

  .trust-strip .col-12:nth-child(-n + 2) .trust-item {
    border-bottom: 1px solid var(--border);
  }

  .trust-strip .col-12:nth-child(odd) .trust-item {
    border-right: 1px solid var(--border);
  }
}

@media (min-width: 992px) {
  .trust-strip {
    margin-top: -4.5rem;
  }

  .trust-strip .col-12:nth-child(-n + 2) .trust-item {
    border-bottom: 0;
  }

  .trust-strip .col-12:not(:last-child) .trust-item {
    border-right: 1px solid var(--border);
  }
}

/* 8. About the doctor
   -------------------------------------------------------------------------- */
.doctor-media {
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  /* keeps the photo in view while the longer text column scrolls */
  .doctor-media {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.doctor-photo {
  position: relative;
  padding: 0 0 1.25rem 1.25rem;
}

.doctor-facts {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.doctor-fact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background-color: var(--mint);
  border: 1px solid var(--mint-2);
}

.doctor-fact-value {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

.doctor-fact-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--heading);
}

.doctor-fact-accent {
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: var(--brand);
}

.doctor-fact-accent .doctor-fact-value,
.doctor-fact-accent .doctor-fact-label {
  color: var(--white);
}

@media (max-width: 400px) {
  .doctor-fact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
  }
}

.doctor-photo::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 75%;
  height: 75%;
  border-radius: var(--radius-lg);
  background-color: var(--mint);
}

.doctor-photo img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.doctor-photo-tag {
  position: absolute;
  left: 2.25rem;
  bottom: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100% - 3rem);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
}

.doctor-photo-tag i {
  color: var(--brand);
}

.credentials-heading {
  font-size: 1.1rem;
  margin: 2rem 0 1.1rem;
}

.credential {
  display: flex;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.credential:hover {
  border-color: var(--mint-2);
  box-shadow: var(--shadow-sm);
}

.credential i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: var(--mint);
  color: var(--brand);
  font-size: 0.95rem;
}

.credential p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.credential strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.93rem;
  color: var(--heading);
  margin-bottom: 0.15rem;
}

/* 9. Services
   -------------------------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--mint-2);
  box-shadow: var(--shadow-lg);
}

.service-media {
  position: relative;
  overflow: hidden; /* clips the hover zoom to the image area */
}

.service-media img {
  display: block;
  width: 100%;
  aspect-ratio: 542 / 310;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 58, 52, 0) 55%, rgba(12, 58, 52, 0.25) 100%);
  pointer-events: none;
}

.service-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background-color: var(--brand);
  color: var(--white);
  font-size: 1.3rem;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: background-color 0.3s var(--ease);
}

.service-card:hover .service-icon {
  background-color: var(--brand-dark);
}

.service-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.service-text {
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.service-tags li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: var(--soft);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--heading);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--brand);
}

.service-link i {
  transition: transform 0.25s var(--ease);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* 10. Why choose us
   -------------------------------------------------------------------------- */
.why-media {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .why-media {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.why-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 55% center; /* keeps the implant model and patient in frame */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.why-media-card {
  position: relative;
  display: flex;
  gap: 1rem;
  margin: -3.5rem 0.75rem 0;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: var(--shadow-lg);
}

.why-media-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.25rem;
}

.why-media-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.why-media-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.why-media-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  padding: 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
}

.why-media-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.why-media-points i {
  color: var(--brand);
  font-size: 1.1rem;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--mint-2);
  box-shadow: var(--shadow);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--mint);
  color: var(--brand);
  font-size: 1.35rem;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.why-card:hover .why-icon {
  background-color: var(--brand);
  color: var(--white);
}

.why-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0;
}

.why-text {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

@media (min-width: 576px) {
  .why-media-card {
    margin: -4rem 1.5rem 0;
  }
}

/* 11. Patient care (feature section)
   -------------------------------------------------------------------------- */
.care {
  position: relative;
  overflow: hidden; /* clips the decorative glows only */
  padding-bottom: 7.5rem; /* room for the overlapping footer contact band */
  background: linear-gradient(150deg, var(--brand-dark) 0%, var(--brand-deep) 100%);
}

.care::before,
.care::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.care::before {
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(57, 143, 128, 0.45) 0%, rgba(57, 143, 128, 0) 70%);
}

.care::after {
  bottom: -200px;
  left: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(169, 220, 207, 0.14) 0%, rgba(169, 220, 207, 0) 70%);
}

.care .container {
  position: relative;
  z-index: 1;
}

.care-head {
  margin-bottom: 3rem;
}

.care-visual {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  /* image grows to match the height of the 2x2 card grid */
  .care-visual {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: none;
  }

  .care-image {
    flex: 1 1 auto;
    min-height: 280px;
  }

  .care-image img {
    height: 100%;
    aspect-ratio: auto;
    position: absolute;
    inset: 0;
  }
}

.care-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.care-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.care-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 58, 52, 0) 40%, rgba(12, 58, 52, 0.55) 100%);
}

.care-stat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.care-stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

.care-stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
}

.care-philosophy {
  position: relative;
  z-index: 1;
  margin: -2.5rem 0.75rem 0;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
}

.care-quote-icon {
  position: absolute;
  top: -22px;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-color: var(--brand);
  color: var(--white);
}

.care-philosophy-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 0.35rem;
}

.care-philosophy-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  margin-bottom: 1.1rem;
}

.care-doctor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.35;
}

.care-doctor img {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--mint-2);
}

.care-doctor strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--heading);
}

.care-lead {
  font-size: 1.075rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.care-card {
  height: 100%;
  padding: 1.35rem;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.care-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(169, 220, 207, 0.4);
}

.care-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.care-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-color: rgba(169, 220, 207, 0.16);
  color: var(--accent-light);
  font-size: 1.1rem;
}

.care-card-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
}

.care-card h3 {
  font-size: 1.02rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.care-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

@media (min-width: 576px) {
  .care-philosophy {
    max-width: 400px;
    margin: -4.5rem 1.5rem 0 auto;
  }
}

/* 12. Footer (light)
   -------------------------------------------------------------------------- */
.site-footer {
  --footer-bg: #d7ebe3;
  --footer-line: #bcd8cd;
  --footer-text: #46534f; /* AA contrast on the footer background */
  position: relative;
  background: linear-gradient(180deg, #dcede6 0%, var(--footer-bg) 100%);
  border-top: 1px solid var(--footer-line);
  font-size: 0.93rem;
  color: var(--footer-text);
}

/* Footer columns + vertical separators
   The row uses gx-0, so every column's spacing is set here. Each separator
   gets the same padding on both sides, and the link columns are sized to
   their content (col-xl-auto), so the lines sit evenly between the text.
   No separator after the last column. */
.footer-main > :nth-child(2) {
  padding-right: 0.75rem; /* phones: gap between the two link columns */
}

.footer-main > :nth-child(3) {
  padding-left: 0.75rem;
}

@media (min-width: 768px) {
  /* tablet: brand column full width, three columns below */
  .footer-main > :nth-child(n + 2) {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer-main > :nth-child(2) {
    padding-left: 0;
  }

  .footer-main > :last-child {
    padding-right: 0;
  }

  .footer-main > :nth-child(2),
  .footer-main > :nth-child(3) {
    border-right: 1px solid var(--footer-line);
  }
}

@media (min-width: 1200px) {
  /* desktop: four columns in one row */
  .footer-main > :nth-child(n) {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .footer-main > :first-child {
    padding-left: 0;
  }

  .footer-main > :last-child {
    padding-right: 0;
  }

  .footer-main > :not(:last-child) {
    border-right: 1px solid var(--footer-line);
  }
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-watermark {
  position: absolute;
  inset: 0;
  overflow: hidden; /* clips the oversized icon only */
  pointer-events: none;
}

.footer-watermark i {
  position: absolute;
  right: -40px;
  bottom: -50px;
  font-size: 300px;
  line-height: 1;
  color: var(--brand);
  opacity: 0.045;
  transform: rotate(-12deg);
}

/* Contact band — overlaps the patient care section above */
.footer-band {
  position: relative;
  margin-top: -4rem;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.footer-band-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1.25rem 1.5rem;
  color: var(--heading);
  transition: background-color 0.25s var(--ease);
}

.footer-band .col-md-4 + .col-md-4 .footer-band-item {
  border-top: 1px solid var(--border);
}

.footer-band-item:hover {
  background-color: var(--soft);
  color: var(--heading);
}

.footer-band-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--body);
}

.footer-band-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.footer-band-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background-color: var(--brand);
  color: var(--white);
  font-size: 1.15rem;
  transition: transform 0.3s var(--ease);
}

.footer-band-icon-wa {
  background-color: var(--whatsapp);
  font-size: 1.4rem;
}

.footer-band-item:hover .footer-band-icon {
  transform: scale(1.08);
}

@media (min-width: 768px) {
  .footer-band .col-md-4 + .col-md-4 .footer-band-item {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .footer-band-item {
    padding: 1.6rem 1.5rem;
  }
}

.footer-main {
  padding: 3.5rem 0 3rem;
}

.footer-logo {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.footer-logo img {
  display: block;
  width: 200px;
  max-width: 100%;
}

.footer-about {
  margin-bottom: 1.5rem;
}

.footer-follow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 0.65rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--mint-2);
  color: var(--brand);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social a:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  position: relative;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--heading);
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.footer-links li {
  padding: 0.28rem 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--footer-text);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-2);
  opacity: 0.45;
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--brand);
  transform: translateX(3px);
}

.footer-links a:hover::before {
  background-color: var(--brand);
  opacity: 1;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 0;
  line-height: 1.6;
  color: var(--heading);
}

.footer-contact i {
  margin-top: 0.3rem;
  width: 16px;
  flex-shrink: 0;
  color: var(--brand);
}

.footer-contact address {
  font-style: normal;
}

.footer-contact a {
  color: var(--heading);
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--brand);
}

.footer-hours {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background-color: var(--white);
  border: 1px solid var(--mint-2);
}

.footer-hours i {
  color: var(--brand);
  font-size: 1.1rem;
}

.footer-hours span {
  display: block;
  font-size: 0.75rem;
  color: var(--body);
}

.footer-hours strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--heading);
}

.footer-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand);
}

.footer-directions:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding: 1.25rem 0 5.5rem; /* room for floating buttons on phones */
  border-top: 1px solid var(--footer-line);
  font-size: 0.85rem;
  color: var(--footer-text);
}

@media (min-width: 768px) {
  .footer-bottom {
    padding-bottom: 1.5rem;
    padding-left: 4rem; /* clears left floating buttons */
  }
}

/* 13. Appointment modal
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .appointment-dialog {
    --bs-modal-width: 960px;
  }
}

.appointment-modal {
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.appointment-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 3rem 2.5rem;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: rgba(255, 255, 255, 0.82);
}

.appointment-aside-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}

.appointment-aside-text {
  margin-bottom: 1.75rem;
}

.appointment-aside-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0;
}

.appointment-aside-list i {
  width: 18px;
  color: var(--accent-light);
}

.appointment-aside-list a {
  color: var(--white);
}

.appointment-aside-list a:hover {
  color: var(--accent-light);
}

.appointment-main {
  padding: 1.5rem 1.25rem;
}

@media (min-width: 576px) {
  .appointment-main {
    padding: 2.25rem 2rem;
  }
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.form-note {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.req {
  color: #b42318;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  min-width: 0;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--soft);
  color: var(--heading);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-select {
  padding-right: 2.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-2);
  background-color: var(--white);
  box-shadow: 0 0 0 0.22rem rgba(23, 107, 96, 0.15);
}

input[type="date"].form-control {
  -webkit-appearance: none;
  appearance: none;
  display: block;
}

textarea.form-control {
  resize: vertical;
}

.form-text {
  font-size: 0.8rem;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hp-field input {
  width: 1px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
}

.form-status:empty {
  display: none;
}

.form-status.is-success,
.form-status.is-error {
  padding: 0.85rem 1rem;
}

.form-status.is-success {
  background-color: var(--mint);
  color: var(--brand-dark);
}

.form-status.is-error {
  background-color: #fdecea;
  color: #8a1c12;
}

/* 14. Floating buttons
   -------------------------------------------------------------------------- */
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.15rem;
  box-shadow: 0 10px 24px -8px rgba(12, 58, 52, 0.45);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.float-btn:hover,
.float-btn:focus-visible {
  color: var(--white);
  transform: translateY(-3px);
}

.floating-contact {
  position: fixed;
  left: 12px;
  bottom: 16px;
  /* Below the sticky header (1020), whose stacking context holds the offcanvas + backdrop */
  z-index: 1015;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
}

/* Phones: hero already has Call/Book buttons, so reveal floats after scrolling past it */
@media (max-width: 767.98px) {
  .floating-contact:not(.is-visible) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
  }
}

.float-call {
  background-color: var(--brand);
}

.float-call:hover {
  background-color: var(--brand-dark);
}

.float-whatsapp {
  background-color: var(--whatsapp);
  font-size: 1.45rem;
}

.float-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.back-to-top {
  position: fixed;
  right: 12px;
  bottom: 16px;
  z-index: 1015;
  background-color: var(--heading);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--brand);
}

.tooltip {
  --bs-tooltip-bg: var(--heading);
  --bs-tooltip-font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* 15. Scroll reveal (only when JS has enabled it)
   -------------------------------------------------------------------------- */
.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 16. Responsive refinements
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }

  .care {
    padding-bottom: 8.5rem;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  .floating-contact {
    left: 20px;
    bottom: 24px;
  }

  .back-to-top {
    right: 20px;
    bottom: 24px;
  }
}

@media (min-width: 992px) {
  .section {
    padding: 6.5rem 0;
  }

  .care {
    padding-bottom: 10rem;
  }

  .footer-band {
    margin-top: -4.5rem;
  }
}

@media (max-width: 374.98px) {
  .topbar {
    font-size: 0.8rem;
  }

  .hero-chip {
    padding: 0.55rem 0.75rem;
  }

  .hero-chip-number {
    font-size: 1.6rem;
  }
}

/* 17. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }

  /* hold the first service phrase instead of cycling */
  .hero-rotator-track {
    animation: none;
  }
}
