:root {
  --primary: #6878d6;
  --primary-hover: #4d61d6;
  --dark: #242a56;
  --text: #393a56;
  --light-bg: #eff2ff;
  --white: #ffffff;
  --accent-light: #BFD1FF;
  --border: #dddddd;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --container-width: 1200px;
  --section-padding: 80px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light-bg);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.625rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; line-height: 1.2; }
h5 { font-size: 1.125rem; line-height: 1.2; }
h6 { font-size: 0.9375rem; line-height: 1.25; }

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-light { background: var(--light-bg); }
.section-white { background: var(--white); }
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.text-center { text-align: center; }

.section-title {
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.section-dark .section-subtitle { color: var(--accent-light); }

.btn {
  display: inline-block;
  padding: 17px 35px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ─── Header ────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.site-logo img {
  max-width: 180px;
  width: 180px;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.scrolled .site-logo .logo-text { color: var(--dark); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 15px 16px;
  color: var(--light-bg);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--white); }

.scrolled .main-nav a { color: var(--text); }
.scrolled .main-nav a:hover,
.scrolled .main-nav a.active { color: var(--primary-hover); }

.header-cta .btn {
  padding: 15px 28px;
}

.mobile-toggle {
  display: none;
  background: var(--primary);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ─── Hero ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 3rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.92;
}

/* ─── Services ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(104, 120, 214, 0.15);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.3rem;
}

.service-card h5 {
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #6b6b80;
}

/* ─── Facilities ─────────────────────────── */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.facility-item {
  background: var(--white);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.facility-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(104, 120, 214, 0.12);
}

.facility-item .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.facility-item h5 {
  font-size: 1rem;
}

/* ─── Mission / Vision ───────────────────── */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mv-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  border-left: 4px solid var(--primary);
}

.mv-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* ─── Doctors ────────────────────────────── */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 30px;
}

.doctor-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  transition: box-shadow 0.3s;
}

.doctor-card:hover {
  box-shadow: 0 8px 30px rgba(104, 120, 214, 0.15);
}

.doctor-photo {
  width: 200px;
  min-height: 280px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doctor-info {
  padding: 24px;
  flex: 1;
}

.doctor-info h4 {
  margin-bottom: 4px;
  color: var(--dark);
}

.doctor-info h6 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.doctor-info p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #6b6b80;
}

/* ─── Gallery ────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  opacity: 0.35;
}

.gallery-item .placeholder i { font-size: 3rem; }
.gallery-item .placeholder span { font-size: 0.8rem; }

/* ─── Video Showcase ─────────────────────── */
.video-showcase {
  margin-top: 48px;
  text-align: center;
}

.video-showcase h3 {
  margin-bottom: 24px;
  color: var(--dark);
}

.video-wrapper {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(104, 120, 214, 0.15);
  background: var(--light-bg);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Why Choose Us ──────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(104, 120, 214, 0.15);
  background: var(--white);
}

.why-card h5 {
  margin-bottom: 10px;
  color: var(--dark);
}

.why-card p {
  font-size: 0.93rem;
  color: #6b6b80;
}

/* ─── Contact ────────────────────────────── */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item h5 { margin-bottom: 4px; }
.contact-item p {
  font-size: 0.95rem;
  color: #6b6b80;
}

/* ─── Footer ─────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: var(--white);
}

.footer-main {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-about p {
  opacity: 0.8;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--light-bg);
}

.footer-contact p {
  opacity: 0.8;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--white);
  opacity: 0.8;
}

.footer-contact a:hover { opacity: 1; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(81, 86, 129, 0.72);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-bg);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--white); }

/* ─── Page Header (sub-pages) ────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── About page ─────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  background: var(--white);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image .placeholder-icon {
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.3;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 991px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .mission-vision { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  :root { --section-padding: 50px; }

  .main-nav,
  .header-cta { display: none; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .main-nav.open ul {
    flex-direction: column;
  }

  .main-nav.open a {
    color: var(--text);
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav.open a:hover { color: var(--primary); }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.05rem; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .doctor-card { flex-direction: column; }
  .doctor-photo { width: 100%; min-height: 200px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: 120px 0 40px; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr 1fr; }
}
