:root {
  --color-primary: #f0782c;
  --color-primary-dark: #b94f14;
  --color-teal: #1b9692;
  --color-blue: #2563eb;
  --color-ink: #172033;
  --color-text: #334155;
  --color-muted: #64748b;
  --color-line: #dbe3ee;
  --color-soft: #f7fafc;
  --color-warm: #fff7ed;
  --color-white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.14);
  --radius: 8px;
  --header-height: 78px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Nunito Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.panel-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.72);
  outline-offset: 3px;
}

::selection {
  color: var(--color-white);
  background: var(--color-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-ink);
  border-radius: var(--radius);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 227, 238, 0.72);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  color: var(--color-teal);
  background: var(--color-white);
  border: 1px solid #9bd8d5;
  border-radius: var(--radius);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark path,
.line-icon path,
.header-actions svg path,
.hero-controls path,
.carousel-actions path,
.panel-close path,
.float-actions path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 19px;
  font-weight: 800;
}

.brand-copy span {
  color: var(--color-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
}

.desktop-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 8px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  transition: color 180ms var(--ease);
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--color-primary-dark);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--color-primary-dark);
  background: var(--color-warm);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  font-weight: 800;
}

.phone-link svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: var(--color-ink);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 12px 20px 20px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a,
.mobile-menu button {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  font-weight: 800;
}

.mobile-menu a:hover {
  background: var(--color-soft);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 10px 26px rgba(240, 120, 44, 0.24);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-secondary {
  color: var(--color-ink);
  background: var(--color-white);
  border-color: var(--color-line);
}

.btn-secondary:hover {
  color: var(--color-primary-dark);
  border-color: #fdba74;
}

.hero {
  position: relative;
  background: var(--color-soft);
}

.hero-stage {
  position: relative;
  min-height: clamp(620px, 74vh, 760px);
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms var(--ease);
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 21, 35, 0.74) 0%, rgba(14, 21, 35, 0.44) 42%, rgba(14, 21, 35, 0.08) 78%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 50%;
  width: min(calc(100% - 40px), var(--container));
  min-height: clamp(620px, 74vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 100px 130px;
  color: var(--color-white);
  transform: translateX(-50%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fed7aa;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 16px 0 20px;
  color: var(--color-white);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 118px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button,
.carousel-actions button,
.float-actions button,
.float-actions a,
.panel-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.hero-controls button {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-controls button:hover,
.carousel-actions button:hover,
.float-actions button:hover,
.float-actions a:hover,
.panel-close:hover {
  color: var(--color-primary-dark);
  border-color: #fdba74;
  transform: translateY(-1px);
}

.hero-controls svg,
.carousel-actions svg,
.float-actions svg,
.panel-close svg {
  width: 20px;
  height: 20px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.hero-dots button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  content: "";
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-dots button.is-active::before {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.trust-strip {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -72px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.trust-strip div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 22px;
  border-right: 1px solid var(--color-line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: var(--color-primary-dark);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
}

.trust-strip span {
  color: var(--color-muted);
  font-weight: 800;
}

.trust-strip em {
  color: var(--color-primary);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section h2 {
  margin: 10px 0 16px;
  color: var(--color-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.section h3 {
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: 21px;
  line-height: 1.3;
}

.section p {
  margin: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p,
.section-copy p {
  color: var(--color-muted);
  font-size: 18px;
}

.row-heading {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.doctor-card,
.hospital-location-card,
.article-card,
.appointment-form,
.appointment-info {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-card {
  min-height: 252px;
  padding: 24px;
}

.line-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--color-primary-dark);
  background: var(--color-warm);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
}

.line-icon svg {
  width: 25px;
  height: 25px;
}

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

.services,
.hospital-service,
.articles {
  background: var(--color-soft);
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.service-tabs button {
  min-height: 46px;
  padding: 10px 15px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-weight: 800;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.service-tabs button:hover,
.service-tabs button[aria-selected="true"] {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.service-panel {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.service-detail {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
}

.service-detail p {
  color: var(--color-muted);
  font-size: 18px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-tags li {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 10px;
  color: var(--color-teal);
  background: #e8f7f6;
  border: 1px solid #bde8e6;
  border-radius: var(--radius);
  font-weight: 800;
}

.doctor-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(380px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.doctor-carousel {
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.doctor-track {
  display: grid;
  gap: 14px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 188px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.doctor-card:hover,
.doctor-card:focus-visible,
.doctor-card.is-active {
  border-color: #fdba74;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
}

.doctor-card.is-active {
  outline: 3px solid rgba(240, 120, 44, 0.18);
}

.doctor-card img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.doctor-body {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.doctor-body h3,
.doctor-detail-panel h3 {
  margin: 0;
}

.doctor-meta {
  color: var(--color-primary-dark);
  font-weight: 900;
}

.doctor-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.doctor-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-muted);
}

.doctor-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--color-teal);
  border-radius: 50%;
}

.doctor-open {
  width: max-content;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.doctor-detail-panel {
  display: grid;
  min-height: 520px;
  align-content: start;
  gap: 22px;
  padding: clamp(28px, 4vw, 42px);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.doctor-detail-top {
  display: grid;
  gap: 8px;
}

.doctor-detail-panel h3 {
  font-size: clamp(30px, 4vw, 46px);
}

.doctor-bio {
  display: grid;
  gap: 12px;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.82;
}

.doctor-bio p {
  margin: 0;
}

.doctor-detail-panel h4 {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-size: 18px;
}

.doctor-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 4px;
}

.doctor-detail-panel .btn {
  width: max-content;
}

.carousel-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.hospital-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 46px);
  color: var(--color-white);
  background: linear-gradient(110deg, #163147, #1b9692);
  border-radius: var(--radius);
  overflow: hidden;
}

.hospital-banner .section-kicker,
.hospital-banner p {
  color: var(--color-white);
}

.hospital-banner h2 {
  color: #fde68a;
}

.hospital-banner p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.hospital-banner img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.hospital-location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.86fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 30px);
}

.hospital-location-card h3 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 32px);
}

.hospital-location-card p {
  color: var(--color-muted);
}

.location-detail {
  display: grid;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 800;
}

.location-detail a {
  color: var(--color-primary-dark);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(240, 120, 44, 0.14);
  outline: none;
}

.hospital-level {
  width: max-content;
  padding: 4px 9px;
  color: var(--color-primary-dark);
  background: var(--color-warm);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--color-muted);
  text-align: center;
  background: var(--color-white);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  overflow: hidden;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-soft);
}

.article-card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.article-card h3 {
  margin: 0;
}

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

.article-card button {
  width: max-content;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.article-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: var(--color-teal);
  background: #e8f7f6;
  border: 1px solid #bde8e6;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.article-summary {
  color: var(--color-muted);
  font-size: 18px;
}

.article-body {
  display: grid;
  gap: 14px;
  color: var(--color-text);
}

.article-body p {
  margin: 0;
}

.mission-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.68fr;
  align-items: end;
  gap: 16px;
}

.image-stack img {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.image-stack img:nth-child(2) {
  margin-bottom: -34px;
}

.appointment {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}

.appointment-info,
.appointment-form {
  padding: clamp(24px, 4vw, 34px);
}

.appointment-info dl {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.appointment-info div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}

.appointment-info dt {
  color: var(--color-muted);
  font-weight: 900;
}

.appointment-info dd {
  margin: 4px 0 0;
  color: var(--color-ink);
  font-weight: 800;
}

.appointment-info a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-primary-dark);
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row-full,
.appointment-form .btn,
.appointment-form .form-status {
  grid-column: 1 / -1;
}

.field-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #b42318;
}

.form-status {
  min-height: 24px;
  color: var(--color-teal);
  font-weight: 900;
}

.appointment-panel[hidden],
.article-panel[hidden],
.qr-popover[hidden] {
  display: none;
}

.appointment-panel,
.article-panel {
  position: fixed;
  z-index: 1600;
  inset: 0;
}

.panel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.panel-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 30px;
  background: var(--color-white);
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.2);
}

.panel-close {
  margin-left: auto;
}

.panel-content h2 {
  margin: 12px 0 8px;
  color: var(--color-ink);
  font-size: 32px;
}

.panel-content > p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.panel-form {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.article-panel-content {
  width: min(680px, 100%);
}

.qr-popover {
  position: fixed;
  z-index: 1500;
  right: 86px;
  bottom: 104px;
  width: min(270px, calc(100vw - 32px));
  padding: 14px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.qr-popover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.qr-popover p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 900;
}

.float-actions {
  position: fixed;
  z-index: 1400;
  right: 18px;
  bottom: 22px;
  display: grid;
  gap: 10px;
}

.float-actions button,
.float-actions a {
  box-shadow: var(--shadow-sm);
}

.float-actions [data-back-top] {
  opacity: 0;
  pointer-events: none;
}

.float-actions [data-back-top].is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  color: #cbd5e1;
  background: #172033;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 0.82fr 0.72fr;
  gap: 32px;
  padding: 54px 0 36px;
}

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

.site-footer p {
  margin: 12px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 18px;
}

.site-footer a:not(.brand) {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #e2e8f0;
}

.site-footer p a:not(.brand) {
  width: auto;
  min-height: 0;
  display: inline;
}

.site-footer a:hover {
  color: #fed7aa;
}

.footer-qr-card img {
  width: 128px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 4px solid var(--color-white);
  border-radius: var(--radius);
}

.footer-copy {
  padding: 18px 20px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 10px solid var(--color-primary);
}

.footer-copy p {
  margin: 0;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
  }

  .phone-link {
    display: none;
  }

  .feature-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero-stage,
  .hero-content {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(14, 21, 35, 0.76) 0%, rgba(14, 21, 35, 0.48) 54%, rgba(14, 21, 35, 0.22) 100%);
  }

  .hero-controls {
    right: 16px;
    bottom: 112px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-line);
  }

  .split-layout,
  .service-panel,
  .doctor-showcase,
  .hospital-banner,
  .hospital-location-card,
  .mission-layout,
  .appointment-layout {
    grid-template-columns: 1fr;
  }

  .doctor-carousel {
    max-height: none;
    overflow: auto hidden;
    padding: 0 0 4px;
    scrollbar-width: none;
  }

  .doctor-carousel::-webkit-scrollbar {
    display: none;
  }

  .doctor-track {
    display: flex;
  }

  .doctor-card {
    min-width: min(420px, 84vw);
  }

  .hospital-location-card {
    align-items: start;
  }

  .location-actions {
    justify-content: flex-start;
  }

  .service-panel img {
    min-height: 260px;
    aspect-ratio: 16 / 9;
  }

  .image-stack img:nth-child(2) {
    margin-bottom: 0;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy span {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-controls {
    right: auto;
    left: 16px;
    bottom: 108px;
  }

  .doctor-card {
    grid-template-columns: 142px minmax(0, 1fr);
    min-height: 172px;
  }

  .doctor-card img {
    min-height: 172px;
  }

  .doctor-body {
    padding: 16px;
  }

  .doctor-detail-panel {
    min-height: 0;
    padding: 22px;
  }

  .doctor-detail-list {
    grid-template-columns: 1fr;
  }

  .doctor-detail-panel .btn {
    width: 100%;
  }

  .trust-strip {
    margin-top: -54px;
  }

  .trust-strip div {
    min-height: 86px;
    padding: 16px;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: clamp(28px, 8vw, 36px);
    text-wrap: balance;
  }

  .hospital-banner {
    padding: 24px;
  }

  .location-actions,
  .location-actions .btn {
    width: 100%;
  }

  .panel-content {
    padding: 22px 16px 32px;
  }

  .float-actions {
    right: 12px;
    bottom: 14px;
  }

  .float-actions button,
  .float-actions a {
    width: 44px;
    height: 44px;
  }

  .qr-popover {
    right: 64px;
    bottom: 72px;
  }
}

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