/* NutriSense - Educational Website Styles */
/* Soft Teal Accent: #5FAFA3 */

:root {
    --primary-teal: #5FAFA3;
    --primary-teal-light: #8FCCC3;
    --primary-teal-dark: #4A8F85;
    --bg-light: #F8FAFA;
    --bg-gradient-start: #FFFFFF;
    --bg-gradient-end: #F0F7F6;
    --text-dark: #2D3436;
    --text-medium: #636E72;
    --text-light: #B2BEC3;
    --white: #FFFFFF;
    --border-color: #E0E8E7;
    --shadow-light: rgba(95, 175, 163, 0.08);
    --shadow-medium: rgba(95, 175, 163, 0.12);
}

/* Reset and 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);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 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 {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

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

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

/* Header / Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 12px var(--shadow-light);
    padding: 0.75rem 0;
    transition: box-shadow 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal) !important;
    letter-spacing: -0.5px;
}

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

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

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 5rem 0 4rem;
    position: relative;
}

.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: 12px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    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-end) 0%, var(--white) 100%);
}

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

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

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

/* Cards */
.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-2px);
}

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

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

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

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

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

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

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

.faq-item {
    background: var(--white);
    border-radius: 10px;
    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-gradient-end);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary-teal);
    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.25rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
}

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

.contact-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.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.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

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

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

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    color: var(--text-dark);
    margin: 0;
}

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

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

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

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.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 {
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.footer-disclaimer {
    background: rgba(95, 175, 163, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.footer-disclaimer p {
    color: var(--primary-teal-light);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

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

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

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

.cookie-banner .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 4rem 0 3rem;
    margin-top: 56px;
}

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

.page-header p {
    font-size: 1.125rem;
    max-width: 600px;
}

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

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

.policy-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.policy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

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

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

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

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

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

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

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

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

.bg-teal-light {
    background: var(--bg-gradient-end);
}

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

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

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

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .hero-image,
    .section-image {
        margin-top: 2rem;
    }
    
    .row-reverse-mobile {
        flex-direction: column-reverse;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
    
    .page-header {
        padding: 3rem 0 2rem;
    }
}

/* Spacing for fixed header */
main {
    padding-top: 56px;
}

/* Two-column grid specific */
.two-col-section .row {
    align-items: center;
}

.two-col-section .section-text {
    padding-right: 2rem;
}

.two-col-section .section-text.pl-lg {
    padding-left: 2rem;
    padding-right: 0;
}

@media (max-width: 991.98px) {
    .two-col-section .section-text,
    .two-col-section .section-text.pl-lg {
        padding-left: 0;
        padding-right: 0;
    }
}
