/* ============================================================
   Dr. Nikhil Sharma — Orthopaedic Surgeon
   Theme: Medical Green + Beige + Gold
   ============================================================ */

:root {
  --green-deep: #144238;
  --green: #1e6b56;
  --green-light: #2f9678;
  --green-pale: #e6efe9;
  --beige: #f6f0e2;
  --beige-dark: #ece0c4;
  --gold: #c8973f;
  --gold-light: #e2bf7a;
  --ink: #1c231f;
  --ink-soft: #4a5750;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px -12px rgba(20, 66, 56, 0.25);
  --shadow-lift: 0 18px 40px -14px rgba(20, 66, 56, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--beige);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--green-deep);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section--tight { padding: 60px 0; }

.section--beige-dark { background: var(--beige-dark); }
.section--green {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: var(--white);
}
.section--green h2, .section--green h3, .section--green p { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(200, 151, 63, 0.55);
  background: var(--gold-light);
}
.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-deep);
  transform: translateY(-3px);
}
.btn-outline-dark {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(246, 240, 226, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 35, 31, 0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(20, 66, 56, 0.4); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.brand-text h1 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--green-deep);
}
.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 34px;
  align-items: center;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--green); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green-deep);
  font-size: 0.92rem;
}
.header-phone svg { color: var(--gold); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--green-deep) 0%, var(--green) 60%, var(--green-light) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(200,151,63,0.28), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(200,151,63,0.16), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before { content:''; width: 30px; height: 2px; background: var(--gold-light); }
.hero h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}
.hero h2 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold-light);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #24513f, #0f2e26);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-frame .placeholder-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: 10px;
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--beige);
  color: var(--green-deep);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badge span.gold-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

/* ============================================================
   About preview / Doctor snapshot
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--green-light);
  color: var(--green);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.credentials-list { margin-top: 26px; display: grid; gap: 14px; }
.credential-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.credential-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.credential-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.credential-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--green-deep); }
.credential-item p { margin: 0; font-size: 0.88rem; }

/* ============================================================
   Services / Specialties
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--white);
  transform: rotate(-6deg) scale(1.05);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ============================================================
   Why choose / feature strip
   ============================================================ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 20px 10px;
}
.feature-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.feature-item p { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin: 0; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: var(--beige-dark);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  border: 1px solid rgba(200,151,63,0.3);
}
.cta-banner h3 { margin-bottom: 6px; }
.cta-banner p { margin: 0; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: var(--green-pale);
  border: 2px dashed var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   Placeholder page block
   ============================================================ */
.placeholder-box {
  border: 2px dashed var(--green-light);
  border-radius: var(--radius-lg);
  padding: 70px 30px;
  text-align: center;
  background: var(--white);
  color: var(--ink-soft);
}
.placeholder-box h2 { color: var(--green-deep); }
.placeholder-box .gold-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 90% 10%, rgba(200,151,63,0.25), transparent 45%);
}
.page-hero h1 { color: var(--white); position: relative; z-index: 2; margin-bottom: 10px; }
.breadcrumb {
  position: relative; z-index: 2;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: var(--gold-light); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.82);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 14px; }
.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}
.footer-contact svg { color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.social-row a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: var(--gold-light); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(37,211,102,0.6);
  z-index: 900;
  transition: transform 0.35s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1) rotate(6deg); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 96px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--beige); flex-direction: column; padding: 20px; box-shadow: var(--shadow-soft); transform: translateY(-140%); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 16px; align-items: flex-start; width: 100%; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .back-to-top { right: 26px; bottom: 92px; }
}
