@font-face {
  font-family: "Intro";
  src:
    url("./fonts/Intro/IntroRegular_normal_normal.woff") format("woff"),
    url("./fonts/Intro/IntroRegular_normal_normal.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "Pedigree Unleashed";
  src:
    url("./fonts/PEDIGREEUnleashed/PEDIGREEUnleashed_normal_normal.woff") format("woff"),
    url("./fonts/PEDIGREEUnleashed/PEDIGREEUnleashed_normal_normal.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "Pedigree Unleashed Light";
  src:
    url("./fonts/PEDIGREEUnleashedLight/PEDIGREEUnleashedLight_normal_normal.woff") format("woff"),
    url("./fonts/PEDIGREEUnleashedLight/PEDIGREEUnleashedLight_normal_normal.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "Pedigree Unleashed Dark";
  src:
    url("./fonts/PEDIGREEUnleashedBlack/PEDIGREEUnleashedBlack_normal_normal.woff") format("woff"),
    url("./fonts/PEDIGREEUnleashedBlack/PEDIGREEUnleashedBlack_normal_normal.woff2") format("woff2");
  font-display: fallback;
}

@keyframes fromBottom {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

html,
body {
  /* overflow-x: hidden !important; */
  /* overflow-y: auto !important; */
  height: auto !important;
  position: static !important;
  touch-action: manipulation !important;
  -webkit-overflow-scrolling: touch !important;
}
@media (max-width: 768px) {
  * {
    overflow: unset !important;
  }
}
* {
  box-sizing: border-box;
}
::-webkit-scrollbar-thumb {
  background-color: #f0ac03;
}
.toothscan-tool {
  display: block;
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  inset: unset !important;
  touch-action: manipulation !important;
}
check-sdk {
  display: block;
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  touch-action: manipulation !important;
}
.toothscan-tool *,
check-sdk * {
  touch-action: pan-y !important;
}
/* Prevent SDK fixed-height internal scroll containers from trapping page scroll */
[data-id="welcome-card-main-section"],
[data-id="sdk-screen"],
[data-id="sdk-container"],
[data-id="sdk-screen-content"] {
  overflow: visible !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
}
/* Responsive Header Styles */
.site-header {
  width: 100%;
  background-color: #f0ac03;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1200;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  flex-shrink: 0;
  font-family: "Intro", sans-serif;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  outline: none;
}

.lang-toggle .lang-globe {
  flex-shrink: 0;
}

.lang-toggle .lang-caret {
  transition: transform 0.2s ease;
}

.lang-toggle[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1300;
}

.language-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  color: #222222;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.15s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background-color: #fdf3d6;
  color: #222222;
  outline: none;
}

.lang-option .lang-code {
  font-weight: 700;
}

.lang-option .lang-divider {
  color: #c9c9c9;
}

.lang-option.is-active {
  font-weight: 700;
  background-color: #fdf3d6;
}

@media (max-width: 480px) {
  .lang-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  .lang-menu {
    min-width: 160px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Override SDK-injected atomic classes that lock scroll */
  .toothscan-tool,
  section.toothscan-tool[class*="acss-"] {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    inset: unset !important;
    width: 100% !important;
  }

  .acss-1om0i3c {
    position: relative !important;
    overflow: visible !important;
    /* height: auto !important; */
  }
  .acss-1y78bj6 {
    position: relative !important;
    overflow: visible !important;
    /* height: auto !important; */
  }
  .acss-1ktzzyv {
    overscroll-behavior: unset !important;
  }

  .logo-img {
    height: 60px;
  }

  .site-header {
    padding: 0.75rem 0;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 50px;
  }

  .header-container {
    padding: 0 0.75rem;
  }
}

.header__mobile-inline-menu {
  display: none !important;
}

.header__menu {
  display: none !important;
}

/* Banner Styles */
.site-banner {
  width: 100%;
  display: block;
  background: #000; /* fallback background if images have transparency */
  line-height: 0; /* remove extra white space below inline-block images */
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .banner-img {
    max-height: 360px;
  }
}

/* Showcase Section */
.image-showcase {
  background: #fefbf2;
  padding-top: 5rem;
  padding-bottom: 5rem;
  animation: fromBottom 1.5s cubic-bezier(0, 0.55, 0.45, 1) forwards;
  overflow-x: hidden;
}

.showcase-img {
  border-radius: 20px;
  padding: 1px 85px;
  max-width: 100%;
}
section.image-showcase .carousel-indicators {
  display: flex;
  top: 0;
  margin: 0;
  position: relative;
}

.carousel-container {
  padding-left: 30px;
  padding-right: 30px;
}

.carousel-indicators [data-bs-target] {
  height: 8px !important;
  width: 8px !important;
  border-radius: 50%;
  background-color: rgb(228 15 14) !important;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: block;
  transform: translateX(1px);
}

.headline {
  font-family: "Pedigree Unleashed Dark", sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 767.98px) {
  .showcase-img {
    border-radius: 20px;
    box-shadow: none;
    padding: 1px 8px;
  }
}

@media (min-width: 1024px) {
  .showcase-img {
    padding: 1px 82px;
  }
}

.mobile-carousel-view {
  padding-left: 15px;
  padding-right: 15px;
}

.carousel .carousel-indicators {
  bottom: -45px;
}

.caption-header {
  font-family: "Pedigree Unleashed";
  font-size: 1.75rem;
  font-weight: 600;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.caption-body {
  font-family: "Intro";
  font-size: 1.2rem;
  font-weight: 500;
  padding-left: 1rem;
  padding-right: 1rem;
  word-break: normal;
  text-align: center;
  margin-bottom: 1rem;
}

.disclaimer-body {
  font-family: "Intro";
  font-size: 1.85rem;
  font-weight: 500;
}

.article-range {
  background: #fefbf2;
  text-align: center;
  animation: fromBottom 1.5s cubic-bezier(0, 0.55, 0.45, 1) forwards;
}

@media (min-width: 992px) {
  .article-range {
    padding: 80px 50px;
  }
}

@media (max-width: 768px) {
  .article-range {
    padding: 40px 25px;
  }
}

p {
  margin-bottom: 50px;
  line-height: 1.4;
}

.small-text {
  font-family: "Intro";
  margin-top: 20px;
  font-size: 0.82em;
  color: #666666;
}

/* Footer Styles */
.site-footer {
  width: 100%;
  background-color: #f0ac03;
  padding-top: 2rem;
  margin-top: auto;
  font-family: "Intro";
}

.footer-container {
  max-width: 1200px;
  padding: 0 0 0 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* Footer Links Section */
.footer-links-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-left: auto;
  padding-top: 0.5rem;
  padding-right: 1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-text {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
}

.footer-text span {
  font-size: 0.75rem;
  color: #ffffff !important;
  margin: 0;
}

/* Responsive footer adjustments */
@media (max-width: 1024px) {
  .footer-links-section {
    gap: 1.5rem;
  }

  .footer-container {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-logo-img {
    height: 60px;
  }

  .site-footer {
    padding: 1.5rem 0;
  }

  .footer-container {
    padding: 0 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-left: 0;
    padding-right: 0;
  }

  .footer-logo-img {
    height: 40px;
  }

  .footer-column {
    display: contents;
  }

  .footer-link {
    font-size: 0.8rem;
  }
}

.ot-sdk-show-settings {
  background-color: #c00015 !important;
  margin: 10px;
  border-radius: 20px;
  border: 0;
}
