/*
Theme Name: Dr. Naresh Gabani - Surgical Gastroenterology
Theme URI: https://drnareshgabani.com
Author: Dr. Naresh Gabani Surgical Team
Description: Custom, high-speed, mobile-responsive medical theme with conversion funnels and AI Citation Dominance schema.
Version: 1.0.0
*/

:root {
  --primary-navy: #0B2545;
  --secondary-teal: #13757A;
  --accent-gold: #C59B27;
  --alert-red: #D90429;
  --bg-light: #F8FAFC;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --card-border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(11,37,69,0.12);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky action bar */
}

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

a {
  color: var(--secondary-teal);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-navy);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Emergency Alert Bar */
.emergency-topbar {
  background: var(--alert-red);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.emergency-topbar a {
  color: var(--white);
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Header & Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--secondary-teal);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EBF8FF;
  color: #0369A1;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
}

.btn-header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.9rem;
}

.btn-header-whatsapp:hover {
  background: #1EBE5D;
  color: var(--white);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0B2545 0%, #133E68 60%, #13757A 100%);
  color: var(--white);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 3.5rem;
  }
}

.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-pill {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #F8FAFC;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-pill.gold {
  background: rgba(197, 155, 39, 0.25);
  border-color: #E6C35C;
  color: #FFE699;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-subhead {
  font-size: 1.15rem;
  color: #BAE6FD;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-lead {
  font-size: 0.98rem;
  color: #E2E8F0;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  color: #0B2545;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(197,155,39,0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #D4A936;
  color: #0B2545;
  transform: translateY(-1px);
}

.btn-secondary-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary-white:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

.hero-image-wrap {
  text-align: center;
  position: relative;
}

.hero-doc-img {
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.35));
}

/* Trust Stats Bar */
.stats-bar {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Sections Global */
.section {
  padding: 4rem 0;
}

.section.alt-bg {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-teal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #E6FFFA;
  color: var(--secondary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-action {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Doctor Credentials Feature Box */
.credentials-box {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.cred-list {
  list-style: none;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cred-icon {
  color: var(--secondary-teal);
  font-size: 1.25rem;
  line-height: 1.3;
}

.cred-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.2rem;
}

.cred-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Second Opinion & Lead Form */
.opinion-banner {
  background: linear-gradient(135deg, #0B2545 0%, #164E63 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.opinion-banner h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.opinion-banner p {
  font-size: 1.05rem;
  color: #E2E8F0;
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

/* Hospital & OPD Location */
.location-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .location-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Footer */
.site-footer {
  background: #06182C;
  color: #94A3B8;
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.footer-col p {
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  z-index: 9999;
}

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

.sticky-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
}

.sticky-action-btn.call {
  background: #0B2545;
  color: var(--white);
}

.sticky-action-btn.whatsapp {
  background: #25D366;
  color: var(--white);
}

.sticky-action-btn.book {
  background: var(--accent-gold);
  color: #0B2545;
}

/* Card Media Image Styles */
.card-media {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  overflow: hidden;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  height: 190px;
  background: #E2E8F0;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-card:hover .card-media img {
  transform: scale(1.05);
}

.card-media-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Feature Showcase Split Section */
.feature-showcase {
  background: #0B2545;
  color: #FFFFFF;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .feature-split {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }
}

.feature-media-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-media-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-badge-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(11, 37, 69, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
}

.feature-badge-overlay span {
  color: #D4AF37;
  font-weight: 700;
}
