:root {
  --ink: #10201d;
  --muted: #5e6e68;
  --line: #dce8e3;
  --surface: #ffffff;
  --soft: #f6faf8;
  --teal: #08756d;
  --teal-dark: #053f3a;
  --teal-soft: #e6f5f2;
  --rose: #b8324c;
  --gold: #9d6a00;
  --gold-soft: #fff4d3;
  --blue: #285eb8;
  --shadow: 0 18px 44px rgba(14, 36, 32, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.public-site {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

html:lang(hi) body.public-site {
  font-family: "Nirmala UI", "Mangal", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(8, 117, 109, 0.16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 32, 29, 0.06);
  backdrop-filter: blur(14px);
}

.emergency-strip {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 7px 18px;
  color: #ffffff;
  background: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.emergency-strip a:first-child {
  color: #ffe8a1;
}

.site-nav {
  max-width: 1240px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-link img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.brand-link span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-link strong {
  color: var(--teal-dark);
  font-size: 20px;
  line-height: 1.05;
}

.brand-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.nav-links a {
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 32, 29, 0.07);
}

.language-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.language-switch button.is-active {
  color: #ffffff;
  background: var(--teal);
}

.nav-cta,
.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.nav-cta,
.primary-action {
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.secondary-action {
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, #f7fbfa 0%, #edf8f5 45%, #fff7df 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 720px;
  min-height: min(760px, calc(100vh - 150px));
  margin: 0 auto;
  padding: 72px 24px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--rose);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  color: var(--teal-dark);
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.98;
  overflow-wrap: break-word;
}

html:lang(hi) .hero h1 {
  max-width: 820px;
  font-size: 58px;
  line-height: 1.12;
}

.hero p {
  margin: 0;
  max-width: 650px;
  color: #30413d;
  font-size: 19px;
  line-height: 1.58;
  overflow-wrap: break-word;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #d7c28d;
  border-radius: 999px;
  padding: 6px 12px;
  color: #6f4c00;
  background: #fff9e8;
  font-size: 12px;
  font-weight: 900;
}

.hero-booking {
  display: grid;
  gap: 14px;
}

.doctor-card,
.appointment-form,
.quick-access a,
.specialty-grid article,
.care-gallery-card,
.metric-grid article,
.journey-grid article,
.service-columns > div,
.proof-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.doctor-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.doctor-card img {
  width: 82px;
  height: 104px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d8f3ff;
}

.doctor-card div {
  display: grid;
  gap: 4px;
}

.doctor-card span,
.hero-contact span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.doctor-card strong {
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1.12;
}

.doctor-card small {
  color: var(--muted);
  font-weight: 800;
}

.quick-access,
.metrics-section,
.specialty-section,
.care-gallery-section,
.doctor-section,
.journey-section,
.appointment-section,
.proof-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px;
}

.quick-access {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 26px;
}

.quick-access a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  box-shadow: none;
}

.quick-access span,
.journey-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.quick-access strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.quick-access small,
.specialty-grid p,
.journey-grid p,
.section-heading p,
.appointment-copy p,
.doctor-section p,
.proof-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2,
.appointment-copy h2,
.doctor-section h2,
.proof-copy h2 {
  margin: 5px 0 0;
  color: var(--teal-dark);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.04;
}

html:lang(hi) .section-heading h2,
html:lang(hi) .appointment-copy h2,
html:lang(hi) .doctor-section h2,
html:lang(hi) .proof-copy h2 {
  line-height: 1.15;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 22px;
  box-shadow: none;
}

.metric-grid strong {
  color: var(--rose);
  font-size: 34px;
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  font-weight: 850;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.proof-section img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.specialty-grid,
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.specialty-grid article,
.journey-grid article {
  min-height: 172px;
  padding: 20px;
  box-shadow: none;
}

.specialty-grid h3,
.journey-grid strong,
.service-columns h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 19px;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.service-columns > div {
  padding: 20px;
  box-shadow: none;
}

.service-columns ul,
.doctor-section ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.care-gallery-section {
  padding-top: 44px;
  padding-bottom: 70px;
}

.care-gallery-section .section-heading {
  max-width: 920px;
}

.care-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  gap: 16px;
}

.care-gallery-card {
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(14, 36, 32, 0.08);
}

.care-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid #eef4f1;
  border-radius: 6px;
  background: #ffffff;
}

@media (hover: hover) {
  .care-gallery-card {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  }

  .care-gallery-card:hover {
    transform: translateY(-3px);
    border-color: #c6ded7;
    box-shadow: 0 20px 42px rgba(14, 36, 32, 0.12);
  }
}

.doctor-section {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doctor-section h3 {
  margin: 4px 0 10px;
  color: var(--blue);
  font-size: 24px;
}

.journey-grid article {
  display: grid;
  gap: 8px;
}

.appointment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--teal-dark);
  font-weight: 900;
}

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

.appointment-form.compact {
  padding: 18px;
  gap: 12px;
}

.appointment-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.appointment-form .wide {
  grid-column: 1 / -1;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
}

.appointment-form textarea {
  min-height: 92px;
  resize: vertical;
}

.appointment-form:not(.compact) textarea {
  min-height: 112px;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--teal);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(8, 117, 109, 0.14);
}

.appointment-form button {
  border: 0;
  cursor: pointer;
}

.appointment-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 22px;
  color: var(--muted);
  font-weight: 850;
}

.form-message.success {
  color: var(--teal-dark);
}

.form-message.error {
  color: #a31f39;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(24px, calc((100vw - 1240px) / 2));
  color: #ffffff;
  background: var(--teal-dark);
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 1080px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-inner,
  .appointment-section,
  .doctor-section,
  .proof-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-booking {
    max-width: 620px;
  }

  html:lang(hi) .hero h1 {
    font-size: 46px;
  }

  .quick-access,
  .metric-grid,
  .specialty-grid,
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 92px;
  }

  body.public-site {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .emergency-strip {
    min-height: 32px;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    padding: 6px 10px;
    font-size: 12px;
  }

  .emergency-strip a {
    line-height: 1.1;
  }

  .emergency-strip a:nth-child(2) {
    display: none;
  }

  .emergency-strip a:nth-child(4) {
    display: none;
  }

  .site-nav {
    min-height: 62px;
    padding: 8px 14px;
  }

  .brand-link strong {
    font-size: 16px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
  }

  .nav-tools {
    gap: 8px;
  }

  .language-switch {
    min-height: 36px;
    box-shadow: none;
  }

  .language-switch button {
    min-height: 28px;
    padding: 0 8px;
  }

  .hero-inner,
  .quick-access,
  .metrics-section,
  .specialty-section,
  .care-gallery-section,
  .doctor-section,
  .journey-section,
  .appointment-section,
  .proof-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.06;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  html:lang(hi) .hero h1 {
    font-size: 34px;
    line-height: 1.14;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    min-height: 48px;
    white-space: normal;
  }

  .quick-access,
  .metric-grid,
  .specialty-grid,
  .journey-grid,
  .service-columns,
  .appointment-form {
    grid-template-columns: 1fr;
  }

  .care-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .care-gallery-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 9px;
  }

  .doctor-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .doctor-card img {
    width: 72px;
    height: 92px;
  }

  .appointment-form input,
  .appointment-form select,
  .appointment-form textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .appointment-form textarea {
    min-height: 96px;
  }

  .proof-section {
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .proof-section img {
    max-height: 220px;
  }

  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.82fr);
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -14px 34px rgba(14, 36, 32, 0.16);
    backdrop-filter: blur(14px);
  }

  .mobile-action-bar a {
    min-height: 48px;
    display: grid;
    align-content: center;
    justify-items: center;
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--teal-dark);
    background: #ffffff;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
  }

  .mobile-action-bar a:last-child {
    color: #ffffff;
    background: var(--teal);
    border-color: var(--teal);
    font-size: 14px;
  }

  .mobile-action-bar strong {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  body.public-site {
    overflow-x: hidden;
  }

  .emergency-strip {
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .emergency-strip::-webkit-scrollbar {
    display: none;
  }

  .site-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand-link,
  .brand-link span {
    min-width: 0;
  }

  .brand-link strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-inner {
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 36px;
  }

  .hero-copy {
    gap: 16px;
  }

  .hero-booking {
    width: 100%;
    max-width: none;
  }

  .quick-access a,
  .metric-grid article,
  .specialty-grid article,
  .care-gallery-card,
  .journey-grid article {
    min-height: auto;
  }

  .appointment-form {
    padding: 16px;
  }

  .site-footer {
    flex-direction: column;
    padding: 26px 16px;
  }
}

@media (max-width: 430px) {
  .emergency-strip a:nth-child(3) {
    display: none;
  }

  .site-nav {
    min-height: 58px;
    padding: 8px 12px;
  }

  .brand-link {
    gap: 9px;
  }

  .brand-link img {
    width: 38px;
    height: 38px;
  }

  .brand-link small {
    display: none;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .nav-tools .nav-links {
    display: none;
  }

  .language-switch button {
    padding: 0 7px;
  }

  .hero h1 {
    font-size: 25px;
    line-height: 1.12;
  }

  html:lang(hi) .hero h1 {
    font-size: 25px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.5;
  }

  .trust-row span {
    flex: 1 1 calc(50% - 9px);
    justify-content: center;
    text-align: center;
  }

  .doctor-card strong {
    font-size: 19px;
  }

  .section-heading h2,
  .appointment-copy h2,
  .doctor-section h2,
  .proof-copy h2 {
    font-size: 27px;
    line-height: 1.12;
  }
}

@media (max-width: 360px) {
  .brand-link strong {
    font-size: 14px;
  }

  .language-switch button {
    min-width: 0;
    padding: 0 6px;
    font-size: 11px;
  }

  .hero h1,
  html:lang(hi) .hero h1 {
    font-size: 27px;
  }

  .hero p,
  .quick-access small,
  .specialty-grid p,
  .journey-grid p,
  .appointment-copy p,
  .doctor-section p,
  .proof-copy p {
    font-size: 15px;
  }

  .mobile-action-bar {
    grid-template-columns: 1fr 1fr;
    padding-left: 8px;
    padding-right: 8px;
  }
}
