/* ============================================================
   Eye Care Associates of Nevada — site stylesheet
   Modern, responsive, mobile-first. Works in Chrome, Safari,
   Firefox, and Edge on desktop, tablet (iPad), and phones.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand (drawn from the ECAN logo teal) */
  --teal-900: #0d3a44;
  --teal-800: #124b57;
  --teal-700: #1a6274;
  --teal-600: #23798d;
  --teal-100: #d9ecf0;
  --teal-050: #eef6f8;

  --gold-500: #c9a45c;
  --gold-600: #b08a3e;

  --ink: #1d2b30;
  --ink-soft: #43585f;
  --muted: #64777d;
  --line: #dde7e9;

  --bg: #ffffff;
  --bg-alt: #f4f9fa;
  --surface: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(13, 58, 68, 0.08), 0 1px 2px rgba(13, 58, 68, 0.06);
  --shadow-md: 0 6px 20px rgba(13, 58, 68, 0.10);
  --shadow-lg: 0 16px 40px rgba(13, 58, 68, 0.16);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --container: 1160px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-700);
}

a:hover {
  color: var(--teal-600);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p {
  margin: 0 0 1em;
}

ul {
  padding-left: 1.3em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--teal-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-600);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--teal-800);
  border-color: var(--teal-700);
}

.btn-outline:hover {
  background: var(--teal-050);
  color: var(--teal-800);
}

.btn-light {
  background: #fff;
  color: var(--teal-800);
}

.btn-light:hover {
  color: var(--teal-900);
}

.btn-gold {
  background: var(--gold-500);
  color: #2a2007;
}

.btn-gold:hover {
  background: var(--gold-600);
  color: #fff;
}

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--teal-900);
  color: #cfe4e9;
  font-size: 0.85rem;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
  color: #fff;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 7px;
  padding-bottom: 7px;
}

.top-bar-group {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-500);
  flex: none;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: clamp(120px, 12vw, 168px);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 22px);
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: clamp(0.8rem, 0.5rem + 0.46vw, 0.92rem);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

/* Animated underline grows from the left on hover */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -2px;
  height: 2px;
  background: var(--teal-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover {
  color: var(--teal-700);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a[aria-current]::after {
  display: none;
}

.main-nav a[aria-current] {
  color: var(--teal-800);
  border-bottom-color: var(--gold-500);
  font-weight: 600;
}

.header-cta {
  flex: none;
  padding: 12px clamp(12px, 1.4vw, 20px);
  font-size: clamp(0.78rem, 0.46rem + 0.42vw, 0.88rem);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--teal-900);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--teal-900), var(--teal-700));
  color: #fff;
  overflow: hidden;
}

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

/* Teal scrim: deep on the left where the copy sits, opening to the photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 58, 68, 0.94) 0%,
    rgba(13, 58, 68, 0.78) 45%,
    rgba(13, 58, 68, 0.34) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(56px, 9vw, 120px);
  max-width: 720px;
}

.hero .eyebrow {
  color: var(--gold-500);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #e2eff2;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Slim hero for interior pages */
.page-hero {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-700));
  color: #fff;
}

.page-hero-inner {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  max-width: 800px;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.page-hero p {
  color: #dcecef;
  margin: 0;
  max-width: 62ch;
}

.page-hero .eyebrow {
  color: var(--gold-500);
}

/* Breadcrumb-ish back link */
.back-link {
  display: inline-block;
  color: #cfe4e9;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.back-link:hover {
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-teal {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-800));
  color: #dcecef;
}

.section-teal h2,
.section-teal h3 {
  color: #fff;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.5vw, 30px);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--ink-soft);
}

.card li {
  margin-bottom: 6px;
}

/* Linked photo cards (home services) */
.photo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

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

.photo-card-body {
  padding: 20px 22px 24px;
}

.photo-card h3 {
  margin: 0 0 8px;
}

.photo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-700);
}

.card-more::after {
  content: "\2192";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.photo-card:hover .card-more {
  color: var(--teal-600);
}

.photo-card:hover .card-more::after,
a.card-more:hover::after {
  transform: translateX(4px);
}

/* Icon feature cards */
.feature {
  text-align: left;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-050);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--teal-700);
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: #bcd8de;
  margin-top: 6px;
}

/* ---------- Split (two-column) layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.split .checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-100)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%231a6274" d="M9.55 17.05 4.9 12.4l1.6-1.6 3.05 3.05 7.9-7.9 1.6 1.6z"/></svg>')
    center / 12px no-repeat;
}

/* ---------- Provider cards ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
}

.doctor-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
  color: inherit;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease;
}

.doctor-card:hover img {
  box-shadow: var(--shadow-lg);
}

.doctor-card h3 {
  margin: 16px 0 4px;
  font-size: 1.08rem;
}

.doctor-card .role {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Provider bio page */
.profile {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.profile-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.profile-tags li {
  background: var(--teal-050);
  color: var(--teal-800);
  border: 1px solid var(--teal-100);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-500);
}

.testimonial h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--teal-800);
  margin: 4px 0 10px;
}

.testimonial p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal-900);
}

.testimonial.featured {
  border-left-width: 6px;
}

/* ---------- Video embeds ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 30px);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--teal-900);
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal-600);
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 22px 18px;
  color: var(--ink-soft);
}

/* ---------- Lens chat (sample discussion) ---------- */
.lens-chat {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg {
  max-width: 85%;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.msg .role {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.msg p:last-child,
.msg ul:last-child {
  margin-bottom: 0;
}

.msg.patient {
  align-self: flex-end;
  background: var(--teal-700);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg.patient .role {
  color: var(--teal-100);
}

.msg.educator {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink-soft);
}

.msg.educator .role {
  color: var(--gold-600);
}

/* ---------- Locations / contact ---------- */
.location-card img {
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  margin-bottom: 18px;
}

.location-card address {
  font-style: normal;
  color: var(--ink-soft);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 8;
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-800), var(--teal-600));
  border-radius: var(--radius);
  color: #fff;
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
  color: #d6eaee;
}

.cta-band .btn {
  flex: none;
}

.cta-band a:not(.btn) {
  color: #fff;
  font-weight: 600;
}

/* ---------- Appointment form ---------- */
#appointment {
  scroll-margin-top: 96px; /* keep the anchor clear of the sticky header */
}

.appointment-split {
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.appointment-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3vw, 32px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal-900);
  margin-bottom: 6px;
}

.form-field .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field .req {
  color: var(--gold-600);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
}

.form-field input.field-error {
  border-color: #b3261e;
}

.form-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.form-submit {
  width: 100%;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

/* Confirmation panel (Peak-End: a warm, animated finish) */
/* Focus is moved here programmatically for screen readers; the panel
   swap is the visible cue, so no focus ring needed */
.form-success:focus,
.form-success:focus-visible {
  outline: none;
}

.form-success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(36px, 5vw, 56px) clamp(22px, 3vw, 32px);
  text-align: center;
}

.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--teal-050);
  border: 2px solid var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.form-success.show .success-check {
  transform: scale(1);
  opacity: 1;
}

.success-check svg {
  width: 32px;
  height: 32px;
  fill: var(--teal-700);
}

/* ---------- Notice / info boxes ---------- */
.notice {
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.notice strong {
  color: var(--teal-900);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: #b9d3d9;
  font-size: 0.92rem;
  margin-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(44px, 6vw, 68px) 0 40px;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 16px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #cfe4e9;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8fb2ba;
}

/* ---------- Scroll-reveal (classes added by js/main.js; skipped
   entirely when the visitor prefers reduced motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-more { text-align: center; margin-top: 36px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   Responsive — tablet (≤1100px, e.g. iPad)
   ============================================================ */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    margin: 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav a {
    padding: 14px clamp(16px, 4vw, 32px);
    font-size: 1rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a[aria-current] {
    border-left-color: var(--gold-500);
    background: var(--teal-050);
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    margin-left: auto;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ============================================================
   Responsive — large phones / small tablets (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
  }

  .top-bar-right {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .grid-2,
  .grid-3,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .profile {
    grid-template-columns: 1fr;
  }

  .split-media {
    order: -1;
  }

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

  .profile-photo {
    max-width: 420px;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .msg {
    max-width: 95%;
  }
}

/* ============================================================
   Responsive — phones (≤540px)
   ============================================================ */
@media (max-width: 540px) {
  .grid-4,
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-embed {
    aspect-ratio: 4 / 5;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
