:root {
  --clinic-white: #fcfdfe;
  --clinic-ink: #071d3e;
  --rizzo-blue: #0756c9;
  --rizzo-blue-hover: #064cb4;
  --hairline: rgba(7, 29, 62, 0.08);
  --section-divider: rgba(7, 29, 62, 0.1);
  --focus: rgba(7, 86, 201, 0.28);
}

/* ---------- Base & document flow ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 114px; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--clinic-white);
  color: var(--clinic-ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

main { padding-top: 114px; display: flex; flex-direction: column; }
.hero { order: 1; }
.about { order: 2; }
.treatments { order: 3; }
.team-section { order: 4; }
.units-section { order: 5; }

/* ---------- Fixed header & navigation ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 114px;
  background: var(--clinic-white);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(252, 253, 254, 0.86);
  border-color: rgba(7, 29, 62, 0.06);
  box-shadow: 0 10px 30px rgba(7, 29, 62, 0.055);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-container {
  width: min(100% - 64px, 1420px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand { justify-self: start; display: inline-flex; }
.brand img { display: block; width: auto; height: 52px; }

.desktop-nav { display: flex; align-items: center; gap: 38px; height: 100%; }

.desktop-nav a,
.mobile-menu a {
  color: var(--clinic-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 31px;
  width: 24px;
  height: 1px;
  background: var(--rizzo-blue);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.23, 1, .32, 1);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.active { color: var(--rizzo-blue); }

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.active::after { opacity: 1; transform: scaleX(1); }

.schedule-button {
  min-height: 52px;
  padding: 0 25px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  color: #fff;
  background:
    linear-gradient(var(--rizzo-blue), var(--rizzo-blue)) padding-box,
    conic-gradient(from var(--button-angle), #0756c9, #21d8c4, #0756c9, #062f82, #0756c9) border-box;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  animation: rotate-button-border 4s linear infinite;
  transition: filter 160ms ease, transform 120ms ease;
}

.desktop-cta { justify-self: end; }
.schedule-button:hover { filter: brightness(0.94); }
.schedule-button:active { transform: scale(0.98); }
.schedule-button svg { width: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

a:focus-visible,
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.menu-toggle,
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--clinic-white);
  padding: 0;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  padding: 86px 0 88px;
  overflow: hidden;
}

.hero-container {
  width: min(100% - 64px, 1420px);
  margin: 0 auto;
}

.hero-copy { position: relative; z-index: 1; width: min(100%, 760px); }

.clip-definitions { position: absolute; pointer-events: none; }

.hero-photo {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 53vw;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% 20%;
  clip-path: url(#hero-photo-clip);
}

.hero-eyebrow {
  margin: 0 0 30px;
  color: var(--rizzo-blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--clinic-ink);
  font-size: clamp(58px, 4.5vw, 76px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-title-line { display: block; white-space: nowrap; }
.hero h1 .hero-title-accent { color: var(--rizzo-blue); }

.hero-description {
  max-width: 570px;
  margin: 30px 0 0;
  color: #18365f;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 35px;
}

.hero-actions .schedule-button,
.treatments-button { min-height: 56px; }

.treatments-button {
  position: relative;
  overflow: hidden;
  padding: 0 32px;
  border: 1.5px solid rgba(7, 29, 62, 0.4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--clinic-ink);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 600ms cubic-bezier(.23, 1, .32, 1), color 600ms cubic-bezier(.23, 1, .32, 1), border-radius 600ms cubic-bezier(.23, 1, .32, 1), transform 120ms ease;
}

.flow-label { position: relative; z-index: 2; transform: translateX(-12px); transition: transform 800ms ease-out; }
.flow-fill { position: absolute; z-index: 0; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--rizzo-blue); opacity: 0; transform: translate(-50%, -50%); transition: width 800ms cubic-bezier(.19, 1, .22, 1), height 800ms cubic-bezier(.19, 1, .22, 1), opacity 300ms ease; }
.treatments-button .flow-arrow { position: absolute; z-index: 3; width: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: left 800ms cubic-bezier(.34, 1.56, .64, 1), right 800ms cubic-bezier(.34, 1.56, .64, 1); }
.flow-arrow-left { left: -25%; }
.flow-arrow-right { right: 16px; }
.treatments-button:hover { border-color: transparent; border-radius: 12px; color: #fff; }
.treatments-button:hover .flow-fill { width: 340px; height: 340px; opacity: 1; }
.treatments-button:hover .flow-label { transform: translateX(12px); }
.treatments-button:hover .flow-arrow-left { left: 16px; }
.treatments-button:hover .flow-arrow-right { right: -25%; }
.treatments-button:active { transform: scale(.97); }

.specialties {
  display: flex;
  align-items: center;
  margin-top: 42px;
}

.specialty {
  min-height: 48px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clinic-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.specialty:first-child { padding-left: 0; }
.specialty + .specialty { border-left: 1px solid rgba(7, 29, 62, 0.16); }
.specialty svg { width: 32px; height: 32px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Treatments ---------- */
.treatments {
  padding: 108px 0 120px;
  border-top: 1px solid var(--section-divider);
  background: #f8fafc;
}
.treatments-container { width: min(100% - 64px, 1420px); margin: 0 auto; }
.treatments-heading { margin-bottom: 48px; text-align: center; }
.treatments-heading h2 { margin: 0; color: var(--clinic-ink); font-size: clamp(48px, 5vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -0.045em; }
.treatments-heading h2 span { color: var(--rizzo-blue); }
.treatments-heading p { margin: 16px 0 0; color: #65799b; font-size: 20px; line-height: 1.5; }

.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 22px; }
.treatment-card {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  color: var(--clinic-ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(7, 29, 62, 0.025), 0 10px 30px rgba(7, 29, 62, 0.045);
  font: inherit;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 250ms ease;
}
.treatment-image { height: 228px; display: block; overflow: hidden; }
.treatment-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 300ms cubic-bezier(.23, 1, .32, 1); }
.treatment-content { min-height: 142px; padding: 20px 28px; display: flex; flex: 1; align-items: flex-start; justify-content: space-between; gap: 18px; }
.treatment-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.treatment-copy strong { margin-bottom: 4px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; }
.treatment-copy > span:not(.treatment-detail) { color: #607493; font-size: 15px; line-height: 1.5; }
.treatment-detail { max-height: 0; margin-top: 0; overflow: hidden; color: #365174; font-size: 15px; line-height: 1.55; opacity: 0; transform: translateY(-4px); transition: max-height 300ms ease, margin-top 300ms ease, opacity 220ms ease, transform 300ms ease; }
.treatment-arrow {
  width: 32px;
  height: 32px;
  margin-top: 5px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: transparent;
  background: transparent;
  font-size: 0;
  transition: background-color 200ms ease, transform 250ms ease;
}
.treatment-arrow::before {
  content: "";
  width: 20px;
  height: 20px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230756c9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.treatment-card[aria-expanded="true"] .treatment-detail { max-height: 130px; margin-top: 14px; opacity: 1; transform: translateY(0); }
.treatment-card[aria-expanded="true"] .treatment-arrow { transform: rotate(-90deg); }
.treatment-card:hover { box-shadow: 0 0 0 1px rgba(7, 29, 62, 0.04), 0 14px 34px rgba(7, 29, 62, 0.065); }
.treatment-card:hover .treatment-image img { transform: scale(1.015); }
.treatment-card:hover .treatment-arrow { background: transparent; }
.treatment-card:not([aria-expanded="true"]):hover .treatment-arrow { transform: translateX(2px); }

/* ---------- Team carousel ---------- */
.team-section { padding: 108px 0 124px; overflow: hidden; border-top: 1px solid var(--section-divider); background: #fff; }
.team-container { width: min(100% - 64px, 1420px); margin: 0 auto; }
.team-heading { text-align: center; }
.team-heading h2 { margin: 0; color: var(--clinic-ink); font-size: clamp(48px, 5vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.team-heading h2 span { color: var(--rizzo-blue); }
.team-heading p { margin: 16px 0 0; color: #65799b; font-size: 20px; line-height: 1.5; }
.team-carousel { position: relative; margin-top: 88px; }
.team-pattern { display: none; }
.team-cards { position: relative; z-index: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; gap: 20px; }
.team-card { width: min(31%, 370px); display: none; flex-direction: column; overflow: hidden; background: var(--clinic-ink); color: #fff; opacity: 1; filter: none; transform: scale(.94); transition: transform 420ms cubic-bezier(.23,1,.32,1); }
.team-card.is-visible { display: flex; }
.team-card.is-prev { order: 1; }
.team-card.is-active { order: 2; z-index: 2; opacity: 1; filter: none; transform: scale(1); }
.team-card.is-next { order: 3; }
.team-card img { width: 100%; height: 380px; display: block; object-fit: cover; object-position: center top; background: #e8eef4; }
.team-card > div { min-height: 94px; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.team-card h3 { margin: 0; font-size: 21px; font-weight: 600; }
.team-card p { margin: 6px 0 0; color: rgba(255,255,255,.65); font-size: 14px; }
.team-nav { position: absolute; z-index: 4; top: auto; bottom: -62px; width: 38px; height: 38px; border: 0; display: grid; place-items: center; color: #fff; background: var(--clinic-ink); cursor: pointer; transition: background-color 160ms ease; }
.team-prev { right: calc(50% + 5px); }
.team-next { right: auto; left: calc(50% + 5px); }
.team-nav:hover { background: var(--rizzo-blue); }
.team-nav svg { width: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Units & contact ---------- */
.units-section { position: relative; padding: 86px 0 104px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--section-divider); background: var(--clinic-white); }
.units-section::before, .units-section::after, .units-shape { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.units-section::before { width: 590px; height: 720px; left: -430px; top: -250px; border-radius: 38% 62% 68% 32% / 44% 36% 64% 56%; background: linear-gradient(145deg, rgba(7,86,201,.095), rgba(33,216,196,.02) 68%); transform: rotate(-17deg); }
.units-section::after { width: 760px; height: 500px; right: -470px; top: -300px; border-radius: 48% 52% 34% 66% / 58% 38% 62% 42%; background: linear-gradient(210deg, rgba(7,86,201,.075), rgba(7,86,201,.018)); transform: rotate(12deg); }
.units-shape-bottom-left { width: 760px; height: 500px; left: -420px; bottom: -340px; border-radius: 68% 32% 58% 42% / 45% 62% 38% 55%; background: linear-gradient(30deg, rgba(7,86,201,.085), rgba(7,86,201,.018) 72%); transform: rotate(14deg); }
.units-shape-bottom-left::after { content: ""; position: absolute; inset: 48px -34px -36px 76px; border: 1px solid rgba(7,86,201,.08); border-radius: inherit; }
.units-shape-bottom-right { width: 900px; height: 570px; right: -510px; bottom: -390px; border-radius: 42% 58% 64% 36% / 55% 42% 58% 45%; background: linear-gradient(225deg, rgba(33,216,196,.028), rgba(7,86,201,.065)); transform: rotate(-12deg); }
.units-shape-bottom-right::before { content: ""; position: absolute; inset: -44px 80px 64px -20px; border: 1px solid rgba(7,86,201,.07); border-radius: inherit; }
.units-container { position: relative; z-index: 1; width: min(100% - 64px, 1280px); margin: 0 auto; }
.units-container > h2 { margin: 0; color: var(--clinic-ink); font-size: clamp(44px, 4vw, 62px); font-weight: 600; line-height: 1.01; letter-spacing: -.04em; text-align: center; }
.units-container > h2 span { color: var(--rizzo-blue); }
.units-grid { margin-top: 62px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.unit-card { min-width: 0; padding: 22px 22px 18px; border: 1px solid rgba(13,73,140,.12); border-radius: 16px; display: flex; flex-direction: column; background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(15,55,95,.035); transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.unit-card:last-child { grid-column: 2; }
.unit-card:hover { transform: translateY(-2px); border-color: rgba(0,119,255,.22); box-shadow: 0 12px 32px rgba(15,55,95,.06); }
.unit-main { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 16px; }
.unit-pin { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--rizzo-blue); background: rgba(0,119,255,.08); }
.unit-pin svg { width: 25px; }
.unit-card svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.unit-details h3 { margin: 3px 0 10px; color: var(--clinic-ink); font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.unit-address { margin: 0; color: #586d90; font-size: 14px; line-height: 1.45; }
.unit-phone { margin-top: 9px; display: inline-flex; align-items: center; gap: 9px; color: var(--rizzo-blue); font-size: 16px; font-weight: 500; text-decoration: none; }
.unit-phone svg { width: 20px; }
.unit-divider { height: 1px; margin: 14px 0 10px; background: rgba(13,73,140,.1); }
.unit-actions { margin-top: auto; display: grid; grid-template-columns: 1.35fr .9fr; gap: 10px; }
.unit-action { min-height: 47px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 180ms ease; }
.unit-action svg { width: 19px; }
.unit-action .unit-external-icon { width: 15px; margin-left: -3px; }
.unit-map { color: #fff; background: var(--rizzo-blue); }
.unit-map:hover { background: var(--rizzo-blue-hover); }
.unit-call { border: 1px solid rgba(0,119,255,.3); color: var(--rizzo-blue); background: transparent; }
.unit-call:hover { background: rgba(0,119,255,.04); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 0; overflow: hidden; border-radius: 64px 64px 0 0; color: #fff; background: #052d4b; }
.site-footer::after { content: ""; position: absolute; top: -190px; right: -120px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; pointer-events: none; }
.footer-container { position: relative; z-index: 1; width: min(100% - 64px, 1220px); margin: 0 auto; padding: 64px 0 24px; }
.footer-main { display: grid; grid-template-columns: 1.5fr .65fr 1fr auto; align-items: start; gap: 80px; }
.footer-brand > a { width: 194px; min-height: 78px; padding: 15px 18px; border-radius: 18px; display: grid; place-items: center; background: #fff; }
.footer-brand img { width: 100%; height: auto; display: block; }
.footer-brand p { max-width: 330px; margin: 22px 0 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav h2, .footer-contact h2 { margin: 6px 0 24px; color: #61dbc9; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.footer-nav a, .footer-contact a { color: #fff; font-size: 14px; text-decoration: none; }
.footer-nav a + a { margin-top: 14px; }
.footer-nav a:hover, .footer-contact a:hover { color: #61dbc9; }
.footer-contact address { margin-top: 18px; color: rgba(255,255,255,.72); font-size: 13px; font-style: normal; line-height: 1.6; }
.footer-instagram { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; }
.footer-instagram svg { width: 19px; stroke: currentColor; stroke-width: 1.7; }
.footer-top { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: border-color 160ms ease, background-color 160ms ease; }
.footer-top:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); }
.footer-top svg { width: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { margin-top: 62px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .05em; }

/* ---------- About ---------- */
.about {
  border-top: 1px solid var(--section-divider);
  background: #fff;
}
.about-container { width: min(100% - 64px, 1420px); margin-inline: auto; }
.about-intro { padding-block: 104px 94px; display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.about-copy { max-width: 470px; }
.about-eyebrow { margin: 0 0 30px; color: var(--rizzo-blue); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.about h2 { margin: 0; color: var(--clinic-ink); font-size: clamp(48px, 4.2vw, 66px); font-weight: 600; line-height: 1.03; letter-spacing: -.04em; }
.about h2 span { color: var(--rizzo-blue); }
.about-copy > p:last-child { max-width: 470px; margin: 36px 0 0; color: #516789; font-size: 17px; line-height: 1.65; text-align: justify; }
.about-image { width: 100%; display: block; border-radius: 22px; object-fit: cover; }
.about-reception { height: 550px; }

.about-values { position: relative; min-height: 206px; overflow: hidden; background: linear-gradient(105deg, #004d7d 0%, #005a91 55%, #004675 100%); }
.about-values::before, .about-values::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.about-values::before { width: 520px; height: 520px; right: -310px; top: -350px; border: 1px solid rgba(71, 177, 235, .22); }
.about-values::after { width: 480px; height: 340px; right: -260px; bottom: -290px; background: rgba(0, 104, 166, .34); transform: rotate(-18deg); }
.about-values-shape { position: absolute; z-index: 0; right: -170px; bottom: -330px; width: 500px; height: 430px; border-radius: 50%; border: 1px solid rgba(52, 163, 224, .18); }
.about-values-grid { position: relative; z-index: 1; min-height: 206px; display: grid; grid-template-columns: .7fr 1fr 1fr 1fr; align-items: center; }
.values-label { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase; }
.values-label i { position: relative; width: 64px; height: 1px; margin-top: 22px; display: block; background: rgba(255,255,255,.25); }
.values-label i::before { content: ""; position: absolute; width: 30px; height: 1px; background: rgba(255,255,255,.8); }
.value-item { min-height: 82px; padding-inline: 48px; border-left: 1px solid rgba(255,255,255,.26); display: flex; align-items: center; gap: 24px; color: #fff; }
.value-icon { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: rgba(30, 150, 220, .4); }
.value-icon svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value-item strong { font-size: 17px; font-weight: 600; line-height: 1.4; }

.about-commitment { padding-block: 96px 124px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); align-items: center; gap: 76px; }
.about-office { height: 520px; }
.commitment-copy { max-width: 550px; }
.commitment-copy h2 { font-size: clamp(44px, 3.8vw, 60px); line-height: 1.05; }
.commitment-text { margin-top: 34px; color: #516789; font-size: 17px; line-height: 1.65; text-align: justify; }
.commitment-text p { margin: 0; }
.commitment-text p + p { margin-top: 26px; }

/* ---------- Responsive: compact desktop / tablet ---------- */
@media (max-width: 1120px) {
  .header-container { width: min(100% - 40px, 1420px); }
  .desktop-nav { gap: 24px; }
  .brand img { height: 47px; }
  .schedule-button { padding-inline: 20px; }
  .hero-container { width: min(100% - 40px, 1420px); }
  .hero-stage { min-height: 640px; padding-top: 72px; }
  .treatments-container { width: min(100% - 40px, 1420px); }
  .treatment-image { height: 200px; }
  .team-container { width: min(100% - 40px, 1420px); }
  .team-card { width: 32%; }
  .units-container { width: min(100% - 40px, 1280px); }
  .units-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-card:last-child { grid-column: auto; }
}

@media (min-width: 941px) {
  .hero { min-height: calc(100vh - 114px); min-height: calc(100svh - 114px); }
  .hero-stage { min-height: calc(100vh - 114px); min-height: calc(100svh - 114px); display: flex; align-items: center; }
  .hero-photo { height: calc(100% - 28px); }
}

@media (max-width: 980px) {
  .treatments-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  html { scroll-padding-top: 88px; }
  main { padding-top: 88px; }
  .site-header { height: 88px; }
  .header-container { width: calc(100% - 40px); grid-template-columns: 1fr auto 1fr; }
  .brand { grid-column: 2; justify-self: center; }
  .brand img { height: 44px; }
  .desktop-nav, .desktop-cta { display: none; }
  .menu-toggle {
    grid-column: 3;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    cursor: pointer;
  }
  .menu-toggle span { width: 23px; height: 2px; border-radius: 2px; background: var(--clinic-ink); transition: transform 180ms ease, opacity 140ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(9px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-9px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: 0 24px 28px;
    background: var(--clinic-white);
    border-left: 1px solid var(--hairline);
    box-shadow: -18px 24px 48px rgba(7, 29, 62, 0.08);
    flex-direction: column;
    gap: 0;
  }
  .mobile-menu:not([hidden]) { display: flex; animation: menu-in 220ms cubic-bezier(.23, 1, .32, 1); }
  .mobile-menu-head { min-height: 88px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
  .mobile-menu-brand { display: inline-flex; }
  .mobile-menu-brand img { display: block; width: auto; height: 40px; }
  .menu-close { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-close span { position: absolute; top: 21px; left: 10px; width: 24px; height: 2px; border-radius: 2px; background: var(--clinic-ink); }
  .menu-close span:first-child { transform: rotate(45deg); }
  .menu-close span:last-child { transform: rotate(-45deg); }
  .mobile-menu > a:not(.schedule-button) { min-height: 54px; display: flex; align-items: center; padding: 0 4px; border-bottom: 1px solid var(--hairline); }
  .mobile-menu > a.active { color: var(--rizzo-blue); }
  .mobile-menu .schedule-button { min-height: 52px; margin-top: 22px; border-radius: 12px; color: #fff; }
  .hero { padding: 0 0 72px; }
  .hero-stage { min-height: 600px; padding-top: 64px; }
  .hero-container { width: calc(100% - 40px); }
  .hero h1 { font-size: clamp(44px, 9vw, 64px); }
  .hero-description { font-size: 18px; }
  .desktop-break { display: none; }
  .hero-photo { width: 46vw; object-position: 50% center; }
  .treatments { padding: 84px 0 96px; }
  .treatments-heading { margin-bottom: 40px; }
  .treatments-heading p { font-size: 18px; }
}

/* Stack the hero before text and image begin competing for horizontal space. */
@media (max-width: 940px) {
  .hero { padding: 0; }
  .hero-stage { min-height: 0; padding: 52px 0 28px; overflow: visible; }
  .hero-eyebrow { margin-bottom: 24px; font-size: 11px; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 54px); line-height: 1.04; }
  .hero-description { margin-top: 26px; font-size: 17px; line-height: 1.55; }
  .hero-actions { margin-top: 30px; }
  .hero-photo {
    position: relative;
    width: calc(100% - 40px);
    height: clamp(380px, 82vw, 520px);
    margin: 48px auto 0;
    object-position: 50% center;
    clip-path: inset(0 round 48px 48px 0 0);
  }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(30px, 10.3vw, 45px); line-height: 1.04; }
  .hero-actions { align-items: stretch; flex-direction: column; margin-top: 30px; }
  .hero-actions a { width: 100%; }
  .specialties {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    margin-top: 36px;
  }
  .specialty,
  .specialty:first-child {
    width: auto;
    min-width: 0;
    padding: 10px 8px;
    gap: 6px;
    font-size: 11px;
  }
  .specialty:first-child { padding-left: 0; }
  .specialty:last-child { padding-right: 0; }
  .specialty + .specialty {
    border-top: 0;
    border-left: 1px solid rgba(7, 29, 62, 0.12);
  }
  .specialty svg { width: 26px; height: 26px; }
  .hero-photo { height: clamp(340px, 105vw, 520px); }
  .treatments { padding: 70px 0 80px; }
  .treatments-container { width: calc(100% - 40px); }
  .treatments-heading h2 { font-size: clamp(40px, 12vw, 54px); }
  .treatments-heading p { font-size: 17px; }
  .treatments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .treatment-card { border-radius: 12px; }
  .treatment-image { height: 124px; }
  .treatment-content { min-height: 158px; padding: 14px 12px 16px; gap: 5px; }
  .treatment-copy strong { min-height: 38px; font-size: 15px; line-height: 1.25; }
  .treatment-copy > span:not(.treatment-detail) { font-size: 12px; line-height: 1.4; }
  .treatment-detail { font-size: 12px; line-height: 1.45; }
  .treatment-card[aria-expanded="true"] .treatment-detail { max-height: 190px; margin-top: 10px; }
  .treatment-arrow { width: 24px; height: 24px; margin-top: 2px; }
  .treatment-arrow::before { width: 17px; height: 17px; }
  .treatments-button:hover .flow-fill { width: 600px; height: 600px; }
  .team-section { padding: 72px 0 88px; }
  .team-container { width: calc(100% - 40px); }
  .team-heading h2 { font-size: clamp(40px, 12vw, 54px); }
  .team-heading p { font-size: 17px; }
  .team-carousel { margin-top: 72px; }
  .team-pattern { inset: -30px -20px; }
  .team-cards { min-height: 0; }
  .team-card { width: 100%; transform: none; }
  .team-card img { height: clamp(300px, 105vw, 360px); }
  .team-card.is-visible:not(.is-active) { display: none; }
  .team-card > div { min-height: 126px; padding: 24px; }
  .team-nav { top: auto; bottom: -58px; }
  .team-prev { right: calc(50% + 5px); }
  .team-next { right: auto; left: calc(50% + 5px); }
  .units-section { padding: 72px 0 84px; }
  .units-section::before { width: 360px; height: 360px; left: -260px; top: -120px; }
  .units-section::after, .units-shape-bottom-right { display: none; }
  .units-shape-bottom-left { width: 430px; height: 300px; left: -270px; bottom: -190px; }
  .units-container { width: calc(100% - 40px); }
  .units-container > h2 { font-size: clamp(40px, 11vw, 50px); }
  .units-grid { margin-top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .unit-card { padding: 14px 12px 12px; border-radius: 12px; }
  .unit-card:last-child { grid-column: 1 / -1; width: calc((100% - 12px) / 2); justify-self: center; }
  .unit-main { grid-template-columns: 1fr; gap: 8px; }
  .unit-pin { width: 40px; height: 40px; }
  .unit-pin svg { width: 21px; }
  .unit-details h3 { margin: 2px 0 7px; font-size: 16px; }
  .unit-address { font-size: 11px; line-height: 1.4; }
  .unit-phone { gap: 5px; font-size: 12px; }
  .unit-phone svg { width: 16px; }
  .unit-actions { grid-template-columns: 1fr; gap: 7px; }
  .unit-action { min-height: 40px; gap: 6px; font-size: 11px; }
  .unit-action svg { width: 15px; }
}

/* Preserve two-column content on very narrow phones without horizontal overflow. */
@media (max-width: 380px) {
  .header-container,
  .hero-container,
  .treatments-container,
  .team-container,
  .units-container,
  .about-container,
  .footer-container { width: calc(100% - 28px); }

  .hero h1 { font-size: 30px; }
  .hero-title-line { white-space: normal; }
  .specialty { padding-inline: 4px; font-size: 10px; }
  .treatment-content { padding-inline: 10px; }
  .treatment-copy strong { font-size: 14px; }
  .unit-card { padding-inline: 10px; }
  .unit-details h3 { font-size: 15px; }
}

@media (max-width: 1120px) {
  .about-container { width: min(100% - 40px, 1420px); }
  .about-intro { gap: 48px; }
  .about-reception { height: 480px; }
  .value-item { padding-inline: 28px; gap: 16px; }
  .value-icon { width: 56px; height: 56px; }
  .about-commitment { gap: 52px; }
  .about-office { height: 470px; }
}

@media (max-width: 900px) {
  .about-intro { padding-block: 80px; grid-template-columns: .75fr 1fr; gap: 36px; }
  .about-reception { height: 420px; }
  .about-values-grid { padding-block: 36px; grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .values-label, .value-item { min-height: 76px; }
  .value-item:nth-child(3) { border-left: 0; }
  .about-commitment { padding-block: 80px 96px; gap: 40px; }
  .about-office { height: 420px; }
}

@media (max-width: 620px) {
  .about-container { width: calc(100% - 40px); }
  .about-intro { padding-block: 72px; grid-template-columns: 1fr; gap: 44px; }
  .about-copy { max-width: none; }
  .about-eyebrow { margin-bottom: 24px; font-size: 11px; }
  .about h2 { font-size: clamp(42px, 12vw, 54px); }
  .about-copy > p:last-child { margin-top: 28px; font-size: 16px; text-align: justify; }
  .about-reception { height: 330px; border-radius: 18px; }
  .about-values { min-height: 0; }
  .about-values::before { width: 360px; height: 360px; right: -240px; top: -180px; }
  .about-values::after { display: none; }
  .about-values-shape { display: none; }
  .about-values-grid {
    width: max-content;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 38px 20px 34px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: visible;
    animation: values-mobile-flow 15s ease-in-out infinite alternate;
  }
  .values-label { width: 58vw; flex: 0 0 58vw; padding: 0 28px 0 0; }
  .value-item {
    min-height: 86px;
    width: 76vw;
    flex: 0 0 76vw;
    padding: 12px 28px;
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,.22);
    gap: 18px;
  }
  .value-icon { width: 52px; height: 52px; }
  .value-icon svg { width: 26px; height: 26px; }
  .value-item strong { font-size: 16px; }
  .about-commitment { padding-block: 72px 88px; grid-template-columns: 1fr; gap: 48px; }
  .about-office { order: 2; height: 340px; border-radius: 18px; }
  .commitment-copy { max-width: none; }
  .commitment-copy { order: 1; }
  .commitment-copy h2 { font-size: clamp(40px, 11vw, 50px); }
  .commitment-text { margin-top: 28px; font-size: 16px; text-align: justify; }
  .commitment-text p + p { margin-top: 22px; }
}

@media (max-width: 900px) {
  .footer-main { position: relative; grid-template-columns: 1.25fr .75fr 1fr; gap: 44px; }
  .footer-top { position: absolute; top: 0; right: 0; }
}

@media (max-width: 620px) {
  .site-footer { margin-top: 0; border-radius: 34px 34px 0 0; }
  .footer-container { width: calc(100% - 40px); padding: 48px 0 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > a { width: 166px; min-height: 68px; }
  .footer-brand p { max-width: 280px; }
  .footer-nav h2, .footer-contact h2 { margin-bottom: 20px; }
  .footer-top { top: 2px; right: 0; }
  .footer-bottom { margin-top: 46px; align-items: flex-start; flex-direction: column; gap: 10px; line-height: 1.5; }
}

@keyframes menu-in { from { opacity: 0; transform: translateX(18px); } }

@keyframes values-mobile-flow {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% + 100vw)); }
}

@property --button-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-button-border { to { --button-angle: 360deg; } }

/* ---------- Scroll reveal ---------- */
.reveal-ready .reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 650ms cubic-bezier(.23, 1, .32, 1),
    transform 650ms cubic-bezier(.23, 1, .32, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready .reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-ready .reveal-item { opacity: 1; transform: none; }
}
