/* =========================================
   Canadian Health ProvidersS — SHARED STYLES
   ========================================= */

:root {
  --navy: #083b70;
  --navy-deep: #052747;
  --red: #d80b24;
  --green: #078b46;
  --blue: #009dea;
  --ink: #172b3a;
  --surface: #f4f7fa;
  --white: #ffffff;
  --muted: #526575;
  --border: #dce5ed;
  --radius: 12px;
  --shadow: 0 16px 48px rgb(8 59 112 / 10%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-height: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--white);
  background: var(--navy);
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(28px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  letter-spacing: -.025em;
}

p {
  overflow-wrap: break-word;
}

a {
  color: var(--navy);
  text-decoration: none;
  text-underline-offset: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  display: block;
}

address {
  font-style: normal;
}

button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 5px;
}

.section--navy :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: 80px;
  position: relative;
}

.section--surface {
  background: var(--surface);
}

.section--navy {
  color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.svg-definitions {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Buttons and links */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition:
    transform .35s var(--ease),
    background .25s ease,
    box-shadow .35s ease;
}

.button .icon {
  width: 20px;
  height: 20px;
  transition: transform .35s var(--ease);
}

.button--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgb(8 59 112 / 12%);
}

.button--light {
  background: var(--white);
  color: var(--navy);
}

.button--outline-light {
  color: var(--white);
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 4%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
}

.text-link .icon {
  width: 20px;
  height: 20px;
  transition: transform .35s var(--ease);
}

.text-link__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.eyebrow__line {
  width: 32px;
  height: 2px;
  flex-shrink: 0;
  background: var(--red);
}

.eyebrow--light {
  color: #e9f3fc;
}

.eyebrow--light .eyebrow__line {
  background: #7bd0ff;
}

.text-accent {
  display: block;
  color: var(--navy);
}

.text-accent-light,
.hero__title-accent {
  display: block;
  color: #b8e4ff;
}

/* Header */

.topbar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 14px;
}

.topbar__inner,
.topbar__contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar__inner {
  justify-content: space-between;
  min-height: 40px;
}

.topbar a {
  color: var(--white);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid rgb(220 229 237 / 70%);
  transition: box-shadow .3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgb(8 59 112 / 8%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__logo {
  display: grid;
  place-items: center;
  padding: 10px;
  background: var(--white);
}

/* Preserve the original logo aspect ratio and artwork. */
.brand__logo img {
  width: 60px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  color: var(--navy);
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navigation-list {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.navigation-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.navigation-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.navigation-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__appointment {
  padding-inline: 16px;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-block: 5px;
  background: var(--navy);
  transition: transform .3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Cinematic home hero */

.hero {
  position: relative;
  min-height: 640px;
  min-height: min(780px, 86svh);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero__media,
.hero__poster,
.hero__video,
.hero__overlay,
.page-hero__media,
.page-hero__media img,
.page-hero__overlay,
.contact-banner__media,
.contact-banner__media img,
.contact-banner__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -2;
}

.hero__poster,
.hero__video {
  object-fit: cover;
  object-position: 65% center;
}

.hero__video {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgb(3 24 46 / 93%) 0%,
      rgb(3 24 46 / 80%) 32%,
      rgb(3 24 46 / 22%) 65%,
      rgb(3 24 46 / 8%) 100%
    ),
    linear-gradient(0deg, rgb(3 24 46 / 48%), transparent 35%);
}

.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .12;
}

.hero__glow--blue {
  left: -180px;
  top: 15%;
  background: var(--blue);
}

.hero__inner {
  padding-block: 88px 120px;
}

.hero__content {
  max-width: 520px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero__description,
.page-hero__description {
  max-width: 470px;
  color: #e1ebf5;
  font-size: 18px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero__details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  color: #e1ebf5;
  font-size: 14px;
}

.hero__details-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8bd5ff;
}

.hero__bottom {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 14px;
}

.scroll-cue__circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 50%;
}

.scroll-cue__circle svg {
  width: 20px;
  height: 20px;
}

.video-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 30px;
  color: var(--white);
  background: rgb(3 24 46 / 65%);
  font-size: 14px;
}

/* Clinic strip */

.clinic-strip {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.clinic-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clinic-strip__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
}

.clinic-strip__item:first-child {
  padding-left: 0;
}

.clinic-strip__item + .clinic-strip__item {
  border-left: 1px solid var(--border);
}

.clinic-strip__number {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.clinic-strip h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.clinic-strip p,
.clinic-strip a {
  font-size: 14px;
  color: var(--muted);
}

/* Shared sections */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.section-copy {
  min-width: 0;
}

.section-copy h2 {
  margin-bottom: 24px;
}

.section-copy > p:not(.eyebrow) {
  margin-bottom: 20px;
  color: var(--muted);
}

.section-copy > .text-link {
  margin-top: 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-heading > div {
  max-width: 620px;
}

.section-heading__description {
  max-width: 370px;
  color: var(--muted);
}

.section--navy .section-heading__description {
  color: #d6e6f5;
}

.visual-composition {
  position: relative;
  padding: 0 16px 32px 0;
  min-width: 0;
}

.visual-composition__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1;
}

.visual-composition__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-composition__accent {
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 16px;
  left: 32px;
  border: 1px solid #b8d3e7;
  border-radius: var(--radius);
}

.visual-caption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.visual-caption__line {
  width: 24px;
  height: 2px;
  background: var(--green);
}

/* Care cards */

.care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
}

.care-feature {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  isolation: isolate;
  box-shadow: var(--shadow);
}

.care-feature > img,
.care-feature__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.care-feature > img {
  object-fit: cover;
  object-position: center;
  z-index: -2;
  transition: transform .8s var(--ease);
}

.care-feature__overlay {
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgb(3 24 46 / 96%) 0%,
    rgb(3 24 46 / 65%) 35%,
    transparent 80%
  );
}

.care-feature__content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  color: var(--white);
}

.care-feature h3 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 16px;
}

.care-feature__content > p:not(.eyebrow) {
  color: #e1ebf5;
  margin-bottom: 24px;
}

.care-topics {
  display: grid;
  gap: 16px;
}

.topic-card {
  position: relative;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.topic-card__number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.topic-card h3 {
  margin-bottom: 12px;
}

.topic-card > p {
  color: var(--muted);
  margin-bottom: 12px;
}

/* Benefits */

.benefits-grid,
.service-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.benefit-card {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    box-shadow .4s ease,
    border-color .4s ease;
}

.benefit-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 12px;
  color: var(--navy);
  background: var(--surface);
}

.benefit-card__icon svg {
  width: 32px;
  height: 32px;
}

.benefit-card h3 {
  margin-bottom: 16px;
}

.benefit-card > p {
  color: var(--muted);
}

.benefit-card .text-link {
  margin-top: 20px;
}

.contact-email {
  overflow-wrap: anywhere;
  align-items: flex-start;
}

.contact-email > span {
  min-width: 0;
}

/* Process */

.process__decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.process__decoration span {
  position: absolute;
  width: 600px;
  height: 600px;
  right: -300px;
  top: -240px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
}

.process__decoration span:last-child {
  width: 760px;
  height: 760px;
  right: -380px;
  top: -320px;
}

.process .container {
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}

.process-card {
  padding: 32px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
}

.process-card__number {
  display: block;
  margin-bottom: 32px;
  color: #b8e4ff;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.process-card h3 {
  margin-bottom: 16px;
}

.process-card p {
  color: #d6e6f5;
}

.section-action {
  margin-top: 40px;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 72px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 20px 4px;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__indicator {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-item__indicator::before,
.faq-item__indicator::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 5px;
  width: 14px;
  height: 2px;
  background: var(--navy);
  transition: transform .25s ease;
}

.faq-item__indicator::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__indicator::after {
  transform: rotate(0);
}

.faq-item__answer {
  padding: 0 36px 24px 4px;
  color: var(--muted);
}

.faq-item__answer a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* Contact banner */

.contact-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
}

.contact-banner__media {
  z-index: -1;
}

.contact-banner__media img {
  object-fit: cover;
  object-position: center right;
}

.contact-banner__overlay {
  background: linear-gradient(
    90deg,
    rgb(244 247 250 / 98%) 0%,
    rgb(244 247 250 / 94%) 35%,
    rgb(244 247 250 / 30%) 68%,
    transparent 100%
  );
}

.contact-banner__inner {
  padding-block: 80px;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.contact-banner__content {
  max-width: 510px;
}

.contact-banner h2 {
  margin-bottom: 24px;
}

.contact-banner__content > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 420px;
}

.contact-banner__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

/* Inner-page heroes */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.page-hero__media {
  z-index: -2;
}

.page-hero__media img {
  object-fit: cover;
  object-position: 75% 40%;
}

.page-hero__overlay {
  background: linear-gradient(
    90deg,
    rgb(3 24 46 / 98%) 0%,
    rgb(3 24 46 / 88%) 40%,
    rgb(3 24 46 / 40%) 75%,
    rgb(3 24 46 / 25%) 100%
  );
}

.page-hero__inner {
  position: relative;
  padding-block: 32px 72px;
}

.breadcrumbs {
  margin-bottom: 48px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #d6e6f5;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 12px;
  color: #9cb5cd;
}

.breadcrumbs a {
  color: var(--white);
}

.page-hero__content {
  position: relative;
  max-width: 550px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.page-hero__decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.page-hero__decoration span {
  position: absolute;
  bottom: -240px;
  right: -80px;
  width: 520px;
  height: 520px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
}

.page-hero__decoration span:last-child {
  width: 640px;
  height: 640px;
  bottom: -300px;
  right: -140px;
}

/* Future service and team cards */

.service-card,
.team-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card__visual,
.team-card__photo {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
}

.service-card__visual img,
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__content,
.team-card__content {
  padding: 24px;
}

.service-card__number {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--navy);
}

.service-card h3,
.team-card h3 {
  margin-bottom: 12px;
}

.service-card p,
.team-card p {
  color: var(--muted);
}

.service-card .text-link {
  margin-top: 20px;
}

.team-card__role {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Appointment page */

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 64px;
}

.appointment-info {
  min-width: 0;
}

.appointment-info h2 {
  margin-bottom: 24px;
}

.appointment-info > p:not(.eyebrow) {
  color: var(--muted);
}

.appointment-info__note {
  margin-top: 32px;
  padding: 24px;
  border-left: 3px solid var(--navy);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.appointment-info__note h3,
.appointment-info__hours h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.appointment-info__note p {
  color: var(--muted);
  font-size: 14px;
}

.appointment-info__hours {
  margin-top: 32px;
}

.appointment-info__hours strong {
  color: var(--navy);
  font-weight: 600;
}

.appointment-info__visual {
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius);
}

.appointment-info__visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.appointment-panel {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.appointment-panel__heading {
  margin-bottom: 32px;
}

.appointment-panel__heading h3 {
  margin-bottom: 12px;
}

.appointment-panel__heading p {
  color: var(--muted);
  font-size: 14px;
}

.form-field {
  margin-bottom: 24px;
  min-width: 0;
}

.form-field label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #afbecb;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 144px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(8 59 112 / 10%);
}

.form-field [aria-invalid="true"] {
  border-color: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row .form-field {
  margin-bottom: 8px;
}

.form-help {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

#contact-details-help {
  margin-bottom: 24px;
}

.form-privacy-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-privacy-note a {
  text-decoration: underline;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  opacity: .65;
  cursor: progress;
}

.form-status {
  font-size: 14px;
  margin-top: 16px;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--navy);
  border-left: 3px solid var(--green);
  background: var(--surface);
  padding: 16px;
}

.form-status.is-error {
  color: #a3091c;
  border-left: 3px solid var(--red);
  background: #fff4f5;
  padding: 16px;
}

/* Location and privacy */

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: stretch;
}

.location-details {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.location-details > h3 {
  margin-bottom: 20px;
}

.location-details address {
  color: var(--muted);
}

.location-details__hours {
  margin-block: 32px;
}

.location-details__hours h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.hours-list {
  margin: 0;
  font-size: 14px;
}

.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.hours-list dt {
  font-weight: 500;
}

.hours-list dd {
  margin: 0;
  text-align: right;
  color: var(--muted);
}

.location-map {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

.map-caption {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--muted);
}

.privacy-content {
  max-width: 900px;
}

.privacy-content h2 {
  margin-bottom: 24px;
}

.privacy-content > p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
}

.privacy-content a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: #d6e6f5;
  padding-top: 64px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.25fr .8fr;
  gap: 32px;
  padding-bottom: 48px;
}

.brand--footer {
  margin-bottom: 24px;
}

.brand--footer .brand__logo {
  border-radius: 8px;
}

.brand--footer .brand__text {
  color: var(--white);
}

.footer__brand-column > p {
  max-width: 280px;
  font-size: 14px;
}

.footer__column {
  min-width: 0;
}

.footer__column h2 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer__column ul {
  padding: 0;
  list-style: none;
}

.footer__column li {
  margin-bottom: 8px;
}

.footer__column a {
  display: inline-block;
  color: #d6e6f5;
  padding-block: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer__column address a {
  display: block;
}

.footer__column p {
  font-size: 14px;
}

.footer__column address p {
  margin-bottom: 12px;
}

.footer__note {
  margin-top: 20px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / 20%);
  font-size: 14px;
}

.footer__bottom a {
  color: #d6e6f5;
  padding-block: 8px;
}

.mobile-appointment {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* Cursor: normal cursor remains available as a fallback. */

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  color: var(--navy);
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(8 59 112 / 55%);
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
  transition:
    transform .25s ease,
    background .25s ease;
}

.custom-cursor__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  left: 18px;
  top: 18px;
  border-radius: 50%;
  background: var(--navy);
}

.custom-cursor > svg {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}

.custom-cursor.is-link .custom-cursor__ring {
  transform: scale(1.35);
  background: rgb(255 255 255 / 80%);
}

.custom-cursor.is-link .custom-cursor__dot {
  opacity: 0;
}

.custom-cursor.is-link > svg {
  opacity: 1;
}

/*
  JavaScript may add .reveal-ready after setting up the observer.
  Content stays visible if JavaScript fails or has not loaded.
*/

[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
}

[data-reveal].reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform .45s var(--ease);
  will-change: auto;
}

/* Mouse hover effects */

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgb(8 59 112 / 16%);
  }

  .button--primary:hover {
    background: var(--navy-deep);
  }

  .button--outline-light:hover {
    background: rgb(255 255 255 / 14%);
  }

  .button:hover .icon,
  .text-link:hover .icon {
    transform: translate(3px, -2px);
  }

  .navigation-list a:hover::after {
    transform: scaleX(1);
  }

  .care-feature:hover > img {
    transform: scale(1.035);
  }

  .benefit-card:hover {
    border-color: #aecce1;
    box-shadow: var(--shadow);
  }

  .footer__column a:hover,
  .footer__bottom a:hover {
    color: var(--white);
    text-decoration: underline;
  }
}

/* Tablet and compact desktop */

@media (max-width: 1100px) {
  .primary-navigation {
    gap: 16px;
  }

  .navigation-list {
    gap: 16px;
  }

  .header__appointment {
    max-width: 170px;
    padding-inline: 12px;
  }

  .split-layout,
  .faq-layout {
    gap: 40px;
  }

  .appointment-layout {
    gap: 32px;
  }

  .footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Navigation breakpoint */

@media (max-width: 960px) {
  :root {
    --header-height: 88px;
  }

  .header__inner {
    flex-wrap: wrap;
    padding-block: 8px;
    gap: 8px 16px;
  }

  .primary-navigation {
    width: 100%;
    padding-block: 12px;
    justify-content: space-between;
  }

  /* .js is added only when JavaScript is running. */
  .js .header__inner {
    flex-wrap: nowrap;
  }

  .js .menu-toggle {
    display: block;
  }

  .js .primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    padding: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 32px rgb(8 59 112 / 10%);
  }

  .js .primary-navigation.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .js .navigation-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .js .navigation-list a {
    padding-block: 12px;
  }

  .js .header__appointment {
    max-width: none;
    width: 100%;
  }

  .benefits-grid,
  .process-grid {
    gap: 16px;
  }

  .benefit-card,
  .process-card {
    padding: 24px;
  }

  .location-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  :root {
    --header-height: 80px;
  }

  h1 {
    font-size: clamp(32px, 8.5vw, 36px);
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .section {
    padding-block: 48px;
  }

  .topbar__inner {
    min-height: 36px;
    justify-content: center;
  }

  .topbar__inner > p,
  .topbar__contact > span {
    display: none;
  }

  .brand__logo {
    padding: 8px;
  }

  .brand__logo img {
    width: 44px;
    max-height: 56px;
  }

  .brand__name {
    font-size: 14px;
  }

  .brand {
    gap: 8px;
  }

  .primary-navigation:not(.is-open) .navigation-list {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 690px;
    min-height: max(690px, 88svh);
    align-items: flex-end;
  }

  .hero__poster,
  .hero__video {
    object-position: 76% top;
  }

  .hero__overlay {
    background: linear-gradient(
      0deg,
      rgb(3 24 46 / 98%) 0%,
      rgb(3 24 46 / 92%) 38%,
      rgb(3 24 46 / 40%) 75%,
      rgb(3 24 46 / 20%) 100%
    );
  }

  .hero__inner {
    padding-block: 220px 100px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__description,
  .page-hero__description {
    font-size: 16px;
  }

  .hero__actions {
    gap: 12px;
    margin-top: 24px;
  }

  .hero__actions .button {
    flex: 1 1 200px;
  }

  .hero__details {
    margin-top: 24px;
    gap: 12px;
  }

  .hero__bottom {
    bottom: 24px;
  }

  .scroll-cue > span:last-child {
    display: none;
  }

  .video-control {
    font-size: 14px;
  }

  .clinic-strip__grid {
    grid-template-columns: 1fr;
  }

  .clinic-strip__item,
  .clinic-strip__item:first-child {
    padding: 20px 0;
  }

  .clinic-strip__item + .clinic-strip__item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .split-layout,
  .care-grid,
  .faq-layout,
  .appointment-layout,
  .location-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
  }

  .section-heading__description {
    max-width: none;
  }

  .visual-composition {
    padding-right: 12px;
    padding-bottom: 24px;
  }

  .care-feature {
    min-height: 480px;
  }

  .care-feature__content {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .care-feature h3 {
    font-size: 24px;
  }

  .benefits-grid,
  .process-grid,
  .service-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-card__number {
    margin-bottom: 20px;
  }

  .section-action {
    margin-top: 32px;
  }

  .contact-banner__inner {
    min-height: 440px;
    padding-block: 48px;
  }

  .contact-banner__overlay {
    background: rgb(244 247 250 / 92%);
  }

  .contact-banner__media img {
    object-position: 75% center;
  }

  .contact-banner__actions {
    gap: 16px;
    margin-top: 24px;
  }

  .page-hero__inner {
    padding-block: 24px 48px;
  }

  .breadcrumbs {
    margin-bottom: 40px;
  }

  .page-hero__overlay {
    background: linear-gradient(
      90deg,
      rgb(3 24 46 / 95%),
      rgb(3 24 46 / 78%)
    );
  }

  .page-hero__media img {
    object-position: 65% center;
  }

  .appointment-panel,
  .location-details {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row .form-field {
    margin-bottom: 16px;
  }

  .location-map iframe {
    height: 340px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .site-footer {
    padding-top: 48px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mobile-appointment {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 95;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 28px rgb(3 24 46 / 25%);
  }

  .mobile-appointment .icon {
    width: 20px;
    height: 20px;
  }

  .back-to-top {
    bottom: calc(84px + env(safe-area-inset-bottom));
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* Small screens */

@media (max-width: 380px) {
  .brand__name {
    font-size: 13px;
  }

  .brand__logo img {
    width: 40px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .button {
    padding-inline: 16px;
    gap: 12px;
  }

  .hero__details {
    font-size: 14px;
  }

  .appointment-panel,
  .benefit-card,
  .process-card,
  .location-details {
    padding: 20px;
  }

  .hours-list > div {
    flex-direction: column;
    gap: 4px;
  }

  .hours-list dd {
    text-align: left;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal].reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-tilt] {
    transform: none !important;
  }

  .custom-cursor,
  .hero__video {
    display: none !important;
  }
}
/* Keep the complete hero figure visible */
.hero__poster,
.hero__video {
  object-fit: contain;
  object-position: right center;
}

@media (max-width: 767px) {
  .hero__poster,
  .hero__video {
    object-position: center top;
  }
}
/* =========================================
   CINEMATIC LOGO OPENING
   ========================================= */

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f7fa;
  pointer-events: none;

  animation: openingScreenExit 0.8s
    cubic-bezier(.76, 0, .24, 1) 1.85s forwards;
}

.opening-screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.opening-screen__logo {
  padding: 24px;
  background: #ffffff;
  border-radius: 24px;
  opacity: 0;
  transform: translateY(18px) scale(.94);

  animation:
    openingLogoEnter 0.8s cubic-bezier(.22, 1, .36, 1) forwards,
    openingLogoExit 0.45s ease 1.6s forwards;
}

.opening-screen__logo img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.opening-screen__name {
  margin-top: 24px;
  color: #083b70;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);

  animation:
    openingNameEnter 0.65s ease 0.25s forwards,
    openingLogoExit 0.4s ease 1.55s forwards;
}

.opening-screen__line {
  width: 120px;
  height: 2px;
  margin-top: 24px;
  background: #083b70;
  transform: scaleX(0);
  transform-origin: center;

  animation:
    openingLineEnter 0.8s ease 0.45s forwards,
    openingLogoExit 0.35s ease 1.55s forwards;
}

@keyframes openingLogoEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes openingNameEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes openingLineEnter {
  to {
    transform: scaleX(1);
  }
}

@keyframes openingLogoExit {
  to {
    opacity: 0;
  }
}

@keyframes openingScreenExit {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

/* Hero entrance after the logo opening */
body.intro-running .hero__content {
  animation: openingHeroReveal 0.9s
    cubic-bezier(.22, 1, .36, 1) 1.85s both;
}

@keyframes openingHeroReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .opening-screen__logo img {
    width: 120px;
  }

  .opening-screen__logo {
    padding: 20px;
  }

  .opening-screen__name {
    max-width: 260px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-screen {
    display: none !important;
  }

  body.intro-running .hero__content {
    animation: none !important;
  }
}
/* Company name on one line */
.brand__text {
  display: block;
}

.brand__name {
  display: block;
  white-space: nowrap;
  font-size: 16px;
}

@media (max-width: 1100px) and (min-width: 961px) {
  .header__inner {
    gap: 12px;
  }

  .primary-navigation,
  .navigation-list {
    gap: 12px;
  }

  .header__appointment {
    max-width: 150px;
  }

  .brand__name {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .brand {
    gap: 6px;
  }

  .brand__logo {
    padding: 7px;
  }

  .brand__name {
    font-size: 12px;
    letter-spacing: -.035em;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 11px;
  }
}

/* Keep the opening-screen name on one line too */
.opening-screen__name {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(12px, 3.5vw, 16px);
}