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

:root {
    --primary-color: #2E8B57;
    --primary-dark: #246b45;
    --primary-light: #3da569;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; color: var(--primary-color); }
h3 { font-size: 1.35rem; }

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

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

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

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

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

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46,139,87,0.85) 0%, rgba(36,107,69,0.9) 100%);
}

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

#hero h1 {
    color: #ffffff;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

#hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

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

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

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

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Two Column Layout */
.two-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.two-column .column-text {
    order: 2;
}

.two-column .column-image {
    order: 1;
}

.two-column.reverse .column-text {
    order: 1;
}

.two-column.reverse .column-image {
    order: 2;
}

.column-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Cards */
.info-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
}

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

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

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s ease;
}

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

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

.faq-question[aria-expanded="true"] .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light);
}

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

.infographic-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background-color: var(--bg-light);
}

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

.disclaimer-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.disclaimer-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46,139,87,0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

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

.form-success {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Contact Info */
.contact-info {
    padding: 2rem 0;
}

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

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

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: #cccccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1.25rem;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    display: none;
}

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

.cookie-content {
    max-width: 1140px;
    margin: 0 auto;
}

.cookie-content p {
    color: #cccccc;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.btn-cookie {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-cookie-accept {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.btn-cookie-reject {
    background-color: transparent;
    color: #cccccc;
    border: 1px solid #666666;
}

.btn-cookie-reject:hover {
    background-color: #333333;
}

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

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

.modal-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    max-width: 700px;
    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;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

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

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

.modal-body {
    padding: 1.5rem;
}

.modal-body h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.modal-body p, .modal-body li {
    font-size: 0.95rem;
    color: var(--text-light);
}

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

/* Soft CTA */
.soft-cta {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.soft-cta h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.soft-cta p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.btn-outline-light {
    color: #ffffff;
    border: 2px solid #ffffff;
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
}

/* Media Queries - Tablet */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    #hero {
        min-height: 550px;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .two-column {
        flex-direction: row;
        align-items: center;
    }

    .two-column .column-text,
    .two-column .column-image {
        flex: 1;
        order: unset;
    }

    .two-column.reverse .column-text {
        order: 2;
    }

    .two-column.reverse .column-image {
        order: 1;
    }

    .content-section {
        padding: 80px 0;
    }
}

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

    #hero {
        min-height: 600px;
    }

    #hero h1 {
        font-size: 3.25rem;
    }

    .content-section {
        padding: 100px 0;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }

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