/* AfricaHealthOnline home page (quick_prescription/www/index.html).
   Deep navy with warm orange accents and soft colourful glows. Everything is scoped to .ah. */
.ah {
  --ah-navy: #0b0b24;
  --ah-navy-2: #14143a;
  --ah-ink: #101030;
  --ah-text: #2d2d4a;
  --ah-muted: #64647e;
  --ah-line: #e8e8f0;
  --ah-soft: #f7f6fb;
  --ah-orange: #ff9b00;
  --ah-orange-2: #ff6a13;
  --ah-yellow: #ffc527;
  --ah-purple: #8a63ff;
  --ah-pink: #ff4f8b;
  --ah-green: #16b67a;
  --ah-grad: linear-gradient(100deg, #ffc527 0%, #ff9b00 40%, #ff5a5f 100%);
  --ah-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ah-text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.ah *, .ah *::before, .ah *::after { box-sizing: border-box; }
.ah h1, .ah h2, .ah h3, .ah h4 { color: var(--ah-ink); margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 800; }
.ah p { margin: 0 0 1rem; }
.ah a { text-decoration: none; }
.ah ul, .ah ol { list-style: none; margin: 0; padding: 0; }
.ah-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.ah-grad-text { background: var(--ah-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.ah-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.ah-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ah-btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.ah-btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.ah-btn-primary { background: var(--ah-orange); color: var(--ah-navy); box-shadow: 0 10px 30px -10px rgba(255, 155, 0, .7); }
.ah-btn-primary:hover { background: #ffad2e; color: var(--ah-navy); box-shadow: 0 14px 34px -10px rgba(255, 155, 0, .85); }
.ah-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.ah-btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.ah-btn-dark { background: var(--ah-navy); color: #fff; }
.ah-btn-dark:hover { background: var(--ah-navy-2); color: #fff; box-shadow: 0 14px 30px -12px rgba(11, 11, 36, .6); }
.ah-btn-white { background: #fff; color: var(--ah-navy); }
.ah-btn-white:hover { color: var(--ah-navy); box-shadow: 0 14px 30px -12px rgba(11, 11, 36, .35); }
.ah-link { color: var(--ah-orange-2); font-weight: 700; }
.ah-link:hover { color: var(--ah-orange); text-decoration: none; }

/* ---------- Header ---------- */
.ah-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
.ah-header.ah-menu-open { background: var(--ah-navy); }
.ah-header.ah-scrolled { background: rgba(11, 11, 36, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.ah-header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.ah-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.ah-brand:hover { color: #fff; text-decoration: none; }
.ah-brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ah-grad); color: var(--ah-navy); }
.ah-brand-mark svg { width: 22px; height: 22px; }
.ah-brand-text b { font-weight: 800; background: var(--ah-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.ah-nav > a:not(.ah-btn) { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .95rem; transition: color .2s; }
.ah-nav > a:not(.ah-btn):hover { color: #fff; }
.ah-nav-spacer { flex: 1; }
.ah-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; padding: 12px 10px; cursor: pointer; }
.ah-menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s; }
.ah-menu-open .ah-menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ah-menu-open .ah-menu-btn span:nth-child(2) { opacity: 0; }
.ah-menu-open .ah-menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.ah-hero { position: relative; background: var(--ah-navy); color: #fff; padding: 150px 0 70px; overflow: hidden; isolation: isolate; }
.ah-hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: -1; pointer-events: none; }
.ah-glow-a { width: 520px; height: 520px; background: #ff9b00; top: -160px; right: -80px; opacity: .35; }
.ah-glow-b { width: 420px; height: 420px; background: #8a63ff; bottom: -120px; right: 30%; opacity: .35; }
.ah-glow-c { width: 360px; height: 360px; background: #ff4f8b; top: 30%; left: -160px; opacity: .25; }
.ah-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ah-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .9); margin-bottom: 1.4rem;
}
.ah-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ah-green); box-shadow: 0 0 0 4px rgba(22, 182, 122, .25); }
.ah-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.4rem; }
.ah-lede { font-size: 1.15rem; color: rgba(255, 255, 255, .74); max-width: 560px; margin-bottom: 2rem; }
.ah-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8rem; }
.ah-hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; color: rgba(255, 255, 255, .8); font-weight: 600; }
.ah-hero-points span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 155, 0, .18); color: var(--ah-orange); font-size: .75rem; margin-right: 6px; }

/* Phone illustration */
.ah-hero-visual { position: relative; height: 540px; display: flex; justify-content: center; align-items: center; }
.ah-phone {
  position: relative; width: 270px; height: 540px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2a55, #121232); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-4deg);
}
.ah-phone-notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: #0b0b24; border-radius: 20px; z-index: 2; }
.ah-phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(170deg, #ffd27a 0%, #ff9b00 45%, #ff5a5f 100%); }
.ah-call { position: relative; height: 100%; display: flex; flex-direction: column; padding: 46px 18px 22px; }
.ah-call-top { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: rgba(11, 11, 36, .75); }
.ah-live { color: #b0001a; }
.ah-call-doctor { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ah-navy); }
.ah-call-avatar { width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .55); display: grid; place-items: center; color: rgba(11, 11, 36, .78); margin-bottom: 14px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .22), 0 0 0 22px rgba(255, 255, 255, .12); }
.ah-call-avatar svg { width: 70px; height: 70px; }
.ah-call-doctor b { font-size: 1.15rem; }
.ah-call-doctor small { font-size: .8rem; font-weight: 600; opacity: .75; }
.ah-call-self { position: absolute; right: 18px; top: 74px; width: 64px; height: 88px; border-radius: 14px; background: linear-gradient(160deg, #3b3b70, #1a1a40); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.ah-call-controls { display: flex; justify-content: center; gap: 16px; }
.ah-call-controls i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.ah-call-controls i.end { background: #e5233f; }

.ah-float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: #fff; color: var(--ah-ink); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); min-width: 230px;
  animation: ah-bob 6s ease-in-out infinite;
}
.ah-float b { display: block; font-size: .92rem; }
.ah-float small { display: block; font-size: .78rem; color: var(--ah-muted); }
.ah-float-booked { top: 64px; left: -6px; }
.ah-float-rx { bottom: 110px; right: -16px; animation-delay: -2s; }
.ah-float-lab { bottom: 18px; left: 18px; animation-delay: -4s; }
.ah-float-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.ah-ic-green { background: #e3f8ef; color: var(--ah-green); }
.ah-ic-orange { background: #fff1db; color: var(--ah-orange-2); }
.ah-ic-purple { background: #efe9ff; color: var(--ah-purple); }
.ah-ic-yellow { background: #fff7d6; color: #c98a00; }
@keyframes ah-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Trust strip */
.ah-trust {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--ah-radius); background: rgba(255, 255, 255, .03);
}
.ah-trust div { padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.ah-trust div:first-child { border-left: 0; }
.ah-trust b { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.ah-trust span { font-size: .875rem; color: rgba(255, 255, 255, .6); }

/* ---------- Sections ---------- */
.ah-section { padding: 110px 0; scroll-margin-top: 60px; }
.ah-section-soft { background: var(--ah-soft); }
.ah-section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.ah-section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .8rem; }
.ah-section-head p { color: var(--ah-muted); font-size: 1.1rem; }
.ah-section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 20px; margin-bottom: 36px; }
.ah-kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ah-orange-2); margin-bottom: .9rem;
}
.ah-kicker-light { color: var(--ah-yellow); }

/* Steps */
.ah-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.ah-step {
  position: relative; background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius);
  padding: 28px 22px 26px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.ah-step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(16, 16, 48, .3); }
.ah-step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.ah-step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-weight: 800; background: var(--c-soft); color: var(--c); margin-bottom: 18px; }
.ah-step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.ah-step p { font-size: .93rem; color: var(--ah-muted); margin: 0; }
.ah-c1 { --c: #ff9b00; --c-soft: #fff1db; }
.ah-c2 { --c: #8a63ff; --c-soft: #efe9ff; }
.ah-c3 { --c: #16b67a; --c-soft: #e3f8ef; }
.ah-c4 { --c: #ff4f8b; --c-soft: #ffe6ef; }
.ah-c5 { --c: #f2b100; --c-soft: #fff7d6; }

/* Patients */
.ah-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ah-split-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 1.2rem; }
.ah-split-copy p { font-size: 1.08rem; color: var(--ah-muted); }
.ah-split-copy .ah-btn { margin-top: .8rem; }
.ah-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ah-benefit { background: #fff; border-radius: var(--ah-radius); padding: 26px 22px; box-shadow: 0 1px 0 var(--ah-line), 0 20px 40px -30px rgba(16, 16, 48, .35); transition: transform .25s ease; }
.ah-benefit:hover { transform: translateY(-4px); }
.ah-benefit:nth-child(2), .ah-benefit:nth-child(4) { transform: translateY(28px); }
.ah-benefit:nth-child(2):hover, .ah-benefit:nth-child(4):hover { transform: translateY(24px); }
.ah-benefit-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.ah-benefit-icon svg { width: 24px; height: 24px; }
.ah-benefit h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.ah-benefit p { font-size: .92rem; color: var(--ah-muted); margin: 0; }

/* Doctors (dark) */
.ah-doctors { position: relative; background: var(--ah-navy); color: rgba(255, 255, 255, .75); padding: 120px 0; overflow: hidden; isolation: isolate; scroll-margin-top: 60px; }
.ah-glow-d { width: 600px; height: 600px; background: #ff9b00; left: -260px; bottom: -300px; opacity: .25; }
.ah-doctors-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.ah-doctors h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 1.2rem; }
.ah-doctors-copy p { font-size: 1.08rem; }
.ah-doctors-copy .ah-hero-actions { margin: 2rem 0 0; }
.ah-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ah-feature {
  padding: 24px 22px; border-radius: var(--ah-radius); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09); transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.ah-feature:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 155, 0, .45); transform: translateY(-4px); }
.ah-feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 155, 0, .14); color: var(--ah-orange); font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.ah-feature h3 { color: #fff; font-size: 1.05rem; margin-bottom: .35rem; }
.ah-feature p { font-size: .9rem; margin: 0; color: rgba(255, 255, 255, .62); }

/* Doctor cards */
.ah-doctor-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ah-doctor-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius);
  padding: 24px; color: var(--ah-text); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ah-doctor-card:hover { transform: translateY(-6px); border-color: var(--ah-orange); box-shadow: 0 24px 50px -24px rgba(16, 16, 48, .3); color: var(--ah-text); text-decoration: none; }
.ah-doctor-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ah-doctor-avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--ah-grad); color: var(--ah-navy); font-weight: 800; font-size: 1.4rem; }
.ah-doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ah-doctor-card h3 { font-size: 1.1rem; }
.ah-doctor-card small { color: var(--ah-muted); font-size: .85rem; }
.ah-doctor-card p { font-size: .92rem; color: var(--ah-muted); flex: 1; }
.ah-doctor-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ah-doctor-meta span { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ah-soft); color: var(--ah-text); }
.ah-doctor-cta { font-weight: 700; color: var(--ah-orange-2); }

/* FAQ */
.ah-faq-wrap { max-width: 820px; }
.ah-faq details { background: #fff; border-radius: 16px; border: 1px solid var(--ah-line); margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.ah-faq details[open] { border-color: rgba(255, 155, 0, .6); box-shadow: 0 16px 40px -28px rgba(16, 16, 48, .35); }
.ah-faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--ah-ink); position: relative; font-size: 1.02rem; }
.ah-faq summary::-webkit-details-marker { display: none; }
.ah-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ah-soft); color: var(--ah-orange-2); font-weight: 800; transition: transform .2s;
}
.ah-faq details[open] summary::after { transform: rotate(45deg); }
.ah-faq details p { padding: 0 24px 20px; margin: 0; color: var(--ah-muted); }

/* CTA band */
.ah-cta {
  margin: 100px 0; padding: 56px; border-radius: 28px; background: var(--ah-grad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden;
}
.ah-cta::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .14); right: -120px; top: -160px; }
.ah-cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--ah-navy); margin-bottom: .4rem; }
.ah-cta p { color: rgba(11, 11, 36, .78); font-size: 1.08rem; margin: 0; }
.ah-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* Footer */
.ah-footer { background: var(--ah-navy); color: rgba(255, 255, 255, .6); padding: 72px 0 28px; }
.ah-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ah-footer-about p { margin-top: 1rem; max-width: 340px; font-size: .93rem; }
.ah-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; font-weight: 700; }
.ah-footer-grid a:not(.ah-brand) { display: block; color: rgba(255, 255, 255, .65); margin-bottom: .55rem; font-size: .93rem; transition: color .2s; }
.ah-footer-grid a:not(.ah-brand):hover { color: var(--ah-orange); }
.ah-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ah-steps { grid-template-columns: repeat(3, 1fr); }
  .ah-doctor-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ah-menu-btn { display: block; }
  .ah-nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ah-navy); padding: 8px 24px 24px; display: none; border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .ah-menu-open .ah-nav { display: flex; }
  .ah-nav > a:not(.ah-btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .ah-nav .ah-btn { margin-top: 16px; }
  .ah-nav-spacer { display: none; }
  .ah-hero { padding-top: 120px; }
  .ah-hero-grid, .ah-split, .ah-doctors-grid { grid-template-columns: 1fr; gap: 48px; }
  .ah-hero-visual { height: 500px; }
  .ah-trust { grid-template-columns: 1fr 1fr; }
  .ah-trust div:nth-child(3) { border-left: 0; }
  .ah-trust div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .ah-footer-grid { grid-template-columns: 1fr 1fr; }
  .ah-cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 640px) {
  .ah-wrap { padding: 0 18px; }
  .ah-section, .ah-doctors { padding: 80px 0; }
  .ah-steps, .ah-benefits, .ah-features, .ah-doctor-cards { grid-template-columns: 1fr; }
  .ah-benefit:nth-child(2), .ah-benefit:nth-child(4) { transform: none; }
  .ah-benefit:nth-child(2):hover, .ah-benefit:nth-child(4):hover { transform: translateY(-4px); }
  .ah-trust { grid-template-columns: 1fr; }
  .ah-trust div { border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, .1); }
  .ah-trust div:first-child { border-top: 0; }
  .ah-hero-visual { height: 470px; transform: scale(.88); margin: -20px 0; }
  .ah-float { min-width: 0; }
  .ah-float-booked { left: -14px; }
  .ah-float-rx { right: -14px; }
  .ah-section-head-row { flex-direction: column; align-items: flex-start; }
  .ah-footer-grid { grid-template-columns: 1fr; }
  .ah-cta { margin: 64px 0; }
  .ah-hero-actions .ah-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-float { animation: none; }
  .ah *, .ah *::before, .ah *::after { transition: none !important; }
}
