/*
Theme Name: Popote Dawa
Theme URI: https://popotedawa.com
Author: Popote Dawa
Description: Official Popote Dawa WordPress theme — World-Class Cancer Care, Anywhere. Complete mirror of the popotedawa.com site with blue brand palette, full page templates, and self-contained styling.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: popote
*/

/* ============================================================
   DESIGN TOKENS — Popote Dawa blue brand
   ============================================================ */
:root {
  --brand: #1E78E6;          /* vivid blue */
  --brand-deep: #0F2F7A;     /* deep navy */
  --brand-light: #EEF3FC;    /* pale blue tint */
  --brand-glow: #3B8DEC;

  --background: #ffffff;
  --foreground: #0F2F7A;
  --muted: #F4F7FB;
  --muted-foreground: #5A6B8C;
  --border: #E2E8F0;
  --card: #ffffff;
  --primary: var(--brand);
  --primary-foreground: #ffffff;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;

  --shadow-card: 0 4px 24px -8px rgba(15, 47, 122, 0.18);
  --shadow-elegant: 0 20px 50px -20px rgba(30, 120, 230, 0.35);

  --gradient-hero: linear-gradient(135deg, #0F2F7A, #1E78E6);
  --gradient-soft: linear-gradient(180deg, #EEF3FC, #ffffff);

  --container: 1200px;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--brand-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--foreground); }
ul, ol { padding-left: 1.25rem; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.muted { color: var(--muted-foreground); }
.text-center { text-align: center; }
.text-primary { color: var(--brand); }
.text-deep { color: var(--brand-deep); }
.text-white { color: #fff; }

/* ============================================================
   BUTTONS / BADGES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-size: .875rem; font-weight: 600;
  transition: transform .15s, opacity .2s, background .2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { opacity: .92; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-elegant); }
.btn-deep { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-elegant); }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-outline { background: transparent; color: var(--brand-deep); border-color: var(--border); background: #fff; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(30,120,230,.1);
  color: var(--brand);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.kicker {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.brand-link { display: flex; align-items: center; gap: .75rem; }
.brand-link img { height: 48px; width: 48px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.125rem; color: var(--brand-deep); line-height: 1; }
.brand-tag  { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted-foreground); margin-top: 3px; }

.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a { font-size: .9rem; font-weight: 500; color: var(--foreground); }
.main-nav a:hover, .main-nav a.active { color: var(--brand); }

.has-dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: 0; padding: 0; color: inherit;
  font: inherit; display: inline-flex; align-items: center; gap: .25rem;
}
.dropdown-toggle::after { content: "▾"; font-size: .7em; opacity: .7; }
.dropdown {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  padding-top: .75rem;
  width: 18rem;
  visibility: hidden; opacity: 0; transition: all .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { visibility: visible; opacity: 1; }
.dropdown-inner {
  background: #fff; border: 1px solid var(--border); border-radius: 1rem;
  padding: .5rem; box-shadow: var(--shadow-elegant);
}
.dropdown-inner a {
  display: block; padding: .75rem 1rem; border-radius: .75rem;
  color: var(--foreground); font-weight: 600; font-size: .9rem;
}
.dropdown-inner a:hover { background: var(--muted); }
.dropdown-inner .dd-desc { display: block; font-weight: 400; font-size: .75rem; color: var(--muted-foreground); margin-top: 2px; }

.nav-toggle { display: inline-flex; padding: .5rem; background: none; border: 0; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; }
.mobile-nav a { padding: .65rem 0; color: var(--foreground); font-weight: 500; }
.mobile-nav .group-label { padding: .5rem 0; font-weight: 700; color: var(--brand-deep); }
.mobile-nav .group a { padding-left: 1rem; font-size: .875rem; color: var(--muted-foreground); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--brand-deep); color: #fff; margin-top: 6rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding: 4rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer-grid p, .footer-grid li, .footer-grid a { color: rgba(255,255,255,.7); font-size: .875rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin: .5rem 0; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand img { background: #fff; border-radius: .5rem; padding: 4px; height: 48px; width: 48px; }
.footer-brand .name { font-weight: 700; font-size: 1.25rem; color: #fff; }
.contact-row { display: flex; align-items: center; gap: .5rem; }
.social-row { display: flex; gap: 1rem; margin-top: .5rem; align-items: center; }
.social-row a { color: rgba(255,255,255,.7); display: inline-flex; }
.social-row a:hover { color: #fff; }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; text-align: center; font-size: .75rem; color: rgba(255,255,255,.5); }

/* ============================================================
   SECTIONS / CARDS
   ============================================================ */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-bg-soft { background: var(--gradient-soft); }
.section-bg-light { background: var(--brand-light); }
.section-bg-deep { background: var(--brand-deep); color: #fff; }
.section-bg-deep h1, .section-bg-deep h2, .section-bg-deep h3 { color: #fff; }
.section-bg-deep p { color: rgba(255,255,255,.78); }

.eyebrow { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.eyebrow p { color: var(--muted-foreground); margin-top: .5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } .grid-6 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1280px) { .grid-6 { grid-template-columns: repeat(6,1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin-top: 1rem; }
.icon-tile {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: rgba(30,120,230,.1); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-tile svg { width: 28px; height: 28px; }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.home-hero { background: var(--gradient-soft); padding: 4rem 0 6rem; }
.home-hero .split { gap: 3rem; }
.home-hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.home-hero .pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border);
  padding: .4rem .85rem; border-radius: 999px; font-size: .75rem;
  font-weight: 500; color: var(--brand-deep);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.home-hero .pill .dot { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }
.home-hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.home-hero .stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 28rem; }
.home-hero .stats .num { font-size: 1.5rem; font-weight: 700; color: var(--brand-deep); }
.home-hero .stats .lbl { font-size: .75rem; color: var(--muted-foreground); margin-top: 4px; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img { border-radius: var(--radius-2xl); box-shadow: var(--shadow-elegant); }
.hero-floating {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  background: #fff; border-radius: 1rem; padding: 1rem;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: .75rem; max-width: 18rem;
}
.hero-floating .badge-ic { width: 40px; height: 40px; border-radius: 999px; background: rgba(30,120,230,.1); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.hero-floating .ttl { font-weight: 600; font-size: .875rem; color: var(--brand-deep); }
.hero-floating .sub { font-size: .75rem; color: var(--muted-foreground); }

/* ============================================================
   SERVICE PAGE HERO (dark)
   ============================================================ */
.service-hero { background: var(--brand-deep); color: #fff; padding: 5rem 0; }
.service-hero p { color: rgba(255,255,255,.75); max-width: 40rem; }
.service-hero h1 { color: #fff; max-width: 48rem; }
.kicker-white { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .75rem; }

/* ============================================================
   "What the service covers" list
   ============================================================ */
.coverage {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 2rem; box-shadow: var(--shadow-elegant);
}
.coverage h3 { color: var(--brand-deep); margin-bottom: 1.5rem; }
.coverage ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.coverage li { display: flex; gap: 1rem; }
.coverage .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: .75rem; background: rgba(30,120,230,.1); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.coverage .ic svg { width: 20px; height: 20px; }
.coverage .ti { font-weight: 600; color: var(--foreground); }
.coverage .de { font-size: .875rem; color: var(--muted-foreground); margin-top: 2px; }

/* ============================================================
   How it works steps
   ============================================================ */
.step-card {
  position: relative; background: #fff; border-radius: var(--radius-xl);
  padding: 1.5rem; border: 1px solid var(--border);
}
.step-card .row { display: flex; align-items: center; gap: .75rem; }
.step-card .num {
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: .875rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-card .ic { color: var(--brand); display: inline-flex; }
.step-card .ic svg { width: 24px; height: 24px; }
.step-card h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
.step-card p { font-size: .875rem; color: var(--muted-foreground); margin: 0; }

/* ============================================================
   CTA gradient block
   ============================================================ */
.cta-grad {
  border-radius: var(--radius-2xl);
  background: var(--gradient-hero);
  color: #fff; padding: 3rem; text-align: center;
}
.cta-grad h2 { color: #fff; }
.cta-grad p { color: rgba(255,255,255,.8); max-width: 36rem; margin: .75rem auto 0; }
.cta-grad .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-card); position: relative; }
.testimonial .stars { color: var(--brand); letter-spacing: 2px; font-size: 1rem; }
.testimonial .quote { color: var(--brand-deep); line-height: 1.6; margin: 1rem 0 1.5rem; }
.testimonial .author { display: flex; align-items: center; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 999px; background: rgba(30,120,230,.1); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial .name { font-weight: 600; color: var(--brand-deep); }
.testimonial .meta { font-size: .75rem; color: var(--muted-foreground); }

/* ============================================================
   FAQ accordion
   ============================================================ */
details.faq {
  background: #fff; border: 1px solid var(--border); border-radius: .75rem;
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
details.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--brand-deep);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-size: 1.25rem; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: .75rem 0 0; font-size: .875rem; color: var(--muted-foreground); }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font-size: .875rem;
  border: 1px solid var(--border); border-radius: .5rem;
  background: #fff; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: -1px;
}

/* ============================================================
   Utility
   ============================================================ */
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-center { justify-content: center; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li { display: flex; gap: .75rem; margin: .75rem 0; }
.checklist li::before {
  content: "✓"; color: var(--brand); font-weight: 700;
  display: inline-flex; flex-shrink: 0;
}

/* 404 / empty */
.not-found { text-align: center; padding: 6rem 1rem; }
.not-found h1 { font-size: 5rem; color: var(--brand-deep); }
