/* ═══════════════════════════════════════
   IndiCare Pharmacy — Complete Stylesheet
   Matching React/Tailwind design system
   ═══════════════════════════════════════ */

:root {
  --bg: hsl(210, 25%, 97%);
  --fg: hsl(210, 30%, 15%);
  --card: #fff;
  --card-fg: hsl(210, 30%, 15%);
  --primary: hsl(210, 85%, 40%);
  --primary-fg: #fff;
  --secondary: hsl(145, 55%, 42%);
  --secondary-fg: #fff;
  --muted: hsl(210, 20%, 93%);
  --muted-fg: hsl(210, 15%, 50%);
  --accent: hsl(0, 75%, 55%);
  --accent-fg: #fff;
  --border: hsl(210, 20%, 88%);
  --pharmacy-blue: hsl(210, 85%, 40%);
  --pharmacy-green: hsl(145, 55%, 42%);
  --pharmacy-red: hsl(0, 75%, 55%);
  --pharmacy-light-blue: hsl(210, 60%, 95%);
  --pharmacy-light-green: hsl(145, 40%, 94%);
  --radius: 0.75rem;
  --shadow-card: 0 4px 24px -4px hsla(210, 30%, 15%, 0.08);
  --shadow-card-hover: 0 8px 32px -4px hsla(210, 30%, 15%, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.hindi { font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 1rem 4rem; }
@media (min-width: 768px) { .section { padding: 6rem 2rem; } }

/* ─── Colors ─── */
.bg-light-blue { background: var(--pharmacy-light-blue) !important; }
.bg-light-green { background: var(--pharmacy-light-green) !important; }
.color-green { color: var(--secondary) !important; }
.text-green { color: hsl(145, 55%, 50%); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.anim-card { opacity: 0; }
.anim-card.in-view { animation: fadeUp 0.7s ease-out forwards; animation-delay: var(--delay, 0s); }
.hero-text { opacity: 0; }
.hero-text.in-view { animation: fadeUp 0.7s ease-out forwards; }
.about-img-wrap { opacity: 0; }
.about-img-wrap.in-view { animation: fadeUp 0.7s ease-out forwards; }
.about-text { opacity: 0; }
.about-text.in-view { animation: slideRight 0.7s ease-out forwards; animation-delay: 0.2s; }
.contact-info { opacity: 0; }
.contact-info.in-view { animation: fadeUp 0.7s ease-out forwards; }
.contact-form-card.in-view { animation: slideRight 0.7s ease-out forwards; animation-delay: 0.2s; }

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 50;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: var(--card);
  box-shadow: 0 2px 20px hsla(210, 30%, 15%, 0.1);
  padding: 0.5rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { height: 4rem; border-radius: 8px; }
@media (min-width: 768px) { .nav-logo { height: 5rem; } }
.nav-links { display: none; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: hsla(210, 30%, 15%, 0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-right .btn-primary { display: none; }
@media (min-width: 768px) { .nav-right .btn-primary { display: inline-flex; } }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span {
  width: 24px; height: 2px; background: var(--fg);
  transition: all 0.3s; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; flex-direction: column; padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border); background: var(--card);
}
.mobile-menu.open { display: flex; animation: fadeIn 0.3s ease-out; }
.mobile-menu a {
  padding: 0.75rem 0; font-weight: 500;
  color: hsla(210, 30%, 15%, 0.8); border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 2rem; border-radius: var(--radius); font-weight: 600;
  color: var(--primary-fg); border: none; cursor: pointer;
  font-family: inherit; font-size: 0.875rem;
  background: linear-gradient(135deg, hsl(210, 85%, 40%), hsl(210, 85%, 28%));
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsla(210, 85%, 40%, 0.35);
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 2rem; border-radius: var(--radius); font-weight: 600;
  color: var(--secondary-fg); border: none; cursor: pointer;
  font-family: inherit; font-size: 0.875rem;
  background: linear-gradient(135deg, hsl(145, 55%, 42%), hsl(145, 55%, 35%));
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsla(145, 55%, 42%, 0.35);
}
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-icon { margin: 0 0.25rem; }

/* ═══ MARQUEE ═══ */
.marquee-wrap {
  background: var(--primary); overflow: hidden; padding: 0.75rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}
.marquee-content {
  font-weight: 600; font-size: 0.875rem; color: var(--primary-fg);
}
@media (min-width: 768px) { .marquee-content { font-size: 1rem; } }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsla(210, 85%, 25%, 0.85), hsla(145, 55%, 30%, 0.7));
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.hero-blob-1 { top: 5rem; right: 2rem; width: 18rem; height: 18rem; background: hsla(145, 55%, 42%, 0.1); }
.hero-blob-2 { bottom: 5rem; left: 2rem; width: 24rem; height: 24rem; background: hsla(210, 85%, 40%, 0.1); }

.hero-content { position: relative; z-index: 10; padding: 8rem 0 4rem; }
@media (min-width: 768px) { .hero-content { padding: 10rem 0 6rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: hsla(0, 0%, 100%, 0.15); backdrop-filter: blur(8px);
  border-radius: 2rem; padding: 0.625rem 1.25rem;
  color: var(--primary-fg); font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800; color: var(--primary-fg); line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-sub { font-size: 0.6em; font-weight: 500; opacity: 0.9; }
.hero-desc {
  font-size: 1.125rem; color: hsla(0, 0%, 100%, 0.8);
  max-width: 550px; line-height: 1.7; margin-bottom: 1rem;
}
.hero-hindi {
  font-size: 1.25rem; font-weight: 600;
  color: hsla(0, 0%, 100%, 0.9); margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero image column */
.hero-image-col { display: none; }
@media (min-width: 768px) { .hero-image-col { display: block; } }
.hero-image-wrap { position: relative; }
.hero-family-img { border-radius: 1.5rem; box-shadow: 0 20px 60px hsla(0,0%,0%,0.3); width: 100%; }

.hero-float {
  position: absolute; background: var(--card);
  border-radius: 1rem; padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px hsla(0,0%,0%,0.15);
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-float-shield { bottom: -1.5rem; left: -1.5rem; }
.hero-float-clock { top: -1rem; right: -1rem; }
.float-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.float-num { font-weight: 700; color: var(--fg); font-size: 1.125rem; }
.float-label { font-size: 0.75rem; color: var(--muted-fg); }

.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; }

/* ═══ SECTION HEADERS ═══ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
@media (min-width: 768px) { .section-header { margin-bottom: 4rem; } }
.section-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--primary);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; margin: 0.75rem 0 1rem; color: var(--fg);
}
.section-sub { color: var(--muted-fg); font-size: 1.125rem; }

/* ═══ GRIDS ═══ */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; } }
.grid-3-med { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 768px) { .grid-3-med { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; } }

/* ═══ CARDS ═══ */
.card {
  background: var(--card); border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.card:hover .card-icon { background: var(--primary) !important; }
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-hi { font-size: 0.875rem; color: var(--secondary); font-weight: 600; margin-bottom: 0.75rem; }
.card-desc { color: var(--muted-fg); line-height: 1.6; }

/* ═══ WHY CHOOSE US ═══ */
.why-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.why-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: hsla(145, 55%, 42%, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.why-text { font-weight: 600; line-height: 1.5; }
.why-hi { font-weight: 400; opacity: 0.7; font-size: 0.9em; }

/* ═══ WHATSAPP SECTION ═══ */
.wa-section {
  background: hsl(142, 70%, 45%);
  color: #fff; padding: 4rem 1rem;
}
@media (min-width: 768px) { .wa-section { padding: 6rem 2rem; } }
.wa-title { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; }
.wa-subtitle { font-size: 1.125rem; opacity: 0.9; margin: 1rem 0 2rem; line-height: 1.7; }
.wa-features { margin-bottom: 2rem; }
.wa-card {
  background: hsla(0, 0%, 100%, 0.15);
  backdrop-filter: blur(8px); border-radius: 1rem;
  padding: 1.5rem; text-align: center;
}
.wa-card-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.wa-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; padding-top: 1rem; }
.wa-btn-order {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 1.125rem;
  background: #fff; color: hsl(142, 70%, 35%);
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px hsla(0, 0%, 0%, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-btn-order:hover { transform: translateY(-2px); box-shadow: 0 8px 30px hsla(0,0%,0%,0.25); }
.wa-btn-rx {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 1.125rem;
  color: #fff; background: transparent;
  border: 2px solid #fff; cursor: pointer;
  transition: background 0.2s;
}
.wa-btn-rx:hover { background: hsla(0, 0%, 100%, 0.1); }
.wa-number { margin-top: 1.5rem; opacity: 0.8; font-weight: 600; font-size: 1.125rem; }

/* ═══ ABOUT ═══ */
.about-section { background: var(--primary); color: var(--primary-fg); }
.about-grid { align-items: center; }
.about-img { border-radius: 1.5rem; box-shadow: 0 20px 60px hsla(0,0%,0%,0.2); width: 100%; }
.about-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin: 0.75rem 0 1.5rem; }
.about-desc { font-size: 1.125rem; opacity: 0.8; line-height: 1.7; margin-bottom: 1rem; }
.about-addr { font-weight: 600; font-size: 1.125rem; opacity: 0.9; margin-bottom: 1.5rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1rem; }
.stat {
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 0.75rem; padding: 1rem; text-align: center;
}
.stat-num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.stat-lbl { font-size: 0.8rem; opacity: 0.7; }

/* ═══ POPULAR MEDICINES ═══ */
.med-card {
  background: var(--card); border-radius: 1rem;
  padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: default;
}
.med-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.med-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--pharmacy-light-blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.5rem;
  transition: background 0.3s;
}
.med-card:hover .med-icon { background: var(--primary); }

/* ═══ EMERGENCY ═══ */
.emergency {
  background: var(--accent); color: var(--accent-fg); padding: 3rem 1rem;
}
.emergency-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
@media (max-width: 767px) { .emergency-inner { flex-direction: column; text-align: center; } }
.emergency-left { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 767px) { .emergency-left { flex-direction: column; } }
.emergency-icon-wrap {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; animation: pulse 2s ease-in-out infinite;
}
.emergency-title { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; }
.emergency-desc { opacity: 0.85; }
.emergency-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 767px) { .emergency-btns { justify-content: center; } }
.emergency-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 1.125rem;
  background: var(--accent-fg); color: var(--accent);
  transition: opacity 0.2s;
}
.emergency-btn:hover { opacity: 0.9; }

/* ═══ TESTIMONIALS ═══ */
.stars { font-size: 1.25rem; margin-bottom: 1rem; }
.testimonial-text {
  color: hsla(210, 30%, 15%, 0.8); line-height: 1.7;
  font-style: italic; margin-bottom: 1.5rem;
}
.testimonial-name { font-weight: 700; }

/* ═══ MAP ═══ */
.map-frame {
  border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
}

/* ═══ CONTACT ═══ */
.contact-grid { align-items: flex-start; }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.contact-label { font-weight: 600; }
.contact-val { color: var(--muted-fg); }

.contact-form-card { opacity: 0; }
.form-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-input {
  width: 100%; padding: 0.875rem 1.25rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  font-family: inherit; font-size: 0.875rem;
  background: var(--bg); color: var(--fg);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1rem;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(210, 85%, 40%, 0.15);
}
.form-textarea { resize: none; }

/* ═══ FOOTER ═══ */
.footer { background: var(--fg); color: var(--primary-fg); padding: 3rem 1rem; }
.footer-inner {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
.footer-logo { height: 5rem; border-radius: 8px; margin-bottom: 1rem; }
.footer-tagline { opacity: 0.6; font-size: 0.875rem; }
.footer-addr p { opacity: 0.6; font-size: 0.875rem; }
.footer-contact { text-align: right; }
@media (max-width: 767px) { .footer-contact { text-align: center; } .footer-inner { text-align: center; } }
.footer-contact a {
  display: block; color: hsla(0, 0%, 100%, 0.8);
  transition: color 0.2s; margin-bottom: 0.25rem;
}
.footer-contact a:hover { color: #fff; }
.footer-copy { color: hsla(0, 0%, 100%, 0.4); font-size: 0.75rem; margin-top: 1rem; }

/* ═══ WHATSAPP FLOAT ═══ */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: hsl(142, 70%, 45%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px hsla(0, 0%, 0%, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px hsla(0,0%,0%,0.3); }
.wa-float-badge {
  position: absolute; top: -0.5rem; left: -0.5rem;
  background: var(--accent); color: var(--accent-fg);
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 1rem;
  animation: bounce 1s ease-in-out infinite;
}
