/* ============================================================
   PRIMEWISE PHARMACY — Global Design System
   Kabale District, Uganda
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS CUSTOM PROPERTIES ───────────────────────────────── */
:root {
  /* Colors */
  --primary:        #0B5E50;
  --primary-light:  #1A8C78;
  --primary-dark:   #073D35;
  --mint:           #63C6A7;
  --mint-light:     #A8E2D3;
  --accent:         #F4A024;
  --accent-dark:    #D4880F;
  --bg-light:       #F4FAF8;
  --bg-white:       #FFFFFF;
  --dark:           #1C2B28;
  --dark-2:         #243C37;
  --text:           #2D4A44;
  --text-muted:     #6B8F89;
  --text-light:     #A0BCB8;
  --border:         #D4EBE5;
  --shadow-sm:      0 2px 12px rgba(11, 94, 80, 0.08);
  --shadow-md:      0 8px 32px rgba(11, 94, 80, 0.12);
  --shadow-lg:      0 20px 60px rgba(11, 94, 80, 0.18);
  --shadow-card:    0 4px 24px rgba(11, 94, 80, 0.10);

  /* Typography */
  --font-heading:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Spacing */
  --section-py:     90px;
  --container-max:  1200px;
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --radius-full:    9999px;

  /* Transitions */
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text);
  line-height: 1.75;
}

/* ─── UTILITIES ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-py {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(26, 140, 120, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(11, 94, 80, 0.35);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11, 94, 80, 0.45);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(244, 160, 36, 0.35);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ─── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ─── BADGE / TAG ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-primary { background: rgba(11, 94, 80, 0.1); color: var(--primary); }
.badge-accent { background: rgba(244, 160, 36, 0.12); color: var(--accent-dark); }
.badge-success { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.badge-mint { background: rgba(99, 198, 167, 0.15); color: var(--primary-light); }

/* ─── DIVIDER ──────────────────────────────────────────────── */
.divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--mint), var(--primary-light));
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}

/* ─── SECTION BACKGROUNDS ──────────────────────────────────── */
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--dark); }
.bg-primary { background: var(--primary); }
.bg-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

/* ─── GRID SYSTEM ──────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* ─── ICON BOX ─────────────────────────────────────────────── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(11, 94, 80, 0.08);
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.icon-box-lg {
  width: 72px;
  height: 72px;
  font-size: 2rem;
  border-radius: var(--radius-lg);
}

/* ─── SCROLL TO TOP ────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ─── WHATSAPP FLOAT ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: var(--transition);
  animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

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

/* ─── FORM ELEMENTS ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26, 140, 120, 0.12);
}

.form-control::placeholder { color: var(--text-light); }

/* ─── TOAST NOTIFICATION ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}
