:root {
  --navy: #082b40;
  --blue: #0e5672;
  --teal: #2a9a9b;
  --mint: #dcefee;
  --ink: #17303d;
  --muted: #5a6d76;
  --line: #d6e2e6;
  --paper: #f7faf9;
  --white: #ffffff;
  --gold: #c58a2d;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.brand-mark img {
  display: block;
  height: 50px;
  width: 50px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.site-nav.always-visible {
  display: flex;
}

.site-nav a,
.nav-assistant {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-assistant {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
}

.location-hero {
  background:
    linear-gradient(90deg, rgba(8, 43, 64, 0.96), rgba(14, 86, 114, 0.88)),
    url("assets/udpi-clinic-hero.png") center / cover;
  color: var(--white);
  padding: 112px clamp(20px, 6vw, 76px) 86px;
}

.location-hero h1,
.location-hero p {
  max-width: 780px;
}

.location-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: linear-gradient(90deg, rgba(8, 43, 64, 0.94), rgba(8, 43, 64, 0.65) 38%, rgba(8, 43, 64, 0.08) 72%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  padding: 110px clamp(20px, 6vw, 76px) 56px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 5rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 720px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  max-width: 650px;
}

.hero-actions,
.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.45);
}

.quick-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  max-width: 780px;
}

.quick-facts div {
  border-left: 3px solid var(--teal);
  padding-left: 14px;
}

.quick-facts dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
}

.trust-band {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1fr auto;
  padding: 18px clamp(20px, 5vw, 70px);
}

.trust-band p {
  margin: 0;
}

.section {
  padding: 78px clamp(20px, 5vw, 70px);
}

.split {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

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

.service-card,
.location-grid article,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.service-card span {
  align-items: center;
  background: var(--mint);
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}

.referral-band {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr auto;
}

.referral-band p {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  max-width: 850px;
}

.location-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 28px;
}

.contact-section {
  background: var(--white);
  display: grid;
  gap: 44px;
  grid-template-columns: 0.8fr 1fr;
}

address {
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 6px;
}

.hidden-field {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.sitemap-section {
  padding-bottom: 42px;
}

.footer-map {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.assistant-launcher {
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  bottom: 22px;
  box-shadow: 0 16px 45px rgba(8, 43, 64, 0.25);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 14px 18px;
  position: fixed;
  right: 22px;
  z-index: 30;
}

.assistant-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 82px;
  box-shadow: 0 22px 70px rgba(8, 43, 64, 0.28);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: min(620px, calc(100vh - 120px));
  position: fixed;
  right: 22px;
  width: min(390px, calc(100vw - 32px));
  z-index: 40;
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.assistant-head small {
  color: var(--muted);
  display: block;
}

.assistant-head button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  height: 36px;
  width: 36px;
}

.assistant-messages {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.assistant-messages p {
  border-radius: 8px;
  margin: 0;
  padding: 11px 12px;
}

.assistant-messages .bot {
  background: var(--paper);
}

.assistant-messages .user {
  background: var(--mint);
  justify-self: end;
}

.assistant-messages .error {
  background: #fff0ee;
  color: #883525;
}

.assistant-quick-actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.assistant-quick-actions button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 10px;
}

.assistant-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

.assistant-form button {
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 14px;
}


.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 70px);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    background: var(--navy);
    border: 0;
    border-radius: 8px;
    color: var(--white);
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    padding: 10px 14px;
  }

  .site-nav {
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 71px;
  }

  .site-nav.always-visible {
    align-items: center;
    background: transparent;
    border-bottom: 0;
    display: flex;
    flex-direction: row;
    padding: 0;
    position: static;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 680px;
  }

  .quick-facts,
  .trust-band,
  .split,
  .referral-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(8, 43, 64, 0.96), rgba(8, 43, 64, 0.74));
  }

  .hero-content {
    padding: 78px 18px 42px;
  }

  .quick-facts,
  .service-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 18px;
  }

  .assistant-panel,
  .assistant-launcher {
    right: 16px;
  }
}
