/*
Theme Name: Rocky Mountain Dental Co.
Theme URI: https://rockymountaindentalco.com/
Author: Energize Group
Author URI: https://energize-group.com/
Description: Custom responsive WordPress theme for Rocky Mountain Dental Co. in Pueblo, Colorado.
Version: 1.1.4
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: rocky-mountain-dental
*/

:root {
  --navy: #092f54;
  --navy-deep: #06243f;
  --teal: #75b8b1;
  --teal-dark: #2f746f;
  --ice: #e8f3f2;
  --sky: #d9eaf3;
  --sand: #f3eee5;
  --cream: #fbfaf7;
  --white: #ffffff;
  --ink: #17242d;
  --muted: #5d6b72;
  --line: #d6ddd9;
  --gold: #d7ae5b;
  --shadow: 0 24px 70px rgba(9, 47, 84, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
main {
  overflow-x: clip;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-main {
  min-height: 60vh;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.25rem, 6.8vw, 7rem);
}

h2 {
  font-size: clamp(2.35rem, 4vw, 4.4rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid #e9bb50;
  outline-offset: 4px;
}

.shell {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--navy);
  color: white;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  border-bottom: 1px solid rgba(9, 47, 84, 0.12);
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: min(100% - 64px, 1500px);
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
  color: var(--navy);
  line-height: 1.06;
}

.brand strong,
.footer-brand span {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.brand em {
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
  font-size: 0.91rem;
  font-weight: 650;
}

.desktop-nav > a,
.nav-dropdown-trigger {
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  padding: 36px 0;
  white-space: nowrap;
}

.desktop-nav > a::after,
.nav-dropdown-trigger::after {
  position: absolute;
  right: 0;
  bottom: 27px;
  left: 0;
  height: 2px;
  background: var(--teal-dark);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.desktop-nav > a:hover::after,
.nav-dropdown-trigger:hover::after,
.nav-dropdown.is-open .nav-dropdown-trigger::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger::before {
  content: "⌄";
  position: absolute;
  right: -14px;
  top: 36px;
  color: var(--teal-dark);
  font-size: 0.82rem;
}

.dropdown-panel {
  position: absolute;
  top: 83px;
  left: -28px;
  display: grid;
  width: 570px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
  padding: 25px 28px 28px;
  border-top: 4px solid var(--teal);
  background: white;
  box-shadow: var(--shadow);
}

.nav-dropdown .dropdown-panel {
  display: none;
}

.nav-dropdown.is-open > .dropdown-panel {
  display: grid;
}

@media (min-width: 901px) {
  .nav-dropdown:hover > .dropdown-panel,
  .nav-dropdown:focus-within > .dropdown-panel {
    display: grid;
  }

  .nav-dropdown:hover .nav-dropdown-trigger::after,
  .nav-dropdown:focus-within .nav-dropdown-trigger::after {
    transform: scaleX(1);
  }
}

.dropdown-panel span {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.dropdown-panel a {
  padding: 7px 0;
  color: var(--navy);
  font-weight: 580;
}

.dropdown-panel a:hover {
  color: var(--teal-dark);
}

.resource-panel {
  width: 310px;
  grid-template-columns: 1fr;
}

.nav-cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 28px;
  margin-left: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.phone-link {
  display: flex;
  flex-direction: column;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.3;
}

.phone-link span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
}

.button-small {
  min-height: 45px;
  padding: 12px 17px;
  font-size: 0.72rem;
}

.button-ghost {
  background: transparent;
  color: var(--navy);
}

.button-ghost:hover {
  color: white;
}

.button-light {
  border-color: white;
  background: white;
  color: var(--navy);
}

.button-light:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy-deep);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
  color: white;
}

.button-outline-light:hover {
  border-color: white;
  background: white;
  color: var(--navy);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mobile-menu {
  display: none;
}

.mobile-menu [hidden] {
  display: none !important;
}

.hero {
  position: relative;
  min-height: 730px;
  isolation: isolate;
  overflow: hidden;
  background: var(--sky);
}

.hero-mountain,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-mountain {
  z-index: -3;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(0.82);
}

.hero-wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(246, 249, 248, 0.98) 0%, rgba(246, 249, 248, 0.92) 38%, rgba(246, 249, 248, 0.52) 61%, rgba(9, 47, 84, 0.05) 100%);
}

.hero-inner {
  display: grid;
  min-height: 730px;
  grid-template-columns: 1.05fr 0.82fr;
  align-items: center;
  gap: 70px;
  padding-top: 55px;
  padding-bottom: 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 7vw, 7.4rem);
  line-height: 0.89;
}

.hero h1 em {
  color: var(--teal-dark);
  font-style: italic;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 34px;
  color: #34474f;
  font-size: 1.17rem;
}

.hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-portrait {
  position: relative;
  align-self: end;
  width: min(100%, 470px);
  margin: 0 0 -34px auto;
  box-shadow: var(--shadow);
}

.hero-portrait::before {
  position: absolute;
  z-index: -1;
  top: -28px;
  left: -28px;
  width: 76%;
  height: 88%;
  border: 1px solid rgba(9, 47, 84, 0.4);
  content: "";
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  object-position: center 26%;
}

.hero-portrait figcaption {
  position: absolute;
  right: -25px;
  bottom: 28px;
  display: flex;
  max-width: 275px;
  flex-direction: column;
  padding: 19px 23px;
  background: var(--navy);
  color: white;
}

.hero-portrait figcaption strong {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.hero-portrait figcaption span {
  margin-top: 4px;
  color: #d6e5e7;
  font-size: 0.73rem;
  line-height: 1.4;
}

.ridge-divider {
  position: absolute;
  z-index: -1;
  right: -3vw;
  bottom: -72px;
  left: -3vw;
  height: 135px;
  background: var(--cream);
  clip-path: polygon(0 42%, 12% 32%, 22% 45%, 34% 22%, 43% 48%, 55% 30%, 64% 51%, 76% 22%, 87% 43%, 100% 28%, 100% 100%, 0 100%);
}

.trust-strip {
  position: relative;
  z-index: 3;
  background: var(--cream);
  padding: 38px 0 45px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item > span {
  color: var(--teal-dark);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.trust-item p {
  margin: 3px 0 0;
  font-size: 0.73rem;
  line-height: 1.4;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.88fr;
  align-items: center;
  gap: 110px;
}

.image-stack {
  position: relative;
  padding: 0 0 45px 45px;
}

.image-stack::before {
  position: absolute;
  z-index: -1;
  top: 50px;
  right: 45px;
  bottom: 0;
  left: 0;
  background: var(--teal);
  content: "";
}

.image-stack img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.image-note {
  position: absolute;
  right: -28px;
  bottom: 0;
  display: flex;
  min-width: 235px;
  flex-direction: column;
  padding: 22px 25px;
  background: white;
  box-shadow: var(--shadow);
  color: var(--navy);
}

.image-note strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.image-note span {
  margin-top: 5px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 700px;
}

.section-heading h2 {
  margin-bottom: 20px;
}

.section-heading p {
  max-width: 630px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered p {
  margin-inline: auto;
}

.lead {
  color: #33464e;
  font-size: 1.13rem;
  line-height: 1.75;
}

.welcome-copy > p {
  max-width: 580px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arrow-link .icon {
  transition: transform 0.2s ease;
}

.arrow-link:hover {
  color: var(--teal-dark);
}

.arrow-link:hover .icon {
  transform: translateX(5px);
}

.services-section {
  background: var(--navy);
}

.services-section h2,
.services-section .arrow-link {
  color: white;
}

.services-section .section-heading p {
  color: #c5d5db;
}

.services-section .eyebrow {
  color: var(--teal);
}

.services-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 58px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 180px;
  height: 120px;
  background: rgba(117, 184, 177, 0.13);
  clip-path: polygon(0 100%, 37% 20%, 58% 55%, 77% 0, 100% 100%);
  content: "";
  transition: transform 0.25s ease;
}

.service-card:hover {
  background: rgba(117, 184, 177, 0.11);
  transform: translateY(-5px);
}

.service-card:hover::after {
  transform: translate(-10px, -8px) scale(1.1);
}

.service-number {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.service-eyebrow {
  margin: auto 0 13px;
  color: #a8c9cf;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 12px;
  color: white;
  font-size: 1.75rem;
}

.service-card p {
  max-width: 340px;
  color: #c5d5db;
  font-size: 0.88rem;
  line-height: 1.6;
}

.service-link {
  margin-top: 8px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-section {
  background: var(--sand);
}

.doctor-layout {
  display: grid;
  grid-template-columns: 0.9fr 0.75fr;
  align-items: center;
  gap: 130px;
}

.doctor-copy .lead {
  max-width: 620px;
}

.doctor-copy > p {
  max-width: 610px;
}

.doctor-photo {
  position: relative;
  margin: 0;
  padding: 35px 35px 0 0;
}

.doctor-photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 0.8;
  object-fit: cover;
}

.doctor-photo::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  height: 85%;
  background: var(--teal);
  content: "";
}

.doctor-photo figcaption {
  position: relative;
  z-index: 3;
  display: flex;
  width: calc(100% - 35px);
  flex-direction: column;
  padding: 18px 22px;
  background: white;
  box-shadow: 0 12px 35px rgba(9, 47, 84, 0.11);
}

.doctor-photo figcaption strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.doctor-photo figcaption span {
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mountain-lines {
  position: absolute;
  z-index: 1;
  right: -100px;
  bottom: 50px;
  width: 300px;
  height: 170px;
  border-bottom: 1px solid rgba(9, 47, 84, 0.3);
  transform: rotate(-2deg);
}

.mountain-lines::before,
.mountain-lines::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-bottom: 1px solid rgba(9, 47, 84, 0.18);
  clip-path: polygon(0 100%, 35% 25%, 49% 64%, 67% 10%, 100% 100%);
  background: rgba(9, 47, 84, 0.08);
  content: "";
}

.experience-section {
  background: var(--cream);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 65px;
  border-top: 1px solid var(--line);
}

.experience-item {
  padding: 35px 30px;
  border-right: 1px solid var(--line);
}

.experience-item:last-child {
  border-right: 0;
}

.experience-item > span {
  display: block;
  margin-bottom: 60px;
  color: var(--teal-dark);
  font-family: var(--serif);
}

.experience-item h3 {
  margin-bottom: 10px;
}

.experience-item p {
  margin: 0;
  font-size: 0.9rem;
}

.reviews-section {
  position: relative;
  background: var(--ice);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  align-items: center;
  gap: 28px;
}

.review-intro h2 {
  margin-bottom: 20px;
}

.review-card {
  margin: 0;
  padding: 42px;
  background: white;
  box-shadow: 0 20px 55px rgba(9, 47, 84, 0.09);
}

.review-card.featured-review {
  padding: 55px 46px;
  background: var(--navy);
}

.stars {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.review-card p {
  color: #374b54;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.55;
}

.featured-review p {
  color: white;
  font-size: 1.55rem;
}

.review-card cite {
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.featured-review cite {
  color: var(--teal);
}

.team-preview {
  background: var(--cream);
}

.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-mini-card {
  position: relative;
  overflow: hidden;
}

.team-mini-card img {
  width: 100%;
  aspect-ratio: 0.79;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85);
  transition: transform 0.35s ease;
}

.team-mini-card:hover img {
  transform: scale(1.025);
}

.team-mini-card > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  padding: 17px 18px;
  background: rgba(6, 36, 63, 0.93);
  color: white;
}

.team-mini-card strong {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.team-mini-card em {
  margin-top: 3px;
  color: var(--teal);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gallery-section {
  padding-top: 0;
  background: var(--cream);
}

.office-gallery {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  grid-template-rows: 260px 260px;
  gap: 18px;
  margin-top: 50px;
}

.office-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-gallery img:first-child {
  grid-row: 1 / 3;
}

.office-gallery img:last-child {
  object-position: center 28%;
}

.faq-section,
.service-faq {
  background: var(--sand);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.1fr;
  gap: 100px;
}

.faq-intro .button {
  margin-top: 30px;
}

.faq-list {
  border-top: 1px solid rgba(9, 47, 84, 0.2);
}

.faq-list details {
  border-bottom: 1px solid rgba(9, 47, 84, 0.2);
}

.faq-list summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  margin-left: auto;
  color: var(--teal-dark);
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list summary span {
  color: var(--teal-dark);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.faq-list details p {
  padding: 0 45px 25px;
  margin: 0;
}

.location-section {
  background: var(--cream);
}

.location-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 560px;
  box-shadow: var(--shadow);
}

.location-card {
  padding: 65px;
  background: var(--navy);
}

.location-card h2,
.location-card p,
.location-card .address {
  color: white;
}

.location-card .eyebrow {
  color: var(--teal);
}

.location-card .address {
  max-width: 330px;
  font-size: 1.1rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 40px;
}

.location-card .button {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy-deep);
}

.location-card .button-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: white;
}

.compact-hours {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.compact-hours p {
  margin: 6px 0;
  color: #d7e4e6;
  font-size: 0.86rem;
}

.compact-hours small {
  display: block;
  color: #a9c5cc;
  font-size: 0.72rem;
  line-height: 1.5;
}

.map,
.visit-grid iframe {
  width: 100%;
  min-height: 100%;
  border: 0;
}

.contact-band {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--navy-deep);
}

.contact-band::after {
  position: absolute;
  right: -5%;
  bottom: -60px;
  width: 52%;
  height: 260px;
  background: rgba(117, 184, 177, 0.1);
  clip-path: polygon(0 100%, 25% 42%, 44% 70%, 68% 8%, 100% 100%);
  content: "";
}

.contact-band-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.contact-band h2 {
  max-width: 720px;
  margin-bottom: 16px;
  color: white;
}

.contact-band p {
  max-width: 650px;
  margin: 0;
  color: #c4d5db;
}

.eyebrow-light {
  color: var(--teal);
}

.contact-band-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 300px;
}

.site-footer {
  position: relative;
  padding-top: 90px;
  background: #041d33;
  color: white;
}

.footer-ridge {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 62px;
  background: #041d33;
  clip-path: polygon(0 100%, 0 78%, 14% 52%, 25% 77%, 39% 36%, 48% 70%, 62% 40%, 77% 74%, 88% 49%, 100% 76%, 100% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.72fr 0.83fr 1fr;
  gap: 70px;
  padding-bottom: 65px;
}

.footer-grid h2 {
  margin-bottom: 25px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-about) > a {
  display: block;
  margin: 9px 0;
  color: #d0dce0;
  font-size: 0.82rem;
}

.footer-grid a:hover {
  color: var(--teal);
}

.footer-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  background: white;
}

.footer-brand span {
  max-width: 150px;
  color: white;
}

.footer-about > p {
  max-width: 350px;
  margin: 24px 0;
  color: #b7c8ce;
  font-size: 0.83rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #d0dce0;
  font-size: 0.8rem;
}

.hours dl {
  margin: 0;
}

.hours dl div,
.visit-hours div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
  color: #d0dce0;
  font-size: 0.79rem;
}

.hours dt,
.hours dd,
.visit-hours dt,
.visit-hours dd {
  margin: 0;
}

.schedule-note {
  margin: 18px 0 0;
  padding-left: 13px;
  border-left: 2px solid var(--teal);
  color: #a9c1c9;
  font-size: 0.7rem;
  line-height: 1.55;
}

.footer-base {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #9fb4bc;
  font-size: 0.7rem;
}

.footer-base a {
  color: var(--teal);
}

.mobile-action-bar {
  display: none;
}

/* Inner pages */
.inner-hero {
  position: relative;
  min-height: 545px;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}

.inner-hero > img,
.inner-hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.inner-hero > img {
  object-fit: cover;
  object-position: center 46%;
}

.inner-hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 36, 63, 0.98) 0%, rgba(6, 36, 63, 0.84) 49%, rgba(6, 36, 63, 0.4) 100%);
}

.inner-hero-content {
  display: flex;
  min-height: 545px;
  max-width: 1240px;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.inner-hero nav,
.team-hero nav,
.contact-hero nav,
.legal-hero nav {
  display: flex;
  gap: 10px;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-hero h1 {
  max-width: 800px;
  margin-bottom: 20px;
  color: white;
  font-size: clamp(3.5rem, 6vw, 6rem);
}

.inner-hero-content > p {
  max-width: 710px;
  margin-bottom: 30px;
  color: #d6e2e6;
  font-size: 1.14rem;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  align-items: center;
  gap: 110px;
}

.service-intro-grid h2 {
  max-width: 700px;
}

.service-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 25px;
  margin-top: 35px;
}

.service-bullets > div {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 630;
}

.service-bullets span {
  color: var(--teal-dark);
}

.service-image {
  position: relative;
  margin: 0;
  padding: 30px 0 0 30px;
}

.service-image::before {
  position: absolute;
  z-index: -1;
  inset: 0 30px 35px 0;
  background: var(--teal);
  content: "";
}

.service-image img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: center;
}

.service-image figcaption {
  position: absolute;
  right: -35px;
  bottom: 30px;
  display: flex;
  max-width: 270px;
  flex-direction: column;
  padding: 21px 24px;
  background: var(--navy);
  color: white;
}

.service-image figcaption strong {
  font-family: var(--serif);
  font-size: 1.08rem;
}

.service-image figcaption span {
  margin-top: 3px;
  color: #c3d5d9;
  font-size: 0.72rem;
}

.service-feature {
  background: var(--ice);
}

.service-feature-grid {
  display: grid;
  grid-template-columns: 120px 1.2fr 0.7fr;
  align-items: center;
  gap: 65px;
}

.service-feature-number {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid var(--teal-dark);
  color: var(--teal-dark);
  font-family: var(--serif);
  font-size: 2rem;
}

.feature-quote {
  padding: 35px;
  border-left: 1px solid rgba(9, 47, 84, 0.22);
}

.feature-quote > span {
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-quote p {
  margin: 16px 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
}

.treatment-path {
  background: var(--cream);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.path-grid > div {
  padding: 40px;
  border-right: 1px solid var(--line);
}

.path-grid > div:last-child {
  border-right: 0;
}

.path-grid span {
  display: block;
  margin-bottom: 70px;
  color: var(--teal-dark);
  font-family: var(--serif);
}

.path-grid p {
  margin: 0;
  font-size: 0.9rem;
}

.related-section {
  background: var(--navy);
}

.related-section h2,
.related-section h3 {
  color: white;
}

.related-section .eyebrow {
  color: var(--teal);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
}

.related-grid > a {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-grid > a:hover {
  background: rgba(117, 184, 177, 0.1);
  transform: translateY(-4px);
}

.related-grid > a > span {
  margin-bottom: auto;
  color: var(--teal);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-grid h3 {
  font-size: 1.7rem;
}

.related-grid p {
  color: #b9cbd1;
  font-size: 0.86rem;
}

.related-grid .related-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Team page */
.team-hero {
  padding: 85px 0 100px;
  background: var(--ice);
}

.team-hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: 90px;
}

.team-hero nav {
  margin-bottom: 55px;
  color: var(--muted);
}

.team-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 6.5vw, 6.8rem);
}

.team-hero p {
  max-width: 580px;
  font-size: 1.13rem;
}

.team-hero img {
  width: 100%;
  max-height: 590px;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: var(--shadow);
}

.team-editorial {
  background: var(--cream);
}

.doctor-profile {
  display: grid;
  grid-template-columns: 0.68fr 1.1fr;
  align-items: center;
  gap: 95px;
  margin: 80px 0 130px;
}

.profile-photo {
  position: relative;
  padding: 0 28px 35px 0;
}

.profile-photo::before {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 80%;
  height: 80%;
  background: var(--teal);
  content: "";
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: center top;
}

.profile-photo span {
  position: absolute;
  right: 0;
  bottom: 55px;
  padding: 14px 17px;
  background: var(--navy);
  color: white;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-copy p,
.roster-member p {
  max-width: 680px;
}

.team-roster {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.roster-member {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  align-items: center;
  gap: 90px;
}

.roster-member.reverse {
  grid-template-columns: 1fr 0.65fr;
}

.roster-member.reverse img {
  order: 2;
}

.roster-member img {
  width: 100%;
  max-height: 560px;
  aspect-ratio: 0.8;
  object-fit: cover;
  object-position: center top;
  box-shadow: 18px 18px 0 var(--ice);
}

/* Contact */
.contact-hero {
  padding: 90px 0;
  background: var(--navy);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.8fr;
  align-items: center;
  gap: 90px;
}

.contact-hero nav {
  margin-bottom: 55px;
}

.contact-hero h1 {
  max-width: 760px;
  color: white;
  font-size: clamp(3.7rem, 6.5vw, 6.5rem);
}

.contact-hero p {
  max-width: 610px;
  color: #c8d8de;
  font-size: 1.12rem;
}

.contact-hero img {
  width: 100%;
  aspect-ratio: 0.93;
  object-fit: cover;
  box-shadow: 25px 25px 0 rgba(117, 184, 177, 0.38);
}

.contact-direct {
  display: flex;
  gap: 45px;
  margin-top: 35px;
}

.contact-direct a {
  display: flex;
  flex-direction: column;
  color: white;
  font-size: 0.93rem;
  font-weight: 650;
}

.contact-direct small {
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-section {
  background: var(--cream);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.process-grid > div {
  padding: 40px;
  border-right: 1px solid var(--line);
}

.process-grid > div:last-child {
  border: 0;
}

.process-grid span {
  display: block;
  margin-bottom: 65px;
  color: var(--teal-dark);
  font-family: var(--serif);
}

.process-grid h2 {
  font-size: 1.7rem;
}

.process-grid p {
  font-size: 0.9rem;
}

.appointment-section {
  background: var(--sand);
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.05fr;
  align-items: start;
  gap: 85px;
}

.appointment-copy {
  position: sticky;
  top: 145px;
}

.privacy-notice {
  margin-top: 35px;
  padding: 22px 24px;
  border-left: 3px solid var(--teal-dark);
  background: rgba(255, 255, 255, 0.7);
}

.privacy-notice strong {
  color: var(--navy);
}

.privacy-notice p {
  margin: 5px 0 0;
  font-size: 0.82rem;
}

.form-fallback {
  margin-top: 25px;
  font-size: 0.82rem;
}

.form-fallback a {
  color: var(--navy);
  font-weight: 700;
}

.form-frame {
  min-height: 900px;
  padding: 12px;
  overflow: visible;
  background: white;
  box-shadow: var(--shadow);
}

.form-frame iframe {
  display: block;
  width: 100%;
  height: 900px;
  min-height: 900px;
  border: 0;
  overflow: hidden;
}

.visit-section {
  background: var(--cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 80px;
}

.visit-grid iframe {
  min-height: 560px;
}

.visit-address {
  display: block;
  max-width: 380px;
  margin-bottom: 25px;
  color: var(--teal-dark);
  font-weight: 650;
}

.visit-hours {
  max-width: 430px;
  margin: 0 0 25px;
}

.visit-hours div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.schedule-note.dark {
  max-width: 430px;
  margin-bottom: 30px;
  color: var(--muted);
}

/* Patient resources */
.resource-hero h1 {
  max-width: 920px;
}

.resource-intro {
  background: var(--cream);
}

.resource-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  align-items: center;
  gap: 90px;
}

.resource-intro-grid h2 {
  max-width: 720px;
}

.resource-intro-grid .button-row {
  align-items: center;
  margin-top: 32px;
}

.resource-feature-image {
  position: relative;
  margin: 0;
  padding: 0 28px 28px 0;
}

.resource-feature-image::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 78%;
  height: 78%;
  background: var(--teal);
  content: "";
}

.resource-feature-image img {
  width: 100%;
  aspect-ratio: 0.98;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.resource-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.resource-value-grid > div {
  padding: 23px 18px;
  border-top: 3px solid var(--teal);
  background: white;
}

.resource-value-grid strong,
.resource-value-grid span {
  display: block;
}

.resource-value-grid strong {
  margin-bottom: 7px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.12rem;
}

.resource-value-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.membership-pricing,
.financing-section {
  background: var(--ice);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 65px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 42px 34px 36px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 18px 50px rgba(9, 47, 84, 0.08);
}

.pricing-card.featured {
  border: 2px solid var(--navy);
  transform: translateY(-16px);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 28px;
  padding: 7px 12px;
  background: var(--navy);
  color: white;
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.pricing-card h3 {
  margin-bottom: 4px;
  font-size: 2rem;
}

.pricing-note,
.family-note {
  color: var(--muted);
  font-size: 0.79rem;
}

.pricing-amount {
  margin: 22px 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
}

.pricing-amount small {
  display: block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.benefit-list,
.guideline-list,
.hipaa-document ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list {
  margin-bottom: 30px;
}

.benefit-list li,
.guideline-list li,
.hipaa-document li {
  position: relative;
  padding: 10px 0 10px 25px;
  border-bottom: 1px solid var(--line);
  color: #33464e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.benefit-list li::before,
.guideline-list li::before,
.hipaa-document li::before {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--teal-dark);
  content: "✓";
  font-weight: 800;
}

.pricing-card .button {
  width: 100%;
  margin-top: auto;
}

.pricing-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.membership-guidelines {
  background: var(--sand);
}

.resource-two-column {
  display: grid;
  grid-template-columns: 0.75fr 1.1fr;
  align-items: start;
  gap: 110px;
}

.resource-two-column h2 {
  max-width: 520px;
}

.guideline-list {
  border-top: 1px solid var(--line);
}

.guideline-list li {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.95rem;
}

.guideline-list li::before {
  top: 18px;
}

.resource-faq {
  background: var(--cream);
}

.financing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 60px;
}

.financing-card {
  display: flex;
  min-height: 420px;
  min-width: 0;
  flex-direction: column;
  padding: 38px;
  border-top: 5px solid var(--teal);
  background: white;
  box-shadow: 0 18px 45px rgba(9, 47, 84, 0.09);
}

.financing-card.membership-option {
  border-top-color: var(--gold);
}

.financing-mark {
  display: inline-flex;
  min-height: 75px;
  align-items: center;
  margin-bottom: 32px;
  color: #ab204b;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
}

.financing-mark.carecredit {
  color: #217566;
}

.membership-option .financing-mark {
  color: var(--navy);
  font-size: 1.75rem;
}

.financing-card p {
  margin-bottom: 32px;
  color: var(--muted);
}

.financing-card .button {
  width: 100%;
  margin-top: auto;
}

.resource-disclaimer {
  max-width: 850px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.hipaa-section {
  background: var(--sand);
}

.hipaa-layout {
  display: grid;
  grid-template-columns: 0.48fr 1.1fr;
  align-items: start;
  gap: 80px;
}

.hipaa-aside {
  position: sticky;
  top: 145px;
}

.hipaa-aside h2 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4vw, 4rem);
}

.hipaa-contact {
  display: flex;
  margin-top: 35px;
  flex-direction: column;
  padding: 24px;
  border-left: 4px solid var(--teal);
  background: white;
  color: var(--navy);
}

.hipaa-contact a {
  margin: 5px 0;
  color: var(--teal-dark);
  font-weight: 750;
}

.hipaa-contact span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hipaa-document {
  padding: 58px 64px;
  background: white;
  box-shadow: var(--shadow);
}

.hipaa-document section {
  padding: 45px 0;
  border-bottom: 1px solid var(--line);
}

.hipaa-document section:first-child {
  padding-top: 0;
}

.hipaa-document section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hipaa-document h2 {
  margin-bottom: 24px;
  font-size: 2.15rem;
}

.hipaa-document h3 {
  margin: 30px 0 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hipaa-document p {
  color: #3d4c53;
  font-size: 0.94rem;
}

.hipaa-document a {
  color: var(--teal-dark);
  font-weight: 720;
}

.hipaa-document li {
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 0.9rem;
}

.hipaa-document li::before {
  top: 13px;
}

.resource-links-section {
  background: var(--cream);
}

.resource-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 45px;
}

.resource-link-grid > a {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 38px;
  border: 1px solid var(--line);
  background: white;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.resource-link-grid > a:hover {
  border-color: var(--teal-dark);
  transform: translateY(-4px);
}

.resource-link-grid span {
  color: var(--teal-dark);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-link-grid h3 {
  margin: 20px 0 12px;
  font-size: 2rem;
}

.resource-link-grid p {
  color: var(--muted);
}

.resource-link-grid strong {
  margin-top: auto;
  color: var(--navy);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Legal + 404 */
.legal-hero {
  padding: 100px 0;
  background: var(--ice);
}

.legal-hero nav {
  margin-bottom: 55px;
  color: var(--muted);
}

.legal-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 6vw, 6rem);
}

.legal-hero p {
  max-width: 700px;
  font-size: 1.1rem;
}

.legal-hero small {
  color: var(--teal-dark);
  font-weight: 650;
}

.legal-content {
  background: var(--cream);
}

.legal-grid {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr;
  align-items: start;
  gap: 110px;
}

.legal-grid aside {
  position: sticky;
  top: 145px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 28px;
  border-top: 4px solid var(--teal);
  background: var(--navy);
  color: white;
  font-size: 0.82rem;
}

.legal-grid aside span {
  color: #c5d4da;
}

.legal-grid article > section {
  padding-bottom: 35px;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--line);
}

.legal-grid article h2 {
  font-size: 2rem;
}

.not-found {
  display: grid;
  min-height: 650px;
  place-items: center;
  background: var(--ice);
  text-align: center;
}

.not-found .shell {
  max-width: 750px;
}

.not-found h1 {
  font-size: clamp(3.4rem, 7vw, 6.8rem);
}

.not-found p {
  max-width: 580px;
  margin: 0 auto 30px;
}

.not-found .button-row {
  justify-content: center;
}

@media (max-width: 1120px) {
  .nav-shell {
    width: min(100% - 40px, 1500px);
    gap: 20px;
  }

  .desktop-nav {
    gap: 19px;
  }

  .nav-cta {
    margin-left: 0;
    padding-left: 18px;
  }

  .phone-link {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr 0.75fr;
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(4rem, 7.5vw, 6.2rem);
  }

  .trust-item {
    padding: 18px 14px;
  }

  .split-layout,
  .doctor-layout {
    gap: 70px;
  }

  .footer-grid {
    gap: 35px;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .nav-shell {
    min-height: 82px;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 50px;
    height: 50px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: transparent;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    z-index: 30;
    top: 61px;
    right: 0;
    display: flex;
    width: min(86vw, 380px);
    max-height: 72vh;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    border-top: 4px solid var(--teal);
    background: white;
    box-shadow: var(--shadow);
  }

  .mobile-menu nav > a {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 620;
  }

  .mobile-section-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
  }

  .mobile-chevron {
    color: var(--teal-dark);
    font-size: 1rem;
    transition: transform 0.2s ease;
  }

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

  .mobile-submenu {
    display: flex;
    flex-direction: column;
    padding: 5px 0 9px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--ice);
  }

  .mobile-submenu a {
    padding: 9px 12px;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 580;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 90px;
    padding-bottom: 120px;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-portrait {
    width: min(84%, 520px);
    margin: 30px 0 0 auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .split-layout,
  .doctor-layout,
  .service-intro-grid,
  .team-hero-grid,
  .doctor-profile,
  .roster-member,
  .roster-member.reverse,
  .contact-hero-grid,
  .appointment-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .image-stack {
    max-width: 700px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-photo {
    width: min(78%, 500px);
    margin-left: auto;
  }

  .experience-grid,
  .team-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-item:nth-child(2) {
    border-right: 0;
  }

  .reviews-layout {
    grid-template-columns: 1fr 1fr;
  }

  .review-intro {
    grid-column: 1 / -1;
    max-width: 620px;
  }

  .faq-layout,
  .location-layout,
  .footer-grid,
  .legal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 55px;
  }

  .contact-band-inner {
    align-items: start;
    flex-direction: column;
  }

  .contact-band-actions {
    width: 100%;
    max-width: 360px;
    flex-basis: auto;
  }

  .service-feature-grid {
    grid-template-columns: 100px 1fr;
  }

  .feature-quote {
    grid-column: 2;
  }

  .service-feature-number {
    width: 100px;
    height: 100px;
  }

  .related-grid {
    gap: 12px;
  }

  .team-hero img {
    max-height: 700px;
  }

  .roster-member.reverse img {
    order: 0;
  }

  .roster-member img {
    width: min(72%, 520px);
  }

  .appointment-copy,
  .legal-grid aside {
    position: static;
  }

  .legal-grid {
    grid-template-columns: 0.55fr 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 95px;
  }

  body {
    font-size: 16px;
    padding-bottom: 62px;
  }

  .shell {
    width: min(100% - 34px, 1240px);
  }

  .section {
    padding: 78px 0;
  }

  .site-header {
    top: 0;
  }

  .nav-shell {
    min-height: 76px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .brand em {
    font-size: 0.58rem;
  }

  .hero-inner {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .hero-wash {
    background: linear-gradient(180deg, rgba(246, 249, 248, 0.97) 0%, rgba(246, 249, 248, 0.9) 58%, rgba(246, 249, 248, 0.42) 100%);
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18vw, 5.2rem);
    line-height: 0.93;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .button-row,
  .location-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .hero-meta span[aria-hidden] {
    display: none;
  }

  .hero-portrait {
    width: calc(100% - 18px);
    margin-right: 0;
  }

  .hero-portrait::before {
    top: -14px;
    left: -14px;
  }

  .hero-portrait figcaption {
    right: -8px;
    bottom: 15px;
    max-width: 235px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .split-layout {
    gap: 65px;
  }

  .image-stack {
    padding: 0 0 28px 23px;
  }

  .image-note {
    right: -5px;
  }

  .services-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .service-grid,
  .experience-grid,
  .reviews-layout,
  .team-preview-grid,
  .faq-layout,
  .location-layout,
  .footer-grid,
  .service-bullets,
  .service-feature-grid,
  .path-grid,
  .related-grid,
  .office-gallery,
  .process-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 300px;
    padding: 29px;
  }

  .doctor-layout {
    gap: 55px;
  }

  .doctor-photo {
    width: 94%;
    padding: 25px 24px 0 0;
  }

  .mountain-lines {
    display: none;
  }

  .experience-item,
  .experience-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .experience-item > span,
  .path-grid span,
  .process-grid span {
    margin-bottom: 35px;
  }

  .reviews-layout {
    gap: 18px;
  }

  .review-card,
  .review-card.featured-review {
    padding: 33px 28px;
  }

  .team-preview-grid {
    gap: 14px;
  }

  .office-gallery {
    grid-template-rows: 280px 230px 300px;
  }

  .office-gallery img:first-child {
    grid-row: auto;
  }

  .faq-layout {
    gap: 45px;
  }

  .faq-list summary {
    min-height: 88px;
    font-size: 1rem;
  }

  .faq-list details p {
    padding-left: 0;
  }

  .location-card {
    padding: 43px 28px;
  }

  .map {
    min-height: 360px;
  }

  .contact-band {
    padding: 80px 0;
  }

  .contact-band h2 {
    font-size: 2.75rem;
  }

  .footer-grid {
    gap: 45px;
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: 62px;
    grid-template-columns: 0.8fr 1.2fr;
    box-shadow: 0 -8px 30px rgba(6, 36, 63, 0.18);
  }

  .mobile-action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--teal);
    color: var(--navy-deep);
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-action-bar a:last-child {
    background: var(--navy);
    color: white;
  }

  .inner-hero,
  .inner-hero-content {
    min-height: 560px;
  }

  .inner-hero-content {
    padding: 55px 0 75px;
  }

  .inner-hero nav,
  .team-hero nav,
  .contact-hero nav,
  .legal-hero nav {
    margin-bottom: 38px;
  }

  .inner-hero h1,
  .team-hero h1,
  .contact-hero h1,
  .legal-hero h1 {
    font-size: clamp(3.5rem, 16vw, 5rem);
  }

  .service-intro-grid {
    gap: 65px;
  }

  .service-image {
    padding: 20px 0 0 20px;
  }

  .service-image figcaption {
    right: -5px;
  }

  .service-feature-grid {
    gap: 30px;
  }

  .service-feature-number {
    width: 85px;
    height: 85px;
  }

  .feature-quote {
    grid-column: 1;
    padding: 25px 0 0;
    border-top: 1px solid rgba(9, 47, 84, 0.22);
    border-left: 0;
  }

  .path-grid > div,
  .process-grid > div {
    padding: 35px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .related-grid > a {
    min-height: 270px;
  }

  .team-hero,
  .contact-hero {
    padding: 65px 0 80px;
  }

  .team-hero-grid,
  .contact-hero-grid {
    gap: 55px;
  }

  .doctor-profile {
    gap: 50px;
    margin: 60px 0 90px;
  }

  .team-roster {
    gap: 85px;
  }

  .roster-member {
    gap: 40px;
  }

  .roster-member img {
    width: 92%;
  }

  .contact-direct {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .appointment-grid {
    gap: 50px;
  }

  .form-frame {
    min-height: 1050px;
    padding: 4px;
  }

  .form-frame iframe {
    height: 1050px;
    min-height: 1050px;
  }

  .visit-grid {
    gap: 50px;
  }

  .visit-grid iframe {
    min-height: 380px;
  }

  .legal-grid {
    gap: 55px;
  }
}

@media (max-width: 900px) {
  .resource-intro-grid,
  .resource-two-column,
  .hipaa-layout {
    grid-template-columns: 1fr;
  }

  .resource-intro-grid,
  .resource-two-column,
  .hipaa-layout {
    gap: 60px;
  }

  .resource-feature-image {
    width: min(84%, 650px);
    margin-left: auto;
  }

  .pricing-grid,
  .financing-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .hipaa-aside {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .resource-hero nav {
    flex-wrap: wrap;
  }

  .resource-value-grid,
  .resource-link-grid {
    grid-template-columns: 1fr;
  }

  .resource-feature-image {
    width: calc(100% - 12px);
    padding: 0 18px 18px 0;
  }

  .pricing-grid,
  .financing-grid {
    margin-top: 48px;
  }

  .pricing-card,
  .financing-card {
    padding: 34px 26px;
  }

  .pricing-amount {
    font-size: 3rem;
  }

  .resource-two-column,
  .hipaa-layout {
    gap: 45px;
  }

  .hipaa-document {
    padding: 38px 25px;
  }

  .hipaa-document section {
    padding: 36px 0;
  }

  .hipaa-document h2 {
    font-size: 1.85rem;
  }

  .resource-link-grid > a {
    min-height: 260px;
    padding: 30px 27px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
