/* ── Pharmacy 2030 — CSS Custom Properties ──────────────────────────────────── */
:root {
  --primary:        #0d6b5e;
  --primary-dark:   #074a40;
  --accent:         #14b8a6;
  --accent-glow:    rgba(20, 184, 166, 0.35);
  --surface:        #fafafa;
  --surface-alt:    #f4f4f8;
  --white:          #ffffff;
  --text:           #1e1b4b;
  --text-soft:      #4b4869;
  --text-muted:     #6b7280;
  --text-inv:       #e0f5f2;
  --emerald:        #10b981;
  --emerald-bg:     #ecfdf5;
  --amber:          #f59e0b;
  --amber-bg:       #fffbeb;
  --amber-dark:     #92400e;
  --footer:         #0b1f1b;
  --footer-text:    #9ca3af;
  --border:         rgba(0, 0, 0, 0.06);
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow:         0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.08);
  --radius:         14px;
  --radius-sm:      10px;
  --radius-full:    9999px;
  --font:           "Space Grotesk", system-ui, -apple-system, sans-serif;
  --transition:     250ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--white); }

/* ── Container ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 740px; }

/* ── Section ───────────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 40px;
}

/* ── NAV — Glass ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 68px;
}
.nav-brand {
  font-size: 1.15rem; font-weight: 700; color: var(--primary);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-link {
  display: block; padding: 8px 14px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-soft); border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--accent); background: rgba(20, 184, 166, 0.06); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px; z-index: 101;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 2.5px; background: var(--primary);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle--active .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle--active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle--active .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── HERO — Diagonal full-viewport ─────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding: 100px 0 80px;
  background: var(--primary);
}
.hero-bg {
  position: absolute; inset: 0; background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 640px;
  padding: 0 24px;
}
.hero-kicker {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px;
}
.hero-address {
  font-size: 1.05rem; color: var(--text-inv); opacity: 0.7; margin-bottom: 32px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: rgba(255,255,255,0.1); color: var(--white); border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 500; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition), border-color var(--transition);
}
.hero-pill:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); }

/* ── MAP — Full-width bleed ────────────────────────────────────────────────── */
.map-section { position: relative; margin-top: -60px; z-index: 3; }
.map-frame {
  width: 100%; height: 380px; overflow: hidden;
  box-shadow: var(--shadow-lg); border-radius: 0;
}
@media (min-width: 768px) { .map-frame { border-radius: var(--radius); max-width: 1080px; margin: 0 auto; } }
.map-frame iframe { width: 100%; height: 100%; }
.map-overlay {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(11, 31, 27, 0.85); color: var(--white); font-size: 0.8rem;
  padding: 8px 18px; border-radius: var(--radius-full); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
@media (min-width: 768px) { .map-overlay { bottom: 24px; } }

/* ── OPENING HOURS + COUNTDOWN ─────────────────────────────────────────────── */
.countdown-block { margin-bottom: 32px; }
.countdown-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: var(--amber-bg); color: var(--amber); border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
}
.countdown-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.countdown-label { font-size: 0.95rem; font-weight: 600; color: var(--text-soft); margin-bottom: 16px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-tile {
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4); border-top: 3px solid var(--amber);
  border-radius: var(--radius-sm); padding: 16px 8px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.countdown-num {
  display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1;
  color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.countdown-unit {
  display: block; font-size: 0.68rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px;
}
.countdown-future { font-size: 0.85rem; color: var(--text-muted); margin-top: 24px; }

.open-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
}
.open-badge--open { background: var(--emerald-bg); color: var(--emerald); }
.open-badge--closed {
  background: rgba(0,0,0,0.04); color: var(--text-muted);
}
.open-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge--open .open-badge-dot { animation: pulse-dot 2s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hours-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hours-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.hours-table th, .hours-table td { padding: 14px 22px; font-size: 0.9rem; text-align: left; }
.hours-table tbody tr { border-bottom: 1px solid var(--border); }
.hours-table tbody tr:last-child { border-bottom: none; }
.hours-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.hours-table td:first-child { font-weight: 600; white-space: nowrap; color: var(--text); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }
.hours-closed { color: var(--text-muted) !important; opacity: 0.5; font-weight: 400 !important; }

/* ── SERVICES — 2-col grid ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13, 107, 94, 0.12), 0 0 32px var(--accent-glow);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #e6f7f4;
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 20px rgba(13, 107, 94, 0.25);
}
.service-label { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.service-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

@media (min-width: 768px) {
  .services-grid { gap: 16px; }
  .service-card { padding: 36px 28px; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── ABOUT — Pull-quote ────────────────────────────────────────────────────── */
.about-quote {
  display: flex; gap: 20px; align-items: flex-start;
}
.about-mark {
  font-size: 6rem; line-height: 0.65; color: var(--accent);
  font-weight: 700; flex-shrink: 0; margin-top: -6px;
}
.about-body p {
  font-size: 1.05rem; line-height: 1.75; color: var(--text-soft);
}
.about-body p:first-child { font-size: 1.15rem; color: var(--text); font-weight: 500; }
.about-body p + p { margin-top: 18px; }

@media (max-width: 600px) {
  .about-mark { font-size: 4rem; }
  .about-body p { font-size: 0.95rem; }
  .about-body p:first-child { font-size: 1.05rem; }
}

/* ── CTA — Split layout ────────────────────────────────────────────────────── */
.cta { padding: 80px 0; }
.cta-card {
  display: flex; flex-direction: column; gap: 28px; align-items: center;
  background: var(--primary); border-radius: var(--radius);
  padding: 48px 36px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, var(--accent) 0%, transparent 60%);
  opacity: 0.08;
}
.cta-left { position: relative; z-index: 1; text-align: center; }
.cta-title { font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.cta-text { font-size: 0.95rem; color: var(--text-inv); opacity: 0.75; line-height: 1.65; max-width: 480px; }
.cta-right { position: relative; z-index: 1; flex-shrink: 0; }
.cta-button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
  background: var(--accent); color: var(--white); font-weight: 600; font-size: 1rem;
  border-radius: var(--radius-full); transition: transform var(--transition), box-shadow var(--transition);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.cta-button i { transition: transform var(--transition); }
.cta-button:hover i { transform: translateX(4px); }

@media (min-width: 768px) {
  .cta-card { flex-direction: row; justify-content: space-between; padding: 56px 48px; }
  .cta-left { text-align: left; }
  .cta-title { font-size: 1.85rem; }
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--footer); color: var(--footer-text);
  padding: 56px 0 28px; font-size: 0.85rem;
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px;
}
.footer-brand h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.footer-brand p { line-height: 1.6; max-width: 240px; }
.footer-contact h4, .footer-links h4, .footer-delimed h4 {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px;
}
.footer-contact a, .footer-links a, .footer-delimed a {
  display: block; padding: 4px 0; transition: color var(--transition);
}
.footer-contact a:hover, .footer-links a:hover, .footer-delimed a:hover { color: var(--white); }
.footer-delimed a i { font-size: 0.75rem; margin-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px;
  text-align: center; font-size: 0.78rem; color: var(--footer-text);
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.section-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  margin-top: -24px;
}
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.faq-a {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Semantic ──────────────────────────────────────────────────────────────── */
address { font-style: normal; }

/* ── SEO ───────────────────────────────────────────────────────────────────── */
.seo-content {
  padding: 40px 0;
  background: var(--white);
}
.seo-content p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Mobile nav ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; width: 280px; height: 100dvh;
    flex-direction: column; background: rgba(255,255,255,0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 84px 28px 28px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--transition);
    gap: 4px; overflow-y: auto;
  }
  .nav-links--open { transform: translateX(0); }
  .nav-link { padding: 14px 18px; font-size: 1rem; font-weight: 600; }
  .hero { min-height: 90svh; }
}

/* ── Animations ────────────────────────────────────────────────────────────── */
.service-card {
  animation: fade-up 0.55s ease both;
}
.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.14s; }
.service-card:nth-child(3) { animation-delay: 0.23s; }
.service-card:nth-child(4) { animation-delay: 0.32s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
