/* Fonts loaded via <link> in HTML for better performance */

:root {
  --bg: #edf6f5;
  --surface: #ffffff;
  --surface-alt: #e8f1f0;
  --primary: #0b6a73;
  --primary-2: #0a4155;
  --accent: #1f9f65;
  --text: #12262b;
  --muted: #4b666b;
  --border: #d2e7e2;
  --shadow-soft: 0 14px 30px rgba(9, 50, 56, 0.09);
  --shadow-strong: 0 28px 60px rgba(9, 50, 56, 0.18);
}

:root[data-theme='dark'] {
  --bg: #07181d;
  --surface: #0d2329;
  --surface-alt: #102a31;
  --primary: #57c7ce;
  --primary-2: #d8f2f3;
  --accent: #6be39d;
  --text: #e7f2f4;
  --muted: #9db4b8;
  --border: #1f3e45;
  --shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 30px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, #f7fbfb 0%, #edf6f5 100%) fixed;
  min-height: 100%;
  scroll-behavior: smooth;
}

html[data-theme='dark'] {
  background: linear-gradient(180deg, #07181d 0%, #091d22 100%) fixed;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
}

body {
  background: transparent;
  font-family: 'IBM Plex Sans Arabic', 'Manrope', sans-serif;
  line-height: 1.75;
  padding-bottom: 88px;
  overflow-x: hidden;
}

body[lang='en'] {
  font-family: 'Manrope', 'IBM Plex Sans Arabic', sans-serif;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.5;
  z-index: -1;
  animation: drift 13s ease-in-out infinite alternate;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: #c1e8dc;
  top: -70px;
  inset-inline-start: -80px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #cce0ef;
  bottom: -90px;
  inset-inline-end: -90px;
  animation-delay: 2s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(18, 74, 83, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 74, 83, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 75%);
  z-index: -2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(210, 231, 226, 0.9);
}

.topbar-row {
  padding: 11px clamp(14px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Section navigation bar ─── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 5px 11px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--primary-2);
  background: rgba(10, 65, 85, 0.07);
}

.nav-link.active {
  color: var(--primary-2);
  background: rgba(10, 65, 85, 0.1);
  border-color: var(--border);
  font-weight: 700;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-2);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-btn {
  border: 1px solid #c7ddd8;
  background: linear-gradient(135deg, #ffffff, #eef6f5);
  color: var(--primary-2);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 18px rgba(10, 65, 85, 0.08);
}

.theme-btn:hover {
  transform: translateY(-1px);
}

:root[data-theme='dark'] .topbar,
:root[data-theme='dark'] .sticky-cta {
  background: rgba(10, 25, 30, 0.82);
  border-color: rgba(88, 164, 171, 0.18);
}

:root[data-theme='dark'] .theme-btn {
  background: linear-gradient(135deg, #143039, #0c2228);
  color: var(--text);
  border-color: #23464d;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.brand {
  font-weight: 800;
  color: var(--primary-2);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid #c7ddd8;
  background: var(--surface);
  color: var(--primary-2);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--primary-2);
  color: #fff;
  border-color: var(--primary-2);
  box-shadow: 0 8px 18px rgba(10, 65, 85, 0.24);
}

main {
  width: min(1480px, 95%);
  margin: clamp(18px, 3vw, 34px) auto 44px;
}

.hero,
.section,
.highlights,
.stats,
.final-cta {
  animation: fadeInUp 0.7s ease both;
}

.hero {
  animation-delay: 0.02s;
}

.stats {
  animation-delay: 0.06s;
}

.highlights {
  animation-delay: 0.1s;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 90% 8%, rgba(28, 140, 101, 0.18), transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #edf8f6 60%, #e8f0f7 100%);
  border: 1px solid #d0e4e0;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(14px, 2.2vw, 28px);
  padding: clamp(16px, 2.5vw, 34px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset-inline-end: -130px;
  top: -130px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 159, 101, 0.22), transparent 70%);
}

.eyebrow {
  color: #1e8d5d;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 3.85rem);
  color: var(--primary-2);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 10px 0 8px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text);
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #d6e8e4;
  box-shadow: 0 8px 18px rgba(10, 65, 85, 0.08);
  color: var(--primary-2);
  font-weight: 700;
  animation: floatBadge 5.5s ease-in-out infinite;
}

.hero-badges span:nth-child(2) {
  animation-delay: 0.6s;
}

.hero-badges span:nth-child(3) {
  animation-delay: 1.2s;
}

.typed-line {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--primary-2);
  font-weight: 700;
}

.typed-prefix {
  color: var(--muted);
}

.typed-words {
  color: var(--accent);
  min-height: 1.4em;
  border-inline-end: 2px solid rgba(31, 159, 101, 0.8);
  padding-inline-end: 6px;
  animation: cursorBlink 1s step-end infinite;
}

.lead {
  margin: 0 0 14px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.hero-point {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d6e8e4;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(10, 65, 85, 0.07);
}

.hero-point strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-2);
}

.hero-point span {
  color: var(--muted);
  font-size: 0.94rem;
}

:root[data-theme='dark'] .hero-point,
:root[data-theme='dark'] .hero-badges span {
  background: rgba(10, 28, 33, 0.84);
  border-color: #203b41;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 590px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #d4e8e3;
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
}

:root[data-theme='dark'] .hero,
:root[data-theme='dark'] .section,
:root[data-theme='dark'] .contact-panel,
:root[data-theme='dark'] .service-item,
:root[data-theme='dark'] .journey-step,
:root[data-theme='dark'] .card,
:root[data-theme='dark'] .stat-card,
:root[data-theme='dark'] .faq-item,
:root[data-theme='dark'] .gallery-item,
:root[data-theme='dark'] .clinic-main {
  background: linear-gradient(180deg, rgba(17, 36, 41, 0.96), rgba(12, 29, 34, 0.96));
  border-color: rgba(114, 173, 179, 0.18);
}

:root[data-theme='dark'] .hero {
  background: radial-gradient(circle at 90% 8%, rgba(61, 153, 158, 0.18), transparent 40%),
    linear-gradient(135deg, #0e2025 0%, #0b1b20 60%, #091419 100%);
}

:root[data-theme='dark'] .gallery-caption,
:root[data-theme='dark'] .contact-points li,
:root[data-theme='dark'] .feature-list li {
  background: rgba(8, 21, 25, 0.9);
  border-color: #203941;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.lang-btn:focus-visible,
.sticky-cta a:focus-visible,
summary:focus-visible {
  outline: 3px solid #f0a43a;
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #0e4e64, #0a4155);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 65, 85, 0.29);
}

.btn-secondary {
  background: linear-gradient(135deg, #0f6e76, #0a5962);
  color: #fff;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #1d9c62, #17824f);
  color: #fff;
}

.btn-primary,
.btn-secondary,
.btn-whatsapp,
.btn-ghost {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after,
.btn-whatsapp::after,
.btn-ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-whatsapp:hover::after,
.btn-ghost:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.stats {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: linear-gradient(180deg, #fff, #f5fbfa);
  border: 1px solid #d3e7e3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-number {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--primary-2);
}

.stat-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.highlights {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, #ffffff, #f6fbfa);
  border: 1px solid #d3e7e3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--primary-2);
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  margin: 12px 0;
  background: var(--surface);
  border: 1px solid #d3e7e3;
  border-radius: 18px;
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: var(--shadow-soft);
}

.section-alt {
  background: var(--surface-alt);
}

.section-head h2 {
  margin: 0 0 4px;
  color: var(--primary-2);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.service-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  min-height: 90px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(12, 58, 63, 0.08);
}

.service-item h3 {
  margin: 0;
  color: var(--primary-2);
  font-size: 1rem;
}

.chip-grid {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(10, 65, 85, 0.08);
}

.feature-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
}

.journey-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.journey-step {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(12, 58, 63, 0.08);
}

.journey-step .step-number {
  margin: 0 0 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-2);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.journey-step h3 {
  margin: 0 0 6px;
  color: var(--primary-2);
  font-size: 1rem;
}

.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.clinic-showcase {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}

.clinic-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.clinic-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.clinic-rail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.clinic-rail-item strong {
  display: block;
  color: var(--primary-2);
  margin-bottom: 4px;
}

.clinic-rail-item span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.clinic-main {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #d2e5e2;
  background:
    linear-gradient(135deg, rgba(10, 65, 85, 0.12), rgba(31, 159, 101, 0.08)),
    url('Aya.jpeg') center/cover no-repeat;
}

.clinic-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
}

.clinic-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(7, 28, 36, 0.82));
}

.clinic-overlay p {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
}

.clinic-overlay span {
  display: block;
  color: #dff4ee;
}

.gallery-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #d2e5e2;
  box-shadow: var(--shadow-soft);
}

.gallery-visual {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(10, 65, 85, 0.92), rgba(31, 159, 101, 0.78)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 48%);
}

.gallery-icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.gallery-visual-1 {
  background:
    linear-gradient(135deg, rgba(10, 65, 85, 0.92), rgba(31, 159, 101, 0.8)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 44%);
}

.gallery-visual-2 {
  background:
    linear-gradient(135deg, rgba(14, 78, 100, 0.9), rgba(35, 144, 119, 0.8)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 44%);
}

.gallery-visual-3 {
  background:
    linear-gradient(135deg, rgba(12, 84, 97, 0.9), rgba(11, 117, 108, 0.8)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 42%);
}

.gallery-caption {
  padding: 12px 14px;
  background: var(--surface);
}

.gallery-caption strong {
  display: block;
  color: var(--primary-2);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.gallery-caption span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

:root[data-theme='dark'] .clinic-rail-item {
  background: rgba(10, 28, 33, 0.9);
  border-color: #203941;
}

:root[data-theme='dark'] .nav-link:hover,
:root[data-theme='dark'] .nav-link.active {
  background: rgba(87, 199, 206, 0.1);
  border-color: var(--border);
}

:root[data-theme='dark'] .orb-1 {
  background: rgba(57, 130, 140, 0.4);
}

:root[data-theme='dark'] .orb-2 {
  background: rgba(40, 90, 130, 0.35);
}

.about-text {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
}

.schedule {
  background: linear-gradient(135deg, #0f6a72, #0c4e64);
  color: #fff;
  box-shadow: 0 20px 42px rgba(11, 63, 81, 0.28);
}

.schedule h2,
.schedule p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-2);
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.address {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.contact-panel {
  background: linear-gradient(180deg, #fff, #f6fbfa);
  border: 1px solid #d3e7e3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.contact-panel-side h3 {
  margin: 0 0 10px;
  color: var(--primary-2);
  font-size: 1.05rem;
}

.contact-points {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
}

.contact-map-btn {
  width: 100%;
}

.final-cta {
  margin: 12px 0;
  background: linear-gradient(135deg, #0f5769, #0d475c);
  color: #fff;
  border-radius: 20px;
  padding: clamp(18px, 2.6vw, 30px);
  box-shadow: var(--shadow-strong);
}

.final-track {
  margin: 12px 0 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  background-size: 240px 100%;
  animation: sweep 3s linear infinite;
}

.card,
.service-item,
.journey-step,
.gallery-item,
.contact-panel,
.stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.service-item:hover,
.journey-step:hover,
.gallery-item:hover,
.contact-panel:hover,
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(9, 50, 56, 0.12);
}

.final-cta h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
}

.final-cta p {
  margin: 0 0 14px;
  color: #dfeff3;
}

.final-cta .note {
  color: #dff7ea;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid #cde2de;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px clamp(10px, 3vw, 24px);
  box-shadow: 0 -12px 28px rgba(6, 36, 44, 0.12);
}

.sticky-cta a {
  text-decoration: none;
  background: var(--primary-2);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 0.92rem;
  flex: 1;
  text-align: center;
}

.sticky-cta a:last-child {
  background: #1f9d62;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible .card,
.reveal.visible .service-item,
.reveal.visible .journey-step,
.reveal.visible .gallery-item,
.reveal.visible .contact-panel,
.reveal.visible .stat-card {
  animation: popIn 0.5s ease both;
}

.reveal.visible .card:nth-child(2),
.reveal.visible .service-item:nth-child(2),
.reveal.visible .journey-step:nth-child(2),
.reveal.visible .gallery-item:nth-child(2) {
  animation-delay: 0.05s;
}

.reveal.visible .card:nth-child(3),
.reveal.visible .service-item:nth-child(3),
.reveal.visible .journey-step:nth-child(3),
.reveal.visible .gallery-item:nth-child(3) {
  animation-delay: 0.1s;
}

.reveal.visible .card:nth-child(4),
.reveal.visible .service-item:nth-child(4),
.reveal.visible .journey-step:nth-child(4),
.reveal.visible .gallery-item:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes drift {
  from {
    transform: translateY(0px) translateX(0px);
  }
  to {
    transform: translateY(22px) translateX(18px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes sweep {
  from {
    background-position: -240px 0;
  }
  to {
    background-position: 240px 0;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cursorBlink {
  0%,
  100% {
    border-color: rgba(31, 159, 101, 0.8);
  }
  50% {
    border-color: transparent;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .stats,
  .highlights,
  .contact-layout,
  .clinic-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clinic-side,
  .clinic-rail,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  main {
    width: min(100%, 96%);
    margin: 18px auto 36px;
  }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .stats,
  .highlights,
  .services-grid,
  .journey-grid,
  .contact-layout,
  .clinic-showcase,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    max-height: 300px;
    height: auto;
  }

  .clinic-main {
    min-height: 240px;
  }

  .btn {
    width: 100%;
  }

  .topbar-row {
    padding: 10px 14px;
  }

  .menu-btn {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 14px 14px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(9, 50, 56, 0.14);
    gap: 2px;
    z-index: 30;
  }

  :root[data-theme='dark'] .site-nav {
    background: rgba(9, 22, 27, 0.97);
    border-color: rgba(88, 164, 171, 0.18);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 8px 12px;
  }
}

@media (min-width: 981px) {
  .sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 20px;
  }
}
