/* ==========================================================================
   SAJ Dental Clinic — Header component
   Scope: everything is namespaced under .saj-header so the component can be
   dropped into any page (and later into an Elementor widget) without leaking.
   ========================================================================== */

.saj-header {
  /* ---- Design tokens (override per page / per widget instance) ---- */
  --saj-header-primary: #F4511E;
  --saj-header-primary-strong: #D6400F;
  --saj-header-navy: #0B2340;
  --saj-header-blue: #1269A8;
  --saj-header-text: #0B2340;
  --saj-header-muted: #5B6778;
  --saj-header-bg: #FFFFFF;
  --saj-header-bg-scrolled: rgba(255, 255, 255, 0.86);
  --saj-header-line: rgba(11, 35, 64, 0.14);

  --saj-header-h: 96px;
  --saj-header-h-scrolled: 76px;
  --saj-header-logo-h: 58px;
  --saj-header-logo-h-scrolled: 48px;
  --saj-header-gutter: clamp(20px, 4.2vw, 68px);
  --saj-header-nav-gap: clamp(18px, 2.4vw, 40px);

  --saj-header-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --saj-header-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --saj-header-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* The outer element reserves a constant height so shrinking the bar on
     scroll never shifts page content. Only the inner bar changes height. */
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--saj-header-h);
  font-family: var(--saj-header-font);
  color: var(--saj-header-text);
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}

.saj-header *,
.saj-header *::before,
.saj-header *::after {
  box-sizing: border-box;
}

/* ---- Bar ---------------------------------------------------------------- */
.saj-header__bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: var(--saj-header-h);
  background: var(--saj-header-bg);
  pointer-events: auto;
  transition:
    height 0.45s var(--saj-header-ease),
    background-color 0.45s var(--saj-header-ease),
    box-shadow 0.45s var(--saj-header-ease);
}

.saj-header.is-scrolled .saj-header__bar {
  height: var(--saj-header-h-scrolled);
  background: var(--saj-header-bg-scrolled);
  box-shadow: 0 10px 34px -18px rgba(11, 35, 64, 0.28);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.saj-header.is-open .saj-header__bar {
  background: var(--saj-header-bg);
  box-shadow: none;
}

.saj-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  height: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding-inline: var(--saj-header-gutter);
}

/* ---- Logo --------------------------------------------------------------- */
.saj-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 8px;
  line-height: 0;
}

.saj-header__logo-img {
  display: block;
  width: auto;
  height: var(--saj-header-logo-h);
  transition: height 0.45s var(--saj-header-ease);
}

.saj-header.is-scrolled .saj-header__logo-img {
  height: var(--saj-header-logo-h-scrolled);
}

/* ---- Desktop navigation -------------------------------------------------- */
.saj-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.saj-header__menu {
  display: flex;
  align-items: center;
  gap: var(--saj-header-nav-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.saj-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--saj-header-text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.saj-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--saj-header-primary);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.45s var(--saj-header-ease);
}

.saj-header__link:hover,
.saj-header__link.is-active {
  color: var(--saj-header-blue);
}

.saj-header__link:hover::after,
.saj-header__link.is-active::after {
  transform: scaleX(1);
}

.saj-header__link.is-active {
  font-weight: 600;
}

/* ---- Actions -------------------------------------------------------------- */
.saj-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  margin-left: auto;
}

.saj-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 28px 0 24px;
  border-radius: 999px;
  background: var(--saj-header-primary);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(244, 81, 30, 0.75);
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--saj-header-ease),
    height 0.45s var(--saj-header-ease);
}

.saj-header.is-scrolled .saj-header__cta {
  height: 48px;
}

.saj-header__cta:hover {
  background: var(--saj-header-primary-strong);
  box-shadow: 0 14px 30px -14px rgba(214, 64, 15, 0.8);
  transform: translateY(-1px);
}

/* Icon slot: the calendar slides out and an arrow slides in on hover,
   inside a fixed 20×20 box, so the button never changes size. */
.saj-header__cta-icons {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  overflow: hidden;
}

.saj-header__cta-icons svg,
.saj-header__toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saj-header__cta-icon,
.saj-header__cta-arrow {
  position: absolute;
  inset: 0;
  transition: transform 0.45s var(--saj-header-ease), opacity 0.3s ease;
}

.saj-header__cta-arrow {
  transform: translateX(-120%);
  opacity: 0;
}

.saj-header__cta:hover .saj-header__cta-icon {
  transform: translateX(120%);
  opacity: 0;
}

.saj-header__cta:hover .saj-header__cta-arrow {
  transform: translateX(0);
  opacity: 1;
}

/* ---- Menu toggle -------------------------------------------------------- */
.saj-header__toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(11, 35, 64, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--saj-header-navy);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, width 0.45s var(--saj-header-ease), height 0.45s var(--saj-header-ease);
}

.saj-header.is-scrolled .saj-header__toggle {
  width: 50px;
  height: 50px;
}

.saj-header__toggle:hover {
  border-color: var(--saj-header-navy);
  background: rgba(11, 35, 64, 0.04);
}

.saj-header__toggle-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}

.saj-header__toggle-lines > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--saj-header-ease), opacity 0.25s ease, top 0.45s var(--saj-header-ease);
}

.saj-header__toggle-lines > span:nth-child(1) { top: 0; }
.saj-header__toggle-lines > span:nth-child(2) { top: 6px; }
.saj-header__toggle-lines > span:nth-child(3) { top: 12px; }

.saj-header__toggle[aria-expanded="true"] .saj-header__toggle-lines > span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.saj-header__toggle[aria-expanded="true"] .saj-header__toggle-lines > span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.saj-header__toggle[aria-expanded="true"] .saj-header__toggle-lines > span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* ---- Focus states ------------------------------------------------------- */
.saj-header a:focus-visible,
.saj-header button:focus-visible {
  outline: 3px solid var(--saj-header-blue);
  outline-offset: 3px;
}

.saj-header__cta:focus-visible {
  outline-color: var(--saj-header-navy);
}

/* ==========================================================================
   Menu drawer
   Near full-viewport rounded dialog opened by the hamburger. Everything is
   scoped under .saj-drawer; tokens live on the drawer so a page (or an
   Elementor widget) can override them.
   ========================================================================== */
.saj-drawer {
  --saj-drawer-inset: 14px;
  --saj-drawer-radius: 32px;
  --saj-drawer-pad: clamp(28px, 3.6vw, 56px);
  --saj-drawer-navy: var(--saj-header-navy);
  --saj-drawer-blue: var(--saj-header-blue);
  --saj-drawer-orange: var(--saj-header-primary);
  --saj-drawer-orange-strong: var(--saj-header-primary-strong);
  --saj-drawer-muted: var(--saj-header-muted);
  --saj-drawer-line: rgba(11, 35, 64, 0.1);
  --saj-drawer-cool: #E4F0FB;
  --saj-drawer-warm: #FDE9E0;
  --saj-drawer-card-gap: 18px;
  --saj-drawer-cards: 3.3;         /* cards per view; the fraction is the peek */
  --saj-drawer-accent: 1;          /* 0 → 1: draws the swash under "Brighter You" */
  --saj-drawer-rule: 1;            /* 0 → 1: draws the section rules */

  position: fixed;
  inset: var(--saj-drawer-inset);
  z-index: 5;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: calc(100vh - 2 * var(--saj-drawer-inset));
  height: calc(100dvh - 2 * var(--saj-drawer-inset));
  overflow: hidden;
  border-radius: var(--saj-drawer-radius);
  background: #F2F8FE;
  color: var(--saj-drawer-navy);
  box-shadow: 0 40px 90px -40px rgba(11, 35, 64, 0.55);
  pointer-events: auto;
}

.saj-drawer[hidden] {
  display: none;
}

/* ---- Decorative background ---------------------------------------------- */
.saj-drawer__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #F5FAFF 0%, #E9F3FC 52%, #FBF1EC 100%);
  pointer-events: none;
}

.saj-drawer__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.saj-drawer__glow--a {
  top: -18%;
  right: 24%;
  width: 46vw;
  max-width: 640px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(18, 105, 168, 0.12) 0%, rgba(18, 105, 168, 0) 68%);
}

.saj-drawer__glow--b {
  bottom: -26%;
  right: -8%;
  width: 40vw;
  max-width: 560px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(244, 81, 30, 0.1) 0%, rgba(244, 81, 30, 0) 68%);
}

.saj-drawer__tooth {
  position: absolute;
  right: clamp(-60px, -2vw, -20px);
  bottom: clamp(-80px, -4vw, -30px);
  width: clamp(240px, 26vw, 420px);
  height: auto;
  fill: none;
  stroke: rgba(18, 105, 168, 0.09);
  stroke-width: 1.4;
}

.saj-drawer__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 22%;
  fill: rgba(255, 255, 255, 0.55);
}

/* ---- Header row + scroll container -----------------------------------------
   The header sits outside the scrolling area, so content is clipped at its
   bottom edge and can never slide under the logo or the close button. */
.saj-drawer__header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2.2vw, 30px) var(--saj-drawer-pad);
}

/* hairline + soft shadow once the content has been scrolled */
.saj-drawer__header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--saj-drawer-line);
  box-shadow: 0 6px 18px rgba(11, 35, 64, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.saj-drawer.is-scrolled .saj-drawer__header::after {
  opacity: 1;
}

.saj-drawer__scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.saj-drawer__logo {
  display: inline-flex;
  flex: 0 1 auto;
  border-radius: 8px;
}

.saj-drawer__logo img {
  display: block;
  width: auto;
  height: var(--saj-header-logo-h);
  max-width: 100%;
}

.saj-drawer__close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid rgba(11, 35, 64, 0.12);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--saj-drawer-navy);
  box-shadow: 0 14px 30px -18px rgba(11, 35, 64, 0.45);
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.saj-drawer__close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 0.5s var(--saj-header-ease);
}

.saj-drawer__close:hover {
  border-color: var(--saj-drawer-orange);
  background: var(--saj-drawer-orange);
  color: #FFFFFF;
  box-shadow: 0 18px 34px -16px rgba(244, 81, 30, 0.6);
}

.saj-drawer__close:hover svg {
  transform: rotate(90deg);
}

/* ---- Two-column content -------------------------------------------------- */
.saj-drawer__content {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  align-items: start;
  padding: clamp(8px, 2vw, 28px) var(--saj-drawer-pad) var(--saj-drawer-pad);
}

.saj-drawer__main {
  min-width: 0;
  padding-right: clamp(28px, 3.6vw, 64px);
}

.saj-drawer__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--saj-drawer-blue);
}

.saj-drawer__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--saj-drawer-orange);
}

.saj-drawer__title {
  margin: 0;
  font-family: var(--saj-header-font-display);
  font-size: clamp(40px, 4.9vw, 74px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--saj-drawer-navy);
}

/* each line is a mask so the text can rise into place */
.saj-drawer__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.saj-drawer__title-inner {
  display: inline-block;
}

.saj-drawer__title-accent {
  position: relative;
  font-style: italic;
  color: var(--saj-drawer-orange);
}

.saj-drawer__title-accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.02em;
  height: 0.07em;
  border-radius: 1em;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(var(--saj-drawer-accent));
  transform-origin: left center;
}

.saj-drawer__description {
  max-width: 520px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--saj-drawer-muted);
}

/* ---- Compact site menu (only where the header nav is hidden) ------------ */
.saj-drawer__menu {
  display: none;
}

.saj-drawer__menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.saj-drawer__menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(11, 35, 64, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  color: var(--saj-drawer-navy);
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.saj-drawer__menu-link:hover,
.saj-drawer__menu-link.is-active {
  border-color: var(--saj-drawer-orange);
  color: var(--saj-drawer-orange-strong);
}

/* ---- Popular treatments -------------------------------------------------- */
.saj-drawer__treatments {
  margin-top: clamp(32px, 4vw, 56px);
}

.saj-drawer__section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-family: var(--saj-header-font-display);
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 500;
  color: var(--saj-drawer-navy);
}

.saj-drawer__section-line {
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: var(--saj-drawer-orange);
  transform: scaleX(var(--saj-drawer-rule));
  transform-origin: left center;
}

/* The slider box clips the moving track; the padding leaves room for the
   card shadows and hover lift, and the edges fade out softly. */
.saj-drawer__slider {
  position: relative;
  margin: -12px -12px 0;
  padding: 12px 12px 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 56px), transparent 100%);
}

.saj-drawer__track {
  display: flex;
  gap: var(--saj-drawer-card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
  touch-action: pan-y;              /* horizontal drags go to the slider */
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.saj-drawer__slider.is-dragging .saj-drawer__track {
  cursor: grabbing;
}

.saj-drawer__track a,
.saj-drawer__track img {
  -webkit-user-drag: none;
}

.saj-drawer__treatment-card {
  flex: 0 0 calc((100% - (var(--saj-drawer-cards) - 1) * var(--saj-drawer-card-gap)) / var(--saj-drawer-cards));
  min-width: 0;
}

.saj-drawer__treatment-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  height: 100%;
  min-height: 210px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(18, 105, 168, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px -30px rgba(11, 35, 64, 0.45);
  color: var(--saj-drawer-navy);
  text-decoration: none;
  transition: transform 0.5s var(--saj-header-ease), box-shadow 0.5s var(--saj-header-ease), border-color 0.4s ease;
}

.saj-drawer__treatment-link:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 81, 30, 0.35);
  box-shadow: 0 28px 50px -30px rgba(11, 35, 64, 0.55);
}

.saj-drawer__treatment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  transition: transform 0.5s var(--saj-header-ease);
}

.saj-drawer__treatment-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saj-drawer__treatment-icon--cool {
  background: var(--saj-drawer-cool);
  color: var(--saj-drawer-blue);
}

.saj-drawer__treatment-icon--warm {
  background: var(--saj-drawer-warm);
  color: var(--saj-drawer-orange);
}

.saj-drawer__treatment-icon--cool .saj-drawer__icon-accent {
  stroke: var(--saj-drawer-orange);
}

.saj-drawer__treatment-icon--warm .saj-drawer__icon-accent {
  stroke: var(--saj-drawer-blue);
}

.saj-drawer__treatment-link:hover .saj-drawer__treatment-icon {
  transform: scale(1.06) rotate(-4deg);
}

.saj-drawer__treatment-title {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.saj-drawer__treatment-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.saj-drawer__treatment-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--saj-header-ease);
}

.saj-drawer__treatment-arrow--cool {
  background: var(--saj-drawer-cool);
  color: var(--saj-drawer-blue);
}

.saj-drawer__treatment-arrow--warm {
  background: var(--saj-drawer-warm);
  color: var(--saj-drawer-orange);
}

.saj-drawer__treatment-link:hover .saj-drawer__treatment-arrow {
  background: var(--saj-drawer-orange);
  color: #FFFFFF;
}

.saj-drawer__treatment-link:hover .saj-drawer__treatment-arrow svg {
  transform: translateX(3px);
}

/* ---- Clinic information --------------------------------------------------- */
.saj-drawer__clinic-info {
  min-width: 0;
  padding-left: clamp(28px, 3.2vw, 56px);
  border-left: 1px solid var(--saj-drawer-line);
}

.saj-drawer__info-title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 16px;
  font-family: var(--saj-header-font-display);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  color: var(--saj-drawer-navy);
}

.saj-drawer__info-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--saj-drawer-orange);
  transform: scaleX(var(--saj-drawer-rule));
  transform-origin: left center;
}

.saj-drawer__info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.saj-drawer__info-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--saj-drawer-line);
}

.saj-drawer__info-item:last-child {
  border-bottom: 0;
}

.saj-drawer__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.saj-drawer__info-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saj-drawer__info-icon--cool {
  background: var(--saj-drawer-cool);
  color: var(--saj-drawer-blue);
}

.saj-drawer__info-icon--warm {
  background: var(--saj-drawer-warm);
  color: var(--saj-drawer-orange);
}

.saj-drawer__info-body {
  min-width: 0;
  padding-top: 2px;
}

.saj-drawer__info-label {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saj-drawer-muted);
}

.saj-drawer__info-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--saj-drawer-navy);
}

.saj-drawer__info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--saj-drawer-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.saj-drawer__info-link--big {
  font-size: 18px;
}

.saj-drawer__info-link:hover {
  color: var(--saj-drawer-orange-strong);
}

.saj-drawer__directions {
  min-height: 40px;
  margin-top: 4px;
  font-size: 15px;
  color: var(--saj-drawer-orange-strong);
}

.saj-drawer__info-arrow {
  display: inline-block;
  transition: transform 0.4s var(--saj-header-ease);
}

.saj-drawer__directions:hover .saj-drawer__info-arrow {
  transform: translateX(4px);
}

.saj-drawer__hours {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
}

.saj-drawer__hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  margin: 0 0 0 -12px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.saj-drawer__hours-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--saj-drawer-muted);
}

.saj-drawer__hours-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--saj-drawer-navy);
}

.saj-drawer__hours-row.is-today {
  background: #FFFFFF;
  box-shadow: inset 3px 0 0 var(--saj-drawer-orange), 0 10px 24px -20px rgba(11, 35, 64, 0.5);
}

.saj-drawer__hours-row.is-today dt {
  font-weight: 700;
  color: var(--saj-drawer-navy);
}

.saj-drawer__today {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--saj-drawer-warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saj-drawer-orange-strong);
}

/* ---- Utilities / focus ----------------------------------------------------- */
.saj-drawer__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.saj-drawer a:focus-visible,
.saj-drawer button:focus-visible {
  outline: 3px solid var(--saj-drawer-blue);
  outline-offset: 3px;
}

.saj-drawer__treatment-link:focus-visible {
  outline-offset: 2px;
}

.saj-header__backdrop {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: rgba(11, 35, 64, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: auto;
  opacity: 0;
}

.saj-header.is-open .saj-header__backdrop {
  opacity: 1;
}

.saj-header__backdrop[hidden] {
  display: none;
}

/* ---- Drawer responsive ------------------------------------------------------ */
/* Laptop / small desktop: the header nav is hidden, so the drawer shows the
   compact site menu and two cards per view. */
@media (max-width: 1199.98px) {
  .saj-drawer {
    --saj-drawer-cards: 2.3;
  }

  .saj-drawer__menu {
    display: block;
    margin-top: 28px;
  }
}

/* Tablet: the two columns stack */
@media (max-width: 1023.98px) {
  .saj-drawer {
    --saj-drawer-inset: 12px;
    --saj-drawer-radius: 28px;
  }

  .saj-drawer__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .saj-drawer__main {
    padding-right: 0;
  }

  .saj-drawer__clinic-info {
    margin-top: 36px;
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid var(--saj-drawer-line);
  }

  .saj-drawer__info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .saj-drawer__info-item:nth-last-child(2) {
    border-bottom: 0;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .saj-drawer {
    --saj-drawer-inset: 8px;
    --saj-drawer-radius: 22px;
    --saj-drawer-pad: 20px;
    --saj-drawer-card-gap: 14px;
  }

  .saj-drawer__header {
    padding-block: 12px;
  }

  .saj-drawer__close {
    width: 52px;
    height: 52px;
  }

  .saj-drawer__content {
    padding-top: 24px;
  }

  .saj-drawer__eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.2em;
  }

  .saj-drawer__title {
    font-size: clamp(34px, 9.6vw, 46px);
  }

  .saj-drawer__menu-link {
    padding: 0 16px;
    font-size: 14.5px;
  }

  .saj-drawer__info-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .saj-drawer__info-item:nth-last-child(2) {
    border-bottom: 1px solid var(--saj-drawer-line);
  }

  .saj-drawer__tooth {
    width: 220px;
    opacity: 0.8;
  }
}

/* Phones: one card per view with the next one peeking in */
@media (max-width: 599.98px) {
  .saj-drawer {
    --saj-drawer-cards: 1.25;
  }

  .saj-drawer__treatment-link {
    min-height: 190px;
  }
}

/* ---- Intro failsafe --------------------------------------------------------
   JS hides the bar content until the GSAP intro starts. If JS never runs,
   this CSS-only fallback reveals everything after a short delay. */
.saj-header[data-saj-intro="pending"] .saj-header__inner {
  opacity: 0;
  animation: saj-header-failsafe 0.4s ease 1.6s forwards;
}

@keyframes saj-header-failsafe {
  to { opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Laptop: tighten the navigation before it gets crowded. */
@media (max-width: 1439.98px) {
  .saj-header {
    --saj-header-logo-h: 52px;
    --saj-header-nav-gap: clamp(16px, 1.9vw, 30px);
  }

  .saj-header__link {
    font-size: 14.5px;
  }

  .saj-header__cta {
    padding: 0 22px 0 20px;
    font-size: 15px;
  }
}

/* Below this width the six links + CTA no longer fit: the drawer carries the menu. */
@media (max-width: 1199.98px) {
  .saj-header__nav {
    display: none;
  }
}

/* Tablet & mobile */
@media (max-width: 767.98px) {
  .saj-header {
    --saj-header-h: 76px;
    --saj-header-h-scrolled: 66px;
    --saj-header-logo-h: 42px;
    --saj-header-logo-h-scrolled: 38px;
  }

  .saj-header__toggle,
  .saj-header.is-scrolled .saj-header__toggle {
    width: 46px;
    height: 46px;
  }
}

/* Small phones: CTA collapses to an icon-only circle (label kept for AT). */
@media (max-width: 599.98px) {
  .saj-header__cta,
  .saj-header.is-scrolled .saj-header__cta {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
  }

  .saj-header__cta-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .saj-header__actions {
    gap: 10px;
  }
}

@media (max-width: 359.98px) {
  .saj-header {
    --saj-header-logo-h: 36px;
    --saj-header-logo-h-scrolled: 34px;
  }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .saj-header *,
  .saj-header__bar {
    transition-duration: 0.01ms !important;
  }

  .saj-header[data-saj-intro="pending"] .saj-header__inner {
    opacity: 1;
    animation: none;
  }

}
