/* ---
MANBOA Website Stylesheet
--- */

/* --- 1. Global Styles & Variables --- */
:root {
    --color-primary-green: #47B548;
    --color-primary-green-hover: #3da03e;
    --color-accent-red: #D92121;
    --color-text-dark: #333333;
    --color-text-light: #676873;
    --color-background-light-gray: #F8F9FA;
    --color-white: #FFFFFF;
    --color-border: #EAEAEA;
    --font-primary: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden; /* Prevent horizontal scroll globally */
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

/* Explicit font sizes for headings inside sections to prevent browser deprecation warnings */
section h1, section h2 {
    font-size: inherit;
}

h1, section h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--color-text-dark);
}

h1 span {
    color: var(--color-accent-red);
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--color-primary-green);
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

.subheading {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* --- 2. Buttons & CTAs --- */
.cta-button, .cta-button-large {
    display: inline-block;
    background-color: var(--color-primary-green);
    color: var(--color-white);
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover, .cta-button-large:hover {
    background-color: var(--color-primary-green-hover);
}

.cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
}

.cta-button-large {
    padding: 20px 40px;
    font-size: 1.2rem;
    width: 100%;
    max-width: 400px;
}

/* --- 3. Header & Navigation --- */
.warning-bar {
    background-color: var(--color-accent-red);
    color: var(--color-white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

#header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-text-dark);
}

/* --- 4. Hero Section --- */
.section-hero {
    padding: 60px 0;
    background-color: var(--color-background-light-gray);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-left {
    flex: 1;
    text-align: center;
}

.hero-product-bottle {
    max-width: 400px;
}

.hero-right {
    flex: 1.2;
}

.hero-right h1 {
    text-align: left;
    margin-bottom: 15px;
}

.hero-right .magazines {
    margin-bottom: 15px;
}

.promo-text {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.promo-list {
    margin-bottom: 25px;
}

.promo-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.promo-list .list-icon {
    width: 32px;
    height: 32px;
}

.hero-right .labels {
    margin-bottom: 30px;
}

/* --- 5. Solution Section --- */
.section-solution {
    background-color: var(--color-white);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--color-background-light-gray);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.solution-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* --- 6. Benefits Section --- */
.section-benefits {
    background-color: var(--color-background-light-gray);
}

.benefits-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.benefits-left {
    flex: 1;
}

.benefits-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefits-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.benefits-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

/* --- 7. Doctor Recommended Section --- */
.section-doctor {
    background-color: var(--color-white);
}

.doctor-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.doctor-left {
    flex: 1;
    text-align: center;
}

.doctor-product-bottle {
    max-width: 250px;
    margin-bottom: 20px;
}

.recommended-labels {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.doctor-right {
    flex: 1.2;
    text-align: center;
}

.doctor-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 5px solid var(--color-background-light-gray);
}

.doctor-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.doctor-name {
    font-weight: 600;
}

/* --- 8. Compare Section --- */
.section-compare {
    background-color: var(--color-background-light-gray);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 50px;
    text-align: center;
    font-size: 1.1rem;
}

.compare-table th, .compare-table td {
    padding: 20px;
    border: 1px solid var(--color-border);
}

.compare-table thead th {
    background-color: var(--color-white);
    font-weight: 700;
}

.compare-table tbody tr:nth-child(even) {
    background-color: var(--color-white);
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.compare-table .table-img {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.compare-table .positive {
    color: var(--color-primary-green);
    font-weight: 700;
}

.compare-table .negative {
    color: var(--color-text-light);
}

.compare-table tfoot td {
    border: none;
    padding-top: 40px;
}

/* --- 9. Testimonials Section --- */
.section-testimonials {
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-item {
    background-color: var(--color-background-light-gray);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.testimonial-head {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.testimonial-head .stars {
    width: 96px;
}

.testimonial-head h3 {
    font-weight: 700;
}

/* --- 10. FAQ Section --- */
.section-faq {
    background-color: var(--color-background-light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--color-primary-green);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--color-text-light);
}

/* --- 11. Footer --- */
#footer {
    background-color: var(--color-text-dark);
    color: #A9A9A9;
    padding: 60px 0;
    text-align: center;
    font-size: 0.9rem;
}

#footer .container {
    max-width: 800px;
}

#footer p {
    margin-bottom: 20px;
}

.footer-logos {
    margin-bottom: 30px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.footer-nav a {
    color: #A9A9A9;
    text-decoration: underline;
}

.footer-nav a:hover {
    color: var(--color-white);
}

/* --- 12. Sticky Mobile CTA --- */
.sticky-cta {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.sticky-cta .cta-button-large {
    width: 100%;
    max-width: 100%;
    animation: pulse-animation 1.5s infinite;
}

/* --- 13. Modals --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1010;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1020;
}

.modal.active, .modal-overlay.active {
    display: block;
}

.modal h2 {
    text-align: left;
    margin-bottom: 20px;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-light);
}

/* --- 14. Responsive Styles --- */
@media (max-width: 992px) {
    h1, section h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .header-container .nav, .header-container .cta-button {
        display: none;
    }
    .header-container {
        justify-content: center;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-right h1 { text-align: center; }
    .hero-right .promo-text { text-align: center; }
    .promo-list li { justify-content: center; }

    .benefits-content { flex-direction: column; }

    .doctor-content { flex-direction: column-reverse; }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1, section h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .solution-grid { grid-template-columns: 1fr; }
    
    .sticky-cta {
        display: block;
    }
    
    body {
        padding-bottom: 80px; /* Space for sticky CTA */
    }

    /* --- Start: Responsive Table Transformation (FINAL FIX V4) --- */
    .compare-table {
        border: 1px solid var(--color-border);
        border-radius: 8px;
        width: 100%;
    }
    .compare-table thead {
        display: none;
    }
    .compare-table tbody tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--color-border);
    }
    .compare-table tr:last-child {
        border-bottom: none;
    }
    .compare-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border: none;
        font-size: 0.9rem;
    }
    .compare-table tbody td:first-child {
        background-color: var(--color-background-light-gray);
        font-weight: 700;
        justify-content: center;
        text-align: center;
        font-size: 1rem;
        padding: 12px;
    }
    .compare-table tbody td:nth-child(2)::before {
        content: "MANBOA";
        font-weight: 600;
        color: var(--color-primary-green);
    }
    .compare-table tbody td:nth-child(3)::before {
        content: "Other Products";
        font-weight: 600;
        color: var(--color-text-light);
    }
    /* Specific fix for the checkmark row */
    .compare-table tbody tr:last-of-type td:nth-child(2) {
        justify-content: center; /* Center the content */
        gap: 8px; /* Add space between label and checkmark */
    }
    .compare-table tbody tr:last-of-type td:nth-child(3) {
        display: none; /* Hide the "Other Products" cell entirely */
    }
    .compare-table tfoot tr, .compare-table tfoot td {
        display: block;
        border: none;
        padding: 0;
    }
    .compare-table tfoot .cta-button {
        width: 100%;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        padding: 15px;
    }
    /* --- End: Responsive Table Transformation --- */
}

/* --- 15. Cookie Consent Banner --- */
.cookie-consent-banner {
    position: fixed;
    bottom: -200px; /* Start off-screen */
    left: 0;
    width: 100%;
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1100;
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent-banner.active {
    bottom: 0;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-container p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-container a {
    color: var(--color-white);
    text-decoration: underline;
}

#accept-cookies-btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-container .cta-button {
        width: 100%;
        margin-top: 10px;
    }
    body.cookie-banner-active {
        padding-bottom: 180px; /* Adjust for both sticky CTA and cookie banner */
    }
}

.cookie-consent-banner.hidden {
    display: none;
}

/* --- 16. Animations --- */
@keyframes pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(71, 181, 72, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(71, 181, 72, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(71, 181, 72, 0);
  }
}
