/* ============================================
   VaidTrack.com - Main Stylesheet
   ============================================ */

:root {
  /* Brand color system - VaidTrack.com */
  --primary: #0F4C81;
  --primary-dark: #0B3A61;
  --primary-light: #3A6F9A;
  --success: #16A34A;
  --success-hover: #15803D;
  --background: #FFFFFF;
  --section-bg: #F8FAFC;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-light: #64748B;

  /* Semantic aliases */
  --secondary: #0B3A61;
  --accent: #0F4C81;
  --accent-soft: #E8F0F6;
  --gold: #0F4C81;
  --cta: #0F4C81;
  --cta-hover: #0B3A61;
  --soft: #F8FAFC;
  --ink: #1E293B;
  --wa: #16A34A;
  --wa-hover: #15803D;
  --white: #FFFFFF;
  --shadow: rgba(15, 76, 129, 0.10);
  --shadow-strong: rgba(11, 58, 97, 0.14);
  --font-heading: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-h1: 700;
  --fw-h2: 700;
  --fw-h3: 600;
  --fw-h4: 600;

  --ls-heading: -0.01em;
  --ls-body: 0;

  --lh-heading: 1.22;
  --lh-body: 1.7;

  --fs-h1: 2.25rem;
  --fs-h2: 1.875rem;
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.875rem;
  --fs-nav: 1rem;
  --fs-button: 1rem;
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 2.875rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --fs-body: 1.0625rem;
    --fs-small: 1rem;
    --fs-nav: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 2.625rem;
    --fs-h3: 1.875rem;
    --fs-h4: 1.5rem;
    --fs-body: 1.125rem;
    --fs-small: 1rem;
    --fs-caption: 0.875rem;
    --fs-nav: 1.0625rem;
    --fs-button: 1rem;
  }
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4,
.font-display,
.font-heading {
  font-family: var(--font-heading) !important;
  letter-spacing: var(--ls-heading) !important;
  line-height: var(--lh-heading) !important;
}

h1 {
  font-size: var(--fs-h1) !important;
  font-weight: var(--fw-h1) !important;
  line-height: 1.15 !important;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2) !important;
  line-height: 1.2 !important;
}

h3 {
  font-size: var(--fs-h3) !important;
  font-weight: var(--fw-h3) !important;
  line-height: 1.25 !important;
}

h4 {
  font-size: var(--fs-h4) !important;
  font-weight: var(--fw-h4) !important;
  line-height: 1.25 !important;
}

p, li, label, td, th, figcaption, blockquote {
  font-family: var(--font-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

/* Navigation */
header nav,
header nav a {
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-body);
}

/* Buttons & form controls */
button,
[type="submit"],
[type="button"],
input,
select,
textarea {
  font-family: var(--font-body);
  letter-spacing: var(--ls-body);
}

button,
[type="submit"],
[type="button"] {
  font-size: var(--fs-button);
  font-weight: var(--fw-semibold);
}

input,
select,
textarea,
label {
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
}

/* Hero copy */
.hero-slide h1,
.hero-slide h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h1) !important;
  font-weight: var(--fw-h1) !important;
  letter-spacing: var(--ls-heading) !important;
  line-height: 1.15 !important;
}

.hero-slide p {
  font-family: var(--font-body);
  font-size: var(--fs-body) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-body) !important;
  letter-spacing: var(--ls-body);
}

/* Dense card / step titles */
#why-india h3,
.appointment-card h3 {
  font-size: var(--fs-h4) !important;
  font-weight: var(--fw-h3) !important;
}

/* ---- Treatment cards ---- */
/* Centered stack: page arrow, icon, name, price, copy, CTA */
.tx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: start;
}
@media (min-width: 768px) {
  .tx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
@media (min-width: 1024px) {
  .tx-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
.tx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: var(--background);
  border-radius: 0.65rem;
  padding: 0.7rem 0.45rem 0.55rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  padding-top: 0.9rem;
}
.tx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--shadow-strong);
  border-color: var(--primary);
}
.tx-page-link {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  background: var(--background);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.tx-page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--section-bg);
}
.tx-page-link svg {
  width: 0.7rem;
  height: 0.7rem;
  display: block;
}
.tx-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tx-color, var(--primary)) 14%, var(--background));
  color: var(--tx-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.15rem 0 0.3rem;
  flex-shrink: 0;
  overflow: visible;
  box-sizing: border-box;
  padding: 0.35rem;
}
.tx-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  flex-shrink: 0;
}
.tx-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  flex: 1;
}
.tx-card h3,
.tx-body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--secondary);
}
.tx-card h3 a,
.tx-body h3 a {
  color: inherit;
  text-decoration: none;
}
.tx-card h3 a:hover,
.tx-body h3 a:hover {
  color: var(--primary);
}
.tx-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.tx-card p,
.tx-body p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tx-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.15rem;
  padding: 0.3rem 0.35rem;
  margin-top: auto;
  flex-shrink: 0;
  border-radius: 0.4rem;
  background: var(--wa);
  color: var(--background);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  hyphens: auto;
  overflow-wrap: anywhere;
  transition: background 0.15s ease;
}
.tx-book:hover { background: var(--wa-hover); }
.tx-book svg {
  display: none;
}
.tx-book-full { display: none; }
.tx-book-short { display: inline; }

@media (min-width: 640px) {
  .tx-grid { align-items: stretch; }
  .tx-card {
    padding: 0.75rem 0.55rem 0.6rem;
    border-radius: 0.7rem;
    padding-top: 0.95rem;
  }
  .tx-page-link {
    width: 1.35rem;
    height: 1.35rem;
    top: 0.45rem;
    right: 0.45rem;
  }
  .tx-page-link svg { width: 0.65rem; height: 0.65rem; }
  .tx-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0.2rem 0 0.35rem;
    padding: 0.4rem;
  }
  .tx-icon svg {
    width: 100%;
    height: 100%;
  }
  .tx-body { flex: 1; min-height: 0; }
  .tx-card h3,
  .tx-body h3 {
    font-size: 0.95rem !important;
  }
  .tx-price { font-size: 0.78rem; padding: 0.14rem 0.45rem; margin-bottom: 0.3rem; }
  .tx-card p,
  .tx-body p {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
  }
  .tx-book {
    margin-top: auto;
    font-size: 0.78rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.4rem;
    white-space: normal;
  }
  .tx-book svg {
    display: none;
  }
}

/* Keep one CTA label (short/full identical) */
@media (min-width: 1100px) {
  .tx-book-short { display: inline; }
  .tx-book-full { display: none; }
}

@media (min-width: 1024px) {
  .tx-card { padding: 0.8rem 0.6rem 0.65rem; padding-top: 1rem; }
  .tx-icon {
    width: 2.55rem;
    height: 2.55rem;
    padding: 0.42rem;
  }
  .tx-icon svg {
    width: 100%;
    height: 100%;
  }
  .tx-card h3,
  .tx-body h3 { font-size: 1rem !important; }
  .tx-price { font-size: 0.8125rem; }
  .tx-card p,
  .tx-body p { font-size: 0.8125rem; }
  .tx-book {
    min-height: 2.25rem;
    font-size: 0.8125rem;
  }
}

/* ---- Treatment detail pages ---- */
.tx-detail-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .tx-detail-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2rem;
  }
}
.tx-detail-content {
  background: var(--background);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 640px) {
  .tx-detail-content { padding: 2rem 2.25rem; }
}
.tx-detail-content .tx-detail-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--tx-color, var(--primary)) 14%, var(--background));
  color: var(--tx-color, var(--primary));
}
.tx-detail-content .tx-detail-icon svg {
  width: 2.4rem;
  height: 2.4rem;
}
.tx-detail-content h1 {
  color: var(--secondary);
  margin: 0 0 0.5rem;
}
.tx-detail-content .tx-detail-price {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
}
.tx-detail-content h2 {
  color: var(--secondary);
  font-size: 1.15rem !important;
  margin: 1.5rem 0 0.65rem;
}
.tx-detail-content p,
.tx-detail-content li {
  color: var(--text-light);
  line-height: 1.7;
}
.tx-detail-content ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}
.tx-detail-content li { margin-bottom: 0.4rem; }
.tx-detail-placeholder {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1.5px dashed var(--border);
  background: var(--section-bg);
  color: var(--text-light);
  font-size: 0.9rem;
}
.tx-float-form {
  position: relative;
}
@media (min-width: 1024px) {
  .tx-float-form {
    position: sticky;
    top: 5.5rem;
  }
}
.tx-float-form .appointment-card {
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Doctor cards ---- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .doc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}
@media (min-width: 1024px) {
  .doc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}
.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  background: var(--background);
  border-radius: 0.9rem;
  padding: 1.25rem 1.1rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  overflow: hidden;
  box-sizing: border-box;
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--shadow-strong);
  border-color: var(--primary-light);
}
.doc-photo {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 999px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--accent-soft) 0%, #d7e6f1 100%);
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border), 0 6px 14px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  overflow: hidden;
}
.doc-photo span { line-height: 1; }
.doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.doc-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--secondary);
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}
.doc-card .doc-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 auto 1rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 100%;
  text-align: center;
}
.doc-info {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  flex: 1 1 auto;
}
.doc-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}
.doc-info li svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--primary);
}
.doc-info li span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-info li strong {
  font-weight: 700;
  color: var(--secondary);
}
.doc-actions {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}
.doc-book,
.doc-card .doc-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-sizing: border-box;
  min-height: 2.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
  color: var(--background);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, filter 0.15s ease;
  margin-top: 0;
  width: auto;
  max-width: none;
}
.doc-book {
  flex: 1.55 1 0;
  background: var(--primary);
}
.doc-book:hover { background: var(--primary-dark); color: var(--background); }
.doc-card .doc-wa {
  flex: 1 1 0;
  background: var(--wa);
}
.doc-card .doc-wa:hover { background: var(--wa-hover); color: var(--background); }
.doc-book svg,
.doc-card .doc-wa svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .doc-card {
    padding: 1.2rem 1.05rem 0.95rem;
    border-radius: 1rem;
    min-height: 24.3rem;
  }
  .doc-photo {
    width: 5rem;
    height: 5rem;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }
  .doc-card h3 { font-size: 1.05rem !important; }
  .doc-card .doc-role { font-size: 0.75rem; padding: 0.24rem 0.75rem; }
  .doc-info li { font-size: 0.8rem; }
  .doc-book,
  .doc-card .doc-wa {
    font-size: 0.72rem;
    min-height: 2.45rem;
  }
}
@media (min-width: 1024px) {
  .doc-card { min-height: 25.2rem; }
  .doc-card h3 { font-size: 1.05rem !important; }
  .doc-info li { font-size: 0.8rem; }
  .doc-book,
  .doc-card .doc-wa { font-size: 0.7rem; }
}

/* ---- Mobile-only: premium single-column square cards ---- */
@media (max-width: 767px) {
  #treatment > .max-w-6xl,
  #doctors > .max-w-6xl {
    padding-left: 0.875rem;  /* ~14px side margins */
    padding-right: 0.875rem;
  }

  .tx-grid,
  .doc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    justify-items: stretch;
    align-items: stretch;
  }

  .tx-card {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 1.25rem; /* 20px */
    padding: 1.55rem 1.35rem 1.25rem;
    box-shadow:
      0 4px 10px rgba(15, 23, 42, 0.04),
      0 14px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .doc-card {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    border-radius: 1.1rem;
    padding: 1.35rem 1.2rem 1.15rem;
    box-shadow:
      0 4px 10px rgba(15, 23, 42, 0.04),
      0 14px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .tx-card {
    padding-top: 1.75rem;
    justify-content: space-between;
  }

  .tx-page-link {
    top: 0.85rem;
    right: 0.85rem;
    width: 1.85rem;
    height: 1.85rem;
  }
  .tx-page-link svg {
    width: 0.85rem;
    height: 0.85rem;
  }

  .tx-icon {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0.35rem 0 0.75rem;
    padding: 0.7rem;
  }

  .tx-body {
    gap: 0;
    justify-content: center;
  }

  .tx-card h3,
  .tx-body h3 {
    margin: 0 0 0.55rem;
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .tx-price {
    margin: 0 0 0.55rem;
    padding: 0.28rem 0.7rem;
    font-size: 0.9375rem;
  }

  .tx-card p,
  .tx-body p {
    margin: 0 0 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .tx-book {
    min-height: 2.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    margin-top: auto;
    gap: 0.35rem;
    font-size: 0.9375rem;
  }

  .doc-photo {
    width: 6rem;
    height: 6rem;
    font-size: 1.3rem;
    margin-bottom: 0.95rem;
  }

  .doc-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    text-align: center;
  }

  .doc-card .doc-role {
    margin: 0 auto 1.05rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    align-self: center;
  }

  .doc-info {
    gap: 0.8rem;
    margin-bottom: 1.1rem;
  }

  .doc-info li {
    font-size: 0.9rem;
    gap: 0.65rem;
  }

  .doc-info li svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .doc-book,
  .doc-card .doc-wa {
    min-height: 2.7rem;
    padding: 0.6rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    white-space: normal;
    margin-top: 0;
    width: auto;
  }

  .doc-book svg,
  .doc-card .doc-wa svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Hero slider ---- */
.hero-slider {
  position: relative;
  min-height: clamp(560px, 88vh, 720px);
  overflow: hidden;
  background: linear-gradient(180deg, #F5FBFA 0%, #D5EFEC 48%, #8CDAD4 100%);
}
.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../../images/hero-routes-pattern.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: min(110%, 52rem) auto;
  opacity: 0.16;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s;
  background-color: transparent;
  background-image: none !important;
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide::before {
  content: none;
}
.hero-slide::after {
  content: none;
}
.hero-slide-content { position: relative; z-index: 2; }
.hero-copy {
  text-shadow: none;
}
.hero-copy h1,
.hero-copy h2 {
  color: var(--text) !important;
}
.hero-copy .hero-accent {
  color: var(--primary) !important;
}
.hero-copy p {
  color: var(--text-light) !important;
  max-width: 34rem;
}

.hero-arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: var(--primary); color: var(--background); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-arrow:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.05); }
.hero-arrow.prev { left: 0.75rem; }
.hero-arrow.next { right: 0.75rem; }
@media (min-width: 768px) {
  .hero-arrow.prev { left: 1.25rem; }
  .hero-arrow.next { right: 1.25rem; }
}

.hero-dots { position: absolute; bottom: 1.25rem; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 0.5rem; }
.hero-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 9999px; border: none;
  background: rgba(15, 76, 129, 0.28); cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.2s;
}
.hero-dot.active { background: var(--primary); width: 1.5rem; }

/* Appointment popup (mobile / tablet) */
.appt-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.appt-modal[hidden] { display: none !important; }
.appt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 58, 97, 0.45);
}
.appt-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  max-height: min(92dvh, 40rem);
  overflow: auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  animation: appt-modal-in 0.22s ease;
}
@media (min-width: 480px) {
  .appt-modal {
    align-items: center;
    padding: 1.25rem;
  }
  .appt-modal-panel {
    padding: 0;
  }
}
.appt-modal-close {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: var(--section-bg);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.appt-modal-panel .appointment-card {
  position: relative;
  padding-top: 1.75rem;
}
@keyframes appt-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
body.appt-modal-open { overflow: hidden; }

/* Minimal trust list inside hero */
.hero-trust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.5rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  pointer-events: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  background: none;
  border: none;
}
.hero-trust li svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: var(--primary);
}
@media (min-width: 640px) {
  .hero-trust {
    bottom: 3.5rem;
    gap: 0.5rem;
    padding: 0 1.5rem;
  }
  .hero-trust li { font-size: 0.75rem; }
  .hero-trust li svg { width: 1rem; height: 1rem; }
}
@media (min-width: 1024px) {
  .hero-trust {
    bottom: 2.75rem;
    max-width: 36rem;
    margin-left: max(1.5rem, calc((100% - 72rem) / 2 + 1.5rem));
    margin-right: auto;
    padding-left: 0;
    gap: 0.55rem;
  }
  .hero-trust li { font-size: 0.8125rem; }
}

/* ---- How It Works ---- */
#how-it-works {
  position: relative;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(15, 76, 129, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(11, 58, 97, 0.05), transparent 50%),
    var(--section-bg);
  overflow: hidden;
  padding: 3.25rem 0 3.5rem !important;
}
#how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,76,129,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,76,129,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 90%);
  pointer-events: none;
}

.hiw-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .hiw-inner { padding: 0 1.5rem; }
}

.hiw-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}
.hiw-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.hiw-inner h2,
.hiw-header h2 {
  margin: 0 0 0.65rem;
  color: var(--text) !important;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center;
}
.hiw-sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-light);
}

.hiw-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: none;
}
@media (min-width: 700px) {
  .hiw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }
}
@media (min-width: 1100px) {
  .hiw-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    position: relative;
  }
  .hiw-grid::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 2.15rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(15,76,129,0.22) 12%, rgba(15,76,129,0.22) 88%, transparent);
    pointer-events: none;
    z-index: 0;
  }
}

.hiw-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--background);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px var(--shadow);
  border-radius: 1rem;
  padding: 1.15rem 0.75rem 1.05rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.hiw-step:hover {
  transform: translateY(-3px);
  background: var(--background);
  border-color: var(--primary);
  box-shadow: 0 8px 22px var(--shadow-strong);
}

.hiw-num {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.hiw-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.75rem;
  box-shadow: 0 6px 16px var(--shadow-strong);
  flex-shrink: 0;
}
.hiw-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}

.hiw-step h3 {
  margin: 0 0 0.35rem;
  color: var(--text) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em;
}
.hiw-step p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.6875rem;
  line-height: 1.4;
  max-width: 11.5rem;
}

@media (min-width: 700px) {
  .hiw-step { padding: 1.25rem 0.85rem 1.15rem; }
  .hiw-icon {
    width: 3rem;
    height: 3rem;
  }
  .hiw-icon svg {
    width: 1.4rem;
    height: 1.4rem;
  }
  .hiw-step h3 { font-size: 0.875rem !important; }
  .hiw-step p { font-size: 0.72rem; }
}

@media (min-width: 1100px) {
  .hiw-header { margin-bottom: 2.5rem; }
  .hiw-step {
    padding: 1.35rem 0.55rem 1.15rem;
    min-height: 100%;
  }
  .hiw-icon {
    width: 3.15rem;
    height: 3.15rem;
    margin-bottom: 0.85rem;
  }
  .hiw-step h3 {
    font-size: 0.8rem !important;
    margin-bottom: 0.4rem;
  }
  .hiw-step p {
    font-size: 0.68rem;
    max-width: none;
  }
}

.hiw-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.hiw-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.65rem;
  background: var(--primary);
  color: var(--background);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px var(--shadow-strong);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hiw-cta-btn:hover {
  background: var(--primary-dark);
  color: var(--background);
  transform: translateY(-1px);
}

/* Mobile hamburger nav removed - keep selectors inert if markup remains elsewhere */
.nav-toggle,
.mobile-nav { display: none !important; }

/* ---- Mobile bottom bar (WhatsApp + Book Now) ---- */
.mobile-bottom-bar {
  display: none;
}
.mobile-bottom-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--background);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.mobile-bottom-wa {
  background: var(--wa);
}
.mobile-bottom-wa:hover { background: var(--wa-hover); }
.mobile-bottom-book {
  background: var(--primary-dark);
}
.mobile-bottom-book:hover { background: var(--primary); }

/* Header logo - desktop/tablet (wordmark + tagline lockup) */
header .site-logo {
  min-width: 0;
  flex-shrink: 1;
}
header .site-logo img,
header .site-logo-img {
  display: block;
  height: 2.04rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 1024px) {
  header .site-logo img,
  header .site-logo-img {
    height: 2.24rem;
    max-width: 13.2rem;
  }
}

@media (max-width: 767px) {
  header .header-wa {
    padding: 0.5rem;
    min-height: 2.4rem;
    min-width: 2.4rem;
    border-radius: 0.5rem;
    justify-content: center;
  }
  header .header-wa-text { display: none; }
  header .header-wa svg {
    width: 1.35rem;
    height: 1.35rem;
  }
  header .site-logo {
    height: auto;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 3.25rem);
  }
  header .site-logo img {
    display: block;
    height: auto;
    width: min(100%, 10rem);
    max-height: 1.88rem;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
  }

  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  #doctors h2,
  #treatment h2,
  #testimonials h2,
  #faq h2,
  #location h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 1023px) {
  #hero > .absolute.inset-0 { display: none !important; }

  .hero-slider {
    aspect-ratio: auto;
    width: 100%;
    min-height: calc(100svh - 4.25rem);
    height: calc(100dvh - 4.25rem);
    overflow: hidden;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 16%, #FFFFFF) 0%,
      color-mix(in srgb, var(--primary) 10%, #FFFFFF) 38%,
      color-mix(in srgb, var(--success) 26%, #FFFFFF) 100%
    );
  }
  .hero-slider::before {
    opacity: 0.18;
    background-size: 125% auto;
    background-position: top 0 left 40%;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    min-height: 100%;
    height: 100%;
  }
  .hero-slide-content {
    align-items: flex-start !important;
    height: 100% !important;
    min-height: 100% !important;
    padding-top: 2rem !important;
    padding-bottom: 6.5rem !important;
  }
  .hero-copy { margin-top: 0.35rem; }
  .hero-copy p { font-size: 0.95rem; max-width: 22rem; margin-bottom: 1.15rem !important; }
  .hero-copy h1,
  .hero-copy h2 { font-size: clamp(1.85rem, 8vw, 2.25rem); margin-bottom: 0.75rem !important; }
  .hero-trust {
    bottom: 3.25rem;
    gap: 0.45rem;
  }
  .hero-dots {
    display: none !important;
  }
  .hero-arrow { display: none; }
}
@media (max-width: 767px) {
  .hero-slider {
    min-height: calc(100svh - 4.25rem);
    height: calc(100dvh - 4.25rem);
  }
  .hero-trust {
    bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
  }
  .hero-slide-content {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-slider {
    min-height: calc(100svh - 4.75rem);
    height: calc(100dvh - 4.75rem);
  }
  .hero-slide-content { padding-top: 2.5rem; padding-bottom: 7rem !important; }
}
@media (max-width: 380px) {
  .hiw-step h3 { font-size: 0.75rem !important; }
  .hiw-step p { font-size: 0.65rem; }
}

/* ---- FAQ ---- */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 640px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item button,
.faq-trigger {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h4) !important;
  font-weight: var(--fw-h3) !important;
  letter-spacing: var(--ls-heading) !important;
  line-height: 1.25 !important;
  text-align: left;
}
.faq-answer p {
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-regular);
  line-height: var(--lh-body) !important;
}
@media (max-width: 639px) {
  #faq-list .faq-trigger {
    font-size: 0.9375rem !important;
    line-height: 1.35 !important;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  #faq-list .faq-answer p {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
  }
}

.type-small { font-size: var(--fs-small) !important; }
.type-caption { font-size: var(--fs-caption) !important; }

/* ---- Why Choose VaidTrack.com ---- */
#why-india .why-heading {
  font-size: clamp(1.55rem, 6.5vw, 2.1rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
@media (min-width: 768px) {
  #why-india .why-heading {
    font-size: clamp(2.1rem, 3.6vw, 3.15rem) !important;
  }
}
#why-india .why-heading-lead {
  display: block;
  color: var(--secondary);
}
#why-india .why-heading-brand {
  display: block;
  color: var(--primary);
  font-size: 0.88em;
  line-height: 1.15;
  white-space: nowrap;
}
#why-india .why-stats {
  gap: 0.65rem;
}
#why-india .why-stats > div p:first-child {
  font-size: 1.25rem !important;
  line-height: 1.1 !important;
}
#why-india .why-stats > div p:last-child {
  font-size: 0.5625rem !important;
  letter-spacing: 0.06em !important;
  margin-top: 0.35rem !important;
  line-height: 1.25 !important;
}
@media (min-width: 640px) {
  #why-india .why-stats {
    gap: 1.25rem;
  }
  #why-india .why-stats > div p:first-child {
    font-size: 1.65rem !important;
  }
  #why-india .why-stats > div p:last-child {
    font-size: 0.625rem !important;
    letter-spacing: 0.1em !important;
    margin-top: 0.4rem !important;
  }
}
#why-india .why-card--teal {
  background: var(--accent-soft);
}
#why-india .why-card--gold {
  background: var(--accent-soft);
}

/* ---- Brand mark ---- */
.brand-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-heading);
}

/* ---- WhatsApp float ---- */
#whatsapp-float {
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#whatsapp-float.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
}
