/* ═══════════════════════════════════════════════════════════
   Medication.io — Premium Redesign
   Inspired by TrumpRx.gov & CostPlusDrugs.com
   Clean, minimal, trust-building, senior-friendly
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    /* Primary palette */
    --navy: #0A1628;
    --blue: #1B6EF3;
    --blue-hover: #1458C7;
    --blue-soft: #EBF2FF;
    --blue-glow: rgba(27,110,243,0.08);

    /* Gold accents (inspired by TrumpRx) */
    --gold: #C5993E;
    --gold-light: #F8F1E0;
    --gold-border: #E5D5A8;

    /* Greens for pricing / savings */
    --green: #0D8A3E;
    --green-bg: #ECFAF1;
    --green-bright: #10B354;
    --green-dark: #06692D;

    /* Red for original prices */
    --red-muted: #C0392B;
    --red-bg: #FEF0EE;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-50: #F7F8FA;
    --gray-100: #EFF1F5;
    --gray-200: #DDE1E8;
    --gray-300: #C2C8D2;
    --gray-400: #8D95A3;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & sizing */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows (subtle, layered) */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.08);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
a:hover { color: var(--blue-hover); }
a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

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


/* ═══════════════════════════════════════
   HEADER — Clean, minimal sticky nav
   ═══════════════════════════════════════ */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; color: var(--navy); }
.logo svg { flex-shrink: 0; }

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease);
    letter-spacing: -0.01em;
}
nav a:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    text-decoration: none;
}
nav a.active {
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: transform 0.3s var(--ease);
}


/* ═══════════════════════════════════════
   HERO — Dramatic, clean, inviting
   ═══════════════════════════════════════ */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(27,110,243,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    position: relative;
}
.hero-sub {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 560px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
}

/* Gold accent line under hero heading */
.hero-accent {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Trust badges under search */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    position: relative;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 500;
}
.trust-badge svg { opacity: 0.7; }


/* ═══════════════════════════════════════
   SEARCH — Prominent, CostPlus-style
   ═══════════════════════════════════════ */
.search-section {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}
.search-wrapper { position: relative; }
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}
#med-search {
    width: 100%;
    padding: 20px 24px 20px 56px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 60px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
    transition: all 0.25s var(--ease);
    backdrop-filter: blur(4px);
}
#med-search::placeholder {
    color: rgba(255,255,255,0.4);
}
#med-search:focus {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
    box-shadow: 0 0 0 4px rgba(27,110,243,0.2), var(--shadow-xl);
}
#med-search:focus::placeholder { color: var(--gray-400); }
#med-search:focus ~ .search-icon { color: var(--gray-400); }

/* When search is on a light background */
.section #med-search,
.drugs-page #med-search {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--gray-200);
}
.section #med-search::placeholder,
.drugs-page #med-search::placeholder { color: var(--gray-400); }
.section #med-search:focus,
.drugs-page #med-search:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(27,110,243,0.1);
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s var(--ease);
}
.search-result-item:hover {
    background: var(--blue-soft);
    text-decoration: none;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-name { font-weight: 600; font-size: 0.95rem; }
.search-result-brand { color: var(--gray-500); font-size: 0.85rem; }
.search-result-price { color: var(--green); font-weight: 700; font-size: 0.95rem; }


/* ═══════════════════════════════════════
   SECTIONS — Spacious, refined
   ═══════════════════════════════════════ */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.section-sub {
    color: var(--gray-500);
    margin-bottom: 40px;
    font-size: 1.05rem;
}
.section-cta { text-align: center; margin-top: 40px; }

/* Section header with gold accent */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header .gold-line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════
   BUTTONS — Refined, accessible
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    border: none;
    letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(27,110,243,0.25);
}
.btn-primary:hover {
    background: var(--blue-hover);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(27,110,243,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #D4A84A 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(197,153,62,0.3);
}
.btn-gold:hover {
    box-shadow: 0 4px 12px rgba(197,153,62,0.4);
    color: var(--white);
}


/* ═══════════════════════════════════════
   MEDICATION CARDS — Modern, clean
   ═══════════════════════════════════════ */
.med-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.med-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.25s var(--ease);
    color: var(--gray-900);
    position: relative;
    overflow: hidden;
}
.med-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--gray-900);
}

.med-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.med-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.med-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.med-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.price-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}
.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.02em;
}
.price-period {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* Savings badge on card */
.savings-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.med-card-small {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius);
}
.med-card-small h4 { font-size: 0.95rem; font-weight: 600; }


/* ═══════════════════════════════════════
   STATS BAR — CostPlus-inspired
   ═══════════════════════════════════════ */
.stats-bar {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 28px 0;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-number .gold { color: var(--gold); }
.stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════
   CONDITION CARDS
   ═══════════════════════════════════════ */
.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.condition-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--gray-900);
    transition: all 0.2s var(--ease);
}
.condition-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--gray-900);
}
.condition-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-900);
}
.condition-card p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.condition-grid-lg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.condition-card-lg { padding: 32px; }
.condition-card-lg h3 { font-size: 1.1rem; }
.condition-count {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--blue);
    font-size: 0.85rem;
}


/* ═══════════════════════════════════════
   TIPS CARDS — Clean with numbers
   ═══════════════════════════════════════ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.tip-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: box-shadow 0.2s var(--ease);
}
.tip-card:hover { box-shadow: var(--shadow-md); }
.tip-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.tip-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.tip-card p { color: var(--gray-500); font-size: 0.95rem; }


/* ═══════════════════════════════════════
   DRUG PAGE — Premium layout
   ═══════════════════════════════════════ */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-500); font-weight: 500; }
.breadcrumb a:hover { color: var(--blue); }

.drug-page { padding-bottom: 48px; }

.drug-header {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    padding: 32px 0 40px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 40px;
}
.drug-header h1 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}
.drug-generic, .drug-brands, .drug-class {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.drug-generic strong, .drug-brands strong, .drug-class strong {
    color: var(--gray-700);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 16px;
}
.badge-rx {
    background: #FFF3E0;
    color: #D84315;
}
.badge-otc {
    background: var(--green-bg);
    color: var(--green);
}

/* Price boxes — coupon/card style like TrumpRx */
.drug-price-highlight {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.price-box {
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.price-box-generic {
    background: linear-gradient(135deg, var(--green-bg) 0%, #D4EDDA 100%);
    border: 2px solid rgba(13,138,62,0.15);
}
.price-box-brand {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}
.price-box .price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 8px;
}
.price-big {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.price-box-generic .price-big { color: var(--green); }
.price-box-brand .price-big { color: var(--gray-700); }
.price-box .price-period {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 4px;
    font-weight: 500;
}

/* Savings callout inside price box */
.price-savings {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    background: var(--green);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
}

.drug-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--gray-100);
}
.drug-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    color: var(--gray-900);
}
.drug-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Pharmacy buttons — prominent CTAs */
.pharmacy-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.pharmacy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s var(--ease);
    letter-spacing: -0.01em;
}
.pharmacy-btn:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    text-decoration: none;
}

.side-effects-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.side-effects-list li {
    padding: 12px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
}
.side-effects-list li::before {
    content: "\2022 ";
    color: var(--gold);
    font-weight: 700;
    margin-right: 6px;
}

.condition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.condition-tags a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.15s var(--ease);
}
.condition-tags a:hover {
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.note {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 14px;
}

.medical-disclaimer {
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 40px;
}
.medical-disclaimer h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.medical-disclaimer p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
}


/* ═══════════════════════════════════════
   DRUGS LISTING PAGE
   ═══════════════════════════════════════ */
.page-sub {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 40px;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
}
.letter-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    transition: all 0.15s var(--ease);
}
.letter-nav a:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    text-decoration: none;
}

.letter-group { margin-bottom: 40px; }
.letter-group h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.drug-list-grid { display: flex; flex-direction: column; gap: 4px; }
.drug-list-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    color: var(--gray-900);
    transition: all 0.15s var(--ease);
}
.drug-list-item:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    text-decoration: none;
    color: var(--gray-900);
}
.drug-name { font-weight: 600; font-size: 0.95rem; }
.drug-cat { font-size: 0.8rem; color: var(--gray-400); }
.drug-price { font-weight: 700; color: var(--green); white-space: nowrap; font-size: 0.95rem; }


/* ═══════════════════════════════════════
   CONTENT ARTICLES (savings tips, about, legal)
   ═══════════════════════════════════════ */
.content-article {
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 0;
}
.content-article h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.content-article h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.content-article p {
    margin-bottom: 16px;
    color: var(--gray-700);
    line-height: 1.8;
}
.content-article section { margin-bottom: 24px; }


/* ═══════════════════════════════════════
   AD CONTAINERS — Subtle
   ═══════════════════════════════════════ */
.ad-container {
    text-align: center;
    padding: 16px;
    margin: 32px auto;
    max-width: var(--max-width);
    min-height: 90px;
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius);
}


/* ═══════════════════════════════════════
   FOOTER — Dark, professional
   ═══════════════════════════════════════ */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 56px 0 28px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-col p {
    font-size: 0.85rem;
    line-height: 1.7;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; margin-bottom: 8px; }
.disclaimer-small {
    font-size: 0.7rem !important;
    color: rgba(255,255,255,0.3);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    html { font-size: 16px; }
    .header-inner { height: 56px; }

    .menu-toggle { display: flex; }
    nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 12px 16px;
        border-bottom: 1px solid var(--gray-200);
    }
    nav.open { display: block; }
    nav ul { flex-direction: column; gap: 2px; }
    nav a { padding: 14px 16px; font-size: 1rem; border-radius: var(--radius-sm); }

    .hero { padding: 48px 0 44px; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }

    .stats-grid { gap: 32px; flex-wrap: wrap; }
    .stat-number { font-size: 1.5rem; }

    .drug-header { grid-template-columns: 1fr; gap: 24px; }
    .drug-header h1 { font-size: 1.8rem; }

    .med-grid { grid-template-columns: 1fr; }
    .condition-grid { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
    .pharmacy-links { grid-template-columns: 1fr; }
    .side-effects-list { grid-template-columns: 1fr; }

    .drug-list-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .trust-badges { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .condition-grid-lg { grid-template-columns: 1fr; }
    .stats-grid { gap: 20px; }
}

/* ── Print ── */
@media print {
    header, footer, .ad-container, .search-section, .pharmacy-links, .menu-toggle, .stats-bar, .trust-badges { display: none; }
    body { font-size: 12pt; color: black; }
    a { color: black; text-decoration: underline; }
    .hero { background: none; color: black; padding: 20px 0; }
}
