:root {
  --bg: #f7f8fa;
  --text: #1e2432;
  --muted: #5f6675;
  --accent: #1c4f84;
  --accent-soft: #e6edf6;
  --border: #dde1ea;
  --white: #ffffff;
  --placeholder: linear-gradient(135deg, #d7e3f8, #f2f5fb);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --shadow-color: rgba(28, 79, 132, 0.15);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

section {
  scroll-margin-top: 120px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  z-index: 200;
}

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

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

/* Enhanced focus indicators for accessibility (WCAG 2.1 AA compliant) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85); /* Slightly lower opacity for blur effect */
  backdrop-filter: blur(12px); /* Glassmorphism effect */
  box-shadow: 0 6px 20px -6px var(--shadow-color);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 5vw;
}

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

.brand__logo {
  max-height: 72px;
  width: auto;
  display: block;
}


.brand__logo--footer {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  text-align: right;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.site-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  border-radius: 12px;
  background: var(--white);
  justify-content: center;
}

.nav-toggle span {
  height: 2px;
  width: 20px;
  background: var(--text);
  margin: 0 auto;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(28, 79, 132, 0.1);
}

main {
  padding: 3rem 5vw 5rem;
}

@media (max-width: 600px) {
  main {
    padding: 2rem 5vw 4rem;
  }
  
  .section {
    margin-bottom: 3rem;
  }

  .gallery .image-placeholder {
    min-height: 200px;
  }

  /* Slimmer Header for Mobile */
  .header-main {
    padding: 0.75rem 5vw;
  }
  
  .brand__logo {
    max-height: 40px; /* Reduced from 72px */
  }

  /* Thumb-friendly Full Width Actions */
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  /* Compact Footer */
  .site-footer {
    padding: 2rem 5vw;
    gap: 2rem;
  }

  /* Prevent iOS Zoom on inputs */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Prevent huge images in cards */
  .location-card__media img {
    max-height: 200px;
  }

  /* Better Typography Scaling */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.hero__content {
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-radius: 24px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.hero__content h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.hero__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

.hero__list li {
  padding-left: 1.5rem;
  position: relative;
}

.hero__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.65rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-placeholder {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(221, 225, 234, 0.6);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder span {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: transparent;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero__panel {
    grid-template-columns: minmax(260px, 320px) 1fr;
  }
  .hero__visual {
    height: 100%;
  }
  .hero__visual .image-placeholder {
    flex: 1;
  }
}

@media (max-width: 900px) {
  .clinic-detail,
  .clinic-detail--reverse {
    grid-template-columns: 1fr;
    grid-template-areas: 
      'media'
      'content';
    gap: 0;
  }
  
  .clinic-detail__media .image-placeholder {
    max-height: 300px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    box-shadow: none;
  }

  .clinic-detail__content {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    margin-top: -1px; /* seamless border join */
    padding-top: 1.5rem;
  }
}

.panel-card {
  background: var(--white);
  color: var(--text);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: 24px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
  align-items: center;
  text-align: center;
}

.panel-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.panel-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  align-items: center;
}

.panel-card__header .eyebrow {
  color: var(--accent);
  letter-spacing: 0.28em;
}

.panel-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  width: 100%;
  justify-items: center;
}

.panel-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid rgba(221, 225, 234, 0.6);
  min-height: 0;
}

.panel-card__stat strong {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.panel-card__stat p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.panel-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.promise-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
}

.promise-grid span {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.promise-grid h4 {
  margin: 0;
  font-size: 1.05rem;
}

.promise-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-placeholder img,
.doctor-profile__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.image-placeholder::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 40%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  border-radius: inherit;
  z-index: 0;
}

.image-placeholder span {
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.hero__visual .image-placeholder {
  min-height: 200px;
  padding: 1.4rem;
}

.hero__visual .image-placeholder.tall {
  min-height: 200px;
}

.hero__visual .image-placeholder span {
  left: 50%;
  top: auto;
  bottom: 1.25rem;
  transform: translateX(-50%);
  text-align: center;
  width: 80%;
  letter-spacing: 0.16em;
}

.image-placeholder.tall {
  min-height: 320px;
}

.image-placeholder.soft {
  background: linear-gradient(135deg, #f9f5f1, #ebe2da);
  color: #7c5a3b;
  border-color: rgba(124, 90, 59, 0.15);
}

.image-placeholder.wide {
  grid-column: span 2;
  min-height: 260px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.hero__services {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.hero__services article {
  border: 1px solid rgba(221, 225, 234, 0.6);
  border-radius: 20px;
  padding: 1.5rem;
  background: var(--white);
}

.hero__meta {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hero__services h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.hero__services p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(28, 79, 132, 0.2);
}

.btn.secondary {
  background: var(--text);
  color: var(--white);
}

.btn.ghost {
  background: rgba(28, 79, 132, 0.1);
  color: var(--accent);
  border: 1px solid rgba(28, 79, 132, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
  transform: translateY(-2px);
}

.btn.primary:focus-visible {
  outline-color: var(--accent);
  box-shadow: 0 10px 30px rgba(28, 79, 132, 0.3), 0 0 0 3px rgba(28, 79, 132, 0.2);
}

.btn.ghost:focus-visible {
  outline-color: var(--accent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.section {
  margin-bottom: 4rem;
}

.section__intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.philosophy {
  background: var(--white);
  border-radius: 32px;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(221, 225, 234, 0.6);
  box-shadow: 0 28px 80px var(--shadow-color);
}

.philosophy .section__intro {
  margin-bottom: 2.3rem;
  max-width: 100%;
}

.philosophy .section__lead {
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}

@media (max-width: 768px) {
  .philosophy .section__lead {
    white-space: normal;
  }
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  counter-reset: philosophy;
}

.philosophy__card {
  background: var(--bg);
  border-radius: 24px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: 1.5rem 1.6rem 1.9rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.philosophy__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 79, 132, 0.08), rgba(28, 79, 132, 0));
  opacity: 0.6;
  pointer-events: none;
}

.philosophy__card::after {
  counter-increment: philosophy;
  content: '0' counter(philosophy);
  position: absolute;
  top: 1.3rem;
  right: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(30, 36, 50, 0.35);
}

.philosophy__card > * {
  position: relative;
  z-index: 1;
}

.philosophy__card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.philosophy__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.philosophy__card:hover::before {
  opacity: 1;
}

.services__grid,
.team__cards,
.testimonial-grid,
.highlight__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.services__grid article,
.team__cards article,
.testimonial-grid blockquote,
.highlight__stats > div {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(221, 225, 234, 0.6);
}

.services__grid h3,
.team__cards h3,
.highlight__stats h3 {
  margin-top: 0;
}

.services__grid ul,
.team__cards ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-card--ophthalmology {
  background: linear-gradient(135deg, #f1f6ff, #e7eff9);
  border-color: rgba(47, 85, 103, 0.2);
}

.category-card--oculoplastics {
  background: linear-gradient(135deg, #fef3ec, #fde7dc);
  border-color: rgba(184, 139, 60, 0.2);
}

.category-card--aesthetics {
  background: linear-gradient(135deg, #f4efff, #efe6fb);
  border-color: rgba(109, 82, 178, 0.2);
}

.category-card--guidance {
  background: linear-gradient(135deg, #eef9f4, #e3f3ed);
  border-color: rgba(91, 155, 129, 0.25);
}

.category-card__cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.scope-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.approach__narrative {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.approach__copy {
  flex: 1;
}

.approach__journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.approach__journey article {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.journey-step__media {
  min-height: 120px;
  margin: -1.25rem -1.25rem 0;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.2rem;
  font-size: 1rem;
  color: var(--accent);
}

.approach__journey h4 {
  margin: 0;
}

.approach__journey p {
  margin: 0;
  color: var(--muted);
}

.clinic-detail {
  display: grid;
  grid-template-columns: minmax(360px, 1.6fr) minmax(260px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  grid-template-areas: 'content media';
  margin-bottom: 4rem;
  width: 100%;
}

.clinic-detail__content {
  grid-area: content;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clinic-detail__content h2,
.clinic-detail__content p {
  margin: 0;
}

.clinic-detail__media {
  grid-area: media;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.clinic-detail__media .image-placeholder {
  width: 100%;
}

.clinic-detail__list {
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.clinic-detail__cta {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.clinic-detail--reverse {
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.6fr);
  grid-template-areas: 'media content';
}

.approach__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.approach__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}

.approach__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.6rem;
}

.steps {
  display: grid;
  gap: 1rem;
}

.specialty-grid {
  background: var(--white);
  border-radius: 36px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 30px 90px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.specialty-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(28, 79, 132, 0.15), transparent 60%);
  pointer-events: none;
}

.specialty-grid__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.specialty-card {
  background: var(--bg);
  border-radius: 28px;
  border: 1px solid rgba(28, 79, 132, 0.15);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.specialty-card::before {
  content: '';
  height: 4px;
  width: 54px;
  border-radius: 999px;
  background: var(--accent);
  display: block;
  opacity: 0.7;
}

.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px -15px var(--shadow-color);
}

.specialty-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(28, 79, 132, 0.12);
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.specialty-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.specialty-card p {
  margin: 0;
  color: var(--muted);
}

.specialty-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text);
}

.specialty-card ul li {
  position: relative;
  padding-left: 1.2rem;
  font-weight: 500;
}

.specialty-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.doctor-profile {
  background: var(--white);
  border-radius: 36px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
  position: relative;
}

.doctor-profile::after {
  content: '';
  position: absolute;
  inset: 1.2rem;
  border-radius: 32px;
  border: 1px dashed rgba(28, 79, 132, 0.15);
  pointer-events: none;
}

.doctor-profile__image {
  position: relative;
  z-index: 1;
}

.doctor-profile__image .image-placeholder {
  border-radius: 28px;
  min-height: 100%;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.doctor-profile__bio {
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doctor-profile__bio::before {
  content: '';
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.doctor-profile__bio h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.doctor-profile__bio p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.doctor-profile__bio p.eyebrow {
  color: var(--accent);
  letter-spacing: 0.28em;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.resource-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 1rem 1.25rem 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card--wide {
  grid-column: span 2;
}

.cta-band {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-band--compact {
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.cta-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cta-card {
  background: linear-gradient(135deg, #f7f2ec, #f0f6fa);
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(184, 139, 60, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.step {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(221, 225, 234, 0.6);
}

.step span {
  font-weight: 600;
  color: var(--muted);
}

.highlight {
  background: var(--accent-soft);
  border-radius: 32px;
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  border: 1px solid rgba(221, 225, 234, 0.6);
}

.highlight__stats > div {
  background: transparent;
  border: none;
  padding: 0;
}

.refer {
  margin-bottom: 4rem;
  background: var(--accent-soft);
  border-radius: 32px;
  padding: 3rem;
  border: 1px solid rgba(221, 225, 234, 0.6);
  color: var(--text);
}

.refer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .refer__content {
    grid-template-columns: 1fr;
  }
}

.refer__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.refer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.refer__timeline {
  margin-top: 0.5rem;
  background: var(--white);
  border-radius: 28px;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  border: 1px solid rgba(221, 225, 234, 0.6);
}

.timeline-step {
  border: 1px solid rgba(221, 225, 234, 0.6);
  border-radius: 20px;
  padding: 1.2rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timeline-step__number {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-step__label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--muted);
}

.timeline-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .refer__timeline {
    grid-template-columns: 1fr;
  }
}

.team__cards article {
  min-height: 220px;
}

.team__card--full {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .team__card--full {
    grid-column: span 1;
  }
}

.doctor-profile {
  margin-top: 2rem;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.5rem;
}

.doctor-profile__bio h3 {
  margin-top: 0.3rem;
}

@media (max-width: 720px) {
  .doctor-profile {
    grid-template-columns: 1fr;
  }
}

.testimonials blockquote {
  margin: 0;
  font-style: italic;
}

.site-footer {
  background: linear-gradient(135deg, #0f1724, #132743);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  padding: 2.8rem 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
  color: var(--white);
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__logo .brand__logo {
  width: 100%;
  max-width: 286px;
  max-height: 94px;
  height: auto;
}

.footer__logo p {
  text-align: left;
  text-align-last: auto;
  max-width: 40ch;
  hyphens: none;
  word-break: normal;
  font-size: 0.95rem;
}

.footer__panel {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.footer__panel-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.4rem;
}

.footer__panel--links {
  gap: 1rem;
}

.footer__panel--visit {
  gap: 1.25rem;
}

.footer__panel-list,
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__panel-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.footer__panel-list li:last-child a {
  border-bottom: none;
}

.footer__panel-list a::after {
  content: '↗';
  font-size: 0.85rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer__panel-list a:hover::after,
.footer__panel-list a:focus-visible::after {
  transform: translateY(-2px);
  opacity: 1;
}

.footer__visit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__visit-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__visit-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer__visit-list a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer__visit-list a::after {
  content: '↗';
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer__visit-list a:hover::after,
.footer__visit-list a:focus-visible::after {
  transform: translateY(-2px);
  opacity: 1;
}

.footer__visit-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.footer__contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__contact-list li:last-child {
  border-bottom: none;
}

.footer__contact-list span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__panel--cta {
  background: rgba(255, 255, 255, 0.08);
}

.footer__panel--cta .btn {
  align-self: flex-start;
}

.footer-directions {
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.footer-directions::after {
  content: '↗';
}

.footer-bottom {
  background: #0b101c;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  font-size: 0.9rem;
}

.footer-bottom__links {
  display: flex;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}

.delay-4 {
  animation-delay: 0.48s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Mobile navigation backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .header-main {
    position: relative;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 5vw 2rem;
    box-shadow: 0 18px 36px rgba(15, 23, 36, 0.12);
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(221, 225, 234, 0.6);
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .site-nav.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    display: block;
    padding: 0.2rem 0;
    text-align: left;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .header-main {
    flex-direction: row;
  }

  .hero__content,
  .panel-card {
    padding: 2rem;
  }
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery .image-placeholder {
  min-height: 220px;
}

.gallery .image-placeholder.tall {
  min-height: 320px;
}

.gallery .image-placeholder.wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .gallery .image-placeholder.wide {
    grid-column: span 1;
  }
}

/* Patient education */
.education-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(240px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2.2rem, 4vw, 3.6rem);
  border-radius: 32px;
  border: 1px solid rgba(19, 28, 43, 0.08);
  background: radial-gradient(circle at top left, rgba(28, 79, 132, 0.08), transparent 55%),
    linear-gradient(135deg, #fdfefe, #f3f5fb);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 960px) {
  .education-hero {
    grid-template-columns: 1fr;
  }
}

.education-hero h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.education-hero__stats {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.education-hero__stats div {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(28, 79, 132, 0.1);
  text-align: left;
}

.education-hero__stats span {
  font-size: 2rem;
  font-weight: 600;
  display: block;
  color: var(--accent);
  line-height: 1.1;
}

.education-hero__stats p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.education-hero__panel {
  background: var(--white);
  border-radius: 28px;
  border: 1px solid rgba(19, 28, 43, 0.08);
  padding: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.education-hero__panel h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.education-hero__panel-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
}

.education-filters {
  background: var(--white);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(221, 225, 234, 0.6);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-filters__search label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.education-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f6f8fb;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(28, 79, 132, 0.08);
}

.education-search svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}

.education-search input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 1rem;
  outline: none;
}

.education-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 79, 132, 0.15);
}

.education-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-chip {
  border: 1px solid rgba(28, 79, 132, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(28, 79, 132, 0.1);
}

.filter-chip.is-active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(28, 79, 132, 0.25);
}

.filter-chip.is-active:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
  box-shadow: 0 12px 24px rgba(28, 79, 132, 0.25), 0 0 0 4px rgba(30, 36, 50, 0.15);
}

.education-filters__count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.education-collection__intro {
  margin-bottom: 1.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  background: var(--white);
  border-radius: 24px;
  padding: clamp(1.5rem, 2vw, 1.9rem);
  border: 1px solid rgba(19, 28, 43, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.article-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 10px 30px -10px var(--shadow-color), 0 0 0 5px rgba(28, 79, 132, 0.1);
}

.article-card.is-hidden {
  display: none;
}

.article-card__category {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.75rem;
}

.article-card__content h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.25rem;
}

.article-card__content p {
  margin: 0;
  color: var(--muted);
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
  font-weight: 600;
}

.article-card__meta-text {
  color: var(--muted);
  font-size: 0.85rem;
}

.article-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(28, 79, 132, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-card--compact {
  padding: 1.2rem 1.4rem;
}

.article-layout {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 3rem 2.5vw 4.5rem;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 280px);
  gap: clamp(1.8rem, 3vw, 2.8rem);
  align-items: flex-start;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .article-shell {
    grid-template-columns: 1fr;
  }
}

.article-main {
  min-width: 0;
}

.article-hero {
  background: var(--white);
  border-radius: 32px;
  border: 1px solid rgba(19, 28, 43, 0.08);
  padding: clamp(2rem, 3vw, 3rem);
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.article-hero__category {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--muted);
}

.article-hero h1 {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
}

.article-hero__meta {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-content {
  background: var(--white);
  border: 1px solid rgba(221, 225, 234, 0.6);
  border-radius: 32px;
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

@media (max-width: 640px) {
  .article-hero,
  .article-content {
    padding: 1.75rem;
  }
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin: 0 0 1rem;
}

.article-content ul {
  padding-left: 1.4rem;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid rgba(28, 79, 132, 0.2);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: rgba(230, 237, 246, 0.6);
  font-weight: 600;
  color: var(--accent);
}

.article-content tbody tr:nth-child(even) td {
  background: rgba(28, 79, 132, 0.03);
}

.article-sidebar {
  position: sticky;
  top: 120px;
}

.article-sidebar__card {
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid rgba(19, 28, 43, 0.06);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 32px var(--shadow-color);
}

.article-sidebar__meta {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.article-sidebar__meta span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.article-sidebar__meta p {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.article-sidebar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--accent);
}

.related-articles {
  margin-top: 3rem;
}

.related-articles__header {
  margin-bottom: 1rem;
}

.related-articles__header h2 {
  margin: 0.4rem 0 0;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.locations__contact-panel {
  margin: clamp(1rem, 3vw, 1.8rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, #edf4fb, #f7f2ec);
  border-radius: 24px;
  border: 1px solid rgba(19, 28, 43, 0.08);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 0.8fr);
  gap: 1.25rem;
  align-items: center;
}

.locations__contact-panel-copy h3 {
  margin: 0.2rem 0 0;
}

.locations__contact-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.locations__contact-panel-grid div {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.locations__contact-panel-grid span:first-child {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.locations__contact-panel-grid a {
  font-weight: 600;
  color: var(--accent);
}

.locations__grid--pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.location-card__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 18px 36px rgba(19, 28, 43, 0.06);
}

.location-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.location-card__address-link {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-radius: 18px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  background: var(--surface-alt);
  padding: 1rem 1.2rem;
  text-align: center;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card__address-link span:last-child {
  font-weight: 500;
  color: var(--muted);
}

.location-card__address-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px var(--shadow-color);
}

.locations__grid .location-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-panel {
  background: var(--white);
  border-radius: 40px;
  border: 1px solid rgba(221, 225, 234, 0.6);
  padding: clamp(2rem, 4vw, 3.8rem);
  box-shadow: 0 40px 110px rgba(19, 28, 43, 0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(28, 79, 132, 0.18), transparent 60%);
  opacity: 0.7;
  z-index: 0;
}

.contact-panel--story::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(28, 79, 132, 0.08);
  bottom: -90px;
  right: -60px;
  filter: blur(0.5px);
  z-index: 0;
}

.contact-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-panel__content h2 {
  margin: 0;
  font-size: clamp(1.36rem, 2vw, 1.7rem);
}

.contact-panel__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-panel__referrals {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  padding: 2.4rem;
  border: 1px solid rgba(28, 79, 132, 0.15);
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-panel__referrals--logo-only {
  background: linear-gradient(135deg, rgba(247, 242, 236, 0.85), rgba(240, 246, 250, 0.95));
  box-shadow: 0 25px 50px var(--shadow-color);
}

.contact-panel__logo {
  width: 100%;
  max-width: clamp(260px, 39vw, 416px);
  max-height: 104px;
  height: auto;
  opacity: 0.8;
  filter: drop-shadow(0 12px 24px rgba(19, 28, 43, 0.15));
  object-fit: contain;
}

.blec-link {
  margin-top: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.blec-link::after {
  content: '↗';
  font-size: 0.9rem;
}

.info-hero {
  background: linear-gradient(140deg, rgba(21, 108, 164, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(221, 225, 234, 0.6);
  border-radius: 44px;
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: 0 35px 90px rgba(19, 28, 43, 0.12);
  margin-bottom: 3rem;
}

.info-hero > p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}

.info-hero__stats {
  margin: 2rem 0 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.info-hero__stats div {
  border-radius: 26px;
  border: 1px solid rgba(28, 79, 132, 0.18);
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.info-hero__stats span {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.info-hero__stats p {
  margin: 0;
  color: var(--muted);
}

.info-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.info-hero__grid article {
  border-radius: 26px;
  border: 1px solid rgba(28, 79, 132, 0.16);
  padding: 1.8rem;
  background: var(--white);
  box-shadow: 0 18px 44px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-hero__grid h2 {
  margin: 0;
  font-size: 1.3rem;
}

.info-hero__grid p {
  margin: 0;
  color: var(--muted);
}

.info-hero__grid a {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.info-hero__grid a::after {
  content: '→';
  font-size: 0.95rem;
}

.info-panels {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 3.5rem 0;
}

.info-panels__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

.info-panels__intro h2 {
  margin: 0;
  color: var(--text);
}

.info-panels__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-panel {
  border: 1px solid rgba(221, 225, 234, 0.6);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 26px 60px var(--shadow-color);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-panel[open] {
  border-color: rgba(28, 79, 132, 0.35);
  box-shadow: 0 28px 80px var(--shadow-color);
}

.info-panel summary {
  list-style: none;
  padding: 1.4rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

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

.info-panel summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.info-panel[open] summary::after {
  transform: rotate(-135deg);
}

.info-panel summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 20px;
}

.info-panel__content {
  padding: 0 1.8rem 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted);
}

.info-panel__content p {
  margin: 0;
}

.info-panel__content strong {
  color: var(--text);
}

.info-panel__content h4 {
  margin: 1.2rem 0 0.1rem;
  font-size: 1rem;
}

.info-panel__content ul,
.info-panel__content ol {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-panel__content li {
  margin: 0;
}

.info-cta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.info-cta__card {
  width: min(720px, 100%);
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 36px;
  border: 1px solid rgba(28, 79, 132, 0.25);
  background: linear-gradient(135deg, rgba(28, 79, 132, 0.08), rgba(28, 79, 132, 0.18));
  box-shadow: 0 28px 70px rgba(19, 28, 43, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-cta__card h2 {
  margin: 0;
}

.info-cta__card p {
  margin: 0;
  color: var(--muted);
}

.info-cta__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.info-cta__actions .btn {
  min-width: 200px;
}

@media (max-width: 900px) {
  .info-hero {
    padding: 2rem;
  }

  .info-hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .info-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .info-panel summary {
    position: relative;
    padding-right: 3.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .info-panel summary::after {
    position: absolute;
    right: 1.5rem;
    top: 1.9rem;
  }
}

@media (max-width: 820px) {
  .locations__contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

.results-gallery {
  border-radius: 32px;
  border: 1px solid rgba(28, 79, 132, 0.15);
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results-gallery__header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
}

.results-gallery__note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.results-gallery__count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.result-card {
  border-radius: 18px;
  border: 1px solid rgba(28, 79, 132, 0.18);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 50px var(--shadow-color);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px rgba(19, 28, 43, 0.12);
}

.result-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 25px 70px rgba(19, 28, 43, 0.15), 0 0 0 5px rgba(28, 79, 132, 0.1);
}

.result-card__media {
  margin: 0;
  position: relative;
}

.result-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.results-empty {
  border-radius: 20px;
  padding: 2rem;
  background: rgba(28, 79, 132, 0.08);
  border: 1px dashed rgba(28, 79, 132, 0.3);
  font-family: 'Inter', sans-serif;
  color: var(--muted);
}

.results-empty code {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.result-card.is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .results-gallery__header {
    flex-direction: column;
  }

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

/* Location Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 36, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(221, 225, 234, 0.6);
}

.modal.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(221, 225, 234, 0.6);
  background: var(--white);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
  transform: rotate(90deg);
}

.modal__header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(221, 225, 234, 0.6);
  background: var(--bg);
}

.modal__header h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.5rem;
}

.modal__address {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal__body {
  padding: 2rem;
}

.modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.modal__gallery .image-placeholder {
  aspect-ratio: 4/3;
  min-height: auto;
  border-radius: 12px;
}

.modal__gallery img {
  border-radius: 12px;
}

.modal__info h4 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.modal__info p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.modal__info strong {
  color: var(--accent);
}

/* Button utility for index.html injection */
.btn--full-width {
  width: 100%;
  justify-content: center;
}

.btn--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .modal {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
  
  .modal__header {
    padding: 1.5rem;
  }
  
  .modal__body {
    padding: 1.5rem;
  }
}
