/* NutriScope - Educational Website Styles */
/* January 2026 */

:root {
    --primary-green: #7CB97C;
    --primary-green-light: #A8D5A8;
    --primary-green-dark: #5A9A5A;
    --bg-light: #F8FAF8;
    --bg-white: #FFFFFF;
    --bg-gradient-start: #F0F7F0;
    --bg-gradient-end: #FFFFFF;
    --text-dark: #2D3436;
    --text-medium: #4A5568;
    --text-light: #718096;
    --border-light: #E2E8E0;
    --shadow-soft: rgba(124, 185, 124, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Reset & Base */
* {
    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-light);
    margin: 0;
    padding: 0;
}

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

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

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

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

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

/* Header - Fixed */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-soft);
    padding: 0.75rem 0;
}

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

.site-header .navbar-brand:hover {
    color: var(--primary-green);
    text-decoration: none;
}

.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,
.site-header .nav-link.active {
    color: var(--primary-green-dark);
}

/* Main Content Offset 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: 4rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

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

.hero-section p {
    font-size: 1.125rem;
    max-width: 540px;
}

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

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

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

.content-section:nth-child(odd) {
    background: var(--bg-white);
}

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

.section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Content Cards */
.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-soft);
    border: 1px solid var(--border-light);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

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

/* Two Column Grid */
.two-col-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.two-col-grid .col-text {
    flex: 1;
    min-width: 280px;
}

.two-col-grid .col-image {
    flex: 1;
    min-width: 280px;
}

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

/* Limitations Block */
.limitations-block {
    background: linear-gradient(135deg, #F7FAF7 0%, #EDF5ED 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border-left: 4px solid var(--primary-green);
    margin: 2rem 0;
}

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

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

.limitations-block ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-light);
}

.limitations-block ul li:last-child {
    border-bottom: none;
}

.limitations-block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
}

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

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

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

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

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

.faq-item.active .faq-question::after {
    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-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
}

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

.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 6px 25px var(--shadow-soft);
    border: 1px solid var(--border-light);
    max-width: 500px;
    margin: 0 auto;
}

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

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

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    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);
}

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

/* Buttons */
.btn-primary-custom {
    background: var(--primary-green);
    color: var(--bg-white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary-custom:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    color: var(--bg-white);
    text-decoration: none;
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-green-dark);
    border: 2px solid var(--primary-green);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-outline-custom:hover {
    background: var(--primary-green);
    color: var(--bg-white);
    text-decoration: none;
}

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

.soft-cta h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

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

.soft-cta .btn-outline-custom {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.soft-cta .btn-outline-custom:hover {
    background: var(--bg-white);
    color: var(--primary-green-dark);
}

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

.site-footer h4 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

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

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

.footer-disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

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

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

.cookie-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.cookie-banner .btn-accept {
    background: var(--primary-green);
    color: var(--bg-white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
}

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

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

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

.page-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Policy Pages */
.policy-content {
    background: var(--bg-white);
    padding: 3rem 0;
}

.policy-content h2 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.policy-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy-content ul {
    color: var(--text-medium);
    padding-left: 1.5rem;
}

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

/* About Page */
.about-content {
    padding: 4rem 0;
}

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

/* Contact Info */
.contact-info {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow-soft);
    border: 1px solid var(--border-light);
}

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

.contact-info p {
    margin-bottom: 0.75rem;
}

/* Educational Disclaimer */
.educational-disclaimer {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 2rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

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

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .two-col-grid {
        flex-direction: column;
    }
    
    .two-col-grid.reverse {
        flex-direction: column;
    }
    
    .two-col-grid .col-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    main {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .limitations-block {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .site-footer {
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
    }
}
