/* 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;
    }
}