/* Hebron Smiles Digital Agency Styles - Minimal Custom CSS */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&display=swap');

@theme {
  --color-primary: #F6F5F2;
  --color-bg-primary: #F6F5F2;
  --color-bg-card: #FFFFFF;
  --color-dark: #020100;
  --color-bg-dark: #020100;
  --color-bg-dark-card: #0c0b0a;
  --color-accent-orange: #f37826;
  --color-accent-orange-hover: #d96316;
  --color-text-dark: #020100;
  --color-muted: #555452;
  --color-text-muted: #555452;
  --color-text-light: #F8FAFC;
  --color-border-light: #E5E7EB;
  --color-gray-dark: #333333;
  --font-main: 'Archivo', sans-serif;
  --font-heading: 'Archivo', sans-serif;
}

:root {
  --bg-primary: #F6F5F2;
  --bg-card: #FFFFFF;
  --bg-dark: #020100;
  --bg-dark-card: #0c0b0a;
  --accent-orange: #f37826;
  --accent-orange-hover: #d96316;
  --text-dark: #020100;
  --text-muted: #555452;
  --text-light: #F8FAFC;
  --border-light: #E5E7EB;
  --gray-dark: #333333;
  --font-main: 'Archivo', sans-serif;
  --font-heading: 'Archivo', sans-serif;
  /* Fixed header clearance for in-page anchors */
  --hs-header-offset: 100px;
}

body.admin-bar {
  --hs-header-offset: 132px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --hs-header-offset: 146px;
  }
}

/* Typography & Color Utility Helpers */
.text-gray-dark {
  color: var(--gray-dark, #333333) !important;
}

.text-accent-orange, .text-accent {
  color: var(--accent-orange, #f37826) !important;
}

.text-text-muted, .text-muted {
  color: var(--text-muted, #555452) !important;
}

.bg-accent-orange {
  background-color: var(--accent-orange, #f37826) !important;
}

.bg-primary {
  background-color: var(--bg-primary, #F6F5F2) !important;
}

.border-accent-orange {
  border-color: var(--accent-orange, #f37826) !important;
}

a.btn-primary,
.btn-primary,
a.btn-secondary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a.btn-primary,
.btn-primary {
  background-color: var(--accent-orange, #f37826);
  color: #fff !important;
  border: 2px solid var(--accent-orange, #f37826);
}

a.btn-primary:hover,
a.btn-primary:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-orange-hover, #d96316);
  border-color: var(--accent-orange-hover, #d96316);
  color: #fff !important;
  transform: translateY(-2px);
}

a.btn-secondary,
.btn-secondary {
  background-color: #fff;
  color: var(--gray-dark, #333) !important;
  border: 2px solid rgba(51, 51, 51, 0.18);
}

a.btn-secondary:hover,
a.btn-secondary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent-orange, #f37826);
  color: var(--accent-orange, #f37826) !important;
  transform: translateY(-2px);
}

a.btn-secondary svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.about-page-cta-actions .btn-primary,
.about-page-cta-actions .btn-secondary {
  min-width: 17.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Single clearance for hash targets — do not also set scroll-margin on sections */
  scroll-padding-top: var(--hs-header-offset, 100px);
  font-family: 'Archivo', var(--font-main), sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
}

html.hs-js-smooth,
html.lenis,
html.lenis-smooth {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background-color: var(--bg-card);
  line-height: 1.5;
  font-family: 'Archivo', var(--font-main), sans-serif;
  /* Do not set overflow-x on html/body — it breaks ScrollTrigger pinning */
  max-width: 100%;
}

/* Display headings: ~35% smaller, fluid across viewports */
h1.font-heading:not(.hero-oversized-headline) {
  font-size: clamp(1.35rem, 0.95rem + 1.7vw, 2.15rem) !important;
}

h1.hero-oversized-headline,
.hero-section h1.hero-oversized-headline {
  font-size: clamp(44px, 5.6vw, 152px) !important;
}

h1.implant-hero-title {
  font-size: clamp(1.4rem, 3.2vw, 2.35rem) !important;
}

h2.font-heading.text-2xl,
h2.font-heading.text-3xl,
h3.font-heading.text-3xl,
h2.implant-heading,
h2.smile-gallery-section-title {
  font-size: clamp(1.34rem, 0.99rem + 1.57vw, 2.13rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
}

.section-tag {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem) !important;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.services-section .section-tag {
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.45rem) !important;
}

/* Accessibility: skip link + screen-reader text (used by WP core & many plugins) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  clip: auto !important;
  clip-path: none;
  color: #020100;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 0.5rem;
  line-height: normal;
  padding: 0.75rem 1rem;
  text-decoration: none;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
}

/* Primary nav — hover & active (avoid .text-gray-dark !important conflict) */
.nav-links > .menu-item > .nav-link {
  color: var(--gray-dark, #333333);
}

.nav-links > .menu-item > .nav-link:hover,
.nav-links > .menu-item > .nav-link:focus-visible,
.nav-links > .menu-item.is-active > .nav-link,
.nav-links > .menu-item.current-menu-item > .nav-link,
.nav-links > .menu-item.current-menu-ancestor > .nav-link {
  color: var(--accent-orange, #f37826);
}

.nav-links > .menu-item-has-children > a {
  cursor: pointer;
}

.nav-links > .menu-item.is-active > .nav-link .hs-nav-chevron,
.nav-links > .menu-item.current-menu-item > .nav-link .hs-nav-chevron,
.nav-links > .menu-item.current-menu-ancestor > .nav-link .hs-nav-chevron,
.nav-links > .menu-item:hover > .nav-link .hs-nav-chevron {
  opacity: 1;
  color: var(--accent-orange, #f37826);
}

.nav-links .hs-dropdown-link {
  color: var(--gray-dark, #333333);
}

.nav-links .hs-dropdown-link:hover,
.nav-links .hs-dropdown-link:focus-visible,
.nav-links .menu-item.is-active > .hs-dropdown-link,
.nav-links .menu-item.current-menu-item > .hs-dropdown-link {
  color: var(--accent-orange, #f37826);
  background-color: #F6F5F2;
}

.nav-links .hs-dropdown-panel .menu-item-has-children > a::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.45;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.mobile-nav-link {
  color: #0f172a;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-menu-item.is-active > .mobile-nav-link,
.mobile-menu-item.current-menu-item > .mobile-nav-link,
.mobile-menu-item.is-active > .flex > .mobile-nav-link,
.mobile-menu-item.current-menu-item > .flex > .mobile-nav-link {
  color: var(--accent-orange, #f37826);
  background-color: rgba(255, 255, 255, 0.8);
}

.mobile-nav-list .mobile-sub-menu .mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

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

/* Plugin / editor content: embeds, forms, galleries stay readable */
.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
}

.entry-content .alignwide {
  max-width: 1100px;
}

.entry-content .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content .wp-block-embed,
.entry-content .wp-block-image,
.entry-content figure {
  margin: 1.5rem 0;
}

/* Common form plugins (CF7, WPForms, Gravity Forms markup) */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select,
.wpforms-field input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpforms-field textarea,
.wpforms-field select,
.gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  background: #fff;
  font: inherit;
  color: inherit;
}

.wpcf7 input[type="submit"],
.wpforms-submit,
.gform_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-orange);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.wpforms-submit:hover,
.gform_button:hover {
  background: var(--accent-orange-hover);
}

/* SVG Mask for Logo Icon */
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-orange);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Navbar Scrolled State */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Keep fixed header below WP admin bar (prevents hero pin jump) */
body.admin-bar .navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}

/* Homepage services */
.services-section {
  background: #F6F5F2;
}

.services-lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #6b6862;
}

.services-lead-desktop {
  display: none;
}

.services-lead-mobile {
  display: inline;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.services-detail,
.services-detail-scene,
.services-detail-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.services-detail {
  scroll-margin-top: calc(var(--hs-header-offset, 100px) + 12px);
}

.services-detail-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  filter: none;
}

.services-detail-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: none;
}

.services-detail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-detail-copy {
  position: relative;
  flex-shrink: 0;
  padding: 1.25rem 1.25rem 1.4rem;
}

.services-detail-kicker {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.services-detail-num {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
}

.services-detail-title {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-dark);
}

.services-detail-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555;
}

.services-detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.services-detail-features li {
  margin: 0;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: #F6F5F2;
  color: var(--gray-dark);
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
}

.services-detail .service-actions {
  margin-top: 1rem;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.service-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: var(--accent-orange);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.service-book:hover,
.service-book:focus-visible {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
}

.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gray-dark);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.service-learn-more.is-hidden {
  display: none;
}

.service-learn-more::after {
  content: "→";
  color: var(--accent-orange);
  transition: transform 0.2s ease;
}

.service-learn-more:hover {
  color: var(--accent-orange);
}

.service-learn-more:hover::after {
  transform: translateX(3px);
}

.services-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 1rem 1rem;
  min-height: 0;
  box-shadow: none;
}

.services-list-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.services-list-indicator {
  position: absolute;
  left: 6px;
  top: 0;
  width: 3px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent-orange);
  pointer-events: none;
  z-index: 2;
  display: none;
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.services-list > li {
  margin: 0;
  flex: 1;
  display: flex;
  border-bottom: 1px solid #e4e0d8;
}

.services-list > li:last-child {
  border-bottom: 0;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex: 1;
  padding: 1rem 0.15rem;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 0;
  transform: none;
  box-shadow: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.service-item:hover,
.service-item:focus-visible {
  background: linear-gradient(90deg, rgba(243, 120, 38, 0.07) 0%, rgba(243, 120, 38, 0) 180px);
}

.service-item.is-active {
  background: linear-gradient(90deg, rgba(243, 120, 38, 0.1) 0%, rgba(243, 120, 38, 0) 180px);
}

.service-item:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

.service-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #F6F5F2;
  color: var(--accent-orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.service-item.is-active .service-num,
.service-item:hover .service-num {
  background: var(--accent-orange);
  color: #fff;
}

.service-name {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.02rem, 0.88rem + 0.7vw, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--gray-dark);
  transition: color 0.25s ease;
}

.service-item.is-active .service-name,
.service-item:hover .service-name {
  color: var(--accent-orange);
}

.service-item-arrow {
  flex-shrink: 0;
  color: var(--accent-orange);
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-item.is-active .service-item-arrow,
.service-item:hover .service-item-arrow,
.service-item:focus-visible .service-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.services-hub-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  background: var(--accent-orange);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.services-hub-link::after {
  content: "→";
  color: #fff;
  transition: transform 0.2s ease;
}

.services-hub-link:hover,
.services-hub-link:focus-visible {
  background: var(--accent-orange-hover);
  color: #fff !important;
}

.services-hub-link:hover::after {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .services-layout {
    gap: 2.5rem;
    margin-top: 2.5rem;
  }

  .services-detail-copy {
    padding: 1.5rem 1.4rem 1.6rem;
  }

  .services-panel {
    padding: 0.55rem 1.15rem 1.15rem;
  }

  .services-detail-excerpt {
    font-size: 1rem;
  }

  .service-item {
    padding: 1.1rem 0;
  }

  .service-num {
    min-width: 2.35rem;
    height: 2.35rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 1023px) {
  .services-layout {
    gap: 1.15rem;
    margin-top: 1.25rem;
  }

  .services-panel {
    order: -1;
    padding: 0.25rem 0.85rem 0.85rem;
  }

  .services-list > li,
  .service-item {
    flex: 0 0 auto;
  }

  .service-item {
    min-height: 3rem;
    padding: 0.8rem 0.1rem;
    gap: 0.6rem;
  }

  .service-num {
    min-width: 1.85rem;
    height: 1.85rem;
    font-size: 0.68rem;
  }

  .service-name {
    font-size: 0.98rem;
  }

  .services-detail-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }

  .services-detail-copy {
    padding: 1rem 1.05rem 1.15rem;
  }

  .services-detail-excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .services-detail-features {
    gap: 0.3rem;
    margin-top: 0.65rem;
  }

  .services-detail-features li {
    font-size: 0.7rem;
    padding: 0.28rem 0.55rem;
  }

  .service-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .service-book {
    width: 100%;
    min-height: 3rem;
  }

  .service-learn-more {
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 1rem;
    border: 1.5px solid rgba(51, 51, 51, 0.14);
    border-radius: 999px;
  }

  .service-learn-more.is-hidden {
    display: none;
  }

  .services-hub-link {
    margin-top: 0.5rem;
    min-height: 3rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .services-lead-desktop {
    display: inline;
  }

  .services-lead-mobile {
    display: none;
  }

  .services-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 4rem;
    align-items: stretch;
  }

  .services-detail-media {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .services-panel {
    height: 100%;
  }
}

@media (min-width: 1280px) {
  .services-layout {
    gap: 5rem;
  }
}

.service-preview-float {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .services-detail-card,
  .services-detail-img,
  .service-item,
  .services-list-indicator {
    transform: none !important;
    transition: none !important;
  }
}

/* Floating Transformation View Cursor Badge */
.transformation-cursor-badge {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  background-color: rgba(252, 252, 252, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.transformation-cursor-badge.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Stacked Project Cards Styling */
.project-card {
  transform-origin: top center;
  will-change: transform, opacity, filter;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Real Transformations horizontal scroll track */
.transformations-track {
  width: max-content;
  backface-visibility: hidden;
  will-change: transform;
}

.transformations-viewport {
  touch-action: pan-y;
  overflow: hidden;
  width: 100%;
}

.transformation-card {
  box-shadow: none;
}

@media (max-width: 767px) {
  .transformations-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
}

/* Process section — sticky left + shaped image + timeline markers */
.process-section,
.process-section .container,
.process-grid {
  overflow: visible;
}

@media (min-width: 1024px) {
  .process-sticky-left {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.process-img-shape {
  border-radius: 2.25rem 3.5rem 5.5rem 2.25rem;
  background: #f3f4f6;
  /* Concave bite on bottom-right corner (matches Framer reference) */
  -webkit-mask-image:
    radial-gradient(circle 52px at 100% 100%, transparent 51px, #000 52px);
  mask-image:
    radial-gradient(circle 52px at 100% 100%, transparent 51px, #000 52px);
}

@media (min-width: 640px) {
  .process-img-shape {
    border-radius: 2.75rem 4.5rem 7rem 2.75rem;
    -webkit-mask-image:
      radial-gradient(circle 68px at 100% 100%, transparent 67px, #000 68px);
    mask-image:
      radial-gradient(circle 68px at 100% 100%, transparent 67px, #000 68px);
  }
}

.step-num {
  color: var(--accent-orange);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  min-width: 1.15em;
}

/* Line starts at first marker center — no stub above circle 1 */
.timeline-line,
.timeline-line-progress {
  position: absolute;
  left: 11px;
  top: calc(0.95rem + 14px); /* marker top + half height */
  bottom: 1.5rem;
  width: 1px;
  transform-origin: top center;
}

.timeline-line {
  background: #E8E2DA;
}

.timeline-line-progress {
  background: var(--accent-orange);
  transform: scaleY(0);
}

@media (min-width: 640px) {
  .timeline-line,
  .timeline-line-progress {
    left: 13px;
    top: calc(1.15rem + 16px);
  }
}

.step-marker {
  position: absolute;
  /* Center on timeline line: wrap pl-10 (2.5rem) + line at 11px */
  left: calc(-2.5rem + 11px);
  top: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1.5px solid #d6d0c8;
  background: #fff;
  z-index: 2;
  box-sizing: border-box;
  transform: translateX(-50%);
  transition: border-color 0.35s ease;
}

@media (min-width: 640px) {
  .step-marker {
    left: calc(-3rem + 13px);
    top: 1.15rem;
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 1024px) {
  .step-marker {
    left: calc(-3.5rem + 13px);
  }
}

/* Inner dot always visible — light when idle, dark when active/passed */
.step-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #d6d0c8;
  transform: translate(-50%, -50%);
  transition: background-color 0.35s ease;
}

@media (min-width: 640px) {
  .step-marker::after {
    width: 9px;
    height: 9px;
  }
}

.step-card.is-active .step-marker,
.step-card.is-passed .step-marker {
  border-color: #333333;
}

.step-card.is-active .step-marker::after,
.step-card.is-passed .step-marker::after {
  background: #333333;
}

/* Keyframe Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Testimonials 2-row infinite marquee */
.testimonials-marquee {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.testimonials-track--left {
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.testimonials-track--right {
  animation: marqueeReverse 32s linear infinite;
  will-change: transform;
}

.testimonials-marquee:hover .testimonials-track--left,
.testimonials-marquee:hover .testimonials-track--right {
  animation-play-state: paused;
}

.testimonial-card {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track--left,
  .testimonials-track--right {
    animation: none;
  }
}

/* FAQ Accordion Dynamic Expand */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-top 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-top: 1rem;
}

.faq-item.active .service-icon-btn {
  transform: rotate(45deg);
  background-color: var(--accent-orange);
  color: #fff;
}

/* Pricing Switch Annual State */
.pricing-switch.annual .pricing-knob {
  transform: translateX(28px);
}

/* Homepage about — story feature */
.story-feature {
  position: relative;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: #1b1916;
}

.story-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.story-feature:hover .story-feature-img {
  transform: scale(1.04);
}

.story-feature-panel {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin: auto 1rem 1rem;
  padding: 1.25rem 1.3rem 1.3rem;
  background: #fff;
  border-radius: 16px;
}

.story-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-body {
  margin: 0;
  color: #3a3a3a;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
}

.story-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: var(--accent-orange);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.story-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.story-more:hover {
  color: var(--accent-orange-hover);
}

.story-more:hover::after {
  transform: translateX(3px);
}

@media (min-width: 640px) {
  .story-feature {
    min-height: 480px;
    border-radius: 40px;
  }

  .story-feature-panel {
    margin: auto 1.25rem 1.25rem;
    padding: 1.4rem 1.5rem 1.45rem;
    border-radius: 20px;
  }

  .story-body {
    font-size: 1.05rem;
    line-height: 1.65;
  }
}

@media (min-width: 1024px) {
  .story-feature {
    height: 100%;
    min-height: 0;
  }
}

/* About Us page */
.about-page-band {
  position: relative;
  background-color: var(--bg-primary, #F6F5F2);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(243, 120, 38, 0.055) 0%, transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(243, 120, 38, 0.045) 0%, transparent 46%);
}

.about-page-hero .about-hero-img {
  will-change: transform;
}

.about-page-hero .section-tag {
  color: #fff !important;
  opacity: 0.92;
}

/* Our Practice — infinite image marquee */
.about-practice-marquee {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.about-practice-fade {
  background: linear-gradient(to right, var(--bg-primary, #F6F5F2), transparent);
}

.about-practice-fade--right {
  background: linear-gradient(to left, var(--bg-primary, #F6F5F2), transparent);
}

.about-practice-track--left {
  animation: marquee 36s linear infinite;
  will-change: transform;
}

.about-practice-marquee:hover .about-practice-track--left {
  animation-play-state: paused;
}

.about-practice-slide {
  width: min(72vw, 420px);
}

.about-practice-slide-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
}

@media (min-width: 640px) {
  .about-practice-slide {
    width: 260px;
  }

  .about-practice-slide-img {
    height: 180px;
    border-radius: 12px;
  }
}

@media (min-width: 1024px) {
  .about-practice-slide {
    width: 440px;
  }

  .about-practice-slide-img {
    height: 280px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-practice-track--left {
    animation: none;
  }
}

/* Meet the dentists — one-by-one rows, alternating photo side */
.about-dentists-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-dentist-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "copy";
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 14px 40px rgba(2, 1, 0, 0.06);
}

.about-dentist-card[id],
#dentists {
  scroll-margin-top: var(--hs-header-offset, 100px);
}

.about-dentist-copy {
  grid-area: copy;
  padding: 0.25rem 0.35rem 0.5rem;
}

.about-dentist-media {
  grid-area: media;
  display: flex;
  justify-content: center;
}

.about-dentist-role-label {
  display: inline-block;
  color: var(--accent-orange, #f37826);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.about-dentist-name {
  font-family: var(--font-heading), Archivo, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-dark, #333);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.about-dentist-rule {
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-orange, #f37826);
  margin: 0.75rem 0 0.9rem;
}

.about-dentist-bio {
  margin: 0;
  color: var(--text-muted, #555452);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

.about-dentist-photo-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 340px;
  border-radius: 28px;
  overflow: hidden;
  background: #f3f3f3;
}

.about-dentist-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.about-dentist-photo-card:hover .about-dentist-photo {
  transform: scale(1.05);
}

.about-dentist-info {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  max-width: 90%;
  background: #fff;
  padding: 0.85rem 1.25rem 0.85rem 0.9rem;
  border-top-right-radius: 22px;
}

.about-dentist-info-name {
  font-family: var(--font-heading), Archivo, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gray-dark, #333);
  line-height: 1.25;
}

.about-dentist-info-role {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted, #555452);
}

.about-dentist-notch {
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  pointer-events: none;
}

.about-dentist-notch svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-dentist-notch-top {
  bottom: 100%;
  left: 0;
  transform: rotate(90deg);
}

.about-dentist-notch-side {
  bottom: 0;
  left: 100%;
}

@media (min-width: 640px) {
  .about-dentists-list {
    gap: 2.5rem;
  }

  .about-dentist-card {
    border-radius: 32px;
    padding: 1.5rem;
    gap: 1.75rem;
  }

  .about-dentist-name {
    font-size: 1.4rem;
  }

  .about-dentist-bio {
    font-size: 1rem;
  }

  .about-dentist-photo-card {
    max-width: 300px;
    height: 380px;
    border-radius: 32px;
  }

  .about-dentist-info {
    padding: 1rem 1.5rem 1rem 1.1rem;
    border-top-right-radius: 28px;
  }

  .about-dentist-info-name {
    font-size: 1.05rem;
  }

  .about-dentist-notch {
    width: 2rem;
    height: 2rem;
  }
}

@media (min-width: 900px) {
  .about-dentists-list {
    gap: 3.25rem;
  }

  .about-dentist-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr);
    grid-template-areas: "copy media";
    gap: 2rem 2.25rem;
    padding: 1.75rem 1.75rem 1.75rem 2rem;
    border-radius: 36px;
  }

  .about-dentist-copy {
    padding: 0.5rem 0.25rem;
  }

  .about-dentist-media {
    justify-content: flex-end;
  }

  .about-dentist-card.is-alt {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.05fr);
    grid-template-areas: "media copy";
  }

  .about-dentist-card.is-alt .about-dentist-media {
    justify-content: flex-start;
  }

  .about-dentist-photo-card {
    max-width: 300px;
    height: 400px;
    border-radius: 36px;
  }

  .about-dentist-name {
    font-size: 1.5rem;
  }

  .about-dentist-bio {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page-hero .about-hero-img,
  .about-dentist-photo {
    transition: none !important;
    transform: none !important;
  }
}

/* Services page */
.services-page-hero .section-tag {
  color: #fff !important;
}

.services-page-categories {
  overflow-x: clip;
}

.services-page-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.services-page-card {
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .services-page-hero .services-hero-img,
  .services-page-card {
    transition: none !important;
    transform: none !important;
  }
}

.pricing-features li.included::before {
  content: "✓";
  color: #fff;
  background-color: #10B981;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Smile Gallery page */
.smile-gallery-hero .section-tag {
  color: #fff !important;
}

.smile-gallery-section {
  background-color: #fff;
}

.smile-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  margin: 0 auto 2rem;
  padding-bottom: 0.35rem;
  max-width: 920px;
  border-bottom: 1px solid rgba(2, 1, 0, 0.08);
}

.smile-gallery-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main), sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 0.95rem 0.9rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.smile-gallery-tab:hover {
  color: var(--gray-dark);
}

.smile-gallery-tab.is-active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
  background: transparent;
}

.smile-gallery-tab:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}

.smile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .smile-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .smile-gallery-grid {
    gap: 1.15rem;
  }
}

.smile-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4 / 5;
  box-shadow: 0 1px 0 rgba(2, 1, 0, 0.04);
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  animation: smileGalleryIn 0.55s ease both;
  animation-delay: calc(var(--sg-i, 0) * 35ms);
}

.smile-gallery-item.is-filtered-out {
  display: none !important;
}

.smile-gallery-item-media {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.smile-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.smile-gallery-item-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 1, 0, 0.72) 100%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.smile-gallery-item-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 0.95rem 0.95rem;
  color: #fff;
  display: grid;
  gap: 0.2rem;
  transform: translateY(6px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.smile-gallery-item-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.smile-gallery-item-name {
  font-family: var(--font-heading), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.smile-gallery-item-zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-orange);
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.smile-gallery-item-zoom svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.smile-gallery-item:hover,
.smile-gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(2, 1, 0, 0.12);
}

.smile-gallery-item:hover img,
.smile-gallery-item:focus-visible img {
  transform: scale(1.06);
}

.smile-gallery-item:hover .smile-gallery-item-shade,
.smile-gallery-item:focus-visible .smile-gallery-item-shade {
  opacity: 0.88;
}

.smile-gallery-item:hover .smile-gallery-item-meta,
.smile-gallery-item:focus-visible .smile-gallery-item-meta {
  transform: translateY(0);
}

.smile-gallery-item:hover .smile-gallery-item-zoom,
.smile-gallery-item:focus-visible .smile-gallery-item-zoom {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.smile-gallery-item:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}

.smile-gallery-empty.hidden {
  display: none;
}

@keyframes smileGalleryIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glightbox-clean .gslide-description {
  background: transparent;
}

.glightbox-clean .gdesc-inner {
  font-family: var(--font-main), sans-serif;
}

@media (max-width: 639px) {
  .smile-gallery-item-name {
    font-size: 0.85rem;
  }

  .smile-gallery-item-meta {
    padding: 0.8rem 0.7rem 0.7rem;
  }

  .smile-gallery-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .smile-gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .smile-gallery-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smile-gallery-hero .smile-gallery-hero-img,
  .smile-gallery-item,
  .smile-gallery-item img,
  .smile-gallery-item-meta,
  .smile-gallery-item-zoom,
  .smile-gallery-item-shade {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Patient Resources page */
.pr-hero .section-tag {
  color: #fff !important;
}

.pr-forms-band,
.pr-membership-band {
  background-color: var(--bg-primary);
}

.pr-form-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(2, 1, 0, 0.2);
  font-size: 1rem;
  line-height: 1.6;
}

.pr-form-link:hover {
  text-decoration-color: var(--accent-orange);
}

.pr-form-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(243, 120, 38, 0.1);
  color: var(--accent-orange);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.pr-form-badge--form {
  background: rgba(2, 1, 0, 0.06);
  color: var(--text-muted);
}

.pr-form-icon {
  box-shadow: 0 1px 0 rgba(2, 1, 0, 0.03);
}

.pr-payment-banner {
  box-shadow: 0 8px 24px rgba(2, 1, 0, 0.05);
  border: 1px solid rgba(2, 1, 0, 0.06);
  background: #f3f3f3;
}

.pr-payment-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .pr-hero .pr-hero-img,
  .pr-payment-banner {
    transition: none !important;
    transform: none !important;
  }
}

/* Restorative Dentistry page */
.restorative-hero .section-tag {
  color: #fff !important;
}

.restorative-intro-link {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(243, 120, 38, 0.45);
  font-weight: 500;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.restorative-intro-link:hover {
  color: var(--accent-orange-hover);
  text-decoration-color: var(--accent-orange-hover);
}

.restorative-why-band {
  background-color: var(--bg-primary);
}

.restorative-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .restorative-why-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
  }
}

.restorative-why-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(2, 1, 0, 0.06);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(2, 1, 0, 0.04);
}

@media (min-width: 768px) {
  .restorative-why-item {
    padding: 2rem 1.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.restorative-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(243, 120, 38, 0.1);
  color: var(--accent-orange);
}

.restorative-why-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.restorative-why-divider {
  display: none;
}

@media (min-width: 768px) {
  .restorative-why-divider {
    display: block;
    width: 1px;
    align-self: stretch;
    min-height: 7rem;
    background: rgba(2, 1, 0, 0.1);
    margin: 0.5rem 1.75rem;
  }
}

.restorative-block.is-band {
  background-color: var(--bg-primary);
}

.restorative-block.is-plain {
  background-color: #fff;
}

.restorative-page-cta {
  background-color: #fff0e6;
}

.restorative-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .restorative-block-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .restorative-block.is-alt .restorative-block-media {
    order: -1;
  }
}

.restorative-block-copy {
  max-width: 34rem;
}

@media (min-width: 960px) {
  .restorative-block.is-alt .restorative-block-copy {
    margin-left: auto;
  }
}

.restorative-block-rule {
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-orange);
  margin: 1rem 0 1.15rem;
}

.restorative-block-text {
  max-width: 36rem;
}

.restorative-block-frame {
  overflow: hidden;
  border-radius: 22px;
  background: #f3f3f3;
  box-shadow: 0 16px 40px rgba(2, 1, 0, 0.09);
}

.restorative-block-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.restorative-block-frame:hover .restorative-block-img {
  transform: scale(1.04);
}

@media (min-width: 640px) {
  .restorative-block-frame {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .restorative-hero .restorative-hero-img,
  .restorative-block-img {
    transition: none !important;
    transform: none !important;
  }
}

/* —— Dental Implants landing —— */
.implant-page {
  --implant-ink: #1a1918;
  --implant-muted: #5f5c58;
  --implant-line: rgba(2, 1, 0, 0.08);
  --implant-soft: #F6F5F2;
  --implant-warm: #fff4eb;
  color: var(--implant-ink);
}

.implant-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .implant-shell {
    width: min(1120px, calc(100% - 3rem));
  }
}

.implant-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: #fff;
}

.implant-section-alt {
  background: var(--implant-soft);
}

.implant-kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.implant-heading {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.34rem, 0.99rem + 1.57vw, 2.13rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--implant-ink);
}

.implant-heading-left {
  max-width: 18ch;
}

.implant-lead {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--implant-muted);
}

.implant-lead-left {
  max-width: 28rem;
  margin-bottom: 2rem;
}

.implant-header {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.implant-header .implant-lead {
  margin-inline: auto;
}

.implant-note {
  margin: 2.75rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--implant-muted);
}

.implant-note-left {
  margin: 1.5rem 0 0;
  text-align: left;
  font-size: 0.95rem;
}

.implant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.implant-btn:hover {
  transform: translateY(-2px);
}

.implant-btn-primary {
  background: var(--accent-orange);
  color: #fff;
}

.implant-btn-primary:hover {
  background: var(--accent-orange-hover);
  color: #fff;
}

.implant-btn-outline {
  background: transparent;
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
}

.implant-btn-outline:hover {
  background: var(--accent-orange);
  color: #fff;
}

.implant-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding-inline: 0.35rem;
}

.implant-btn-ghost:hover {
  color: #fff;
}

/* Progress nav */
.implant-progress {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-end;
}

@media (min-width: 1200px) {
  .implant-page .implant-progress {
    display: flex;
  }
}

.implant-progress a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  text-decoration: none;
  color: rgba(2, 1, 0, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.implant-progress a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(2, 1, 0, 0.22);
  background: #fff;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.implant-progress a span {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(2, 1, 0, 0.08);
}

.implant-progress a:hover span,
.implant-progress a.is-active span {
  opacity: 1;
  transform: translateX(0);
}

.implant-progress a.is-active {
  color: var(--accent-orange);
}

.implant-progress a.is-active::after {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: scale(1.2);
}

/* Hero */
.implant-hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.implant-hero-media {
  position: absolute;
  inset: 0;
}

.implant-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.implant-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.18) 0%, rgba(10, 8, 6, 0.42) 42%, rgba(10, 8, 6, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 8, 6, 0.35) 0%, transparent 55%);
}

.implant-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

@media (min-width: 640px) {
  .implant-hero-copy {
    width: min(1120px, calc(100% - 3rem));
    padding: 9rem 0 5.5rem;
  }
}

.implant-hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.implant-hero-title {
  margin: 0;
  max-width: 800px;
  font-size: clamp(1.4rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.implant-hero-intro {
  margin: 1.25rem 0 0;
  max-width: 750px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.implant-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.75rem;
}

.implant-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  width: 22px;
  height: 34px;
  margin-left: -11px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  text-decoration: none;
}

.implant-scroll-cue span {
  display: block;
  width: 3px;
  height: 7px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: #fff;
  animation: implant-cue 1.6s ease-in-out infinite;
}

@keyframes implant-cue {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* Trust — editorial rows */
.implant-trust-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--implant-line);
}

.implant-trust-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--implant-line);
}

@media (min-width: 768px) {
  .implant-trust-row {
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem 2rem;
    padding: 1.85rem 0;
  }
}

.implant-trust-num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  padding-top: 0.2rem;
}

.implant-trust-copy h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.implant-trust-copy p {
  margin: 0.55rem 0 0;
  max-width: 46rem;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--implant-muted);
}

/* Candidates — split */
.implant-candidates-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .implant-candidates-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
  }

  .implant-candidates-lead {
    position: sticky;
    top: calc(var(--hs-header-offset, 100px) + 1.5rem);
  }
}

.implant-candidates-lead {
  text-align: left;
}

.implant-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.implant-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--implant-line);
}

.implant-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(243, 120, 38, 0.12);
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.implant-check-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.implant-check-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.implant-check-item.is-checked .implant-check-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.55s ease;
}

.implant-check-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--implant-ink);
  font-weight: 500;
}

/* Types — large numbered rows */
.implant-types-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .implant-types-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

.implant-type-row {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--implant-line);
}

.implant-type-index {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
}

.implant-type-copy h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.implant-type-copy p {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--implant-muted);
}

/* Doctors */
.implant-doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .implant-doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .implant-doctors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.implant-doctor-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.implant-doctor-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8e6e2;
  border-radius: 20px;
}

.implant-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
  will-change: transform;
}

.implant-doctor-card:hover .implant-doctor-photo img {
  transform: scale(1.04);
}

.implant-doctor-role {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.implant-doctor-body h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.implant-doctor-body p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--implant-muted);
}

/* Results / FAQ polish */
.implant-results .implant-lead {
  margin-bottom: 1.5rem;
}

.implant-faq-img {
  margin-top: 1.5rem;
  height: clamp(280px, 42vw, 460px);
  border-radius: 24px;
}

.implant-journey .process-sticky-left {
  padding-bottom: 1rem;
}

/* CTA */
.implant-cta {
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(243, 120, 38, 0.14), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(243, 120, 38, 0.1), transparent 40%),
    var(--implant-warm);
}

.implant-cta-inner {
  max-width: 46rem;
  text-align: center;
}

.implant-cta-inner .implant-lead {
  margin-inline: auto;
}

.implant-cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.35rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--implant-muted);
}

.implant-cta-meta a {
  color: var(--implant-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.implant-cta-meta a:hover {
  color: var(--accent-orange);
}

.implant-cta-area {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--implant-muted);
}

.implant-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.implant-cta-actions .implant-btn {
  min-width: 210px;
}

@media (prefers-reduced-motion: reduce) {
  .implant-scroll-cue span,
  .implant-doctor-photo img,
  .implant-check-path {
    animation: none !important;
    transition: none !important;
  }
}

/* Formidable (plugin markup — utilities can't be added in the template). */
.hs-contact-form .frm_forms .frm_form_field input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.hs-contact-form .frm_forms .frm_form_field textarea,
.hs-contact-form .frm_forms .frm_form_field select,
.hs-contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.hs-contact-form textarea,
.hs-contact-form select {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.85rem;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
}

.hs-contact-form .frm_primary_label,
.hs-contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 0.35rem;
}

.hs-contact-form .frm_submit {
  margin-top: 0.5rem;
}

.hs-contact-form .frm_button_submit,
.hs-contact-form .frm_submit button,
.hs-contact-form .frm_submit input[type="submit"],
.hs-contact-form input[type="submit"],
.hs-contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-orange);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hs-contact-form .frm_button_submit:hover,
.hs-contact-form .frm_submit button:hover,
.hs-contact-form .frm_submit input[type="submit"]:hover,
.hs-contact-form input[type="submit"]:hover,
.hs-contact-form button[type="submit"]:hover {
  background: var(--accent-orange-hover);
}

.hs-contact-form .frm_error,
.hs-contact-form .frm_error_style {
  color: #b42318;
  font-size: 0.85rem;
}

.hs-contact-form .frm_message {
  background: #fff0e6;
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  color: var(--gray-dark);
}