/**
 * Clue Dental Marketing - Template Styles
 *
 * Custom styles for dental practice websites
 * Uses CSS variables for easy theming - see client.css for customization
 */


/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

/* Make Sienna ADA button smaller */
.asw-menu-btn {
  transform: scale(0.75);
}

/* Skip navigation link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.375rem 0.375rem;
  z-index: 100000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Global focus indicator */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

/* Appointment wizard step headings receive programmatic focus for screen readers only */
.appt-step-heading:focus {
  outline: none;
}

/* Stronger focus indicator for Bootstrap btn-check */
.btn-check:focus-visible + .btn {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: none;
}

/* Hero video pause/play toggle (WCAG 2.2.2) */
.hero-video-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.hero-video-toggle:hover,
.hero-video-toggle:focus-visible {
  opacity: 1;
}

/* High-contrast focus on transparent homepage header */
body.homepage:not(.header-not-at-top) .header-icon-btn:focus-visible,
body.homepage:not(.header-not-at-top) .navbar-brand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */

h1, h2, h3, h4 {
  color: var(--primary-color);
  font-weight: 300;
}

/* Remove underline from icon section links (homepage: General, Cosmetic, Emergency, Kids) */
/* Specific selector to avoid affecting other links */
.text-center.pt-2 a {
  text-decoration: none !important;
}

a h2 {
  font-size: 1.25rem;
}


/* ========================================================================
   NAVIGATION BAR
   ======================================================================== */

#logo {
  position: relative;
  z-index: 9999;
  margin-left: auto;
  margin-right: auto;
}

#top-header .navbar {
  margin-top: 1em;
}

@media (min-width: 992px) {
  .navbar {
    margin-top: initial !important;
  }
  #logo {
    margin-left: initial;
    margin-right: initial;
  }
}

#top-header .navbar-nav {
  margin-top: 3em;
}

#headercontact .social {
  display: none !important;
}

#headercontact .social .fa {
  font-size: 1.25rem !important;
  color: var(--primary-color);
}

@media (min-width: 992px) {
  #headercontact .social {
    display: inline-block !important;
  }
}

.navbar-expand-lg .navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    font-size: .85rem;
  }
}

.navbar-side-content {
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.navbar .dropdown:hover>.dropdown-menu,
.navbar .dropdown-menu:hover {
  display: block;
}

a.text-dark,
a.text-dark:focus {
  font-size: .875rem;
}

a.text-dark:hover,
a.text-dark:focus {
  color: var(--primary-color) !important;
}

.dropdown-menu {
  margin: 0;
}

.dropdown-item {
  padding: 0.35rem 0.75rem;
  font-size: .85rem;
}

.dropdown-item,
.dropdown-item:focus {
  color: black;
  text-decoration: none;
  background-color: #F8F8F8;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: white;
  background-color: var(--primary-color);
}


/* ========================================================================
   SIDEBAR MENU
   ======================================================================== */

/* Sidebar base styles - hidden by default, slides in from left */
.navbar-side {
  position: fixed;
  z-index: 9999;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  transform: translateX(-100%);
  transition: 0.2s ease background-color, 0s linear transform 0.2s;
}

.navbar-side.show {
  transform: translateX(0);
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.2s ease background-color, 0s linear transform;
}

.navbar-side .navbar-side-content {
  background: var(--sidebar-bg);
  padding: 15px;
  padding-bottom: 30px;
  height: 100%;
  width: 100%;
  max-width: 400px;
  transform: translateX(-100%);
  transition: 0.2s ease transform;
  overflow-y: auto;
}

.navbar-side.show .navbar-side-content {
  transform: translateX(0);
}

#headers-4-sidebar .navbar-nav {
  margin-top: 0em;
}

#top-header .navbar-side .text-white {
  font-weight: 400;
}

.navbar-side .navbar-side-content .nav-link {
  font-size: 1.15rem;
  line-height: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-side .dropdown-menu {
  display: none;
  position: static;
  float: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.navbar-side .dropdown-menu.show {
  display: block;
}

.navbar-side .dropdown-item,
.navbar-side .dropdown-item:focus {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--sidebar-bg);
  padding-left: 2rem;
}

.navbar-side .dropdown-item:hover,
.navbar-side .dropdown-item:focus {
  color: var(--primary-color);
  background-color: white;
}

.navbar-side .social .fa {
  color: white;
  font-size: 1.25rem;
}


/* ========================================================================
   RESPONSIVE HEADER BUTTONS
   ======================================================================== */

#headercontact {
  margin-top: .5em;
}

#headercontact .btn-outline-primary {
  display: inline-block;
}

@media (max-width: 465px) {
  #headercontact .btn-outline-primary {
    display: block;
  }
}

@media (max-width: 992px) {
  #headercontact {
    position: relative !important;
    margin-top: 0em;
  }
  #headercontact .small {
    margin-right: auto;
    margin-left: auto;
    text-align: center !important;
  }
  #headercontact .btn-primary {
    margin-bottom: .25rem;
  }
}


/* ========================================================================
   HOMEPAGE COVER / HERO
   ======================================================================== */

#homepage-cover {
  background-color: var(--hero-bg-color);
  position: relative;
  overflow: hidden;
  background-image: url("../vid/homepage-cover.jpg");
  background-position: center center;
  background-size: cover;
}

#homepage-cover h1 {
  font-size: 2.5rem;
  color: white;
  padding: 0px;
}

#homepage-cover p {
  font-size: 1rem;
  padding: 0px;
}

/* White buttons in hero section - solid white with primary color text */
#homepage-cover .btn-outline-primary {
  background-color: white;
  border-color: white;
  border-radius: 30px;
  color: var(--primary-color) !important;
}

#homepage-cover .btn-outline-primary:hover {
  background-color: var(--primary-color-bright);
  border-color: var(--primary-color-bright);
  color: white !important;
}

@media (min-width: 766px) {
  #homepage-cover h1 {
    font-size: 3.5rem;
    padding: 0px;
  }

  #homepage-cover p {
    font-size: 1.25rem;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}


/* ========================================================================
   BACKGROUND VIDEO
   ======================================================================== */

.background-video-container {
  pointer-events: none;
  position: absolute;
  top: 0rem;
  right: 0rem;
  bottom: 0rem;
  left: 0rem;
  z-index: 0;
}

.background-video-container video {
  /* Pure CSS background-size: cover behavior */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.background-video-container-overlay {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background-color: rgba(64, 64, 64, 0.75);
  z-index: 2;
}

/* Content above video */
.bg-cover {
  position: relative;
  z-index: 10;
}


/* ========================================================================
   HOMEPAGE SLIDESHOW
   ======================================================================== */

#homepage-slideshow .carousel-control-prev,
#homepage-slideshow .carousel-control-next {
  color: white;
  font-size: 3rem;
}

#homepage-slideshow .bg-cover {
  background-color: rgba(0, 0, 0, 0);
}

.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.2);
}

.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: white;
}

.swiper-slide {
  background-position: center center;
  position: relative;
}

.swiper-slide-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}

.images-ratio.ratio-16-9 {
  height: 600px;
}

#homepage-slideshow {
  background-color: var(--hero-bg-color);
  min-height: 600px;
  height: calc(30rem);
  position: relative;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  display: none;
}

#homepage-slideshow h1 {
  font-size: 2.5rem;
  color: white;
  padding: 0px 90px;
}

#homepage-slideshow p {
  font-size: 1rem;
  padding: 0px 60px;
}

@media (min-width: 766px) {
  #homepage-slideshow h1 {
    font-size: 3.5rem;
    padding: 0px;
  }

  #homepage-slideshow p {
    font-size: 1.25rem;
  }

  #homepage-slideshow {
    display: block;
  }
}


/* ========================================================================
   MOBILE TOP BANNER
   ======================================================================== */

#mobile-top-banner {
  background-image: url("../img/request-background.svg");
  background-position: center center;
  background-size: cover;
  position: initial;
  display: block;
}

#mobile-top-banner h1 {
  color: white;
}

#mobile-top-banner p {
  color: white;
}

/* White buttons in mobile banner - solid white with primary color text */
#mobile-top-banner .btn-outline-primary {
  background-color: white;
  border-color: white;
  border-radius: 30px;
  color: var(--primary-color) !important;
}

#mobile-top-banner .btn-outline-primary:hover {
  background-color: var(--primary-color-bright);
  border-color: var(--primary-color-bright);
  color: white !important;
}

@media (min-width: 765px) {
  #mobile-top-banner {
    display: none !important;
  }
}


/* ========================================================================
   BUTTONS
   ======================================================================== */

/* Override default button sizing - make slightly smaller */
/* Excludes appointment wizard buttons (.appt-nextstep) which have unique styling */
.btn:not(.appt-nextstep) {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-lg:not(.appt-nextstep) {
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}

.btn-sm:not(.appt-nextstep) {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

/* Primary buttons - solid color background with white text */
.btn-outline-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 30px;
  color: white !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color-bright);
  border-color: var(--primary-color-bright);
  color: white !important;
}

.btn-primary a {
  color: white !important;
}

.btn-primary i {
  color: white !important;
}

/* Ensure icons in buttons display inline with text */
.btn i,
.btn .fa {
  display: inline-block;
  margin-right: 0.25rem;
}

/* Button group layout fixes - buttons next to each other on desktop, stacked on mobile */
/* Bootstrap 5 removed .btn-block, so we need custom styling */
.btn-block {
  display: block;
  width: 100%;
}

/* On desktop, make button containers display inline with natural width */
@media (min-width: 768px) {
  /* Target button rows in content sections */
  .row.text-center.text-md-start .btn-block,
  .row.text-md-start .btn-block {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
  }

  /* Remove column-based layout on desktop for button groups */
  .row.text-center.text-md-start > [class*="col-"],
  .row.text-md-start > [class*="col-"] {
    width: auto;
    flex: 0 0 auto;
  }

  /* Hero section button layout - side by side on desktop */
  #homepage-cover .row.text-center > [class*="col-"] {
    width: auto;
    flex: 0 0 auto;
  }
}

/* Hero section buttons - ensure consistent height and inline icons */
#homepage-cover .btn {
  white-space: nowrap;
}


/* ========================================================================
   PROMO BANNER
   ======================================================================== */

#promo-banner {
  background-color: #fafafa !important;
}

@media (min-width: 1200px) {
  #promo-banner {
    background-image: url("../img/promo-background.jpg");
    background-color: #fafafa;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    height: auto;
  }
}


/* ========================================================================
   SECOND BANNER
   ======================================================================== */

#second-banner {
  background-color: #fafafa !important;
}

@media (min-width: 1200px) {
  #second-banner {
    background-image: url("../img/savings-plan-background.jpg");
    background-color: #fafafa;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    height: auto;
  }
}


/* ========================================================================
   REVIEWS BANNER
   ======================================================================== */

#reviews-banner {
  overflow: hidden;
  padding-bottom: 3rem;
}

#reviews-banner .fa-star,
#reviews-banner .bi-star-fill {
  color: var(--accent-color, #b48a26);
  font-size: 1.5rem;
}

#reviews-banner .swiper-wrapper {
  align-items: stretch;
}

#reviews-banner .swiper-slide {
  padding: 2rem 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 340px;
}

@media (max-width: 767.98px) {
  #reviews-banner .swiper-slide {
    width: 85%;
  }
}

#reviews-banner .swiper-slide p {
  line-height: 1.6;
}

#reviews-banner .swiper-slide .text-center:first-child {
  margin-bottom: 0;
}

#reviews-banner .review-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.15rem;
  margin-bottom: 1rem;
}

#reviews-banner .bi-google {
  color: #EA4335;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reviews-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.reviews-nav-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.reviews-nav-fraction {
  font-size: 0.95rem;
  color: #666;
  min-width: 50px;
  text-align: center;
}


/* ========================================================================
   SPLIT SCREEN SECTION
   ======================================================================== */

#split-first .btn-round {
  border-radius: 30px;
}

#split-first .bg-color {
  background-color: var(--primary-color);
}

#split-first h1 {
  color: white;
}

#split-first h2 {
  color: white;
}

#split-first a {
  color: white;
}

@media (min-width: 766px) {
  #split-first .h-md-100 {
    height: 500px;
  }
}


/* ========================================================================
   REQUEST CONSULT BANNER
   ======================================================================== */

#request-banner {
  background-image: url("../img/request-background.svg");
  background-size: 500px 500px;
  background-position: center center;
  padding: 1rem 0;
}

#request-banner .form-control {
  background-color: white;
}

#request-banner h1 {
  color: white;
}

/* White buttons in request banner - solid white with primary color text */
#request-banner .btn-outline-primary {
  background-color: white;
  border-color: white;
  border-radius: 30px;
  color: var(--primary-color) !important;
}

#request-banner .btn-outline-primary:hover {
  background-color: var(--primary-color-bright);
  border-color: var(--primary-color-bright);
  color: white !important;
}


/* ========================================================================
   LINKS SECTION
   ======================================================================== */

#links {
  background-image: url("../img/background-banner.svg");
  background-size: 300px 300px;
  background-position: center center;
  padding: 1rem 0;
}

/* Button Styles */
.icon-btn button {
  margin: 10px;
}

.btn-text {
  width: 60%;
  font-size: 1.2rem;
}

.btn-gradient {
  width: 40%;
  position: relative;
  display: inline-block;
  left: -20px;
  background: rgba(0, 0, 0, 0.15);
  border-top-right-radius: 60px;
  padding: 8px 24px 8px 16px;
  box-shadow: 2px 0px 0px 0px rgba(78, 72, 72, 0.4);
}

.btn-gradient i {
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.radius-style button {
  border-radius: 30px;
}

.radius-btn {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

a:hover span {
  border-bottom: none !important;
}

.btn-clue {
  font-size: 23px;
  padding: 0px 20px;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  justify-content: center;
  align-items: center;
  display: flex;
  max-width: 100% !important;
  width: 100%;
  box-shadow: 0 0 1px #ccc;
  -webkit-transition: all 0.5s ease-in-out;
  text-align: center;
  margin-right: auto !important;
  margin-left: auto !important;
}

.btn-clue:hover {
  -webkit-transform: scale(1.1);
  background: var(--primary-color);
}

@media (min-width: 414px) {
  .icon-btn button {
    margin: 10px;
  }

  .btn-clue {
    width: 450px;
  }
}


/* ========================================================================
   APPOINTMENT FORMS
   ======================================================================== */

/* Honeypot spam protection */
#lastname {
  display: none;
}

/* Multi-Step Appointments (APPT3) */
.multistep-appt p {
  font-size: 120%;
}

.multistep-appt input,
.multistep-appt textarea {
  background-color: white !important;
}

.appt-day {
  background-color: rgba(215, 223, 238, 0.8);
  border-radius: 2em;
  padding: 0.5rem;
  border: 4px white solid;
}

#content .appt-day h2 {
  margin: 0.5rem 0 0.25rem;
  padding-top: 0;
  font-size: 1.4rem;
}

/* Compact vertical spacing for day/time grid */
#multistep-appt-3 > .btn-group > .row {
  --bs-gutter-y: 0.5rem;
}

#multistep-appt-3 .appt-day {
  padding: 0.15rem 0.5rem 0.35rem;
  border-radius: 1rem;
}

/* Appointment wizard buttons - preserve original outline style */
.appt-day .btn-outline-primary,
.appt-nextstep {
  background-color: white !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color);
  border-radius: 2em;
}

.appt-day .btn-outline-primary i {
  font-size: 3em;
  display: block;
  margin-bottom: -0.25em;
  margin-top: -0.05em;
}

.appt-day .btn-outline-primary:hover,
.appt-nextstep:hover {
  background-color: #eaf3ff !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color);
}

.appt-day .btn-check:active+.btn-outline-primary,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color);
}

.appt-day .btn-check:active+.btn-outline-primary i,
.btn-check:checked+.btn-outline-primary i,
.btn-outline-primary.active i,
.btn-outline-primary.dropdown-toggle.show i,
.btn-outline-primary:active i {
  color: white !important;
}

#appt-medicare-warning {
  background-color: #ff3b30 !important;
  color: white !important;
  border-color: red !important;
  font-weight: 700;
}

#appt-medicare-warning i {
  color: white !important;
}

.appt-disclaimer {
  font-size: 0.85rem !important;
}

/* Tight gutters on time-slot buttons so they fill the row evenly */
#multistep-appt-3 .appt-day fieldset > .row {
  --bs-gutter-x: 0.25rem;
  justify-content: center;
}

/* Appointment wizard form placeholders */
#content .form-control-lg::placeholder {
  font-size: 0.9rem;
  color: #adb5bd;
}

/* ========================================================================
   FOOTER - Modern & Accessible Design
   ======================================================================== */

#footer {
  background-color: #f8f9fa;
  color: #333;
  border-top: 1px solid #e0e0e0;
}

/* Footer logo */
#footer .footer-logo {
  max-width: 220px;
}

/* Footer heading styles */
#footer .footer-heading {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

/* Address styling */
#footer .footer-address {
  font-style: normal;
  color: #555;
  line-height: 1.6;
}

/* Footer phone */
#footer .footer-phone a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}
#footer .footer-phone a:hover {
  color: var(--primary-color-dark);
}

/* Footer navigation links */
#footer .footer-nav a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}
#footer .footer-nav a:hover {
  color: var(--primary-color);
}

/* Footer hours table */
.footer-hours-table {
  border-collapse: collapse;
}
.footer-hours-table th {
  font-weight: 500;
  color: #333;
  padding: 0.2rem 0;
  text-align: left;
}
.footer-hours-table td {
  padding: 0.2rem 0 0.2rem 1rem;
  color: #555;
}

/* Social media icons */
#footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

#footer .footer-social-link:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer bottom bar */
#footer-bottom {
  background-color: var(--primary-color-dark, var(--primary-color));
}

/* Footer bottom navigation */
#footer-bottom a:hover {
  text-decoration: underline !important;
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .footer-hours-table {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ========================================================================
   INSIDE PAGES
   ======================================================================== */

#inside-header {
  background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 40%, var(--primary-color-bright) 100%);
  padding: 1rem 0;
}

#inside-header h1 {
  color: white;
}

#content {
  padding-top: 1em;
  padding-bottom: 1em;
}

/* Redesigned treatment pages: use standard band padding, not legacy #content values */
.treatment-band#content {
  padding: 3rem 0;
}

@media (min-width:992px) {
  #content {
    padding-top: 6em;
    padding-bottom: 6em;
  }
}

#content img {
  max-width: 100%;
  width: 100%;
}

#content hr {
  clear: both;
  margin-bottom: 2rem !important;
  margin-top: 2rem !important;
}

#content .images-ratio {
  background-position: center;
  height: auto;
}

.cracked-teeth img {
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-width: 100%;
  width: 80px !important;
}


/* ========================================================================
   OFFICE HOURS TABLE
   ======================================================================== */

.table {
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.table th {
  font-weight: 500;
  color: white;
  background-color: var(--primary-color);
}

.table .closed {
  color: rgb(216, 0, 0);
}

@media (min-width:766px) {
  .table {
    width: auto;
    margin-left: initial;
    margin-right: initial;
  }
}

#gentlewave-slide .swiper {
  margin-left: auto !important;
  margin-right: auto !important;
}

#content .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

#content .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--primary-color) !important;
}


/* ========================================================================
   HOVERING GALLERY - MEET THE TEAM
   ======================================================================== */

#hover-gallery .row {
  position: relative;
}

#hover-gallery .image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

#hover-gallery .middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

#hover-gallery .gallery-item:hover .image {
  opacity: 0.3;
}

#hover-gallery .gallery-item:hover .middle {
  opacity: 1;
}

#hover-gallery .text {
  background-color: var(--primary-color);
  color: white;
  font-size: 16px;
  padding: 10px 20px;
}

#hover-gallery .text a {
  color: white;
}

#hover-gallery .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  border-bottom: 0 solid #f6f6f6;
}

#hover-gallery .close span {
  font-size: 1.5em;
  padding-right: .25em;
}

@media (min-width: 576px) {
  #hover-gallery .modal-dialog {
    max-width: 750px !important;
  }

  #hover-gallery .modal-body {
    padding: 1em;
  }

  #hover-gallery .modal-body h2 {
    color: var(--primary-color);
  }

  #hover-gallery .modal-body img {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}


/* ========================================================================
   TOOTHORITY VIDEO PLAYER
   ======================================================================== */

/* Rounded corners + subtle shadow — apply via .media-styled class */
.media-styled {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

video.media-styled {
  width: 100%;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}


/* ========================================================================
   HOMEPAGE SECTIONS
   ======================================================================== */

/* Section rhythm */
.hp-section { padding: 4rem 0; }
.hp-section-tinted { background-color: #f0f5fa; }

/* Eyebrow label */
.hp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Section headings */
.hp-section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}
.hp-section-sub {
  max-width: 620px;
  margin: 0 auto;
  color: #555;
  font-size: 1.05rem;
}

/* Highlight chips */
.hp-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e4edf6;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

/* Media frames (images & video) */
.hp-media-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.hp-media-frame img,
.hp-media-frame video {
  width: 100%;
  display: block;
}
.hp-media-frame iframe {
  width: 100%;
  display: block;
  border: 0;
}

/* Technology mini-cards */
.hp-tech-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid #e4edf6;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-tech-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(52, 119, 173, 0.1);
}
.hp-tech-card i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* People cards (Doctor & Team) */
.hp-people-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-people-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}
.hp-people-img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.hp-people-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-people-body {
  padding: 1.5rem;
}
.hp-people-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.hp-people-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.hp-people-body p:last-of-type {
  margin-bottom: 1rem;
}

/* Meet the Doctor — homepage showcase */
.hp-doctor-media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.hp-doctor-media img,
.hp-doctor-media video {
  width: 100%;
  display: block;
}
.hp-doctor-video video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hp-doctor-bio {
  text-align: center;
  padding: 2rem 1rem 0;
}
.hp-doctor-bio.hp-doctor-bio-aside {
  text-align: left;
  padding: 0;
}
.hp-doctor-bio.hp-doctor-bio-aside p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.hp-doctor-bio h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.hp-doctor-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.hp-doctor-bio p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #444;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .hp-doctor-media { border-radius: 10px; }
  .hp-doctor-bio h3 { font-size: 1.35rem; }
  .hp-doctor-bio { padding: 1.5rem 0 0; }
}

/* Contact info cards */
.contact-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}
.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e4edf6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.contact-card-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}
.contact-phone a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.contact-phone a:hover {
  color: var(--primary-color-dark);
}
.contact-hours {
  text-align: left;
  max-width: 220px;
  margin: 0 auto;
  font-size: 0.9rem;
}
.contact-hours .d-flex {
  padding: 0.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.contact-hours .d-flex:last-child {
  border-bottom: none;
}

/* Contact gallery dark section */
#contact-gallery {
  background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
  color: #fff;
}
.contact-gallery-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}
.contact-gallery-heading {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-gallery-sub {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
  font-size: 1.05rem;
}
.contact-gallery-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.contact-gallery-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.contact-gallery-card:hover img {
  transform: scale(1.04);
}

/* How Can We Help You — tout cards */
#hp-touts {
  background-color: #e4edf6;
}
.hp-tout-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-tout-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}
.hp-tout-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e4edf6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.hp-tout-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.hp-tout-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.hp-tout-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

/* No Insurance? No Problem! — banner */
#hp-insurance-banner {
  background-color: var(--primary-color-dark, var(--primary-color));
}
#hp-insurance-banner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}
#hp-insurance-banner .lead {
  font-size: 1.15rem;
  opacity: 0.9;
}
#hp-insurance-banner p {
  opacity: 0.9;
}
#hp-insurance-banner .btn-light {
  border-radius: 30px;
  font-weight: 600;
  color: var(--primary-color);
}
#hp-insurance-banner .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#hp-insurance-banner .btn-outline-light {
  border-radius: 30px;
  font-weight: 500;
}
.hp-insurance-img {
  max-width: 380px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  #hp-insurance-banner h2 { font-size: 1.7rem; }
  .hp-insurance-img { max-width: 260px; }
  .hp-tout-card { border-radius: 10px; }
}

/* Video testimonials banner */
#hp-video-testimonials {
  background: linear-gradient(135deg, var(--primary-color-dark, var(--primary-color)) 0%, var(--primary-color) 100%);
  color: #fff;
}
.hp-testimonial-video {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.hp-testimonial-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hp-testimonial-name {
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.75rem;
  letter-spacing: 0.5px;
}

@media (max-width: 767px) {
  .hp-testimonial-video { border-radius: 10px; }
}

/* Professional association logos */
.hp-assoc-logo {
  max-width: 180px;
  width: 100%;
}

/* Schedule Appointment CTA — split layout */
#hp-schedule-cta {
  overflow: hidden;
}
.hp-schedule-text {
  background-color: var(--primary-color);
}
.hp-schedule-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.hp-schedule-photo {
  background-image: url("../img/tout-contact.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 400px;
}
.hp-schedule-signature {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hp-schedule-btn {
  background-color: var(--accent-color, #b48a26);
  border-color: var(--accent-color, #b48a26);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}
.hp-schedule-btn:hover {
  background-color: #e5a210;
  border-color: #e5a210;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 181, 24, 0.4);
}

/* Ghost button variant */
.btn-ghost-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 0.625rem 1.5rem;
}
.btn-ghost-primary:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

@media (max-width: 767px) {
  .hp-section { padding: 2.5rem 0; }
  .hp-section-heading { font-size: 1.6rem; }
  .hp-media-frame { border-radius: 10px; }
  .hp-people-card { border-radius: 10px; }
  .contact-gallery-heading { font-size: 1.7rem; }
  .contact-gallery-card { border-radius: 10px; }
}


/* ========================================================================
   TREATMENT PAGE COMPONENTS
   ======================================================================== */

/* --- Content Boxes --- */
.treatment-content-box {
  background-color: #f8fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.treatment-box-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-color);
}

.treatment-box-heading .bi {
  font-size: 1rem;
}

/* --- Lists inside content boxes --- */
.treatment-list {
  padding-left: 1.25rem;
}

.treatment-list li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

/* --- Quick Facts cards --- */
.treatment-fact-card {
  background-color: #f8fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.treatment-fact-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.treatment-fact-icon .bi {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.treatment-fact-card h3 {
  color: var(--primary-color);
}

/* --- Inline CTA bar --- */
.treatment-cta {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 0;
}

/* --- FAQ accordion --- */
.treatment-faq-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.treatment-faq-card .card-header {
  background-color: transparent;
  cursor: pointer;
  padding: 1rem 1.25rem;
  transition: background-color 0.15s ease;
}

.treatment-faq-card .card-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.treatment-faq-card .card-header a,
.treatment-faq-card .card-header button.btn-link {
  color: var(--primary-color);
  font-weight: 500;
}

.treatment-faq-card .card-body {
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.7;
}

/* --- Intro section image wrapper --- */
.treatment-img-wrap {
  border-radius: 0.5rem;
  overflow: hidden;
}

.treatment-img-wrap img {
  padding: 0 !important;
}

/* --- Content images inside treatment sections --- */
.treatment-section-img {
  border-radius: 0.5rem;
  padding: 0 !important;
}

/* --- Section spacing --- */
#content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

/* --- Alternating light/dark section bands --- */
.treatment-band {
  padding: 3rem 0;
}

.treatment-band.treatment-band-final {
  padding-bottom: 5rem;
}

.treatment-band-dark {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.92);
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .treatment-band-dark {
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 1rem;
  }
}

/* Remove bottom padding when CTA forms the lower edge */
.treatment-band-dark:has(> .container > .treatment-cta:last-child) {
  padding-bottom: 0;
}

.treatment-band-dark h2,
.treatment-band-dark h3,
.treatment-band-dark h4,
.treatment-band-dark .treatment-box-heading,
.treatment-band-dark .lead,
.treatment-band-dark .h5 {
  color: #fff;
}

.treatment-band-dark p {
  color: rgba(255, 255, 255, 0.92);
}

.treatment-band-dark a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.treatment-band-dark a:not(.btn):hover {
  color: #fff;
}

/* Dark band: content boxes */
.treatment-band-dark .treatment-content-box {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.treatment-band-dark .treatment-list li {
  color: rgba(255, 255, 255, 0.92);
}

/* Dark band: quick facts */
.treatment-band-dark .treatment-fact-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.treatment-band-dark .treatment-fact-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.12);
}

.treatment-band-dark .treatment-fact-card h3,
.treatment-band-dark .treatment-fact-icon .bi {
  color: #fff;
}

.treatment-band-dark .treatment-fact-card .text-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Dark band: inline CTA — darker shade forming bottom edge */
.treatment-band-dark .treatment-cta {
  background-color: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  /* Stretch background to full width of dark band */
  margin-left: -9999px;
  margin-right: -9999px;
  padding-left: 9999px;
  padding-right: 9999px;
  /* Sit flush at bottom edge */
  margin-bottom: 0 !important;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Dark band: buttons */
.treatment-band-dark .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.treatment-band-dark .btn-outline-primary:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--primary-color);
}

/* Dark band: FAQ cards */
.treatment-band-dark .treatment-faq-card {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.06);
}

.treatment-band-dark .treatment-faq-card .card-header a,
.treatment-band-dark .treatment-faq-card .card-header button.btn-link {
  color: #fff;
}

.treatment-band-dark .treatment-faq-card .card-header:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.treatment-band-dark .treatment-faq-card .card-body {
  color: rgba(255, 255, 255, 0.9);
}

/* Dark band: alert box override */
.treatment-band-dark .alert-warning {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 200, 50, 0.3);
  color: #fff;
}

/* Dark band: images keep their border-radius */
.treatment-band-dark .treatment-img-wrap {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* --- Related topics pills --- */
.related-pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.related-pill:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Full-width h2s: centered with extra bottom spacing */
.treatment-band .container > h2 {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Reset h2 top margin for first h2 in each band */
.treatment-band h2:first-child {
  margin-top: 0;
}


/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@media (min-width: 992px) {
  [data-animation] {
    visibility: hidden;
  }
  [data-animation].animate__animated {
    visibility: visible;
  }
}
