/* =============================================================
   BARIATRIC VITAMINS WITH IRON — GLOBAL STYLESHEET
   https://bariatricvitaminswithiron.com/styles.css
   Last updated: 2026-02-18
   ============================================================= */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    line-height: 1.7;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', 'Georgia', serif; line-height: 1.25; }

/* ===== STICKY TOP BAR ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #d4380d, #e8590c);
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    z-index: 9999;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(212, 56, 13, 0.3);
}
.top-bar a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.top-bar a:hover { text-decoration-thickness: 3px; }
.top-bar .pulse {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== NAVIGATION ===== */
.nav {
    margin-top: 52px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #16a085;
}
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #16a085; }

/* ===== LAYOUT ===== */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section { padding: 70px 0; }
.section-alt { background: #f8f9fa; }
.section-dark { background: #1a1a2e; color: #fff; }

/* ===== CTA BUTTONS ===== */
.cta-primary {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.35);
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
}
.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.45);
    background: linear-gradient(135deg, #d35400, #c0392b);
}
.cta-secondary {
    display: inline-block;
    background: #16a085;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}
.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 160, 133, 0.4);
}
.cta-wrapper { text-align: center; margin: 35px 0; }

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 52px;
    background: linear-gradient(170deg, #f0fdf4 0%, #ecfdf5 40%, #fff 100%);
    padding: 80px 0 60px;
    text-align: center;
}
.hero h1 {
    font-size: 2.8rem;
    color: #1a1a2e;
    margin-bottom: 25px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 em {
    color: #16a085;
    font-style: italic;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #444;
    max-width: 680px;
    margin: 0 auto 30px;
    font-weight: 400;
}
.hero-subtitle strong { color: #1a1a2e; }
.hero-specs {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    letter-spacing: 0.03em;
}
.hero-specs span { margin: 0 8px; }
.hero-rating {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
}
.hero-rating .stars { color: #f59e0b; font-size: 1.1rem; }
.hero-image {
    max-width: 320px;
    margin: 40px auto 0;
    border-radius: 12px;
}

/* ===== PROBLEM SECTION ===== */
.problem h2 { font-size: 2.1rem; text-align: center; margin-bottom: 25px; color: #1a1a2e; }
.problem-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.05rem;
    color: #444;
}
.symptom-list { max-width: 600px; margin: 0 auto 30px; }
.symptom-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}
.symptom-item:last-child { border-bottom: none; }
.symptom-arrow { color: #d35400; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.symptom-item strong { color: #1a1a2e; }
.problem-closer {
    text-align: center;
    max-width: 650px;
    margin: 30px auto 0;
    font-size: 1.1rem;
    color: #333;
}
.problem-closer em {
    color: #16a085;
    font-weight: 600;
}

/* ===== INGREDIENTS SECTION ===== */
.ingredients h2 {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 40px;
}
.ingredient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.ingredient-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    transition: box-shadow 0.3s;
}
.ingredient-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.ingredient-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #16a085;
    margin-bottom: 10px;
}
.ingredient-card p { font-size: 0.95rem; color: #555; }
.ingredient-note {
    text-align: center;
    font-size: 1rem;
    color: #444;
    max-width: 700px;
    margin: 30px auto 0;
    padding: 20px;
    background: #ecfdf5;
    border-radius: 8px;
    border-left: 4px solid #16a085;
}

/* ===== COMPARISON TABLE (HOMEPAGE SIMPLE) ===== */
.comparison h2 { font-size: 2.1rem; text-align: center; margin-bottom: 40px; }
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    font-size: 0.92rem;
}
.comparison-table thead { background: #1a1a2e; color: #fff; }
.comparison-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.comparison-table th:nth-child(2) { background: #16a085; }
.comparison-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) { background: #f8f9fa; }
.comparison-table td:nth-child(2) {
    background: rgba(22, 160, 133, 0.06);
    font-weight: 600;
}
.check { color: #16a085; font-weight: 700; }
.cross { color: #ccc; }

/* ===== SOCIAL PROOF ===== */
.social-proof h2 { font-size: 2.1rem; text-align: center; margin-bottom: 40px; }
.testimonial {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
}
.testimonial::before {
    content: '\201C';
    font-size: 4rem;
    color: #16a085;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
}
.testimonial-headline {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.testimonial p { font-size: 0.95rem; color: #555; margin-bottom: 12px; padding-left: 10px; }
.testimonial-author {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    padding-left: 10px;
}

/* ===== OFFER SECTION ===== */
.offer { text-align: center; }
.offer h2 { font-size: 2.1rem; margin-bottom: 25px; color: #fff; }
.offer-price {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}
.offer-price .price-old {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 1rem;
}
.offer-price .price-new {
    font-size: 2rem;
    font-weight: 800;
    color: #f59e0b;
}
.offer-perday {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}
.offer-checklist {
    list-style: none;
    max-width: 500px;
    margin: 0 auto 35px;
    text-align: left;
}
.offer-checklist li {
    padding: 8px 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}
.offer-checklist li::before {
    content: '\2713';
    color: #2ecc71;
    font-weight: 700;
    margin-right: 12px;
}
.offer .cta-primary {
    font-size: 1.3rem;
    padding: 20px 50px;
}
.offer-guarantee {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}
.trust-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.section-dark .trust-badge { color: rgba(255,255,255,0.7); }
.section-dark .trust-badge-icon { background: rgba(255,255,255,0.1); }

/* ===== FAQ SECTION ===== */
.faq h2 { font-size: 2.1rem; text-align: center; margin-bottom: 40px; }
.faq-item {
    border-bottom: 1px solid #e8e8e8;
    padding: 22px 0;
}
.faq-question {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #16a085;
    font-weight: 300;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    content: '\2212';
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 15px;
}

/* ===== FINAL CTA ===== */
.final-cta {
    text-align: center;
    background: linear-gradient(170deg, #ecfdf5, #f0fdf4, #fff);
    padding: 80px 0;
}
.final-cta h2 { font-size: 2.1rem; margin-bottom: 20px; }
.final-cta p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px;
}
.final-specs {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    padding: 50px 0 30px;
    font-size: 0.85rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.footer p { margin-bottom: 10px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #16a085; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.8rem;
}
.footer-disclaimer {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

/* ===== MOBILE HAMBURGER ===== */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .hero { padding: 60px 0 40px; }
    .ingredient-grid { grid-template-columns: 1fr; }
    .comparison-table { font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 10px 8px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .cta-primary { font-size: 1rem; padding: 16px 30px; }
    .offer .cta-primary { font-size: 1.1rem; padding: 18px 35px; }
    .section { padding: 50px 0; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .nav-toggle { display: block; }
    .nav { position: relative; }
    .trust-badges { gap: 15px; }
    .top-bar { font-size: 0.82rem; padding: 10px 15px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    h2 { font-size: 1.6rem !important; }
}


/* =============================================================
   COMPARE PAGE — ADDITIONAL STYLES
   These extend the global stylesheet for /compare/ only.
   ============================================================= */

/* ===== COMPARE HERO ===== */
.hero-compare {
    margin-top: 52px;
    background: linear-gradient(170deg, #f0fdf4 0%, #ecfdf5 40%, #fff 100%);
    padding: 80px 0 60px;
    text-align: center;
}
.hero-compare .badge {
    display: inline-block;
    background: #16a085;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-compare h1 {
    font-size: 2.8rem;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-compare h1 em {
    color: #16a085;
    font-style: italic;
}
.hero-compare .subtitle {
    font-size: 1.15rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.speakable-intro {
    font-size: 1.05rem;
    color: #333;
    max-width: 650px;
    margin: 0 auto;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    font-size: 0.82rem;
    color: #888;
}
.breadcrumb-bar a { color: #16a085; }
.breadcrumb-bar strong { color: #555; }

/* ===== COMPARE TABLE (FULL 8-COLUMN) ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.compare-table {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    border-radius: 12px;
    overflow: hidden;
}
.compare-table thead { background: #1a1a2e; color: #fff; }
.compare-table th {
    padding: 14px 10px;
    text-align: center;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    white-space: nowrap;
}
.compare-table th:first-child { text-align: left; min-width: 170px; }
.compare-table th.winner-col {
    background: #16a085;
}
.compare-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    background: #f8f9fa;
}
.compare-table td.winner-col {
    background: rgba(22, 160, 133, 0.06);
    border-left: 3px solid #16a085;
    border-right: 3px solid #16a085;
    font-weight: 600;
}
.compare-table tbody tr:hover { background: #f0fdf4; }
.compare-table .partial { color: #d97706; font-weight: 600; }
.winner-badge {
    display: inline-block;
    background: #f59e0b;
    color: #1a1a2e;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

/* ===== WINNER CALLOUT BOX ===== */
.winner-box {
    background: #1a1a2e;
    color: #fff;
    border-radius: 12px;
    padding: 45px 30px;
    text-align: center;
    margin: 40px 0;
}
.winner-box h2 {
    color: #16a085;
    font-size: 1.8rem;
    margin-bottom: 16px;
}
.winner-box p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 20px;
}
.winner-box .speakable-winner {
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto 24px;
}

/* ===== 3 UNIQUE ADVANTAGE CARDS ===== */
.unique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.unique-card {
    background: #ecfdf5;
    border: 2px solid #16a085;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}
.unique-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.unique-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #16a085;
    margin-bottom: 10px;
    font-weight: 700;
}
.unique-card p { font-size: 0.92rem; color: #444; }

/* ===== DEEP-DIVE COMPETITOR CARDS ===== */
.deep-dive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.competitor-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow 0.3s;
}
.competitor-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.competitor-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-weight: 700;
}
.competitor-card .card-brand {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 14px;
    font-weight: 500;
}
.competitor-card .card-detail {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.65;
}
.competitor-card .card-detail strong { color: #1a1a2e; }
.card-pros { color: #16a085 !important; }
.card-cons { color: #d35400 !important; }
.card-verdict {
    font-size: 0.92rem;
    font-weight: 600;
    color: #16a085;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}
.competitor-card.featured {
    border: 3px solid #16a085;
    background: #f0fdf4;
}
.competitor-card.featured h3 { color: #16a085; }
.competitor-card.featured .card-brand { color: #16a085; }
.competitor-card.featured .card-verdict { color: #16a085; font-weight: 800; }

/* ===== COST RANKING ===== */
.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.cost-row span:first-child { font-weight: 600; }
.cost-row.expensive span:last-child { font-weight: 700; color: #d35400; }
.cost-row.mid span:last-child { font-weight: 700; color: #d97706; }
.cost-row.affordable span:last-child { font-weight: 700; color: #16a085; }
.cost-row.winner {
    background: #ecfdf5;
    border-radius: 8px;
    border-bottom: 2px solid #16a085;
}
.cost-row.winner span { font-weight: 800; color: #16a085; }
.cost-row.best-deal {
    background: #16a085;
    color: #fff;
    border-radius: 8px;
    margin-top: 8px;
}
.cost-row.best-deal span { font-weight: 800; color: #fff; }

/* ===== COMPARE PAGE SECTION OVERRIDES ===== */
.compare-section-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.75;
}
.compare-section-text strong { color: #1a1a2e; }
.compare-cta-section {
    text-align: center;
    padding: 60px 0;
}
.compare-cta-section h2 {
    font-size: 2.1rem;
    margin-bottom: 16px;
}
.compare-cta-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 28px;
}
.compare-cta-sub {
    font-size: 0.88rem;
    color: #999;
    margin-top: 14px;
}
