/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #38bdf8;
  --background: #ffffff;
  --surface: #f8fafc;
  --accent: #0ea5e9;
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.navbar-brand .brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.navbar-brand .brand-name span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  transition: background-color var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  color: #fff !important;
  border-bottom-color: transparent !important;
}

/* Hamburger Button */
.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: opacity var(--transition), background-color var(--transition);
}

.hamburger:hover .bar {
  background: var(--primary-dark);
}

/* Mobile Nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--background);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--surface);
  color: var(--primary);
}

.mobile-nav .nav-cta-mobile {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  transition: background-color var(--transition);
}

.mobile-nav .nav-cta-mobile:hover {
  background: var(--primary-dark);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #f8fafc 100%);
  overflow: hidden;
  padding: 80px 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 0;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), box-shadow var(--transition), color var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1da851;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  color: #fff;
}

.btn-phone {
  background: var(--primary);
  color: #fff;
}

.btn-phone:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  color: #fff;
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 0;
}

.section-surface {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .section-line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--background);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
  text-align: center;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Doctor Preview ===== */
.doctor-preview {
  display: flex;
  align-items: center;
  gap: 60px;
}

.doctor-image {
  flex: 0 0 350px;
}

.doctor-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doctor-info {
  flex: 1;
}

.doctor-info h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.doctor-info .doctor-title {
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
}

.doctor-info p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
}

.doctor-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== Clinic Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--background);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.author-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Contact Info Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  background: var(--background);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-card a:hover {
  color: var(--primary-dark);
}

/* ===== Map Section ===== */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-banner h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

.page-banner .breadcrumb {
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.page-banner .breadcrumb a {
  color: #fff;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.page-banner .breadcrumb a:hover {
  opacity: 1;
}

/* ===== Doctor Page ===== */
.doctor-profile {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.doctor-profile-image {
  flex: 0 0 380px;
}

.doctor-profile-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doctor-profile-content {
  flex: 1;
}

.doctor-profile-content h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.doctor-profile-content .title {
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1rem;
}

.doctor-profile-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.qualifications-list {
  margin: 20px 0;
}

.qualifications-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.qualifications-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== About Page ===== */
.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.value-card {
  background: var(--background);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.value-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Contact Page ===== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-section h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.contact-form-section > p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-details-section h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.detail-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.detail-content a {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}

.detail-content a:hover {
  color: var(--primary-dark);
}

.working-hours {
  margin-top: 30px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.working-hours h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-light);
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li span:first-child {
  font-weight: 600;
  color: var(--text);
}

.contact-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .brand-name span {
  color: var(--secondary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: background-color var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-column h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-column ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== Fade In Animation (opacity only) ===== */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-preview {
    flex-direction: column;
    text-align: center;
  }

  .doctor-image {
    flex: 0 0 auto;
    max-width: 350px;
    margin: 0 auto;
  }

  .doctor-stats {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-profile {
    flex-direction: column;
  }

  .doctor-profile-image {
    flex: 0 0 auto;
    max-width: 380px;
    margin: 0 auto;
  }

  .about-content {
    flex-direction: column;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 50px 0;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .doctor-stats {
    flex-direction: column;
    gap: 20px;
  }

  .contact-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 40px 0;
  }
}