/* EatAware - Main Stylesheet */
/* Educational website about food awareness and daily weight patterns */

:root {
    --primary-green: #7CB99A;
    --primary-green-light: #A8D5BA;
    --primary-green-dark: #5A9A7A;
    --background-light: #F8FAF9;
    --background-gradient-start: #FFFFFF;
    --background-gradient-end: #F0F7F4;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #B2BEC3;
    --white: #FFFFFF;
    --border-color: #DFE6E9;
    --shadow-light: rgba(124, 185, 154, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
* {
    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-primary);
    background-color: var(--background-light);
}

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

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

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

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

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

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

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

/* Header */
.navbar-custom {
    background: var(--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-dark) !important;
}

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

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

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

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

/* Main Content Spacing */
main {
    padding-top: 80px;
}

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

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

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

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px var(--shadow-medium);
}

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

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

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

.section-block {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    height: 100%;
}

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

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.section-image:hover img {
    transform: scale(1.02);
}

/* Two Column Layout */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column-grid.reverse {
    direction: rtl;
}

.two-column-grid.reverse > * {
    direction: ltr;
}

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

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

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

/* Buttons */
.btn-primary-custom {
    background: var(--primary-green);
    border: none;
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green-dark);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Limitations Block */
.limitations-block {
    background: linear-gradient(135deg, var(--background-gradient-end) 0%, #E8F5EE 100%);
    border-radius: 12px;
    padding: 3rem;
    border-left: 4px solid var(--primary-green);
}

.limitations-block h2 {
    color: var(--primary-green-dark);
}

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

.limitations-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.limitations-list li::before {
    content: "•";
    color: var(--primary-green);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

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

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

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

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

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

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

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--background-gradient-end) 0%, #E8F5EE 100%);
    padding: 5rem 0;
}

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

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

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

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

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

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

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

.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-light);
}

/* CTA Section */
.cta-section {
    background: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    border-radius: 16px;
    padding: 3rem;
    color: var(--white);
}

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

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

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

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

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

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

.footer-copyright {
    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(--white);
    box-shadow: 0 -4px 20px var(--shadow-medium);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.875rem;
}

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

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

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

/* Legal Pages */
.legal-content {
    background: var(--white);
    padding: 4rem 0;
}

.legal-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

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

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

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

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

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

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .two-column-grid.reverse {
        direction: ltr;
    }
    
    .content-section {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    main {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-block {
        padding: 1.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .cta-box {
        padding: 2rem;
    }
    
    .limitations-block {
        padding: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

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

.bg-soft-green {
    background-color: var(--background-gradient-end);
}

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

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

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

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

/* Social photos grid for Social and Family section */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.photo-grid .section-image {
    height: 100%;
}

.photo-grid .section-image img {
    height: 100%;
    object-fit: cover;
}
