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

:root {
    --primary-color: #6BA3D6;
    --primary-light: #A8CCE8;
    --primary-dark: #4A7FB3;
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #7F8C8D;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-gradient-start: #F0F7FC;
    --bg-gradient-end: #FFFFFF;
    --border-color: #E5EBF0;
    --shadow-light: rgba(107, 163, 214, 0.1);
    --shadow-medium: rgba(107, 163, 214, 0.15);
}

/* Base Styles */
* {
    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);
    padding-top: 76px;
}

/* 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;
    line-height: 1.7;
}

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

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

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

.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.2s ease;
}

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

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

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

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

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

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

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

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

.section-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

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

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

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

/* Cards */
.info-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* Limitations Block */
.limitations-block {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #E8F4FD 100%);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

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

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

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

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

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

.faq-item {
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    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.2s ease;
}

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

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

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

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

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

.faq-answer p {
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

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

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

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

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

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

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

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

.cta-section h2,
.cta-section p {
    color: var(--bg-white);
}

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

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

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

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

.site-footer p {
    color: #B0BEC5;
    font-size: 0.9rem;
}

.site-footer a {
    color: #B0BEC5;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

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

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

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

.footer-disclaimer p {
    font-size: 0.85rem;
    color: #90A4AE;
}

.disclaimer-notice {
    background: rgba(107, 163, 214, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.disclaimer-notice p {
    margin: 0;
    color: var(--primary-light);
    font-weight: 500;
}

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

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

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

.cookie-banner .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Legal Pages */
.legal-page {
    padding: 4rem 0;
    min-height: 70vh;
}

.legal-page h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.legal-page h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.legal-page h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
}

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

.legal-page ul li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

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

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-medium);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

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

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-content 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;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .limitations-block {
        padding: 1.5rem;
    }
}
