/* Project: FioricetPrice.com
    Brand: Orange & Navy Visual Identity
    Updated: May 2026
    Status: MOBILE LAYOUT REPAIR (Final Version)
*/

:root {
    --primary-orange: #ff5e00; 
    --electric-blue: #001a33;  
    --deep-navy: #001a33;      
    --white: #ffffff;
    --soft-blue: #f4f9ff;
    --border-gray: #e1e8f0;
    --warning-yellow: #f1c40f;
}

/* --- 01. GLOBAL RESET & BASE --- */
* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--deep-navy);
    line-height: 1.6;
    overflow-x: hidden; 
}

h1, h2, h3, h4 { margin-top: 0; font-weight: 800; }

/* --- 02. HEADER & NAVIGATION --- */
header { 
    padding: 20px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--white); 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { 
    font-size: 26px; 
    font-weight: 900; 
    color: var(--electric-blue); 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: -1px; 
}

.logo span { color: var(--primary-orange); }

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

.nav-links a { 
    text-decoration: none; 
    color: var(--deep-navy); 
    margin-left: 30px; 
    font-weight: 700; 
    font-size: 14px; 
    text-transform: uppercase; 
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--primary-orange); }

/* --- 03. MOBILE MENU FIX --- */
.menu-toggle {
    display: none; 
    position: fixed; 
    right: 5%;
    top: 22px; 
    z-index: 10001; 
    font-size: 35px;
    cursor: pointer;
    color: var(--deep-navy);
    line-height: 1;
}

.menu-toggle.active { color: #ffffff !important; }

.nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 280px;
    height: 100%;
    background: var(--deep-navy);
    display: flex;
    flex-direction: column;
    padding: 100px 40px; 
    transition: 0.3s ease-in-out;
    z-index: 10000;
}

.nav-overlay.active { right: 0; }

.nav-overlay a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* --- 04. ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: var(--electric-blue);
    color: white;
    text-align: center;
    padding: 12px 5%;
    font-size: 14px;
    font-weight: 700;
}

.announcement-bar span { color: var(--primary-orange); }

/* --- 05. HERO SECTION --- */
.hero-full {
    width: 100%;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/images/fioricet-price-hero.webp'); 
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white);
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }

/* --- 06. PRICING & DISCLAIMER --- */
.price-section { background: var(--soft-blue); text-align: center; padding: 80px 5%; }

.price-container { 
    max-width: 900px; 
    margin: 40px auto; 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0 15px; 
}

.price-row { background: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.price-row td { padding: 30px; border-radius: 12px; font-size: 1.1rem; }

.disclaimer-box {
    max-width: 800px;
    margin: 50px auto 0;
    background: #fff;
    border-left: 5px solid var(--primary-orange);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.disclaimer-text h4 { margin-bottom: 5px; color: var(--electric-blue); }
.disclaimer-text p { margin: 0; font-size: 0.95rem; }

/* --- 07. PROCESS SECTION --- */
.process-section { background: var(--electric-blue); color: white; text-align: center; padding: 80px 5%; }

.process-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 50px auto 0;
    gap: 10px;
}

.process-step { flex: 1; }
.step-number { 
    background: var(--primary-orange); 
    width: 60px; height: 60px; 
    line-height: 60px; 
    border-radius: 50%; 
    margin: 0 auto 20px; 
    font-weight: 900; 
    font-size: 22px;
}

.process-arrow svg {
    width: 40px;
    fill: rgba(255,255,255,0.3);
}

/* --- 08. ABOUT SECTION --- */
.about-section { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    max-width: 1200px; 
    margin: 80px auto; 
    padding: 0 5%;
}

.about-image { 
    flex: 1; 
    height: 450px; 
    background: url('/images/pharmacist.webp') center/cover; 
    border-radius: 20px; 
    box-shadow: 20px 20px 0 var(--soft-blue);
}

.about-content { flex: 1; }

/* --- 09. FOOTER --- */
footer { background: var(--deep-navy); color: #b0c4de; padding: 80px 5% 40px; }

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto;
}

.footer-grid h4 { color: white; margin-bottom: 20px; text-transform: uppercase; }

/* --- 10. BUTTONS --- */
.btn-main {
    background: var(--primary-orange);
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px;
    text-decoration: none; 
    font-weight: 800; 
    display: inline-block;
    transition: 0.3s;
    border: none;
}

.btn-main:hover { transform: translateY(-3px); filter: brightness(1.1); }
.btn-blue { background: #0056b3; }

/* --- 11. MEDIA QUERIES (THE REAL FIX) --- */
@media (max-width: 992px) {
    .process-wrapper { flex-direction: column; gap: 30px; }
    .process-arrow { transform: rotate(90deg); margin: -10px 0; }
    .about-section { flex-direction: column-reverse; text-align: center; }
    .about-image { width: 100%; height: 350px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 2.2rem; }

    /* NUCLEAR RESET: FORCE TABLE TO BE STACKED DIVS */
    .price-container, 
    .price-container tbody, 
    .price-container tr, 
    .price-container td { 
        display: block !important; 
        width: 100% !important; 
    }

    .price-container { 
        margin: 20px 0 !important;
        border-spacing: 0 !important;
    }

    .price-row { 
        margin-bottom: 30px !important;
        border: 1px solid var(--border-gray) !important;
        border-radius: 15px !important;
        overflow: hidden;
        background: var(--white) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    }

    .price-row td { 
        padding: 15px 20px !important; 
        text-align: center !important;
        border: none !important;
    }

    /* Target the product name/count */
    .price-row td:nth-child(1) {
        background: var(--soft-blue);
        font-weight: 800;
        padding-top: 20px !important;
    }

    /* Target the big price */
    .price-row td:nth-child(2) {
        font-size: 2rem !important;
        font-weight: 900;
        color: var(--primary-orange);
    }

    /* Target the button cell */
    .price-row td:last-child {
        padding-bottom: 25px !important;
    }

    .btn-main {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* --- 12. CONTACT PAGE SPECIFIC --- */
.contact-hero {
    background: linear-gradient(rgba(0, 26, 51, 0.8), rgba(0, 26, 51, 0.8)), url('/images/fioricet-price-hero.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 5%;
    text-align: center;
    color: var(--white);
}

.contact-hero h1 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    font-weight: 900; 
}

.contact-section {
    padding: 80px 5%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.support-text h2 { 
    font-size: 2.2rem; 
    color: var(--electric-blue); 
    margin-bottom: 20px; 
}

.support-text p { 
    font-size: 1.1rem; 
    margin-bottom: 20px; 
}

.contact-info-card {
    background: var(--soft-blue);
    padding: 40px;
    border-radius: 20px;
    border-left: 8px solid var(--primary-orange);
}

.contact-method { margin-bottom: 30px; }

.contact-method h3 { 
    color: var(--electric-blue); 
    text-transform: uppercase; 
    font-size: 1rem; 
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-number { 
    font-size: 2rem; 
    font-weight: 900; 
    color: var(--primary-orange); 
    text-decoration: none;
    display: block;
}

.contact-hours { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--electric-blue); 
}

.contact-card-footer {
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(0,26,51,0.1);
}

.contact-card-footer p {
    font-size: 0.9rem; 
    font-weight: 700;
}

/* --- CONTACT MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .contact-section { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .contact-info-card { 
        border-left: none; 
        border-top: 8px solid var(--primary-orange); 
    }
    .contact-hero h1 { 
        font-size: 2.2rem; 
    }
}

/* --- 13. FAQ PAGE SPECIFIC --- */
.faq-hero {
    background: var(--electric-blue);
    color: white;
    padding: 60px 5%;
    text-align: center;
}

.faq-hero h1 { font-size: 3rem; margin: 0; font-weight: 900; }
.faq-hero p { opacity: 0.8; font-size: 1.1rem; margin-top: 10px; }

.faq-section { 
    max-width: 900px; 
    margin: 60px auto; 
    padding: 0 5%; 
}

/* FAQ Accordion Item */
.faq-item {
    margin-bottom: 15px;
    border: 2px solid var(--soft-blue);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover { border-color: var(--primary-orange); }

.faq-question {
    background: var(--white);
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    user-select: none;
}

.faq-question::after {
    content: '+';
    color: var(--primary-orange);
    font-size: 1.5rem;
    font-weight: 900;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: var(--soft-blue);
    transition: max-height 0.4s ease-out;
}

.faq-answer p { 
    padding: 0 25px 25px; 
    margin: 0; 
    color: #444; 
}

/* Accordion Active State */
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-item.active { 
    border-color: var(--primary-orange); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* FAQ CTA Section */
.faq-cta {
    background: var(--soft-blue);
    text-align: center;
    padding: 60px 5%;
    border-radius: 20px;
    margin: 40px 5% 80px;
}

.faq-cta h2 { font-size: 2rem; margin-bottom: 10px; }

/* FAQ Mobile Adjustments */
@media (max-width: 768px) {
    .faq-hero h1 { font-size: 2rem; }
    .faq-section { margin: 40px auto; }
}

/* --- 14. PRICING PAGE SPECIFIC --- */
.hero-mini {
    width: 100%;
    height: 300px;
    background: linear-gradient(rgba(0, 26, 51, 0.8), rgba(0, 26, 51, 0.8)), url('/images/fioricet-price-hero.webp'); 
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white);
}

.hero-mini h1 { font-size: 3rem; margin: 0; }

/* Warning/Disclaimer Box */
.disclaimer-box {
    max-width: 900px; 
    margin: 40px auto; 
    background: #fff;
    border-left: 6px solid #e74c3c; /* Using specific warning red */
    padding: 25px; 
    text-align: left;
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; 
    align-items: flex-start; 
    gap: 20px;
}

/* Info Sections (Uses, Side Effects, Warnings) */
.info-section { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 40px 0; 
    border-bottom: 1px solid #eee; 
}

.info-section h3 { 
    color: var(--electric-blue); 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    border-bottom: 3px solid var(--primary-orange); 
    display: inline-block; 
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 20px; 
}

.info-card { 
    background: var(--white); 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid #eee; 
}

/* Pricing Page Mobile Tweaks */
@media (max-width: 768px) {
    .hero-mini { height: 200px; }
    .hero-mini h1 { font-size: 2rem; }
    .disclaimer-box { 
        flex-direction: column; 
        gap: 10px; 
        margin: 20px;
    }
    .info-section { padding: 30px 20px; }
}

/* --- 15. LEGAL PAGES (Privacy/Terms) --- */
.content-container { 
    max-width: 900px; 
    margin: 60px auto; 
    padding: 0 5%; 
}

.content-container h1 { 
    font-size: 2.5rem; 
    color: var(--electric-blue); 
    margin-bottom: 30px; 
}

.content-container h2 { 
    font-size: 1.5rem; 
    color: var(--primary-orange); 
    margin-top: 40px; 
    border-bottom: 2px solid var(--soft-blue); 
    padding-bottom: 10px; 
}

.last-updated { 
    font-style: italic; 
    color: #666; 
    margin-bottom: 40px; 
    display: block;
}

.content-container ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.content-container li {
    margin-bottom: 10px;
}

/* Legal Page Mobile Tweaks */
@media (max-width: 768px) {
    .content-container { margin: 40px auto; }
    .content-container h1 { font-size: 2rem; }
    .content-container h2 { font-size: 1.3rem; }
}

/* --- 16. TERMS OF SERVICE SPECIFIC --- */
.warning-text { 
    color: #e74c3c; /* Matches your warning red */
    font-weight: 700; 
}

/* Ensure consistent spacing for legal paragraphs */
.content-container p {
    margin-bottom: 20px;
}

/* Terms Page Mobile Tweaks */
@media (max-width: 768px) {
    .warning-text {
        display: block;
        padding: 10px;
        background: #fff5f5;
        border-radius: 5px;
    }
}

/* --- 17. THANK YOU PAGE SPECIFIC --- */
.thank-you-body {
    background: var(--soft-blue);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thank-you-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}

.thank-you-card {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 26, 51, 0.1);
    border-top: 8px solid var(--primary-orange);
}

.thank-you-card h1 {
    color: var(--electric-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.thank-you-card p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #2ecc71; /* Success Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 30px;
}

/* Thank You Mobile Tweaks */
@media (max-width: 768px) {
    .thank-you-card {
        padding: 40px 20px;
        margin: 20px;
    }
    .thank-you-card h1 { font-size: 2rem; }
}