:root {
  --ink: #10212a;
  --muted: #5a6a71;
  --bg: #f7fbfa;
  --white: #ffffff;
  --teal: #00a896;
  --deep-teal: #006d77;
  --coral: #f25f5c;
  --blue: #247ba0;
  --gold: #f5b700;
  --green: #63b995;
  --pink: #d95d8c;
  --line: rgba(16, 33, 42, 0.12);
  --shadow: 0 22px 58px rgba(13, 54, 68, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7fbfa 0%, #fff8ef 46%, #f7fbfa 100%);
  color: var(--ink);
  font-family: "Noto Sans Telugu", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
}

body.lang-en {
  font-family: "Inter", "Noto Sans Telugu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.top-strip {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 18px;
  background: #0b4952;
  color: #f5fffd;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.top-link,
.top-strip a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(0, 109, 119, 0.15);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(13, 54, 68, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

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

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

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 11px;
  color: #31505a;
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(0, 168, 150, 0.12);
  color: #03434b;
}

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

.language-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f9f7;
}

.language-option {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: #46636b;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
}

.language-option.is-active {
  background: var(--deep-teal);
  color: white;
}

.header-call {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 15px;
  background: var(--coral);
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 116px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px 24px 116px;
  isolation: isolate;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 42, 49, 0.9) 0%, rgba(7, 42, 49, 0.66) 46%, rgba(7, 42, 49, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 42, 49, 0.86) 0%, rgba(7, 42, 49, 0.05) 45%);
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.3rem);
  line-height: 1.03;
  font-weight: 900;
  text-wrap: balance;
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button span[aria-hidden="true"] {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.2);
  font-family: "Inter", sans-serif;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: white;
  box-shadow: 0 16px 34px rgba(0, 168, 150, 0.28);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(12px);
}

.button-dark {
  background: #12323b;
  color: white;
}

.button-ghost {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.button-small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.hero-status {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  display: grid;
  width: min(620px, calc(100% - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-status div {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-status div:last-child {
  border-right: 0;
}

.hero-status span,
.token-now span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.section-wrap {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 92px;
}

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

.quick-action,
.service-card,
.doctor-card,
.panel,
.receipt-panel,
.token-now,
.disease-detail,
.disease-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(13, 54, 68, 0.08);
}

.quick-action {
  display: grid;
  min-height: 126px;
  align-content: center;
  gap: 5px;
  padding: 20px;
}

.quick-action span[aria-hidden="true"] {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 168, 150, 0.12);
  color: var(--deep-teal);
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.quick-action strong {
  font-size: 1.08rem;
}

.quick-action small {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  margin: 0 0 34px;
}

.section-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.14;
  font-weight: 900;
  text-wrap: balance;
}

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

.service-card {
  min-height: 280px;
  padding: 24px;
}

.service-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.accent-teal > span {
  background: var(--teal);
}

.accent-coral > span {
  background: var(--coral);
}

.accent-blue > span {
  background: var(--blue);
}

.accent-gold > span {
  background: var(--gold);
  color: #2b2300;
}

.service-card h3,
.doctor-card h3,
.receipt-panel h3,
.location-card h3,
.dashboard-panel h3,
.disease-card h3,
.disease-detail h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.service-card p,
.doctor-card span,
.receipt-empty,
.form-message,
.location-card p,
.dashboard-content p,
.disease-card p,
.disease-detail p,
.disease-detail li {
  color: var(--muted);
}

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

.doctor-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  min-height: 210px;
  align-items: center;
  padding: 24px;
}

.doctor-avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 1.24rem;
  font-weight: 900;
}

.doctor-avatar-alt {
  background: linear-gradient(135deg, var(--pink), var(--coral));
}

.doctor-card p {
  margin: 0;
  color: var(--deep-teal);
  font-weight: 900;
}

.appointment-layout,
.login-layout,
.location-layout,
.token-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.panel,
.receipt-panel,
.token-now,
.disease-detail {
  padding: 24px;
}

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

label {
  display: grid;
  gap: 8px;
  color: #28454e;
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(16, 33, 42, 0.16);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.14);
}

.form-panel,
.auth-panel {
  display: grid;
  gap: 16px;
}

.form-submit {
  width: max-content;
}

.receipt-panel {
  position: sticky;
  top: 96px;
  min-height: 370px;
  background:
    linear-gradient(135deg, rgba(0, 168, 150, 0.1), rgba(245, 183, 0, 0.12)),
    white;
}

.receipt-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.receipt-token {
  display: grid;
  min-height: 118px;
  place-items: center;
  border-radius: 8px;
  background: #12323b;
  color: white;
  text-align: center;
}

.receipt-token span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-token strong {
  display: block;
  margin-top: 8px;
  font-size: 3rem;
  line-height: 1;
}

.receipt-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.receipt-meta div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  border-bottom: 1px dashed rgba(16, 33, 42, 0.18);
  padding-bottom: 8px;
}

.receipt-meta dt {
  color: var(--muted);
  font-weight: 900;
}

.receipt-meta dd {
  margin: 0;
  font-weight: 800;
}

.token-layout {
  grid-template-columns: 0.8fr 1.2fr;
}

.token-now {
  display: grid;
  min-height: 282px;
  align-content: center;
  background: linear-gradient(135deg, var(--deep-teal), #12323b);
  color: white;
  text-align: center;
}

.token-now strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.95;
}

.token-now small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.token-checker {
  display: grid;
  gap: 14px;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.role-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
  color: #36545d;
  cursor: pointer;
  font-weight: 900;
}

.role-tab.is-active {
  border-color: var(--deep-teal);
  background: var(--deep-teal);
  color: white;
}

.dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-head h3 {
  margin-top: 0;
}

.dashboard-content {
  display: grid;
  gap: 16px;
}

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

.staff-controls .button {
  width: 100%;
}

.appointment-list {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.appointment-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.appointment-token {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 168, 150, 0.12);
  color: var(--deep-teal);
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
}

.appointment-item h4 {
  margin: 0 0 4px;
}

.appointment-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 44px rgba(13, 54, 68, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #12323b;
  color: white;
  font-size: 0.82rem;
  text-transform: uppercase;
}

td a {
  color: var(--deep-teal);
  font-size: 1.2rem;
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

.disease-tools {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 16px;
  align-items: end;
}

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.alpha-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  color: #37545d;
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.alpha-button.is-active {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.medical-disclaimer {
  margin: 20px 0;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: #fff4f1;
  color: #6d3a34;
  padding: 14px 16px;
  font-weight: 800;
}

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

.disease-card {
  display: grid;
  min-height: 220px;
  gap: 10px;
  padding: 18px;
}

.disease-card h3 {
  margin-top: 0;
}

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

.disease-detail {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(36, 123, 160, 0.1), rgba(99, 185, 149, 0.12)),
    white;
}

.disease-detail[hidden] {
  display: none;
}

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

.detail-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px;
}

.detail-block h4 {
  margin: 0 0 8px;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
}

.location-layout {
  grid-template-columns: 0.82fr 1.18fr;
}

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

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(16, 33, 42, 0.16);
  padding-bottom: 8px;
}

.map-frame {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(13, 54, 68, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(18px, calc((100vw - var(--max)) / 2));
  background: #12323b;
  color: white;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 900;
}

@media (max-width: 1060px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .header-actions {
    order: 3;
    margin-left: auto;
  }

  .main-nav {
    order: 4;
    width: 100%;
    display: none;
    justify-content: start;
    overflow-x: auto;
    padding-top: 10px;
  }

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

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

  .appointment-layout,
  .login-layout,
  .token-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .receipt-panel {
    position: static;
  }

  .disease-tools,
  .disease-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-strip {
    flex-direction: column;
    gap: 6px;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch {
    flex: 1;
  }

  .language-option {
    flex: 1;
  }

  .header-call {
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
    padding: 92px 18px 246px;
  }

  .hero-status {
    left: 18px;
    right: 18px;
    bottom: 24px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .hero-status div {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-status div:last-child {
    border-bottom: 0;
  }

  .section-wrap {
    width: min(100% - 28px, var(--max));
    padding: 62px 0;
  }

  .quick-actions,
  .service-grid,
  .doctor-grid,
  .form-grid,
  .disease-grid,
  .staff-controls,
  .role-tabs {
    grid-template-columns: 1fr;
  }

  .doctor-card,
  .appointment-item {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
  }

  .receipt-meta div {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .site-footer {
    display: grid;
  }
}
