/* ===== HOME PAGE STYLES ===== */
:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --glass-border: rgba(55, 65, 81, 0.45);
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --text: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* ===== HEADER ===== */
.home-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.home-header-inner {
  max-width: 960px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  padding: 0 16px;
}

.header-brand { display: flex; align-items: center; gap: 10px; }
.brand-img { border-radius: 6px; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }

/* ===== HERO ===== */
.hero {
  padding: 100px 16px 48px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.hero-inner { max-width: 640px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--accent-glow); border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 36px; font-weight: 800; line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 16px;
}
.hero-accent { color: var(--accent); }

.hero-desc {
  font-size: 16px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ── App Buttons — green, solid, prominent ── */
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600;
  transition: var(--transition); min-height: 50px;
  -webkit-tap-highlight-color: transparent;
}
.hero-btn svg { width: 20px; height: 20px; }

.hero-btn-primary {
  background: #059669; color: #fff;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
}
.hero-btn-primary:hover { background: #047857; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(5, 150, 105, 0.45); }
.hero-btn-primary:active { transform: scale(0.97); }

.hero-btn-secondary {
  background: var(--bg-tertiary); color: var(--text);
  border: 1px solid var(--glass-border);
}
.hero-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-btn-secondary:active { transform: scale(0.97); }

/* ===== AD BANNERS — hidden by default, shown only when ad loads ===== */
/* This prevents CLS: empty/unfilled ads won't cause layout shift */
.home-ad-wrapper {
  max-width: 728px; margin: 0 auto;
  padding: 0 16px;
  position: relative;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, height 0.3s ease;
  contain: layout style;
}

/* Only show wrapper when ad is filled */
.home-ad-wrapper.ad-loaded {
  height: auto;
  overflow: visible;
  opacity: 1;
  min-height: 130px;
}

.home-ad-label {
  display: block;
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  text-align: center;
  padding: 16px 0 6px;
}

.home-ad-slot {
  background: rgba(31, 41, 55, 0.25);
  border: 1px dashed rgba(107, 114, 128, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 90px;
  overflow: hidden;
  contain: layout style;
}

/* Hide unfilled ad slots — collapse wrapper entirely */
.home-ad-slot ins[data-ad-status="unfilled"] { display: none !important; }
.home-ad-wrapper:has(ins[data-ad-status="unfilled"]) { height: 0 !important; overflow: hidden !important; opacity: 0 !important; min-height: 0 !important; }

/* ===== SECTIONS ===== */
.section-title {
  font-size: 24px; font-weight: 700; text-align: center;
  margin-bottom: 8px; letter-spacing: -0.5px;
}

.section-desc {
  font-size: 14px; color: var(--text-muted); text-align: center;
  margin-bottom: 24px;
}

/* ===== CITIES ===== */
.cities-section {
  padding: 48px 16px;
  max-width: 960px; margin: 0 auto;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.city-card {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 6px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid transparent;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.city-card:hover { border-color: var(--accent); background: rgba(16, 185, 129, 0.06); transform: translateY(-2px); }
.city-card:active { transform: scale(0.96); }

.city-name { font-size: 12px; font-weight: 600; text-align: center; }

.cities-all-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 20px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  transition: var(--transition);
}
.cities-all-btn svg { width: 16px; height: 16px; }
.cities-all-btn:hover { gap: 10px; }

/* ===== SERVICES ===== */
.services-section {
  padding: 48px 16px;
  max-width: 720px; margin: 0 auto;
}

.services-grid { display: flex; flex-direction: column; gap: 12px; }

.service-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--bg-secondary); border: 1px solid var(--glass-border);
  transition: var(--transition); text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.service-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card:active { transform: scale(0.98); }

.service-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card--pharmacy .service-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.service-card--health .service-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.service-card--hospital .service-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.service-card--radiology .service-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.service-card--lab .service-icon { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.service-card--drug .service-icon { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.service-card--pharmacy:hover { border-color: rgba(16, 185, 129, 0.4); }
.service-card--health:hover { border-color: rgba(59, 130, 246, 0.4); }
.service-card--hospital:hover { border-color: rgba(239, 68, 68, 0.4); }
.service-card--radiology:hover { border-color: rgba(245, 158, 11, 0.4); }
.service-card--lab:hover { border-color: rgba(6, 182, 212, 0.4); }
.service-card--drug:hover { border-color: rgba(168, 85, 247, 0.4); }

.service-content { flex: 1; min-width: 0; }
.service-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.service-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }

.service-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06); color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
}

.service-arrow { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.service-card:hover .service-arrow { transform: translateX(4px); color: var(--text); }

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 48px 16px;
  max-width: 960px; margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  text-align: center; padding: 28px 16px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== INFO ===== */
.info-section {
  padding: 48px 16px;
  max-width: 960px; margin: 0 auto;
}

.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.info-card {
  padding: 24px; background: var(--bg-secondary);
  border-radius: var(--radius-md); border: 1px solid var(--glass-border);
}

.info-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.info-card-icon svg { width: 22px; height: 22px; }
.info-card-icon.blue { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.info-card-icon.green { background: var(--accent-glow); color: var(--accent); }

.info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== FAQ ===== */
.faq-section {
  padding: 48px 16px;
  max-width: 720px; margin: 0 auto;
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--bg-secondary); border-radius: var(--radius-md);
  border: 1px solid var(--glass-border); overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 400;
  color: var(--text-muted); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }

.faq-item p {
  padding: 0 20px 16px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
  padding: 56px 16px; text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-section p { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }
.cta-btn { margin: 0 auto; }

/* ===== SITE DIRECTORY (Mega Footer) ===== */
.site-directory {
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(17, 24, 39, 0.6) 100%);
  padding: 48px 16px 32px;
}

.directory-inner {
  max-width: 960px;
  margin: 0 auto;
}

.directory-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  text-align: center;
}
.directory-title svg {
  color: var(--accent);
  flex-shrink: 0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  margin-bottom: 32px;
}

.directory-region h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.directory-region ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.directory-region li {
  margin-bottom: 3px;
}

.directory-region a {
  font-size: 12.5px;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
  padding: 2px 0;
}
.directory-region a:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* Services row */
.directory-services {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}
.directory-services h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  text-align: center;
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.directory-services .service-links a {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.directory-services .service-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16, 185, 129, 0.06);
}

/* ===== DISCLAIMER ===== */
.disclaimer-section {
  border-top: 1px solid var(--glass-border);
  padding: 32px 16px;
  background: rgba(17, 24, 39, 0.4);
}

.disclaimer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.disclaimer-icon {
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

.disclaimer-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disclaimer-content p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.disclaimer-content p:last-child {
  margin-bottom: 0;
}
.disclaimer-content strong {
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.home-footer {
  padding: 24px 16px;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
}

.footer-inner a { color: var(--text-secondary); transition: color 0.2s; }
.footer-inner a:hover { color: var(--accent); }

.footer-links { display: flex; gap: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .hero-btn { justify-content: center; }
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .directory-services .service-links a { font-size: 11.5px; padding: 5px 10px; }
}

@media (max-width: 374px) {
  .hero-title { font-size: 24px; }
  .brand-name { font-size: 14px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
