/* Royo Hospital — Design System */
:root {
  --primary: #3cac4c;
  --primary-dark: #2a8135;
  --primary-darker: #1f6b2a;
  --primary-light: #e8f5ea;
  --primary-glow: rgba(60, 172, 76, 0.25);
  --accent: #0d4d2b;
  --text: #142318;
  --text-muted: #5a6b5e;
  --text-light: #8a9a8e;
  --surface: #ffffff;
  --surface-alt: #f4f9f5;
  --surface-dark: #0f2418;
  --border: #dce8df;
  --shadow-sm: 0 2px 8px rgba(20, 35, 24, 0.06);
  --shadow-md: 0 8px 30px rgba(20, 35, 24, 0.1);
  --shadow-lg: 0 20px 60px rgba(20, 35, 24, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --header-height: 80px;
  --topbar-height: 42px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-dark); transition: color var(--transition); }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.75vw, 2.125rem); }
h3 { font-size: clamp(1.05rem, 1.75vw, 1.25rem); }

.container {
  width: min(var(--container), 100% - clamp(1.25rem, 4vw, 2.5rem));
  margin-inline: auto;
}

/* ── Top Bar ── */
.top-bar {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-bar__contact span,
.top-bar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.top-bar__contact a:hover { color: var(--primary); }

.top-bar__social {
  display: flex;
  gap: 0.5rem;
}

.top-bar__social a {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background var(--transition), transform var(--transition);
}

.top-bar__social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ── Site Header ── */
.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.site-logo img {
  height: clamp(40px, 5vw, 52px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav .dropdown-menu,
.main-nav .sub-dropdown-menu {
  display: block;
  width: 100%;
}

.main-nav .dropdown-menu > li,
.main-nav .sub-dropdown-menu > li {
  display: block;
  width: 100%;
}

.main-nav > ul > li > a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: white;
  color: var(--primary-dark);
  border-color: white;
}

/* Dropdown */
.main-nav .dropdown { position: relative; }

.main-nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(300px, calc(100vw - 2rem));
  min-width: 220px;
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  list-style: none;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.main-nav .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown-menu li a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.45;
  max-width: 100%;
  box-sizing: border-box;
}

.main-nav .dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Service sub-items — vertical nested list */
.main-nav .dropdown-menu li.dropdown {
  position: relative;
}

.main-nav .dropdown-menu li.dropdown > a {
  display: block;
}

.main-nav .sub-dropdown-menu {
  position: static;
  left: auto;
  top: auto;
  min-width: 0;
  width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: none;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
  list-style: none;
  border: none;
}

.main-nav .dropdown-menu li.dropdown:hover > .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  max-height: 600px;
  padding: 0.25rem 0 0.5rem;
}

.main-nav .sub-dropdown-menu li a {
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-left: 2px solid var(--primary-light);
  margin-left: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.45;
  max-width: 100%;
  box-sizing: border-box;
}

.main-nav .sub-dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-left-color: var(--primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 36, 24, 0.45);
  z-index: 10001;
  cursor: default;
}

.nav-backdrop.visible { display: block; }

/* ── Page offset for fixed header ── */
.page-offset { padding-top: calc(var(--topbar-height) + var(--header-height)); }

/* ── Section utilities ── */
.section {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.section-alt { background: var(--surface-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 1.5vw, 1.025rem);
  margin: 0.5rem 0 0;
}

.services-view-all {
  margin-top: 1.25rem;
}

/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--topbar-height) - var(--header-height));
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  margin-top: calc(var(--topbar-height) + var(--header-height));
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slider .slide.active { opacity: 1; }

.hero-slider .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 36, 24, 0.75) 0%, rgba(15, 36, 24, 0.45) 50%, rgba(60, 172, 76, 0.25) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-text {
  max-width: 720px;
  color: white;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.2s;
}

.slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: white;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin: 0 0 2rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero-dot.active {
  width: 32px;
  background: var(--primary);
}

/* ── Highlights / stats bar ── */
.stats-section {
  position: relative;
  z-index: 5;
  margin-top: -4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.stats-bar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(20, 35, 24, 0.12);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(0.75rem, 1.5vw, 1.25rem);
  position: relative;
  transition: background var(--transition);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.stat-item:hover {
  background: linear-gradient(180deg, var(--primary-light) 0%, rgba(232, 245, 234, 0.35) 100%);
}

.stat-item__icon {
  width: clamp(52px, 7vw, 64px);
  height: clamp(52px, 7vw, 64px);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--primary-light) 0%, #d8eedc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  color: var(--primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(60, 172, 76, 0.12);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.stat-item:hover .stat-item__icon {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px var(--primary-glow);
}

.stat-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.75vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.35rem);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: clamp(52px, 8vw, 60px);
  height: clamp(52px, 8vw, 60px);
  margin: 0 auto 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--primary);
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.feature-card h3 { margin: 0 0 0.5rem; font-size: clamp(1rem, 1.5vw, 1.1rem); }
.feature-card p { margin: 0; color: var(--text-muted); font-size: clamp(0.8125rem, 1.25vw, 0.9rem); line-height: 1.6; }

/* ── Service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: height var(--transition);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after { height: 100%; }

.service-card > a { position: relative; z-index: 1; }

.service-card .icon-circle {
  width: clamp(56px, 8vw, 68px);
  height: clamp(56px, 8vw, 68px);
  margin: 0 auto 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  color: var(--primary);
  transition: all var(--transition);
}

.service-card:hover .icon-circle {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  transition: color var(--transition);
}

.service-card:hover h3 { color: white; }

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
  color: white;
}

/* ── Reviews ── */
.reviews-section {
  background: linear-gradient(160deg, var(--surface-dark) 0%, #1a3d28 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(60, 172, 76, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.reviews-section .section-header h2 { color: white; }
.reviews-section .section-header p { color: rgba(255, 255, 255, 0.7); }
.reviews-section .section-label { background: rgba(60, 172, 76, 0.2); color: #7dd88a; }

.review-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 0.5rem;
  text-align: left;
  transition: all var(--transition);
}

.review-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.review-quote {
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.review-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

.review-author {
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
  color: white;
  font-size: 0.9375rem;
}

.review-rating i { color: #f5c842; font-size: 0.875rem; }

.reviews-slider .slick-prev,
.reviews-slider .slick-next {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  z-index: 2;
}

.reviews-slider .slick-prev { left: -20px; }
.reviews-slider .slick-next { right: -20px; }

.reviews-slider .slick-prev::before,
.reviews-slider .slick-next::before { font-size: 20px; opacity: 0.8; }

.reviews-slider .slick-dots li button::before { color: white; opacity: 0.4; }
.reviews-slider .slick-dots li.slick-active button::before { color: var(--primary); opacity: 1; }

/* ── Blog cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  height: clamp(160px, 22vw, 200px);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.06); }

.blog-card-body { padding: 1.5rem; }

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: gap var(--transition);
}

.read-more:hover { gap: 0.65rem; color: var(--primary); }

/* ── Partners ── */
.partners-section { text-align: center; }

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0;
}

.partners-grid img {
  max-height: 56px;
  width: auto;
  filter: grayscale(100%) opacity(0.55);
  transition: all var(--transition);
}

.partners-grid img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-banner h2 { color: white; margin: 0 0 0.75rem; }
.cta-banner p { opacity: 0.9; margin: 0 0 1.5rem; max-width: 520px; margin-inline: auto; }

/* ── Footer ── */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img { height: 48px; margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 3px;
  width: 16px;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-left: 1rem;
}

.footer-bottom a:hover { color: var(--primary); }

/* ── Floating actions (bottom-right) ── */
.floating-actions {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 9999;
}

.fab-menu {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.6rem;
}

.fab-menu__items {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.6rem;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height 0.35s ease, opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.fab-menu.open .fab-menu__items {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-menu__staff {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.6rem;
}

.fab {
  width: clamp(46px, 10vw, 52px);
  height: clamp(46px, 10vw, 52px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.fab:hover {
  transform: scale(1.08);
  color: white;
}

.fab-label {
  position: absolute;
  right: calc(100% + 10px);
  white-space: nowrap;
  background: var(--surface-dark);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.fab:hover .fab-label,
.fab:focus-visible .fab-label {
  opacity: 1;
  transform: translateX(0);
}

.fab-menu-toggle {
  background: var(--primary);
}

.fab-menu-toggle .fab-icon-close { display: none; }

.fab-menu.open .fab-menu-toggle .fab-icon-open { display: none; }

.fab-menu.open .fab-menu-toggle .fab-icon-close { display: block; }

.fab-whatsapp { background: #25d366; }
.fab-appointment { background: var(--primary); }
.fab-staff { background: #2563eb; }
.fab-mail { background: #6366f1; }

.fab-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 24, 0.25);
  z-index: 9998;
  border: none;
  padding: 0;
  cursor: default;
}

.fab-backdrop.visible { display: block; }

@media (max-width: 480px) {
  .fab-label { display: none; }
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: min(440px, 100%);
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-alt);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--primary-light); color: var(--primary-dark); }

.modal-box h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ── International phone input (country code + flag) ── */
.iti {
  width: 100%;
  display: block;
}

.iti__country-container {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.iti__selected-country {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-right: none;
}

.iti__selected-country:focus,
.iti__selected-country:hover {
  background: var(--surface);
}

.iti--allow-dropdown .iti__selected-country:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.iti__tel-input,
.iti__tel-input.form-control {
  width: 100%;
  padding-left: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.iti--separate-dial-code .iti__selected-country {
  padding-right: 0.35rem;
}

.iti__dropdown-content {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));
  font-family: var(--font-sans);
}

.iti__search-input {
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
}

.iti__country-list {
  max-height: 220px;
}

.phone-field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #842029;
}

.phone-field-error.is-visible {
  display: block;
}

/* ── Page hero (inner pages) ── */
body:has(.page-hero) .site-header,
body:has(.page-hero) .site-header.scrolled {
  box-shadow: none;
}

.page-hero {
  background: linear-gradient(135deg, var(--surface-dark) 0%, #1a3d28 100%);
  padding: calc(var(--topbar-height) + var(--header-height) + 3rem) 0 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  display: none;
}

.page-hero h1 {
  color: white;
  margin: 0;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.75rem 0 0;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: none;
  box-shadow: none;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.6); text-decoration: none; text-shadow: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: rgba(255, 255, 255, 0.4); text-shadow: none; }

/* ── Content cards ── */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-top: 0;
}

/* ── FAQ accordion ── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.open {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--surface-alt); }

.faq-question i {
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ── Team grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--primary-light);
}

.team-card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }

.team-card .role {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0;
}

/* ── Contact page ── */
.contact-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.contact-notice i { font-size: 1.25rem; flex-shrink: 0; }
.contact-notice p { margin: 0; }

.contact-notice--success {
  background: var(--primary-light);
  border: 1px solid rgba(60, 172, 76, 0.35);
  color: var(--primary-darker);
}

.contact-notice--success i { color: var(--primary-dark); }

.contact-notice--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contact-notice--error i { color: #dc2626; }

.contact-quick-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-quick-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.contact-quick-item i {
  color: var(--primary);
  font-size: 1.15rem;
}

.contact-quick-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
}

.contact-card-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item .icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.contact-info-item p { margin: 0; font-size: 0.9375rem; }
.contact-info-item a { text-decoration: none; color: var(--text); }
.contact-info-item a:hover { color: var(--primary); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: clamp(280px, 45vw, 420px);
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .contact-quick-bar {
    grid-template-columns: 1fr;
  }
}

/* ── Review form ── */
.review-form-card {
  max-width: 560px;
  margin: 2rem auto 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.review-form-card h2 {
  color: white;
  font-size: 1.35rem;
  text-align: center;
  margin: 0 0 1.5rem;
}

.review-form-card .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.review-form-card .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }

.review-form-card label { color: rgba(255, 255, 255, 0.8); }

/* ── Blog detail ── */
.blog-detail-header { text-align: center; margin-bottom: 2.5rem; }
.blog-detail-header .blog-meta { color: var(--text-light); font-size: 0.875rem; }
.blog-detail-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.blog-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .main-nav > ul > li > a {
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
  }

  .header-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .menu-toggle { display: flex; }

  .nav-backdrop {
    top: calc(var(--topbar-height) + var(--header-height));
  }

  .main-nav {
    position: fixed;
    top: calc(var(--topbar-height) + var(--header-height));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 10002;
  }

  .main-nav.open { transform: translateX(0); }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav > ul > li > a {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav .dropdown-menu,
  .main-nav .sub-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
    max-height: none;
    overflow: visible;
  }

  .main-nav .sub-dropdown-menu {
    padding-left: 1.5rem;
    margin-top: 0.25rem;
  }

  .main-nav .sub-dropdown-menu li a {
    margin-left: 0;
    border-left: 2px solid var(--border);
  }

  .main-nav .dropdown.open > .dropdown-menu { display: block; }
  .main-nav .dropdown-menu li.dropdown.open > .sub-dropdown-menu { display: block; }

  .header-actions .btn-primary span { display: none; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --topbar-height: 0px;
  }

  .top-bar { display: none; }

  .site-header { top: 0; }

  .main-nav { top: var(--header-height); }

  .hero-slider {
    margin-top: var(--header-height);
    height: 75vh;
    min-height: 460px;
  }

  .stats-section {
    margin-top: -2.5rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item {
    padding: 1.75rem 1rem;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .features-grid,
  .services-grid,
  .blog-grid,
  .team-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-bar { grid-template-columns: 1fr; }

  .stat-item::after { display: none; }

  .stat-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .stat-item {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }

  .stat-item__icon {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    flex-shrink: 0;
  }

  .stat-item__text {
    align-items: flex-start;
  }
}

/* ── Telemedicine portal landing ── */
.page-hero .hero-badge {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.telemed-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.telemed-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.telemed-hero-meta i {
  color: #8ee09a;
}

.telemed-patient-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 1040px;
  margin: 0 auto;
}

.telemed-patient-banner__icon {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), #d4f0d9);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.telemed-patient-banner__content h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--primary-dark);
}

.telemed-patient-banner__content > p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1rem;
}

.telemed-patient-banner__hint {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.65rem;
}

.telemed-patient-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 196px;
}

.telemed-patient-banner__actions .btn {
  justify-content: center;
  white-space: nowrap;
}

.telemed-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.telemed-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.telemed-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.telemed-step__number {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.telemed-step__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.telemed-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.telemed-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.telemed-portals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}

.telemed-portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.telemed-portal-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(60, 172, 76, 0.45);
}

.telemed-portal-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.telemed-portal-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.telemed-portal-card__header h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.telemed-portal-card__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.telemed-portal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.telemed-notice {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #f5dfa0;
  border-left: 4px solid #d4a017;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.telemed-notice__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.telemed-notice h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #92400e;
  font-family: var(--font-sans);
  font-weight: 700;
}

.telemed-notice p {
  margin: 0;
  color: #78350f;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.telemed-notice a {
  color: #92400e;
  font-weight: 600;
}

@media (max-width: 992px) {
  .telemed-patient-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .telemed-patient-banner__icon {
    margin: 0 auto;
  }

  .telemed-patient-banner__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
  }

  .telemed-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .telemed-portals-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .telemed-patient-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .telemed-patient-banner__actions .btn {
    width: 100%;
  }

  .telemed-portal-card__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ── App downloads (homepage) — full-width, clean ── */
.app-downloads-section {
  padding: 0;
  margin: 0;
}

.section-alt:has(+ .app-downloads-section) {
  padding-bottom: 0;
}

.app-downloads-section + .reviews-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.app-downloads-inner {
  position: relative;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.app-downloads-inner::before,
.app-downloads-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.app-downloads-inner::before {
  top: -120px;
  right: -80px;
  width: clamp(280px, 40vw, 420px);
  height: clamp(280px, 40vw, 420px);
  background: radial-gradient(circle, rgba(60, 172, 76, 0.12) 0%, transparent 70%);
}

.app-downloads-inner::after {
  bottom: -100px;
  left: -60px;
  width: clamp(240px, 35vw, 360px);
  height: clamp(240px, 35vw, 360px);
  background: radial-gradient(circle, rgba(60, 172, 76, 0.08) 0%, transparent 70%);
}

.app-downloads-layout {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100% - clamp(1.25rem, 4vw, 2.5rem));
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: clamp(420px, 52vh, 560px);
}

.app-downloads-content {
  text-align: left;
}

.app-downloads-content .section-label {
  margin-bottom: 1rem;
}

.app-downloads-content h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.app-downloads-content > p {
  margin: 0 0 1.75rem;
  max-width: 480px;
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.75;
}

.app-downloads-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.app-downloads-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.app-downloads-features__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary-light) 0%, #d8eedc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 16px rgba(60, 172, 76, 0.12);
}

.app-downloads-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: min(210px, 100%);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #1f1f1f 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(20, 35, 24, 0.18);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.store-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #2a2a2a 0%, #141414 100%);
  box-shadow: 0 16px 36px rgba(20, 35, 24, 0.22);
  color: white;
}

.store-btn > i {
  font-size: clamp(1.6rem, 3vw, 1.85rem);
  line-height: 1;
  flex-shrink: 0;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.store-btn__text small {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.store-btn__text strong {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 700;
}

.store-btn--android > i,
.store-btn--apple > i { color: #ffffff; }

.app-downloads-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.app-phone-mockup {
  position: relative;
  width: min(272px, 100%);
  transform: rotateY(-10deg) rotateX(3deg);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-downloads-section:hover .app-phone-mockup {
  transform: rotateY(-5deg) rotateX(1deg) translateY(-8px);
}

.app-phone-mockup__frame {
  position: relative;
  padding: 10px;
  border-radius: 46px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, transparent 28%),
    linear-gradient(165deg, #5a5a5e 0%, #2c2c2e 18%, #141416 55%, #1e1e20 82%, #3a3a3c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 28px 56px rgba(15, 36, 24, 0.28);
}

.app-phone-mockup__btn {
  position: absolute;
  background: linear-gradient(90deg, #3a3a3c 0%, #1a1a1c 50%, #2e2e30 100%);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 0.5px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.app-phone-mockup__btn--silent {
  left: -3px;
  top: 108px;
  width: 3px;
  height: 22px;
}

.app-phone-mockup__btn--vol-up {
  left: -3px;
  top: 148px;
  width: 3px;
  height: 38px;
}

.app-phone-mockup__btn--vol-down {
  left: -3px;
  top: 196px;
  width: 3px;
  height: 38px;
}

.app-phone-mockup__btn--power {
  right: -3px;
  top: 162px;
  width: 3px;
  height: 58px;
}

.app-phone-mockup__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.85),
    inset 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.app-phone-mockup__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 38%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

.app-phone-mockup__status {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 18px 10px;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #0f2418 0%, #142318 100%);
}

.app-phone-mockup__time {
  justify-self: start;
}

.app-phone-mockup__island {
  position: relative;
  width: 72px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -1px 2px rgba(255, 255, 255, 0.06);
  justify-self: center;
}

.app-phone-mockup__island::after {
  content: '';
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3540 0%, #06080a 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-phone-mockup__indicators {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  opacity: 0.95;
}

.app-phone-mockup__app {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 0.35rem 0.85rem 1.35rem;
  background: linear-gradient(180deg, #f3f7f4 0%, #ffffff 42%, #f8faf9 100%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
}

.app-phone-mockup__header {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.65rem;
  border-bottom: 1px solid rgba(220, 232, 223, 0.9);
  margin-bottom: 0.15rem;
}

.app-phone-mockup__header img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.app-phone-mockup__card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 232, 223, 0.95);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(20, 35, 24, 0.06);
}

.app-phone-mockup__card i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.app-phone-mockup__card--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 20px rgba(60, 172, 76, 0.35);
}

.app-phone-mockup__card--primary i {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.app-phone-mockup__home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(20, 35, 24, 0.82);
  z-index: 5;
}

.app-phone-mockup__shadow {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) rotateX(75deg);
  width: 72%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15, 36, 24, 0.35) 0%, transparent 72%);
  pointer-events: none;
  filter: blur(2px);
}

@media (max-width: 992px) {
  .app-downloads-layout {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    padding-block: clamp(3rem, 7vw, 4.5rem);
  }

  .app-downloads-content {
    text-align: center;
  }

  .app-downloads-content > p {
    margin-inline: auto;
  }

  .app-downloads-features {
    align-items: center;
  }

  .app-downloads-features li {
    justify-content: center;
    max-width: 320px;
    width: 100%;
  }

  .app-downloads-stores {
    justify-content: center;
  }

  .app-downloads-visual {
    order: -1;
  }

  .app-phone-mockup {
    transform: none;
    width: min(250px, 78vw);
  }

  .app-downloads-section:hover .app-phone-mockup {
    transform: translateY(-4px);
  }

  .app-phone-mockup__btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-downloads-stores {
    flex-direction: column;
    align-items: stretch;
  }

  .store-btn {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .store-btn__text {
    align-items: center;
    text-align: center;
  }
}
