/* =========================================================
   JOSEPH EYE HOSPITAL - SHARED SITE STYLES
   Use this same file from index.html, about.html, contact.html,
   doctors.html, treatments.html, facilities.html, etc.
========================================================= */

@font-face {
  font-family: Oxygen;
  src: url("fonts/Oxygen.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("fonts/Poppins.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #204066;
  --primary-dark: #0b4b73;
  --accent: #12b48b;
  --accent-dark: #0c9070;
  --teal: #16b5b8;
  --heading: #173f49;
  --text: #5f6f78;
  --muted: #788992;
  --light: #f5fafa;
  --light-blue: #edf7ff;
  --border: #e3ecef;
  --white: #fff;
  --footer: #092331;
  --container: 1320px;
  --shadow: 0 15px 45px rgba(20, 65, 80, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--text);
  font-family: Oxygen, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 180, 139, 0.4);
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
}
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 5000;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus {
  top: 0;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid #e8edf0;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.header-top {
  background: #fff;
}
.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.site-logo {
  display: block;
  width: 250px;
  flex: 0 0 auto;
}
.site-logo img {
  width: 100%;
  height: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  margin-left: auto;
}
.appointment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 21px;
  min-height: 46px;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  font:
    700 14px Poppins,
    sans-serif;
  letter-spacing: 0.2px;
  transition: 0.25s ease;
}
.appointment-link:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font:
    700 22px Oxygen,
    sans-serif;
  white-space: nowrap;
}
.phone-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff6900;
  color: #fff;
  font-size: 18px;
  transition: 0.25s ease;
}
.phone-link:hover .phone-icon {
  transform: scale(1.06);
}
.desktop-nav {
  background: #fff;
  border-top: 1px solid #f0f3f5;
  border-bottom: 1px solid #cfe0ef;
  box-shadow: 0 2px 8px rgba(165, 165, 165, 0.25);
}
.desktop-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.desktop-menu a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 25px;
  color: #26364d;
  font:
    600 15px Poppins,
    sans-serif;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.desktop-menu a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.desktop-menu a:hover,
.desktop-menu a.active {
  color: #078c99;
}
.desktop-menu a:hover::after,
.desktop-menu a.active::after {
  transform: scaleX(1);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #f5f8fb;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #26364d;
  border-radius: 2px;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1990;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}
.menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(390px, 90vw);
  height: 100dvh;
  z-index: 2000;
  padding: 20px 24px;
  background: #fff;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  transition: right 0.35s ease;
}
.mobile-menu.is-open {
  right: 0;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 20px;
  margin-bottom: 5px;
  border-bottom: 1px solid #e9eef1;
  color: var(--heading);
  font:
    700 20px Poppins,
    sans-serif;
}
.menu-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #26364d;
  cursor: pointer;
  font-size: 21px;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  border-bottom: 1px solid #edf0f2;
}
.mobile-menu a {
  display: flex;
  padding: 13px 4px;
  color: #26364d;
  font:
    600 15px Poppins,
    sans-serif;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent-dark);
}

/* =========================================================
   HERO CAROUSEL
========================================================= */
.hero-carousel {
  background: #f9f6f0 url("../images/slider-bg.png") left center/cover no-repeat;
  overflow: hidden;
  padding: 0 0 24px;
}
.hero-carousel-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.hero-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 410px;
  display: flex;
  align-items: center;
  padding: 55px 35px;
}
.hero-content {
  max-width: 820px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font:
    700 14px Poppins,
    sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.hero-content h1,
.hero-content h2 {
  margin: 0 0 20px;
  color: #0b1e38;
  font:
    600 clamp(2rem, 4.2vw, 3.25rem)/1.15 Poppins,
    sans-serif;
  letter-spacing: -0.8px;
}
.hero-content h1 span,
.hero-content h2 span {
  color: #e45670;
  text-shadow: 0 3px 3px rgba(0, 0, 0, 0.18);
}
.hero-content > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 25px;
  color: #3d4e66;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 23px;
  border-radius: 40px;
  background: #0b1e38;
  color: #fff;
  font:
    600 14px Poppins,
    sans-serif;
  box-shadow: 0 5px 15px rgba(11, 30, 56, 0.12);
  transition: 0.2s ease;
}
.hero-button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 0;
}
.slide-counter {
  flex: 0 0 auto;
  min-width: 60px;
  padding: 5px 12px;
  border-radius: 40px;
  background: #f0f6fe;
  color: #4a5f7a;
  font:
    600 13px Poppins,
    sans-serif;
  text-align: center;
}
.slide-dots {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.slide-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cdd9e9;
  cursor: pointer;
  transition: 0.2s ease;
}
.slide-dot.active {
  width: 30px;
  border-radius: 20px;
  background: #0b1e38;
}
.slide-arrows {
  display: flex;
  gap: 8px;
}
.slide-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f4fc;
  color: #1b2f4a;
  cursor: pointer;
  transition: 0.2s ease;
}
.slide-arrow:hover {
  background: #0b1e38;
  color: #fff;
}

/* =========================================================
   SHARED SECTIONS
========================================================= */
.section-space {
  padding: 80px 0;
}
.section-space-sm {
  padding: 60px 0;
}
.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-heading.compact {
  margin-bottom: 35px;
}
.section-heading h2 {
  margin: 0;
  color: var(--primary);
  font:
    600 clamp(28px, 3.2vw, 38px)/1.25 Poppins,
    sans-serif;
}
.section-heading h2 span {
  color: var(--accent);
}
.section-heading > p:last-child {
  max-width: 680px;
  margin: 18px auto 0;
  color: #718096;
  font-size: 16px;
  line-height: 1.8;
}
.heading-line,
.content-line {
  width: 55px;
  height: 2px;
  background: var(--accent);
  position: relative;
  margin: 20px auto;
}
.heading-line span {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

/* =========================================================
   TREATMENTS / VISION
========================================================= */
.vision-section {
  background: #fff;
}
.treatment-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(43, 52, 59, 0.08);
  transition: 0.3s ease;
}
.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(43, 52, 59, 0.12);
}
.treatment-image {
  height: 220px;
  overflow: hidden;
}
.treatment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.treatment-card:hover .treatment-image img {
  transform: scale(1.04);
}
.treatment-content {
  padding: 24px;
}
.treatment-content h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font:
    700 20px/1.3 Poppins,
    sans-serif;
}
.treatment-content p {
  margin: 0 0 17px;
  color: #666;
  font-size: 15px;
  line-height: 1.75;
}
.treatment-content a {
  color: var(--accent);
  font-weight: 700;
}
.vision-cta {
  margin-top: 50px;
  text-align: center;
}
.vision-cta h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font:
    600 21px Poppins,
    sans-serif;
}
.vision-cta p {
  margin: 0;
  color: var(--primary);
  font:
    600 23px Poppins,
    sans-serif;
}
.vision-cta strong {
  color: var(--accent);
}
.outline-button,
.primary-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 25px;
  padding: 10px 24px;
  border-radius: 30px;
  font:
    600 14px Poppins,
    sans-serif;
  transition: 0.25s ease;
}
.outline-button {
  border: 1px solid var(--primary);
  color: var(--primary);
}
.outline-button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   COUNTERS
========================================================= */
.counter-section {
  background: var(--light-blue);
}
.counter-box {
  position: relative;
  text-align: center;
  padding: 32px 20px;
}
.counter-box:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  width: 1px;
  height: 56%;
  background: #d2e6f7;
}
.counter-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid #b1d3d6;
  border-radius: 50%;
  background: #e8f7f8;
  color: #13a6ad;
  font-size: 29px;
}
.counter-number {
  color: #123b4a;
  font:
    700 45px/1 Poppins,
    sans-serif;
}
.counter-number span {
  color: var(--accent);
}
.counter-box p {
  margin: 10px 0 0;
  color: #666;
  font-size: 15px;
}

/* =========================================================
   ABOUT
========================================================= */
.about-section {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-image {
  position: relative;
  margin: 0;
}
.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}
.about-image figcaption {
  position: absolute;
  right: -25px;
  bottom: 30px;
  width: 190px;
  padding: 20px;
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.about-image figcaption strong {
  display: block;
  font:
    700 38px/1.2 Poppins,
    sans-serif;
}
.about-image figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}
.about-content .section-kicker {
  margin-bottom: 8px;
}
.about-content h2 {
  margin: 0 0 18px;
  color: var(--primary);
  font:
    600 clamp(28px, 3.2vw, 38px)/1.25 Poppins,
    sans-serif;
}
.about-content h2 span {
  color: var(--accent);
}
.content-line {
  margin: 0 0 24px;
}
.about-content > p {
  margin: 0 0 18px;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
}
.care-features {
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
}
.care-features li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.care-features li > span {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf8fb;
  color: #00a9c7;
  font-size: 19px;
}
.care-features h3 {
  margin: 0 0 3px;
  color: var(--primary);
  font:
    600 17px Poppins,
    sans-serif;
}
.care-features p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}
.primary-button {
  background: var(--primary);
  color: #fff;
}
.primary-button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   FACILITIES
========================================================= */
.facilities-section {
  background: var(--primary);
  color: #fff;
  overflow: visible;
}
.section-heading-light h2 {
  color: #fff;
}
.section-heading-light > p:last-child {
  color: #d6e0e4;
}
.facilities-section .row {
  padding-top: 40px;
}
.facility-card {
  position: relative;
  height: 100%;
  min-height: 295px;
  padding: 56px 26px 28px;
  background: #fff;
  border: 1px solid #e7eff1;
  color: #173b55;
  text-align: center;
  overflow: visible;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.facility-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transition: 0.35s ease;
}
.facility-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.15);
}
.facility-card:hover::before {
  transform: scaleX(1);
}
.facility-icon {
  position: absolute;
  top: -38px;
  left: 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid #e7eff1;
  border-radius: 9px;
  background: #fff;
  color: var(--teal);
  font-size: 30px;
  transform: translateX(-50%);
  box-shadow: 0 8px 25px rgba(23, 59, 85, 0.08);
}

.facility-card:hover .facility-icon {
  color: #ffffff;
  background: #16b5b8;
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 12px 30px rgba(22, 181, 184, 0.25);
}

.facility-card:hover .facility-icon::before {
  background: transparent;
}

.facility-card h3 {
  margin: 0 0 13px;
  color: #173b55;
  font:
    600 19px Poppins,
    sans-serif;
}
.facility-card p {
  margin: 0 0 20px;
  color: #788992;
  font-size: 14px;
  line-height: 1.7;
}
.facility-card a {
  color: #173b55;
  font:
    700 13px Poppins,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.facility-card a:hover {
  color: var(--teal);
}
.light-button {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}
.light-button:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonial-section {
  background: #f5fafa;
  overflow: hidden;
}
.testimonial-card {
  position: relative;
  height: 100%;
  min-height: 320px;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid #e8eeee;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(23, 43, 77, 0.07);
  transition: 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(23, 43, 77, 0.12);
}
.quote-icon {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f9;
  color: #18a4ad;
  font-size: 20px;
}
.rating {
  display: flex;
  gap: 3px;
  margin-bottom: 25px;
  color: #f4b400;
  font-size: 13px;
}
.testimonial-card p {
  margin: 0 0 25px;
  color: #66777d;
  font-size: 15px;
  line-height: 1.75;
}
.testimonial-card h3 {
  margin: 0;
  color: var(--primary);
  font:
    600 16px Poppins,
    sans-serif;
}
.testimonial-card > span {
  display: block;
  margin-top: 3px;
  color: #8a969c;
  font-size: 13px;
}
.testimonial-control {
  width: 48px;
  height: 48px;
  top: 50%;
  margin-top: -24px;
  opacity: 1;
}
.testimonial-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   FOOTER - THREE CONTENT CONTAINERS ONLY
========================================================= */
.site-footer {
  background: var(--footer);
  color: #b9c1c7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.25fr;
  gap: 55px;
  padding: 65px 0 50px;
}
.footer-column h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 11px;
  color: #fff;
  font:
    600 18px Poppins,
    sans-serif;
}
.footer-column h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: #00a9c7;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
  color: #fff;
  font:
    700 27px Poppins,
    sans-serif;
}
.footer-brand span {
  color: #00a9c7;
}
.footer-column > p {
  max-width: 360px;
  margin: 0;
  color: #b9c1c7;
  font-size: 15px;
  line-height: 1.9;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}
.footer-links li {
  margin-bottom: 9px;
}
.footer-links a {
  color: #b9c1c7;
  font-size: 14px;
  transition: 0.2s ease;
}
.footer-links a:hover {
  color: #00a9c7;
}
.footer-contact {
  margin: 0;
  font-style: normal;
}
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 13px;
  color: #b9c1c7;
  font-size: 14px;
  line-height: 1.65;
}
.footer-contact i {
  flex: 0 0 20px;
  color: #00a9c7;
  font-size: 16px;
  margin-top: 3px;
}
.footer-contact a:hover {
  color: #00a9c7;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid #52606a;
  border-radius: 50%;
  font-size: 14px;
  transition: 0.2s ease;
}
.footer-social a:hover {
  color: #fff;
  background: #00a9c7;
  border-color: #00a9c7;
}
.footer-contact strong {
  color: #fff;
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}
.footer-bottom p {
  margin: 0;
  color: #9da7ae;
  font-size: 13px;
  text-align: center;
}

/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-bottom-inner span {
  color: #00a9c7;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  font-size: 13px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent, #0b4b73);
}

.footer-legal span {
  opacity: 0.5;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199px) {
  .site-logo {
    width: 220px;
  }
  .header-actions {
    gap: 20px;
  }
  .appointment-link {
    padding-inline: 16px;
    font-size: 13px;
  }
  .phone-link {
    font-size: 19px;
  }
  .desktop-menu a {
    padding-inline: 11px;
    font-size: 14px;
  }
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 991px) {
  .header-inner {
    min-height: 85px;
  }
  .appointment-link {
    display: none;
  }
  .phone-link {
    font-size: 17px;
  }
  .phone-icon {
    width: 41px;
    height: 41px;
  }
  .hero-slide {
    min-height: 380px;
    padding: 45px 25px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-image img {
    height: 470px;
  }
  .about-image figcaption {
    right: -15px;
  }
  .counter-box:not(:last-child)::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-column:last-child {
    grid-column: 1/-1;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }
  .header-inner {
    position: relative;
    min-height: 70px;
    gap: 10px;
  }
  .site-logo {
    width: 165px;
  }
  .header-actions {
    gap: 0;
  }
  .phone-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 6px;
    font-size: 14px;
  }
  .phone-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
    padding: 7px;
  }
  .hero-slide {
    min-height: auto;
    padding: 40px 10px 30px;
    text-align: center;
  }
  .hero-content {
    max-width: 700px;
    margin-inline: auto;
  }
  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.2;
  }
  .hero-content > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.55;
  }
  .hero-controls {
    flex-wrap: wrap;
    gap: 12px;
    padding-inline: 5px;
  }
  .slide-dots {
    order: 2;
    flex-basis: 100%;
    flex-grow: 1;
  }
  .slide-counter {
    order: 1;
  }
  .slide-arrows {
    order: 3;
  }
  .section-space {
    padding: 55px 0;
  }
  .section-space-sm {
    padding: 50px 0;
  }
  .section-heading {
    margin-bottom: 35px;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .section-heading > p:last-child {
    font-size: 14px;
    line-height: 1.7;
  }
  .treatment-image {
    height: 230px;
  }
  .vision-cta {
    margin-top: 35px;
  }
  .vision-cta h3 {
    font-size: 17px;
  }
  .vision-cta p {
    font-size: 19px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .about-image img {
    height: 360px;
  }
  .about-image figcaption {
    right: 15px;
    bottom: 15px;
    width: 150px;
    padding: 16px;
  }
  .about-image figcaption strong {
    font-size: 28px;
  }
  .about-content h2 {
    font-size: 29px;
  }
  .facility-card {
    min-height: 280px;
  }
  .testimonial-card {
    min-height: auto;
  }
  .testimonial-control {
    width: 40px;
    height: 40px;
  }
  .testimonial-arrow {
    width: 38px;
    height: 38px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 50px 0 35px;
  }
  .footer-column:last-child {
    grid-column: auto;
  }
  .footer-links {
    columns: 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .site-logo {
    width: 135px;
  }
  .phone-link {
    font-size: 12px;
  }
  .phone-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .menu-toggle {
    width: 35px;
    height: 35px;
  }
  .menu-toggle span {
    width: 17px;
    margin: 3px auto;
  }
  .hero-slide {
    padding: 28px 5px 24px;
  }
  .hero-content h1,
  .hero-content h2 {
    font-size: 1.55rem;
  }
  .hero-content > p:not(.eyebrow) {
    font-size: 14px;
  }
  .hero-button {
    min-height: 42px;
    padding: 9px 17px;
    font-size: 13px;
  }
  .slide-arrow {
    width: 37px;
    height: 37px;
  }
  .slide-counter {
    font-size: 12px;
    min-width: 54px;
  }
  .slide-dot {
    width: 9px;
    height: 9px;
  }
  .slide-dot.active {
    width: 24px;
  }
  .about-image img {
    height: 330px;
  }
  .counter-number {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
