/* ==========================================================================
   Dr. Bhaskar Shetty — Orthopedic, Spine & Endoscopy Clinic
   Clean, lightweight, mobile-first design system
   ========================================================================== */

:root {
  --navy-950: #09253a;
  --navy-900: #0f3d5e;
  --navy-800: #16507a;
  --teal-700: #0b6463;
  --teal-600: #0e7c7b;
  --teal-100: #e6f4f4;
  --teal-50: #f2fafa;
  --wa-green: #15803d;
  --wa-green-hover: #166534;
  --amber-500: #d97706;
  --amber-50: #fffbeb;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 61, 94, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(15, 61, 94, 0.14);
  --container: 1180px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background-color: var(--bg-page);
  padding-bottom: 68px; /* Space for mobile sticky action bar */
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--navy-900);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-600);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  margin-top: 0;
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--navy-900);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
}

/* Top Utility Bar */
.top-bar {
  background: var(--navy-950);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding-block: 0.5rem;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Main Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-900);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--navy-900);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--ink-600);
  font-weight: 500;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem 1.25rem;
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--teal-50);
  color: var(--navy-900);
}

.header-cta {
  display: none;
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-list a {
    padding: 0.45rem 0.7rem;
  }
  .header-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

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

.btn-sm {
  padding: 0.58rem 0.95rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--navy-900);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-800);
  color: #ffffff;
}

.btn-teal {
  background: var(--teal-600);
  color: #ffffff;
}

.btn-teal:hover {
  background: var(--teal-700);
  color: #ffffff;
}

.btn-whatsapp {
  background: var(--wa-green);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--wa-green-hover);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--navy-900);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-muted);
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Badges & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef6fa 60%, #e6f4f4 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 2.75rem 3.25rem;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 3.75rem 4.25rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-600);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-fact {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.hero-fact strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.hero-fact span {
  font-size: 0.82rem;
  color: var(--ink-600);
}

.hero-media {
  position: relative;
}

.hero-image-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero-image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-clinic-bar {
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-clinic-bar strong {
  color: var(--navy-900);
  font-size: 0.95rem;
}

.hero-clinic-bar span {
  font-size: 0.84rem;
  color: var(--ink-600);
}

/* Sections */
.section {
  padding-block: 3.5rem;
}

.section-alt {
  background: #ffffff;
  border-block: 1px solid var(--border-subtle);
}

.section-tint {
  background: var(--teal-50);
  border-block: 1px solid #d5ecec;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header p {
  color: var(--ink-600);
  font-size: 1.03rem;
  margin-bottom: 0;
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 1.35rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #b6d4e3;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-100);
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.card-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

/* How It Works Steps */
.step-card {
  position: relative;
  padding-top: 1.75rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

/* Two-Column Split */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.media-frame img {
  width: 100%;
  object-fit: cover;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-600);
  font-weight: 800;
}

/* GMB Reviews / Honest Placeholder Banner */
.gmb-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--teal-600);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-card.is-placeholder {
  border-style: dashed;
  border-color: #94a3b8;
  background: #f8fafc;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  background: var(--amber-50);
  border: 1px solid #fde68a;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}

.stars {
  color: var(--amber-500);
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.review-meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 860px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--teal-600);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--ink-600);
  border-top: 1px solid var(--bg-muted);
  padding-top: 0.9rem;
}

/* Forms & Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-900);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-900);
}

.form-control:focus {
  outline: 2px solid var(--teal-600);
  outline-offset: 1px;
  border-color: var(--teal-600);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  border: 1px solid #99d5d5;
  color: var(--navy-900);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* Breadcrumbs & Subpage Hero */
.page-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef6fa 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 2.25rem 2.75rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-500);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.content-layout {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 960px) {
  .content-layout {
    grid-template-columns: 1.65fr 0.9fr;
    align-items: start;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.25rem;
}

.info-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.notice-placeholder {
  background: var(--amber-50);
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.85rem;
  color: #78350f;
}

/* Map Frame */
.map-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #e2e8f0;
  margin-top: 1rem;
}

.map-box iframe {
  width: 100%;
  height: 290px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding-block: 3.25rem 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 2.25rem;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #ffffff;
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
}

.mobile-sticky-bar a {
  text-align: center;
  padding: 0.62rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-sticky-bar .bar-call {
  background: var(--navy-900);
  color: #fff;
}

.mobile-sticky-bar .bar-wa {
  background: var(--wa-green);
  color: #fff;
}

.mobile-sticky-bar .bar-book {
  background: var(--teal-100);
  color: var(--navy-900);
}

@media (min-width: 900px) {
  .mobile-sticky-bar {
    display: none;
  }
}
