/* ==========================================================================
   Robert J. Giordano, DMD - Site styles
   Palette: deep navy, warm cream, muted gold. Classic, established, calm.
   ========================================================================== */

:root {
  --navy: #13304e;
  --navy-dark: #0d2239;
  --navy-soft: #2c4a6b;
  --gold: #b98d4f;      /* decorative fills only; fails AA as text on light */
  --gold-ink: #8a6534;  /* gold for text on light backgrounds (5.3:1) */
  --gold-light: #d5b98c;
  --cream: #faf7f1;
  --white: #fdfdfc;
  --ink: #253444;
  --ink-soft: #55677c;
  --line: #e5ddd0;
  --line-strong: #cfc5b4; /* form field borders */
  --gold-pale: #f4ead8;
  --error: #8f2f2f;
  --error-bg: #fbeeee;
  --error-line: #e6bcbc;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --container: 1120px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(19, 48, 78, 0.10);
  --shadow-sm: 0 4px 8px rgba(19, 48, 78, 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Every animation on the page needs a reduced-motion path, not just the scroll. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
  .gallery__btn:hover { transform: none; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.topbar a:focus-visible,
.section--navy a:focus-visible,
.footer a:focus-visible {
  outline-color: var(--white);
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin-bottom: 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); }

address { font-style: normal; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Eyebrow labels ===== */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.6rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
  white-space: nowrap;
}
button.btn { cursor: pointer; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }
.btn--lg { padding: 0.85rem 1.8rem; font-size: 1.05rem; }
.btn--solid { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--solid:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--gold { background: var(--gold-ink); color: var(--white); border-color: var(--gold-ink); }
.btn--gold:hover { background: #6f4f28; border-color: #6f4f28; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.45rem 0;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0.7rem 0;
  margin: -0.7rem 0;
}
.topbar a:hover { text-decoration: underline; }

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand { text-decoration: none; display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}
.brand__name abbr { text-decoration: none; }
.brand__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
}

/* ===== Navigation ===== */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}
.nav__menu a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.85rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.nav__menu a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--gold); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(19, 48, 78, 0.03), rgba(185, 141, 79, 0.05)),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 1.1rem;
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
}
.hero__card-title {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.hero__card address { color: var(--ink-soft); margin-bottom: 1rem; }
.hero__card-phone {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 0.3rem 0;
}
.hero__card-phone:hover { color: var(--gold-ink); }

/* ===== Hours list ===== */
.hours { font-size: 0.95rem; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--line);
}
.hours div:last-child { border-bottom: none; }
.hours dt { font-weight: 600; color: var(--ink); }
.hours dd { color: var(--ink-soft); text-align: right; }
.hours__note { display: block; font-size: 0.82rem; font-style: italic; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; scroll-margin-top: 5.25rem; }
.section--tint { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); }
.section--navy h2 { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, 0.85); }

.section__head { max-width: 46rem; margin-bottom: 2.8rem; }
.section__lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 38rem; }

/* ===== About ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: center;
}
.about__text h2 { margin-bottom: 1rem; }
.about__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, rgba(185, 141, 79, 0.12), rgba(19, 48, 78, 0.08)),
    var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--navy-soft);
  text-align: center;
  padding: 1rem;
}
.portrait-placeholder span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.checklist {
  list-style: none;
  margin-top: 1.3rem;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ===== Services ===== */
.services__group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem 3rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.services__group:first-child { border-top: none; padding-top: 0; }
.services__group-head p { color: var(--ink-soft); font-size: 0.95rem; }
.services__list div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.services__list div:first-child { padding-top: 0; }
.services__list div:last-child { border-bottom: none; padding-bottom: 0; }
.services__list dt { font-weight: 600; color: var(--navy); margin-bottom: 0.15rem; }
.services__list dd { color: var(--ink-soft); font-size: 0.95rem; }

.services__urgent {
  margin-top: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.services__urgent h3 { margin-bottom: 0.3rem; }
.services__urgent p { color: var(--ink-soft); }

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 3rem;
}
.why__item h3 { margin-bottom: 0.4rem; }
.why__item p { color: var(--ink-soft); }

/* ===== Insurance ===== */
.insurance__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
}
.insurance__cta {
  background: var(--navy-dark);
  border: 1px solid var(--navy-soft);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.insurance__cta p { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 1.2rem; }

/* ===== Visit ===== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}
.visit__info h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 1.6rem 0 0.5rem;
}
.visit__info h3:first-child { margin-top: 0; }
.visit__phone {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 0;
}
.visit__phone:hover { color: var(--gold-ink); }
.visit__email {
  display: inline-block;
  font-weight: 600;
  overflow-wrap: anywhere;
  padding: 0.5rem 0;
}
.visit__email:hover { color: var(--gold-ink); }
.visit__note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.5rem; }
.hours--dark { max-width: 24rem; }

.visit__map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
}
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== CTA band ===== */
.cta-band {
  background:
    linear-gradient(135deg, rgba(185, 141, 79, 0.10), rgba(19, 48, 78, 0.04)),
    var(--cream);
  border-top: 1px solid var(--line);
  padding: 3.8rem 0;
}
.cta-band__inner { text-align: center; max-width: 40rem; margin: 0 auto; }
.cta-band p { color: var(--ink-soft); margin: 0.7rem 0 1.5rem; }

/* ===== Footer ===== */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.8); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.footer .brand__name { color: var(--white); }
.footer .brand__tagline { color: var(--gold-light); }
.footer__brand { display: flex; flex-direction: column; }
.footer__contact a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0.62rem 0;
  margin: -0.62rem 0;
}
.footer__contact a:hover { text-decoration: underline; }
.footer__contact p { margin-bottom: 0.3rem; }
.footer__nav { display: flex; flex-direction: column; }
.footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.62rem 0;
}
.footer__nav a:hover { color: var(--gold-light); }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  padding-bottom: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Team ===== */
.team__banner {
  margin-bottom: 2.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.team__banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 60%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem 2rem;
  list-style: none;
}
.team__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 1rem;
}
.team__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
}
.team__monogram {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(185, 141, 79, 0.14), rgba(19, 48, 78, 0.08)),
    var(--white);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy-soft);
  letter-spacing: 0.04em;
}
.team__name { font-size: 1.25rem; margin-bottom: 0.15rem; }
.team__name abbr { text-decoration: none; }
.team__role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.5rem;
}
/* Narrow 4-up column: the bio reads as a one-line caption, not prose.
   Keep it under ~60 characters or it wraps into an unreadable ribbon. */
.team__bio { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }

/* ===== Office gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
}
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery__btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
}
.gallery__btn:disabled { cursor: default; transform: none; box-shadow: none; }
.gallery__btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ===== Lightbox ===== */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  /* the `* { margin: 0 }` reset above cancels the dialog's own centering */
  margin: auto;
  width: fit-content;
  max-width: min(1000px, 92vw);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(13, 34, 57, 0.88); }
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--navy-dark);
}
.lightbox__caption {
  color: var(--white);
  text-align: center;
  font-size: 0.95rem;
  padding: 0.8rem 0 0;
}
.lightbox__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox__close:hover { background: var(--cream); }

/* ===== Hiring (shown only while a position is open; see hiring.js) ===== */
.hiring-band {
  background: var(--gold-pale);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  padding: 0.55rem 0;
}
.hiring-band__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.25rem 1rem;
  text-align: center;
}
.hiring-band p { margin: 0; color: var(--navy); }
.hiring-band a {
  font-weight: 700;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 0.4rem 0;
  margin: -0.4rem 0;
}

.team__join {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.team__join h3 { margin-bottom: 0.2rem; }
.team__join p { color: var(--ink-soft); }

.jobs { display: grid; gap: 1.25rem; }
.job {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
}
.job__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.job__schedule {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.job__summary { color: var(--ink-soft); margin: 0.5rem 0 1rem; max-width: 46rem; }
.job__certs { list-style: none; display: grid; gap: 0.45rem; margin-bottom: 1.4rem; }
.job__certs .tag { margin-left: 0.4rem; }
.job__none { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }
.tag {
  display: inline-block;
  vertical-align: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.tag--required { background: var(--navy); color: var(--white); }
.tag--preferred { background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }

.apply {
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.apply__title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); }
.apply__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; border: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field legend { margin-bottom: 0.35rem; }
.field__hint { font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); margin-left: 0.35rem; }
.field__note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.2rem; }
.field input:not([type="checkbox"]),
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
}
.field input[type="file"] { background: var(--cream); padding: 0.5rem; }
.field textarea { resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.check input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.field .check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.45rem;
  cursor: pointer;
  font-weight: 400;
}
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; accent-color: var(--navy); }
.check .tag { margin-left: 0.4rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.field .choice { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; cursor: pointer; }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.choice input:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.apply__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply__error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}
.apply__error p { margin: 0; }
.apply__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.apply__privacy { font-size: 0.88rem; color: var(--ink-soft); }
.apply__done { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.apply__done:focus { outline: none; }
.apply__done p { color: var(--ink-soft); }
.apply__done .apply__done-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  /* Six nav links plus the call button stop fitting here, so the menu collapses. */
  .nav__toggle { display: block; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: none; }
  .nav__menu a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: none; }
  .nav__cta { padding-top: 0.85rem; }
  .nav__cta .btn { display: block; text-align: center; }

  .team-grid { gap: 2rem 1.25rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 3rem; padding-bottom: 3rem; }
  .hero__card { max-width: 30rem; }
  .services__group { grid-template-columns: 1fr; gap: 0.75rem; }
  .about__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .about__portrait { max-width: 22rem; }
  .insurance__inner { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 720px) {
  .topbar__inner { justify-content: center; text-align: center; }

  .section { padding: 3.2rem 0; }
  .why-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .gallery { grid-template-columns: 1fr; gap: 1rem; }
}

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

@media (max-width: 520px) {
  .apply__row { grid-template-columns: 1fr; }
  .job { padding: 1.3rem 1.2rem; }
  .team-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team__photo { max-width: 16rem; }
  .team__banner img { aspect-ratio: 4 / 3; }
}
