.Typewriter,
.typewrite {
  display: inline-block;
}
.typewrite {
  margin-left: 10px;
}
.dark-mode .dark-white {
  color: white !important;
}
.dark-mode-logo {
  display: none;
}
.dark .dark-mode-logo {
  display: block;
}
.light-mode-logo {
  display: block;
}
.dark .light-mode-logo {
  display: none;
}

/* Dental Promise logo: footer black; header white at top, black when scrolled */
.theme-main footer .light-mode-logo {
  filter: brightness(0);
}
/* Header: white when not scrolling (transparent nav), black when scrolled */
.main-nav .light-mode-logo {
  filter: brightness(0);
}
/* Logo white at top (nav.dark = transparent / not scrolled); overrides inline filter */
.main-nav.dark .dark-mode-logo,
.main-nav.transparent .dark-mode-logo {
  filter: brightness(0) invert(1) !important;
}

/* Header logo: preserve aspect ratio so it doesn’t look skewed */
.main-nav .nav-logo-wrap a.logo img {
  width: auto !important;
  height: auto !important;
  max-width: 126px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}
@media (min-width: 1025px) {
  .mn-has-sub:hover + *,
  .mn-has-sub + *:hover {
    display: block !important;
    z-index: 1;
  }
}

.fadeInText {
  animation: animationFadeText 0.5s linear 0s 1;
}
@keyframes animationFadeText {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dark-mode .svg-shape {
  filter: invert(1) brightness(2); /* Inverts the colors and increases brightness */
}
.dark-mode .svg-dark {
  filter: invert(1) brightness(2); /* Inverts the colors and increases brightness */
}
.dark-mode .image-filter {
  filter: invert(1) brightness(2); /* Inverts the colors and increases brightness */
}
html {
  scroll-behavior: initial !important;
}
a {
  cursor: pointer;
}
.mobile-on .desktop-nav {
  height: fit-content;
  max-height: 0px;
  display: block !important;
  overflow: scroll;
  transition: 0.6s;
}

@media (min-width: 1025px) {
  .mobile-on .mn-sub {
    display: none;
  }
}
@media (max-width: 1024px) {
  .mobile-on .js-opened .mn-sub.mobile-sub-active {
    max-height: 1000px;
  }
}
.dark-mode .form .form-tip-2 {
  color: var(--color-dark-mode-gray-1);
  background-color: var(--color-dark-2) !important;
}
.btn-mod.btn-w:hover,
.btn-mod.btn-w:focus {
  background: none !important;
}
@media (max-width: 500px) {
  .team-carousel .owl-prev.owl-prev-testimonial-1 {
    left: 21px;
  }
}

.mn-sub {
  transition: max-height 0.3s ease-in-out;
}

.mn-sub.open {
  max-height: 200px;
  overflow: auto !important;
  opacity: 1 !important;
}
html {
  scroll-behavior: smooth !important;
}

/* Team section: section-descr text color override (from browser preview) */
#team .section-descr {
  color: rgba(0, 0, 0, 1) !important;
}

/* Team section: background color */
#team {
  background-color: #D2EEFF !important;
}

/* Footer: background color */
.theme-main .page-section.footer {
  background-color: #F3F3F3 !important;
}

/* FAQ section: reduce bottom padding */
#faq.page-section {
  padding-bottom: 60px !important;
}

/* Hero section: left-aligned text, two-column layout with logo on the right */
#home .home-content {
  text-align: left;
}
#home .home-content .section-descr {
  text-align: left;
}
#home .home-content .hs-title-1 {
  text-align: left;
}
/* Hero CTA button: left-aligned with text */
#home .home-content .local-scroll.d-flex {
  justify-content: flex-start !important;
}
#home .home-content .row.justify-content-center,
#home .home-content .row {
  justify-content: flex-start !important;
  align-items: center;
  gap: 3rem;
}
/* Logo column: center with text block (don’t let container stretch or add space) */
#home .home-content .row > div:has(.hero-logo-img) {
  align-self: center;
  padding-top: 0;
  padding-bottom: 0;
}
#home .home-content .col-12.col-lg-8.mx-auto,
#home .home-content .col-12.col-lg-8 {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  justify-content: flex-start !important;
}
@media (min-width: 992px) {
  #home .home-content .col-12.col-lg-8 {
    flex: 0 1 auto;
  }
}
/* Hero logo (right side): large, white — 25% smaller than original */
#home .hero-logo-img {
  max-width: min(33.75vw, 315px);
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
@media (max-width: 991px) {
  #home .home-content .row.justify-content-center,
  #home .home-content .row {
    flex-direction: column-reverse;
  }
  #home .home-content .col-12.col-lg-8 {
    max-width: 100%;
  }
  #home .hero-logo-img {
    max-width: 210px;
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

/* Hero section: reduce height by 30% (70vh), content stays centered */
#home.home-section,
#home .container.min-height-100vh {
  min-height: 70vh !important;
  min-height: 70svh !important;
}

/* Contact anchor: scroll lower so the form is more visible */
/* Contact section: less top padding to reduce dead space */
#contact {
  scroll-margin-top: -350px;
  padding-top: 40px !important;
}
@media (min-width: 768px) {
  #contact {
    padding-top: 50px !important;
  }
}
@media (min-width: 1025px) {
  #contact {
    padding-top: 60px !important;
  }
}

/* Contact section: more space between Email and Phone blocks */
/* Contact section: align image column to top (level with “Have questions” heading) */
#contact .row.wow.fadeInUp {
  align-items: flex-start !important;
}
#contact .col-md-6.d-flex.align-items-stretch {
  align-items: flex-start !important;
}
#contact .col-md-6.d-flex.align-items-stretch .position-relative.min-height-400 {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: 0;
}
#contact .col-md-6.d-flex.align-items-stretch img[alt="Contact"] {
  align-self: flex-start;
}
/* Contact section image: show full image, no crop/zoom */
#contact .col-md-6.d-flex.align-items-stretch img[alt="Contact"],
#contact .min-height-400 img {
  object-fit: contain !important;
}
/* Force contact row and image column to align to the very top */
#contact > .container > .row,
#contact .row {
  align-items: flex-start !important;
  padding-top: 0 !important;
}
#contact .col-md-6,
#contact .col-lg-6 {
  align-self: flex-start !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#contact .col-md-6 > div,
#contact .col-lg-6 > div {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#contact .position-relative.overflow-hidden.w-100 {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Reduce gap between heading row and form/image row to bring image up */
#contact .row.mb-50,
#contact .col-lg-6 .row.mb-50 {
  margin-bottom: 0 !important;
}
/* Pull the form+image row way up so image aligns with heading */
#contact .row.wow.fadeInUp {
  margin-top: -180px !important;
}
/* Ensure form column has top margin to stay in proper position */
#contact .row.wow.fadeInUp .col-md-6:first-child {
  margin-top: 180px !important;
}
#contact .row.mb-60.mb-sm-50.g-0 > .col-sm-6:first-child {
  padding-right: 2rem !important;
}
#contact .row.mb-60.mb-sm-50.g-0 > .col-sm-6:last-child {
  padding-left: 2rem !important;
}


/* Dentist&Co: primary button color */
.theme-main .btn-mod,
.theme-main a.btn-mod,
.theme-main button.btn-mod,
.theme-main .submit_btn.btn-mod {
  background: #003A4B !important;
  border-color: #003A4B !important;
  color: #FFFFFF !important;
}
.theme-main .btn-mod span,
.theme-main a.btn-mod span,
.theme-main button.btn-mod span,
.theme-main .submit_btn.btn-mod span {
  color: #FFFFFF !important;
}
.theme-main .btn-mod:hover,
.theme-main .btn-mod:focus,
.theme-main a.btn-mod:hover,
.theme-main a.btn-mod:focus,
.theme-main button.btn-mod:hover,
.theme-main button.btn-mod:focus,
.theme-main .submit_btn.btn-mod:hover,
.theme-main .submit_btn.btn-mod:focus {
  background: #004a5f !important;
  border-color: #004a5f !important;
}
.theme-main .btn-mod:hover,
.theme-main .btn-mod:focus,
.theme-main a.btn-mod:hover,
.theme-main a.btn-mod:focus,
.theme-main button.btn-mod:hover,
.theme-main button.btn-mod:focus,
.theme-main .submit_btn.btn-mod:hover,
.theme-main .submit_btn.btn-mod:focus {
  color: #FFFFFF !important;
}
.theme-main .btn-mod:hover span,
.theme-main .btn-mod:focus span,
.theme-main a.btn-mod:hover span,
.theme-main a.btn-mod:focus span,
.theme-main button.btn-mod:hover span,
.theme-main button.btn-mod:focus span,
.theme-main .submit_btn.btn-mod:hover span,
.theme-main .submit_btn.btn-mod:focus span {
  color: #FFFFFF !important;
}

/* Contact submit button: match Hero button style */
.theme-main #contact_form .submit_btn.btn-mod {
  padding: 16px 32px 15px;
  font-size: 13px;
  letter-spacing: 0.085em;
  height: auto;
  white-space: nowrap;
}

/* Testimonials Dentist&Co: bg image with 40% opacity color overlay, light text */
.testimonials-dentistandco {
  background-image: linear-gradient(rgba(0, 58, 75, 0.7), rgba(0, 57, 75, 0.7)),
    url("../images/dentistandco/testimonialsbg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #003A4B;
}
.testimonials-dentistandco .ts1-author-img,
.bg-dark-2 .ts1-author-img {
  display: none !important;
}
.testimonials-dentistandco .section-caption,
.testimonials-dentistandco .section-descr,
.testimonials-dentistandco .testimonials-slider-1 blockquote p,
.testimonials-dentistandco .ts1-author,
.testimonials-dentistandco .ts1-author .small,
.testimonials-dentistandco .ts1-author .overflow-hidden {
  color: #F3F3F3 !important;
}
.testimonials-dentistandco .section-line {
  background: #F3F3F3 !important;
}
.testimonials-dentistandco .blockquote-icon {
  color: #003A4B !important;
  background: #F3F3F3 !important;
}
.testimonials-dentistandco .testimonials-slider-1 .owl-prev,
.testimonials-dentistandco .testimonials-slider-1 .owl-next {
  color: #F3F3F3 !important;
}
.testimonials-dentistandco .testimonials-slider-1 .owl-prev:before,
.testimonials-dentistandco .testimonials-slider-1 .owl-next:before {
  background: rgba(243, 243, 243, 0.2) !important;
  border: 1px solid #F3F3F3;
}

/* Decorative dots: reduce opacity to 15% */
.decoration-2,
.decoration-4 {
  opacity: 0.15 !important;
}
