/* NutriScope - Main Stylesheet */
/* Educational content only. No medical services. */

:root {
    --primary-green: #7CB87C;
    --primary-green-light: #A8D5A8;
    --primary-green-dark: #5A9A5A;
    --bg-light: #F8FAF8;
    --bg-white: #FFFFFF;
    --bg-gradient-start: #F0F7F0;
    --bg-gradient-end: #FFFFFF;
    --text-dark: #2C3E2C;
    --text-medium: #4A5D4A;
    --text-light: #6B7D6B;
    --border-color: #D4E5D4;
    --shadow-soft: rgba(124, 184, 124, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* Header / Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-medium);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green) !important;
}

.navbar-brand:hover {
    color: var(--primary-green-dark) !important;
}

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

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

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 2.75rem;
    color: var(--text-dark);
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--text-medium);
}

.hero-image {
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-medium);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section:nth-child(even) {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.section-image {
    border-radius: 10px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.section-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-soft);
    border: 1px solid var(--border-color);
    height: 100%;
}

.section-card h3 {
    color: var(--primary-green-dark);
}

/* Two Column Layout */
.two-col-section {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.two-col-section.reverse {
    flex-direction: row-reverse;
}

.two-col-text {
    flex: 1;
}

.two-col-image {
    flex: 1;
}

/* Limitations Block */
.limitations-section {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-green);
    padding: 2rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

.limitations-section h3 {
    color: var(--primary-green-dark);
    margin-bottom: 1rem;
}

.limitations-section ul {
    list-style: none;
    padding: 0;
}

.limitations-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.limitations-section li::before {
    content: "•";
    color: var(--primary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--bg-gradient-start);
}

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

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

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

.faq-answer.open {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-white) 100%);
    padding: 5rem 0;
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

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

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

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

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--shadow-soft);
}

.btn-primary {
    background-color: var(--primary-green);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: white;
}

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

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: var(--text-medium);
}

.contact-info-item .icon {
    color: var(--primary-green);
    margin-right: 1rem;
    font-size: 1.25rem;
    min-width: 24px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background-color: white;
    color: var(--primary-green);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-green-light);
}

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

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

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

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.25rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px var(--shadow-medium);
    display: none;
}

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

.cookie-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.cookie-banner .btn-primary {
    padding: 0.625rem 1.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
}

/* Legal Pages */
.legal-content {
    padding: 4rem 0;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-medium);
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* About Page */
.about-section {
    padding: 5rem 0;
}

.about-image {
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-medium);
    width: 100%;
    height: auto;
}

.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.value-card .icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Utilities */
.text-green {
    color: var(--primary-green);
}

.bg-light-green {
    background-color: var(--bg-light);
}

.rounded-lg {
    border-radius: 12px;
}

.shadow-soft {
    box-shadow: 0 6px 20px var(--shadow-soft);
}

/* Responsive */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .two-col-section {
        flex-direction: column;
        gap: 2rem;
    }

    .two-col-section.reverse {
        flex-direction: column;
    }

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

@media (max-width: 767px) {
    .navbar {
        padding: 0.75rem 0;
    }

    main {
        padding-top: 70px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
    }

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

    .content-section {
        padding: 2.5rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .cta-section {
        padding: 3rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .cta-section {
        display: none;
    }

    main {
        padding-top: 0;
    }

    .footer {
        background: white;
        color: black;
    }
}
