:root {
  --ink: #123247;
  --muted: #5f6e72;
  --teal: #48c6a6;
  --teal-soft: #d7eee9;
  --aqua: #a5ddd5;
  --cream: #fffdf8;
  --sand: #f3eadf;
  --wood: #c8a77e;
  --line: rgba(18, 50, 71, .14);
  --shadow: 0 20px 55px rgba(18, 50, 71, .10);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 248, .93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner, .container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}

.brand img { width: 190px; height: auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.35rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--muted);
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--teal-soft);
}

.header-call, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  border: 1px solid var(--ink);
  box-shadow: 0 10px 24px rgba(18, 50, 71, .13);
}

.header-call {
  min-width: 96px;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button.light {
  background: var(--cream);
  color: var(--ink);
  border-color: transparent;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.hero.compact { min-height: 520px; }

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,253,248,.96), rgba(255,253,248,.82) 42%, rgba(255,253,248,.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
}

h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { max-width: 760px; font-size: clamp(1.9rem, 4vw, 3.7rem); font-weight: 830; }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); }
h3 { font-size: 1.25rem; }

.hero-logo {
  width: min(560px, 88vw);
  margin: 0 auto 1.2rem;
}

.home-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.7rem);
}

.home-hero .hero-content {
  padding-top: 2rem;
  padding-bottom: 9rem;
}

.home-hero .eyebrow {
  font-size: clamp(1rem, 2vw, 1.45rem);
  color: var(--ink);
  text-transform: none;
  margin-bottom: 1.9rem;
}

.lead {
  max-width: 720px;
  margin: 1.1rem 0 0;
  color: #344b55;
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
}

.contact-lead .contact-line {
  display: block;
}

.contact-lead br {
  display: none;
}

.contact-lead .contact-line + br + .contact-line {
  margin-top: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section.tinted { background: var(--sand); }
.section.aqua { background: #eef8f6; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head p { max-width: 620px; margin: .8rem 0 0; color: var(--muted); }

.intro-grid, .two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}

.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo.tall img { aspect-ratio: 3 / 4; }

.service-grid, .feature-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-services {
  grid-template-columns: 1.02fr .98fr;
}

.service-card, .info-card, .team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 32px rgba(18, 50, 71, .06);
}

.service-card.featured {
  background: #eef8f6;
}

.service-card p, .info-card p, .team-card p { color: var(--muted); margin: .7rem 0 1.2rem; }

.info-card .map-action {
  margin-top: -.45rem;
}

.info-card .map-button {
  min-height: 38px;
  padding: .55rem .85rem;
  font-size: .92rem;
}

.service-card h2, .info-card h2, .team-card h2, .list-block h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.list-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.list-block {
  border-top: 3px solid var(--teal);
  background: var(--cream);
  padding: 1.4rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 50, 71, .05);
}

.list-block ul, .plain-list {
  margin: .9rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1rem;
}

.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.5rem;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,.6);
}

.team-photo-frame {
  display: block;
  width: 142px;
  height: 142px;
  overflow: hidden;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.team-card img {
  object-fit: cover;
  border-radius: 999px;
}

.team-card .team-photo {
  width: 100%;
  height: 100%;
  margin: 0;
}

.team-card .portrait-cindy {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.17);
}

.team-card {
  position: relative;
}

.team-card .team-icon {
  position: absolute;
  top: 1.55rem;
  right: 1.75rem;
  width: 148px;
  height: 148px;
  object-fit: contain;
  border-radius: 0;
  margin: 0;
  opacity: .9;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
}

.team-actions .button[type="button"] {
  margin-left: auto;
}

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: .22em;
}

.watermark-section {
  position: relative;
  overflow: hidden;
}

.watermark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,253,248,.76), rgba(255,253,248,.86)), url("../img/cabinet-watermark.png") center / cover no-repeat;
  opacity: .86;
}

.watermark-section > .container {
  position: relative;
  z-index: 1;
}

.modal {
  border: 0;
  border-radius: 8px;
  max-width: 680px;
  width: min(680px, calc(100% - 32px));
  padding: 0;
  box-shadow: var(--shadow);
  color: var(--ink);
  background: var(--cream);
}

.modal::backdrop {
  background: rgba(18, 50, 71, .38);
}

.modal-content {
  padding: clamp(1.4rem, 4vw, 2rem);
}

.modal-content ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.practice-block {
  margin-top: 1rem;
}

.contact-title {
  font-size: clamp(1.9rem, 4vw, 3.7rem);
}

.icon-heading {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.icon-heading img {
  width: 24px;
  height: 24px;
}

.map {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-strip {
  background: var(--ink);
  color: white;
  padding: 2.2rem 0;
}

.contact-strip.compact-strip {
  padding: 1rem 0;
}

.contact-strip.compact-strip h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.contact-strip.compact-strip p {
  margin: .25rem 0 0;
  font-size: .94rem;
}

.contact-strip.compact-strip .button {
  min-height: 40px;
  padding: .55rem .9rem;
}

.contact-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer {
  background: #f7f1e8;
  padding: 1.25rem 0 .65rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.footer-logo { width: 130px; margin-bottom: 0; }
.footer-grid p, .footer-grid a { color: var(--muted); }
.footer-grid h2 { font-size: 1rem; margin-bottom: .6rem; }

.footer-heading {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .3rem;
}

.footer-heading img {
  width: 22px;
  height: 22px;
}

.facebook-link img {
  width: 34px;
  height: 34px;
}

.contact-watermark {
  position: relative;
  overflow: hidden;
}

.contact-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(238,248,246,.94), rgba(238,248,246,.82)), url("../img/orthese-photo.png") right center / min(680px, 58vw) auto no-repeat;
  opacity: .82;
}

.contact-watermark > .container {
  position: relative;
  z-index: 1;
}

.copyright {
  margin-top: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    padding: .8rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: .2rem; }
  .site-nav a { width: 100%; border-radius: 6px; }
  .intro-grid, .two-col, .gallery { grid-template-columns: 1fr; }
  .list-columns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .brand img { width: 154px; }
  .header-call { min-height: 40px; min-width: 82px; padding: .55rem .75rem; font-size: .9rem; }
  .header-inner { min-height: 72px; }
  .site-nav { top: 72px; }
  .hero, .hero.compact { min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(255,253,248,.96), rgba(255,253,248,.86)); }
  .hero-content { padding: 5rem 0 3rem; }
  .service-grid, .feature-grid, .team-grid, .badges { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .contact-strip .container { display: block; }
  .contact-strip .button { margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
