/* Header/footer from Absolute Dental clone; scoped to #header and footer.site-footer */
:root {
  --navy: #0f2138;
  --navy-dark: #0a1729;
  --text: #102033;
  --muted: #5a6776;
  --line: #d9e1ea;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --btn: #17304e;
  --btn-hover: #0d223b;
  --shadow: 0 10px 30px rgba(15, 33, 56, .08);
  --radius: 14px;
  --container: 1240px;
}

#header *,
footer.site-footer * {
  box-sizing: border-box;
}

#header a,
footer.site-footer a {
  color: inherit;
  text-decoration: none;
}

#header img,
footer.site-footer img {
  max-width: 100%;
  display: block;
}

#header .container,
footer.site-footer .container {
  width: 1440px;
  max-width: 100%;
  margin-inline: auto;
}

#header header .container,
footer.site-footer .container {
  padding-right: 30px;
  padding-left: 30px;
}

#header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#header .topbar {
  background: rgba(51, 71, 91, 1.0);
  color: #fff;
  font-size: 14px;
}

#header .topbar__inner {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
  min-height: 48px;
  flex-wrap: wrap;
  padding: 5px 0;
}

#header .topbar__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#header .topbar__links a {
  position: relative;
  font-weight: 700;
  padding: 10px 0 10px 0px;
  font-size: 14px;
  line-height: 24px;
  transition: .2s ease;
  color: rgba(255, 255, 255, 1.0);
}

#header .topbar__links a:hover {
  color: rgba(238, 238, 238, 1.0);
}

#header .topbar__social {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

#header .topbar__social a {
  font-size: 13px;
  opacity: .92;
}

#header .header_logo {
  width: 100px;
  margin: 10px -10px 10px;
}

#header > header {
  display: contents;
}

#header > header,
footer.site-footer {
  font-family: "Poppins", sans-serif;
}

#header .site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 16px 0px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 33, 56, .08);
}

#header .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

#header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

#header .main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#header .nav-item {
  position: relative;
}

#header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 14px 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  border-radius: 10px;
  transition: .2s ease;
  white-space: nowrap;
}

#header .nav-link__text {
  position: relative;
  display: inline-block;
}

#header .main-nav > .nav-item > .nav-link > .nav-link__text::after {
  content: '';
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 220ms ease-in;
  background: rgba(41, 170, 218, 1.0);
}

#header .main-nav > .nav-item > .nav-link:hover > .nav-link__text::after,
#header .main-nav > .nav-item > .nav-link:focus-visible > .nav-link__text::after {
  width: 100%;
}

#header .nav-link:hover {
  color: rgba(19, 75, 160, 1.0);
}

/* Match design spec; border:none clears legacy .caret triangle from style.css */
#header .caret {
  width: 8px;
  height: 8px;
  border: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: .8;
}

#header .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid rgba(15, 33, 56, .08);
  box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.05);
  padding: 10px 0px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .22s ease;
}

#header .dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  transition: .2s ease;
}

#header .dropdown a:hover {
  background-color: rgba(0, 164, 189, 1);
  color: #fff;
}

#header .nav-item:hover .dropdown,
#header .nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#header .header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

#header .btn--outline {
  background: #489fbf;
  color: #fff;
  box-shadow: none;
  padding: 20px 15px;
  font-size: 10px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

#header .btn--outline:hover {
  background: #489fbf;
  transition: all .4s ease-in-out;
  transform: scale(1.05);
}

#header .btn--solid {
  background: #004f7f;
  color: #fff;
  box-shadow: none;
  padding: 20px 15px;
  font-size: 10px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all .4s ease-in-out;
}

#header .btn--solid:hover {
  background: #489fbf;
  transform: scale(1.05);
}

#header .menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border: none;
  position: relative;
}

#header .menu-toggle span,
#header .menu-toggle::before,
#header .menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .2s ease;
  position: absolute;
}

#header .menu-toggle span {
  transform: translateY(0);
}

#header .menu-toggle::before {
  transform: translateY(-6px);
}

#header .menu-toggle::after {
  transform: translateY(6px);
}

#header .menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

#header .menu-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

#header .menu-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

#header .mobile-panel {
  display: none;
  background: #fff;
}

#header .mobile-overlay {
  display: none;
}

#header .mobile-panel__inner {
  padding: 20px 40px !important;
  height: 100%;
  overflow-y: auto;
}

#header .mobile-panel__close {
  margin-left: auto;
  margin-bottom: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  display: grid;
  place-items: center;
}

#header .mobile-panel__close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
}

#header .mobile-top-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

#header .mobile-links {
  display: grid;
  gap: 6px;
}

#header .mobile-disclosure {
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

#header .mobile-disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  color: #666666;
}

#header .mobile-disclosure summary::-webkit-details-marker {
  display: none;
}

#header .mobile-disclosure summary::after {
  content: "";
  width: 14px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: 14px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='14' viewBox='0 0 448 512'%3E%3Cpath fill='%239c9c9c' d='M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z'/%3E%3C/svg%3E");
  transition: transform .2s ease;
  color: #9c9c9c;
}

#header .mobile-disclosure[open] summary::after {
  transform: rotate(45deg);
}

#header .mobile-disclosure__content {
  padding: 2px 0 8px 20px;
  display: grid;
  gap: 2px;
}

#header .mobile-disclosure__content a,
#header .mobile-single-link {
  display: block;
  padding: 10px 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
}

#header .mobile-disclosure__content a:hover,
#header .mobile-single-link:hover {
  background: transparent;
}

#header .mobile-single-link {
  font-weight: 700;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: 16px;
}

#header .mobile-panel__social {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #d8dce2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

#header .mobile-panel__social a {
  color: #3a3f46;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

#header .mobile-panel__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.menu-open {
  overflow: hidden;
}

footer.site-footer {
  padding-top: 70px;
  padding-bottom: 70px;
  background-color: rgba(238, 238, 238, 1.0);
  /* Override legacy footer { border-top: 3px solid #0eaae2 } in style.css */
  border-top: none;
  /* Override style.css footer { text-align: center } in mobile breakpoints */
  text-align: left;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 56px;
}

footer.site-footer .footer-accordion {
  margin: 0;
  padding: 0;
  border: 0;
}

footer.site-footer .footer-accordion__summary {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  color: #000;
  list-style: none;
  cursor: default;
}

footer.site-footer .footer-accordion__summary::-webkit-details-marker {
  display: none;
}

footer.site-footer .footer-accordion__content {
  display: block;
}

footer.site-footer .footer-accordion:not([open]) > .footer-accordion__content {
  display: block;
}

footer.site-footer .footer-links {
  display: grid;
  gap: 7px;
}

footer.site-footer .footer-links a {
  color: #444444;
  font-size: 16px;
  line-height: 1.35;
  transition: .2s ease;
  font-weight: 400;
  margin-bottom: 10px;
}

footer.site-footer .footer-links a:hover {
  color: #ff7a59;
  text-decoration: none;
}

footer.site-footer .footer-contact {
  display: grid;
  gap: 10px;
  color: #8f969d;
  font-size: 17px;
  line-height: 1.25;
}

footer.site-footer .footer-contact-address {
  font-size: 18px;
  font-weight: 400;
  color: #929395;
}

footer.site-footer .footer-contact p {
  margin: 0;
}

footer.site-footer .footer-contact-phone {
  margin: 10px 0px !important;
}

footer.site-footer .footer-contact .phone-link {
  color: #004f7f;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
}

footer.site-footer .footer-contact .phone-link:hover {
  color: #3d93b5;
}

footer.site-footer .review-link {
  display: inline-block;
  font-weight: 700;
  color: #9ac5e2;
  font-size: 18px;
  line-height: 1.2;
}

footer.site-footer .review-link:hover {
  color: #65afcf;
  text-decoration: none;
}

footer.site-footer .footer-bottom {
  padding: 22px 0 22px;
}

footer.site-footer .footer-bottom__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  padding-top: 22px;
  text-align: left;
}

footer.site-footer .footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  color: #6f757c;
  font-size: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

footer.site-footer .footer-logo {
  width: 88px;
  margin-bottom: 2px;
}

footer.site-footer .footer-meta a {
  width: fit-content;
  color: #444444;
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
}

footer.site-footer .footer-meta a:hover {
  color: #ff7a59;
}

footer.site-footer .footer-meta span {
  color: #666666;
  font-size: 13px;
}

footer.site-footer .footer-social {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  padding-top: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

footer.site-footer .footer-social a {
  color: #444444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  padding: 5px 5px 0;
}

footer.site-footer .footer-social a:hover {
  color: #ff7a59;
}

footer.site-footer .footer-social svg {
  width: 20px;
  height: 20px;
  fill: #444444;
}

footer.site-footer .footer-social svg:hover {
  fill: #ff7a59;
}

@media (max-width: 1300px) {
  #header .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  #header .site-header {
    backdrop-filter: none;
  }

  #header .main-nav,
  #header .header-cta {
    display: none;
  }

  #header .nav-wrap {
    justify-content: flex-end;
  }

  #header .menu-toggle {
    display: inline-flex;
    z-index: 1210;
  }

  #header .menu-toggle[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
  }

  #header .mobile-panel {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100vw);
    height: 100vh;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform .32s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .22);
    pointer-events: none;
    visibility: hidden;
  }

  #header .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    z-index: 1190;
    opacity: 0;
    visibility: hidden;
    transition: opacity .32s ease, visibility .32s ease;
    pointer-events: none;
  }

  #header .mobile-panel[data-open="true"] {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  #header .mobile-overlay[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #header .topbar__links {
    justify-content: center;
    gap: 0px 10px;
  }

  #header .topbar__links a {
    padding: 0px;
  }

  #header header .container,
  footer.site-footer .container {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* Tablet tuning: match reference spacing/scale (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Override legacy style.css rule: #header { margin-top:-24px!important; } */
  #header {
    margin-top: 0 !important;
    padding-top: 0;
  }

  #header .topbar {
    font-size: 14px;
  }

  #header .topbar__inner {
    justify-content: center;
    min-height: 40px;
    padding: 6px 0;
  }

  #header .topbar__links {
    justify-content: center;
    gap: 0 14px;
  }

  #header .topbar__links a {
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  #header .site-header {
    padding: 0;
    margin-top: 0;
  }

  #header .site-header__inner {
    min-height: 96px;
  }

  #header .header_logo {
    width: 100px;
  }

  #header .menu-toggle {
    width: 0px;
    height: 54px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  #header .menu-toggle span,
  #header .menu-toggle::before,
  #header .menu-toggle::after {
    width: 26px;
    height: 3px;
    border-radius: 2px;
  }

  #header .container,
  #header header .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* In this range, keep login panel fluid so it doesn't push layout */
  #sign_in {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  #header .topbar__inner {
    justify-content: center;
  }

  #header .topbar__social {
    justify-content: center;
  }

  footer.site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer.site-footer .footer-links a {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  footer.site-footer .footer-accordion__summary::after {
    display: none;
  }

  footer.site-footer .footer-accordion__summary {
    margin: 0 0 32px;
    padding: 0;
    border-bottom: none;
    text-transform: none;
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  #header .menu-toggle {
    width: 0;
    height: 54px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  #header .menu-toggle span,
  #header .menu-toggle::before,
  #header .menu-toggle::after {
    width: 26px;
    height: 3px;
    border-radius: 2px;
  }

  /* Login form responsiveness (legacy CSS sets min-width:841px on #sign_in) */
  #sign_in {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 0 24px !important;
  }

  #sign_in table {
    padding: 24px 16px 0 !important;
    width: 100% !important;
    table-layout: fixed;
  }

  #sign_in table tr,
  #sign_in table td {
    display: block;
    width: 100% !important;
  }

  #sign_in table td {
    padding: 0 0 10px !important;
  }

  #sign_in label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 14px;
  }

  #sign_in input.text_field {
    width: 100% !important;
    padding: 12px 10px !important;
  }

  #sign_in #password {
    margin-bottom: 0;
  }

  #sign_in #loginSubmit,
  #sign_in #ForgetPassword {
    float: none !important;
    display: block;
    width: 100%;
    margin: 8px 0 0 !important;
  }

  #sign_in #forgetPasswordFormDiv {
    padding: 24px 16px 0 !important;
  }

  #sign_in #forgetPasswordFormDiv .text_field.forget,
  #sign_in #forgetPasswordFormDiv #forgetPasswordBtn,
  #sign_in #forgetPasswordFormDiv #back {
    width: 100%;
    display: block;
    margin: 8px 0 0 !important;
  }

  #header .site-header__inner {
    min-height: 76px;
  }

  footer.site-footer .footer-bottom__inner {
    border-top: none;
  }

  footer.site-footer .footer-main,
  footer.site-footer .footer-grid,
  footer.site-footer .footer-links,
  footer.site-footer .footer-contact {
    text-align: center;
    justify-items: center;
  }

  footer.site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: none;
    justify-items: stretch;
  }

  footer.site-footer .footer-col {
    border-bottom: none;
    width: 100%;
  }

  footer.site-footer .footer-accordion__summary {
    margin: 0;
    width: 100%;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    border-bottom: 1px solid #cccccc;
    text-transform: uppercase;
  }

  footer.site-footer .footer-accordion__summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform .2s ease;
  }

  footer.site-footer .footer-accordion[open] > .footer-accordion__summary::after {
    transform: rotate(225deg);
    margin-top: 2px;
  }

  footer.site-footer .footer-accordion[open] > .footer-accordion__summary {
    border-bottom: none;
  }

  footer.site-footer .footer-accordion__content {
    padding: 0 0 20px;
  }

  footer.site-footer .footer-accordion:not([open]) > .footer-accordion__content {
    display: none !important;
  }

  footer.site-footer .footer-accordion[open] > .footer-accordion__content {
    border-bottom: 1px solid #cccccc;
  }

  footer.site-footer .footer-links a:last-child {
    margin-bottom: 0;
  }

  /* Bottom bar: keep left / right layout intent — stack on small screens, stay left-aligned */
  footer.site-footer .footer-bottom__inner {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  footer.site-footer .footer-bottom .footer-meta {
    align-items: center;
    text-align: center;
  }

  footer.site-footer .footer-bottom .footer-social {
    margin-left: 0;
    justify-content: center;
    padding-top: 0;
  }

  footer.site-footer .footer-bottom {
    padding: 22px 0 0px;
  }

  footer.site-footer {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
