/* ============================================
   PREPPING PARTNER - SHARED STYLES
   ============================================ */

/* Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #722f2f;
    --primary-dark: #5a2424;
    --charcoal: #2e2a28;
    --charcoal-warm: #3d3835;
    --cream: #faf8f5;
    --stone: #f2eeea;
    --text-dark: #3a3836;
    --text-medium: #5a5550;
    --text-light: #8a8580;
    --accent: #c4813c;
    --accent-light: #daa56a;
    --green: #2d6a4f;
    --red: #9b2226;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--cream);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(46, 42, 40, 0.98);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-logo {
    font-family: 'Merriweather', serif;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

/* Consult CTA Button - stands out */
.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent-light);
    color: white !important;
    transform: translateY(-2px);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown > a::after {
    content: "▾";
    font-size: 0.7rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-top: 10px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--charcoal-warm);
    color: var(--accent-light);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
}

/* Mobile nav */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .hamburger-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: inline;
}

/* Nav CTA button specific styles */
.nav-cta-guide {
    background: #b87333 !important;
}

.nav-cta-consult {
    background: #722f2f !important;
}

/* Active page highlight */
.nav-active {
    color: var(--accent-light) !important;
    font-weight: 600;
}

.dropdown-menu .nav-active {
    background: var(--charcoal-warm);
}

/* ============================================
   HEADERS
   ============================================ */
.page-header,
.article-header {
    background: linear-gradient(150deg, #2a2725 0%, var(--charcoal-warm) 50%, #3d3433 100%);
    padding: 120px 20px 60px;
    text-align: center;
}

.page-header h1,
.article-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.page-header p {
    color: #c8c4c0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.article-header .category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-header .byline {
    color: #a8a4a0;
    font-size: 0.95rem;
}

.article-header .publish-date {
    color: #a8a4a0;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.article-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 50px 20px;
}

.article-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 25px;
}

.article-content li {
    margin-bottom: 10px;
    font-size: 1.02rem;
}

/* ============================================
   BOXES & HIGHLIGHTS
   ============================================ */
.highlight-box {
    background: var(--stone);
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.product-box {
    background: white;
    border: 2px solid var(--stone);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.product-box h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-link {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-right: 10px;
    margin-top: 10px;
}

.product-link:hover {
    background: var(--primary);
}

.prep-type-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent);
}

.prep-type-box h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-box,
.list-box,
.skill-box,
.tip-box,
.philosophy-box {
    background: white;
    border: 2px solid var(--stone);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.type-box h3,
.list-box h3,
.skill-box h3,
.tip-box h4,
.philosophy-box h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.money-box {
    background: white;
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.money-box h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.15rem;
}

.money-box .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.warning-box {
    background: #fef3e7;
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.story-intro {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-medium);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 30px 0;
}

.story-box {
    background: white;
    border: 2px solid var(--stone);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-medium);
}

/* Comparison grids */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.healthy-box {
    background: white;
    border: 2px solid var(--green);
    border-radius: 12px;
    padding: 25px;
}

.healthy-box h3 {
    color: var(--green);
    font-family: 'Merriweather', serif;
    margin-bottom: 15px;
}

.unhealthy-box {
    background: white;
    border: 2px solid var(--red);
    border-radius: 12px;
    padding: 25px;
}

.unhealthy-box h3 {
    color: var(--red);
    font-family: 'Merriweather', serif;
    margin-bottom: 15px;
}

.compare-item {
    background: white;
    border: 2px solid var(--stone);
    border-radius: 12px;
    padding: 20px;
}

.compare-item h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Prep type mini boxes */
.prep-type-mini {
    background: var(--charcoal);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.prep-type-mini h4 {
    color: var(--accent-light);
    margin-bottom: 10px;
}

/* Goal box */
.goal-box {
    background: var(--charcoal);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.goal-box h3 {
    font-family: 'Merriweather', serif;
    margin-bottom: 15px;
    color: var(--accent-light);
}

/* ============================================
   READ NEXT & CTAs
   ============================================ */
.read-next {
    background: var(--charcoal);
    padding: 25px;
    border-radius: 12px;
    margin: 40px 0;
}

.read-next p {
    color: #a8a4a0;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.read-next a {
    color: white;
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
}

.read-next a:hover {
    color: var(--accent-light);
}

.cta-box {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    font-family: 'Merriweather', serif;
    margin-bottom: 15px;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-box a {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--primary);
}

/* ============================================
   GUIDES INDEX
   ============================================ */
.guides-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px; /* Offset for fixed nav bar */
}

/* Anchor offset for any element with an ID (for hash links) */
[id] {
    scroll-margin-top: 80px;
}

.category-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--stone);
}

.guide-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.guide-card.featured {
    border-left: 4px solid var(--accent);
}

.guide-category {
    display: inline-block;
    background: var(--stone);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.guide-card h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.guide-card h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-card h2 a:hover {
    color: var(--primary);
}

.guide-card p {
    color: var(--text-medium);
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.guide-card .read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.guide-card .read-more:hover {
    color: var(--primary);
}

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
    background: linear-gradient(150deg, #2a2725 0%, var(--charcoal-warm) 50%, #3d3433 100%);
    padding: 140px 20px 80px;
    text-align: center;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.hero .tagline {
    font-size: 1.25rem;
    color: #c8c4c0;
    margin-bottom: 30px;
}

.hero .cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.hero .cta-button:hover {
    background: var(--accent-light);
}

.intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.intro h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.features {
    background: var(--stone);
    padding: 60px 20px;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.feature-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.cta-section {
    background: var(--primary);
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 50px 20px 30px;
    background: #2a2725;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 6px;
}

footer .tagline {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 25px;
}

.footer-signup {
    background: rgba(255,255,255,0.08);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.footer-signup h4 {
    color: white;
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
}

.footer-signup p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-signup a {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-signup a:hover {
    background: var(--accent-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-social a:hover {
    color: var(--accent-light);
}

footer p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   TABLES
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--stone);
}

.comparison-table th {
    background: var(--charcoal);
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid,
    .comparison-box {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile Navigation Overlay */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(46, 42, 40, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 40px;
        gap: 0;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links > a,
    .nav-dropdown > a {
        padding: 18px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }
    
    .nav-dropdown {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-dropdown > a {
        border-bottom: none;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        padding: 0;
    }
    
    .nav-dropdown.mobile-dropdown-open .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 14px 20px 14px 35px;
        font-size: 1rem;
    }
    
    .dropdown-divider {
        margin: 5px 20px;
    }
    
    /* Mobile CTA Buttons */
    .nav-cta {
        margin: 10px 20px;
        text-align: center;
        padding: 15px 20px !important;
    }
    
    /* Dropdown arrow rotation on mobile */
    .nav-dropdown > a::after {
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.mobile-dropdown-open > a::after {
        transform: rotate(180deg);
    }
    
    /* Prevent body scroll when menu is open */
    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 12px 20px;
    }
    
    .page-header,
    .article-header {
        padding: 100px 20px 50px;
    }
    
    .page-header h1,
    .article-header h1 {
        font-size: 1.7rem;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}
