/**
 * 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);
}


/* ========================================================================
   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 .fa-star,
#reviews-banner .bi-star-fill {
  color: #ffc107;
  font-size: 1.5rem;
}

#reviews-banner .swiper-slide {
  padding: 2rem 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  margin: 0.5rem;
}

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

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


/* ========================================================================
   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;
}

/* 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;
}

@media(max-width: 575px) {
  .appt-day .btn-outline-primary {
    font-size: 0.9rem;
  }
}


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

#footer {
  background-color: var(--primary-color);
  color: white;
}

/* Footer heading styles */
#footer .footer-heading {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Address styling - remove italic */
#footer .footer-address {
  font-style: normal;
}

/* Footer links with smooth transitions */
#footer .footer-links a {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

#footer .footer-links a:hover {
  padding-left: 8px;
  opacity: 0.85;
}

/* Footer link hover underline effect */
#footer .footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease;
}

#footer .footer-links a:hover::before {
  width: 30px;
}

/* Social media icons */
#footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

#footer .footer-social-link:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Light button styling in footer */
#footer .btn-light {
  background-color: white;
  border-color: white;
  border-radius: 30px;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

#footer .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contact info link hover effects */
#footer address a:hover {
  opacity: 0.85;
  text-decoration: underline !important;
}

/* Footer bottom bar */
#footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

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

/* Responsive adjustments */
@media (max-width: 767px) {
  #footer .footer-heading {
    text-align: center;
  }

  #footer .footer-links,
  #footer address {
    text-align: center;
  }

  #footer .footer-links a {
    display: inline-block;
  }
}


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

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

#inside-header h1 {
  color: white;
}

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

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

#content img {
  padding-top: 1rem;
  padding-bottom: 1rem;
  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
   ======================================================================== */

.muvi-container {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 20px 20px 10px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.muvi-container video {
  width: 100%;
}

.muvi-caption,
.muvi-caption a {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.25) !important;
}

.muvi-caption a {
  margin-left: 1em;
  text-decoration: none;
}


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

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