:root {
  --primary: #2E7D6B;
  --primary-soft: #E8F5F3;
  --accent: #4CAF50;
  --secondary: #1E88E5;
  --text-main: #222222;
  --text-muted: #666666;
  --bg: #ffffff;
  --bg-soft: #F5FAF9;
  --border-soft: #DDE7E3;
  --radius: 10px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.04);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* PAGE container */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* MAIN */
main {
  padding: 0; /* page handles horizontal padding */
}

/* HEADER */
.site-header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
}

/* Header inner layout */
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* nav will be pushed with margin-left:auto */
  gap: 1rem;
  width: 100%;
  position: relative;
}

/* Logo */
.logo-link {
  display: block;
  margin: 0; /* left aligned on desktop */
}
.site-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav */
.header-inner nav {
  margin-left: auto; /* forces nav to the right */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.nav-links li {
  margin: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover {
  background-color: rgba(30, 136, 229, 0.12);
  color: var(--secondary);
}
.nav-links a.active {
  background-color: var(--secondary);
  color: #ffffff;
}

/* Mobile menu toggle (hamburger) */
/* Default: hidden on desktop; shown on mobile via media query */
.mobile-menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  left: 10px;
  top: 22px;
  z-index: 1000;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 1.5rem 0;
  overflow: hidden;
}

.compact-hero {
  padding: 1.8rem 20px; /* consistent with header/content padding */
}

.hero-text h2 {
  margin-top: 0;
  font-size: 1.9rem;
  color: var(--primary);
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 1.2rem;
}

/* CARDS / HIGHLIGHTS */
.highlights {
  margin-bottom: 1.5rem;
}

.section-heading {
  margin-bottom: 1rem;
  color: var(--primary);
}

.cards {
  display: grid;
  gap: 1rem;
}

.icon-cards {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background-color: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}

/* CTA / Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background-color: var(--secondary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #166dc4;
}
.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: var(--secondary);
  color: #ffffff;
}
.large-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

/* CTA strip */
.cta-strip {
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.compact-cta {
  padding: 1.4rem 1.5rem;
  margin-top: 1.5rem;
}

/* SERVICES / DOCTORS */
.two-columns-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.section-title {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}
.homeopathy-title { color: var(--primary); }
.physio-title { color: var(--secondary); }

.compact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.compact-list li {
  margin-bottom: 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.4;
}
.compact-list li:last-child { border-bottom: none; }

/* NOTE BOX */
.note-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  background-color: var(--primary-soft);
  color: var(--text-main);
}

/* DOCTOR CARDS */
.doctor-section { margin: 40px 0; }
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}
.doctor-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.doctor-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.doctor-info h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #1E88E5;
}
.doctor-qualifications {
  font-weight: bold;
  margin: 8px 0 15px;
}
.doctor-highlights {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Desktop spacer (optional) - keep only one definition if used */
.desktop-spacer {
  width: 40px;
}
@media (max-width: 768px) {
  .desktop-spacer { display: none; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .two-columns-compact { grid-template-columns: 1fr; }
  .icon-cards { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

/* Mobile specific */
@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .mobile-menu-toggle {
    display: block !important;
  }

  /* Center the logo on mobile */
  .logo-link {
    margin: 0 auto;
  }

  /* Reduce logo size for spacing */
  .site-logo {
    height: 55px;
  }

  /* Hide desktop nav and make mobile dropdown */
  nav .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 20px 0;
    position: absolute;
    top: 80px;
    left: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  /* Show dropdown when toggled */
  nav .nav-links.show {
    display: flex;
  }

  nav .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  /* Page horizontal padding on small screens */
  main {
    padding: 0 20px;
  }

  .doctor-grid { grid-template-columns: 1fr; }
}

/* Temporary debug outlines (remove after testing) */
/* .header-inner > * { outline: 1px solid rgba(255,0,0,0.08); } */
/* nav .nav-links > li { outline: 1px solid rgba(0,0,255,0.06); } */