/* =========================================
   Dr. Kunal Sharma - Homeopathic Clinic
   Global Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary:    #1a6b3c;
  --primary-dark: #0f4526;
  --primary-light: #2e9e5b;
  --accent:     #f0a500;
  --accent-light: #ffd166;
  --cream:      #f8f5ef;
  --white:      #ffffff;
  --text-dark:  #1c2340;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border:     #e2e8f0;
  --shadow:     0 8px 30px rgba(26,107,60,0.10);
  --shadow-lg:  0 20px 60px rgba(26,107,60,0.15);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }

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

/* ---- UTILITY ---- */
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: 16px;
}

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

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

.badge-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(26,107,60,0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,107,60,0.4);
  color: #fff;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--primary-dark);
  color: #c8e6c9;
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #c8e6c9; }
.topbar a:hover { color: var(--accent-light); }
.topbar-item { display: flex; align-items: center; gap: 6px; }

/* ---- NAVBAR ---- */
.navbar {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar-brand img { height: 56px; }
.navbar-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}
.navbar-brand small {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: var(--primary-light);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  position: relative;
  transition: var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--primary-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
  border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }
.navbar-toggler { border: none; outline: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ---- CALL BTN ---- */
.btn-call {
  background: linear-gradient(135deg, var(--accent), #e09400);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: var(--transition);
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,165,0,0.4); }
.btn-call::after { display: none !important; }

/* ---- HERO ---- */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, #e8f5e9 0%, #f0faf3 40%, #fafffe 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,158,91,0.15), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.10), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,107,60,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(26,107,60,0.2);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 span { color: var(--primary-light); }
.hero-desc {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(26,107,60,0.15);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-mid); margin-top: 4px; }
.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}
.hero-img-badge {
  position: absolute;
  bottom: 30px; left: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.hero-img-badge .icon { font-size: 1.8rem; }

/* ---- INFO STRIP ---- */
.info-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 32px 0;
}
.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}
.info-strip-item .icon { font-size: 2rem; margin-bottom: 8px; }
.info-strip-item h6 { font-family: 'Poppins', sans-serif; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.75; }
.info-strip-item p { font-weight: 600; font-size: 0.95rem; margin: 0; }

/* ---- CARD ---- */
.card-hover {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ---- SERVICE CARD ---- */
.service-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
  color: var(--primary);
}
.card-hover:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
}

.svg-icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.15em;
  transition: var(--transition);
}

.svg-service {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

/* ---- TREATMENT GALLERY ---- */
.treatment-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background-color: var(--cream);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: zoom-in;
}
.treatment-img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* ---- PRODUCT CARD ---- */
.product-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background-color: #fafafa;
  padding: 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ---- TESTIMONIAL ---- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-light);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-text { color: var(--text-mid); font-size: 0.95rem; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 600; color: var(--primary-dark); font-size: 0.9rem; }
.testimonial-disease { font-size: 0.78rem; color: var(--primary-light); margin-top: 2px; }

/* ---- CONTACT CARD ---- */
.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h4 { color: #fff; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item p { margin: 0; font-size: 0.9rem; opacity: 0.9; }
.contact-item strong { display: block; margin-bottom: 2px; font-size: 0.95rem; }

/* ---- FORM ---- */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.93rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46,158,91,0.15);
  outline: none;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { opacity: 0.85; max-width: 560px; margin: 0 auto; }
.breadcrumb { background: none; padding: 0; margin-top: 16px; justify-content: center; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.breadcrumb-item.active { color: var(--accent-light); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- FOOTER ---- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}
.footer-brand { margin-bottom: 20px; }
.footer-brand img { height: 50px; margin-bottom: 12px; }
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}
.footer-brand-sub { font-size: 0.8rem; color: var(--primary-light); text-transform: uppercase; letter-spacing: 1px; }
.footer-about { font-size: 0.88rem; line-height: 1.8; margin-top: 14px; opacity: 0.8; }
.footer-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.87rem; }
.footer-contact-item .icon { color: var(--accent-light); font-size: 1rem; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ---- SCROLL TO TOP ---- */
#scrollTop {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26,107,60,0.4);
  z-index: 999;
  transition: var(--transition);
}
#scrollTop:hover { transform: translateY(-4px); }
#scrollTop.show { display: flex; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 90px; right: 30px;
  width: 52px; height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 60px 0; }
  .hero-img-wrap { margin-top: 40px; }
  .hero-img-badge { left: 0; }
}
@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .hero-stats { gap: 24px; }
  
  /* Topbar Responsive Optimization */
  .topbar {
    padding: 10px 0;
  }
  .topbar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    justify-content: center;
  }
  .topbar .d-flex {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px !important;
    width: 100%;
  }
  .topbar-item {
    font-size: 0.76rem;
    justify-content: center;
  }
}
@media (max-width: 575px) {
  .topbar .d-flex:first-child .topbar-item:nth-child(3) {
    display: none; /* Hide timings on small mobile viewports to avoid wrapping clutter */
  }
}

/* ---- HERO BANNER ---- */
.hero-slider-section {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #edf3e6;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Custom dot indicators */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(26,107,60,0.7);
  background: rgba(26,107,60,0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
  border-color: var(--primary);
}

@media (max-width: 767px) {
  .hero-banner-img {
    max-height: 100vw; /* On mobile let it be as tall as needed to stay readable */
  }
}
/* ---- LIGHTBOX CLOSE BUTTON ---- */
.lightbox-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.custom-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 69, 38, 0.88);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}
.custom-close-btn:hover,
.custom-close-btn:focus {
    background: rgba(26, 107, 60, 1);
    transform: scale(1.12);
    outline: none;
}
