/* NutraHub - Main Stylesheet */
/* Mobile-first responsive design */

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --text-dark: #212121;
    --text-medium: #616161;
    --text-light: #9E9E9E;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-section: #FAFAFA;
    --border-color: #E0E0E0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.35;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header .navbar {
    padding: 0.75rem 1rem;
}

.site-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.site-header .navbar-brand:hover {
    color: var(--primary-dark);
}

.site-header .nav-link {
    color: var(--text-medium);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.site-header .nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(76, 175, 80, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main content padding for fixed header */
main {
    padding-top: 70px;
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
}

#hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Sections */
section {
    padding: 3rem 0;
}

section:nth-child(even) {
    background-color: var(--bg-section);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Two-column layout with images */
.content-block {
    margin-bottom: 2rem;
}

.content-block .row {
    align-items: center;
}

.content-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.content-block .text-content {
    padding: 1rem 0;
}

/* Info cards */
.info-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Products section */
.product-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item .product-content {
    padding: 1.5rem;
}

.product-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* FAQ Section */
.faq-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

/* Infographic section */
.infographic-wrapper {
    text-align: center;
}

.infographic-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Lifestyle section */
.lifestyle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.lifestyle-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lifestyle-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.lifestyle-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--bg-white);
}

.lifestyle-item .overlay h3 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.lifestyle-item .overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

/* CTA Section */
#cta {
    background-color: var(--primary-light);
    text-align: center;
    padding: 3rem 1rem;
}

#cta h2 {
    color: var(--primary-dark);
}

.btn-cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Contact Section */
#contact {
    background-color: var(--bg-white);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-item .icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.contact-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-success {
    display: none;
    padding: 1rem;
    background-color: var(--primary-light);
    border-radius: 4px;
    color: var(--primary-dark);
    text-align: center;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.footer-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.policy-link {
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Disclaimer block */
.disclaimer-block {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.disclaimer-block h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.disclaimer-block p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.disclaimer-block p:last-child {
    margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 1rem;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    color: var(--bg-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.cookie-btn-accept:hover {
    background-color: var(--primary-dark);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--bg-light);
    border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal (Policy popups) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-medium);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p,
.modal-body ul {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .content-block img {
        margin-bottom: 0;
    }

    .lifestyle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-banner {
        padding: 1.5rem;
    }

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

    .cookie-banner p {
        margin-bottom: 0;
        margin-right: 2rem;
    }

    .cookie-buttons {
        flex-shrink: 0;
    }
}

/* Responsive - Desktop */
@media (min-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    #hero {
        min-height: 70vh;
    }

    section {
        padding: 5rem 0;
    }

    .product-item img {
        height: 220px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
