:root {
  --bg: #fbfbfd;
  --text: #1d1d1f;
  --muted: #86868b;
  --accent: #0058a3; /* Deep professional blue */
  --accent-soft: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08); /* Much softer border */
  --white: #ffffff;
  --placeholder: linear-gradient(135deg, #f2f2f7, #ffffff);
  
  /* Shadows for depth instead of borders */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);
  
  --radius: 24px;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 5vw;
  max-width: 1440px;
  margin: 0 auto;
}

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

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

.brand__logo--header {
  max-height: 85px;
}

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

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

.site-nav a {
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s ease;
  font-size: 0.96rem;
  text-decoration: none;
}

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

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

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

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

.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.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-md);
}

.hero__content h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 0.5rem 0 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 400;
}

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

@media (min-width: 900px) {
  .hero__panel {
    grid-template-columns: minmax(260px, 320px) 1fr;
  }
}

.panel-card {
  background: var(--accent);
  color: var(--white);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

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

.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;
  flex: 1;
  align-content: stretch;
}

.promise-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  min-height: 130px; /* Reduced from 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);
  font-weight: 600;
}

.promise-grid h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

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

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

.image-placeholder {
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--placeholder);
  border: none;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.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 {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

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

.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;
}

.image-placeholder .split-bg {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
}

.image-placeholder .split-bg img {
  position: relative;
  width: 50%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.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(260px, 1fr));
  gap: 1.2rem;
}

.hero__services article {
  border: none;
  border-radius: 16px;
  padding: 1.8rem;
  background: var(--accent-soft);
  transition: transform 0.2s ease;
}

.hero__services article:hover {
  transform: scale(1.01);
}

.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.2rem;
  font-weight: 700;
  color: var(--accent);
}

.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);
}

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



.section {
  margin-bottom: 4rem;
}

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

.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: var(--radius);
  padding: 2.5rem;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services__grid article:hover,
.team__cards article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.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;
}

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

.beos__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  background: #0f1724; /* Dark elegant background */
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 4vw, 3.5rem);
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .beos__panel {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.beos__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.beos__visual-frame {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 420px;
  width: 100%;
}

.beos__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 160px;
  margin: 0 auto;
  filter: brightness(0) invert(1); /* Make logo white */
  opacity: 0.9;
}

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

.beos .eyebrow {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
}

.beos__content h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.beos__lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: none;
}

.beos__links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.beos__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-transform: none; /* Cleaner look */
  letter-spacing: normal;
  font-weight: 500;
  color: #0f1724;
  background: var(--white);
  padding: 0.9rem 1.8rem;
  border-radius: 99px;
  transition: transform 0.2s ease;
}

.beos__cta:hover {
  transform: translateY(-2px);
}

.beos__cta::after {
  content: '→';
  font-size: 1.1rem;
  transform: none;
}

.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: var(--radius);
  border: none;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.approach__copy {
  flex: 1;
}

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

.approach__journey article {
  background: var(--accent-soft);
  border-radius: 16px;
  border: none;
  padding: 1.5rem;
  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);
}

.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: #444448;
}

.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;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

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

.highlight {
  background: linear-gradient(135deg, #004e92 0%, #002952 100%);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  border: none;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .highlight {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.highlight__content .eyebrow {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 1rem;
}

.highlight__content h2 {
  color: var(--white);
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 400;
}

.highlight__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: none;
  line-height: 1.6;
}

.highlight__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Force 2x2 grid */
  gap: 1.2rem;
}

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

.highlight__stats > div {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.8rem;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: none;
}

.highlight__stats > div:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.highlight__stats h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.highlight__stats p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.refer {
  margin-bottom: 4rem;
}

.refer__content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .refer__content {
    grid-template-columns: 55% 45%;
  }
}

.refer__intro {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  justify-content: center;
}

.refer__intro h2 {
  margin: 0;
}

.refer__intro p {
  color: var(--muted);
  margin: 0;
  max-width: 55ch;
  line-height: 1.6;
}

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

.refer__visual {
  width: 100%;
  height: 100%;
  min-height: 300px;
  position: relative;
}

.refer__visual .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}

.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-card {
  margin-top: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border); /* Subtle border for definition */
  box-shadow: var(--shadow-sm); /* Softer shadow */
  padding: 0; /* Let grid handle spacing */
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden; /* For border radius on image */
}

@media (min-width: 800px) {
  .doctor-card {
    grid-template-columns: 35% 65%;
    align-items: stretch;
  }
}

.doctor-card__visual {
  position: relative;
  min-height: 300px;
}

.doctor-card__visual .image-placeholder {
  height: 100%;
  width: 100%;
  border-radius: 0; /* Flush with card */
  min-height: 0; /* Reset */
}

.doctor-card__content {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-card__header {
  margin-bottom: 1.5rem;
}

.doctor-card__header h3 {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.doctor-card__bio {
  color: #4a4a4f; /* Slightly softer text */
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.doctor-card__bio p {
  margin: 0 0 1rem;
}

.doctor-credentials {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.5rem;
  margin: 0;
}

@media (max-width: 768px) {
  .doctor-credentials {
    flex-direction: column;
    gap: 1.25rem;
  }
}

.credential dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.credential dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}





.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 {
  max-width: 220px;
}

.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: none;
  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-list,
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

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

.footer__panel-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer__panel-list--compact {
  gap: 0.5rem;
}

.footer__panel-list--compact li {
  padding-bottom: 0.6rem;
}

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

.footer__contact-actions {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.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-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;
  }
}

body.no-scroll {
  overflow: hidden;
}

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

  .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-10px);
  }

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

  .site-nav a {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0;
    border: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
  }
  
  .site-nav.open a {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Stagger animation for links */
  .site-nav.open a:nth-child(1) { transition-delay: 0.1s; }
  .site-nav.open a:nth-child(2) { transition-delay: 0.15s; }
  .site-nav.open a:nth-child(3) { transition-delay: 0.2s; }
  .site-nav.open a:nth-child(4) { transition-delay: 0.25s; }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    z-index: 100; /* Above the menu */
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    position: relative;
    cursor: pointer;
  }
  
  .nav-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    left: 10px;
  }
  
  .nav-toggle span:first-child {
    top: 16px;
  }
  
  .nav-toggle span:last-child {
    top: 26px;
  }
  
  .nav-toggle.active span:first-child {
    transform: rotate(45deg);
    top: 21px;
  }
  
  .nav-toggle.active span:last-child {
    transform: rotate(-45deg);
    top: 21px;
  }
}

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

  .hero__content,
  .panel-card {
    padding: 1.5rem;
  }
  
  .hero__content h1 {
      font-size: 2rem;
      line-height: 1.1;
  }
  
  .btn {
      width: 100%;
  }
  
  .hero__actions {
      flex-direction: column;
      align-items: stretch;
  }
}
@media (max-width: 600px) {
  .promise-grid,
  .gallery__grid,
  .highlight__stats,
  .hero__services {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1.5rem; /* Space for scrollbar if visible, or touch area */
    margin-right: -5vw; /* Bleed to edge */
    padding-right: 5vw; /* Padding for end item */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .promise-grid::-webkit-scrollbar,
  .gallery__grid::-webkit-scrollbar,
  .highlight__stats::-webkit-scrollbar,
  .hero__services::-webkit-scrollbar {
    display: none;
  }

  .promise-grid article,
  .gallery__grid > div,
  .highlight__stats > div,
  .hero__services article {
    min-width: 280px; /* Card width */
    max-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  
  /* Specific adjustments for smaller items */
  .promise-grid article {
      min-width: 160px;
      max-width: 160px;
  }
}

.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 {
  background: var(--white);
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  border: none;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.education-hero h1 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 2rem;
}

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

.education-grid__intro {
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(28, 79, 132, 0.12);
}

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

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--white);
  border-radius: 20px;
  padding: 1.8rem;
  border: none;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-3px);
}

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

.article-card__meta {
  display: flex;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  align-items: center;
}

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

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

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

.article-hero {
  background: var(--white);
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 2.5rem;
}

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

.article-hero h1 {
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

.article-content {
  background: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 4rem);
}

@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;
}

.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;
}
