
:root {
    --primary-green: #28a745;
    --dark-green: #218838;
    --dark-blue: #1C2833;
    --light-gray: #f1f5f9;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 8px;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* START: Add these new styles for the integrated top bar */
.top-offer-bar {
    background-color: #ffc107; /* High-contrast yellow */
    color: var(--dark-blue);
    text-align: center;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 1rem;
}
/* END: Add these new styles */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #fff;
}

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

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; }
p { margin-bottom: 16px; }
a { color: var(--primary-green); text-decoration: none; }
img { max-width: 100%; display: block; }
.section-subtitle { text-align: center; max-width: 700px; margin: -20px auto 40px auto; color: var(--text-muted); }

/* 2. Header & Navigation
-------------------------------- */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 0px 0;
    transition: box-shadow 0.3s ease;
}
.header.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px; /* ADD THIS LINE */
}
.logo img {
    height: 45px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--primary-green);
}

/* 3. Reusable Components (Buttons, Lists, etc.)
-------------------------------- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--text-light) !important;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.cta-button:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}
.hero-cta {
    padding: 18px 35px;
    font-size: 1.2rem;
}
.flex-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.flex-item {
    flex: 1;
}
.benefits-list {
    list-style: none;
    margin-top: 20px;
}
.benefits-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
}
.benefits-list li::before {
    content: '✓';
    color: var(--primary-green);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

/* 4. Page Sections (Hero, Ingredients, etc.)
-------------------------------- */
section { padding: 80px 0; }
.section-light { background-color: #fff; }
.section-medium { background-color: var(--light-gray); }

.hero {
    padding-top: 60px;
    padding-bottom: 60px;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-text {
    flex: 1.2;
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.rating-text { color: var(--text-muted); font-size: 1rem; }
.hero-subheadline { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.ingredient-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}
.ingredient-icon {
    height: 60px;
    margin: 0 auto 20px auto;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-left: 4px solid var(--primary-green);
    border-radius: var(--border-radius);
}
.testimonial-author {
    font-weight: bold;
    margin-top: 15px;
    color: var(--text-dark);
}
.testimonial-card .stars { color: #ffc107; }

/* 5. Content & New Page Styles
-------------------------------- */
.content-page h1 { text-align: center; }
.cta-section {
    text-align: center;
    background-color: var(--light-gray);
    padding: 50px;
    margin-top: 80px;
    border-radius: var(--border-radius);
}
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.ingredients-detailed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.ingredient-detailed-card img {
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.how-to-use-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 50px;
}
.how-to-use-step .step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}
.step-image {
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* 6. FAQ Section
-------------------------------- */
.faq-container { max-width: 800px; margin: 40px auto 0 auto; }
.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.faq-item summary {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px;
    cursor: pointer;
    outline: none;
    position: relative;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.2s;
    color: var(--primary-green);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 15px 15px; }

/* 6. Legal & Contact Pages
-------------------------------- */
.legal-page, .contact-page { padding: 80px 0; }
.legal-page .container, .contact-page .container { max-width: 800px; }
.legal-page h1, .contact-page h1 { text-align: center; margin-bottom: 40px; }
.legal-page h2 { text-align: left; font-size: 1.5rem; margin-top: 30px; }
.legal-page ul { margin-left: 20px; margin-bottom: 16px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}
.contact-info p { font-size: 1.1rem; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.form-status { margin-top: 15px; font-weight: bold; }

/* 7. Footer
-------------------------------- */
.footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 60px 0 30px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { margin-bottom: 20px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #ccc; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-logo { height: 40px; margin-bottom: 15px; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 30px;
    color: #aaa;
}
.footer-bottom a { color: #aaa; }
.footer-bottom .disclaimer { font-size: 0.8rem; margin-top: 10px; opacity: 0.7; }

/* 8. Responsive Design
-------------------------------- */
@media(max-width: 992px) {
    .testimonial-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .ingredients-detailed-grid { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .main-nav { display: none; } /* Simplified for example; a real site needs a hamburger menu */
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .flex-container { flex-direction: column; }
    .testimonial-card, .ingredient-card { padding: 20px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .how-to-use-grid { grid-template-columns: 1fr; }
    .footer-logo { margin: 0 auto 15px; }
}

