/* FoodSphere - Main Stylesheet */
/* Educational Website - January 2026 */

:root {
    --primary-teal: #5BA8A0;
    --primary-teal-dark: #4A9990;
    --primary-teal-light: #7FBFB8;
    --bg-light: #F8FAFA;
    --bg-white: #FFFFFF;
    --bg-gradient-start: #F0F7F6;
    --bg-gradient-end: #FFFFFF;
    --text-dark: #2C3E3C;
    --text-medium: #4A5D5B;
    --text-light: #6B7D7B;
    --border-color: #D8E4E3;
    --shadow-soft: 0 2px 12px rgba(91, 168, 160, 0.08);
    --shadow-medium: 0 4px 20px rgba(91, 168, 160, 0.12);
    --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-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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-color: var(--bg-white);
    box-shadow: var(--shadow-soft);
    padding: 1rem 0;
    transition: all 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;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

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

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

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

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

.section-title {
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Content Blocks */
.content-block {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.content-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

/* 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;
}

.two-col-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    width: 100%;
    height: auto;
}

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

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

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

.info-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Image Cards */
.image-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-card-caption {
    padding: 1.5rem;
    background-color: var(--bg-white);
}

.image-card-caption h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.image-card-caption p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--text-light);
}

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

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

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

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

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

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

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

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

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

.faq-question::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--primary-teal);
    font-weight: 400;
    transition: transform 0.2s 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-bottom: 0;
}

/* Contact Section */
.contact-info {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
}

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

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

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: 600;
    min-width: 80px;
    color: var(--text-dark);
}

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

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

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    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 rgba(91, 168, 160, 0.15);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--primary-teal);
    padding: 0;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary-teal-dark);
}

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

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

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

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

.cta-section .btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-teal-dark);
}

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

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

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

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--bg-white);
}

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

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

.footer-links a {
    font-size: 0.9375rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal-light) !important;
    margin-bottom: 1rem;
    display: inline-block;
}

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

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-disclaimer {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
}

.footer-disclaimer p {
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

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

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

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

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

/* Legal Pages */
.legal-page {
    padding: 3rem 0 5rem;
}

.legal-page h1 {
    margin-bottom: 2rem;
}

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

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

.legal-page p,
.legal-page li {
    color: var(--text-medium);
}

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

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

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 4rem 0;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    width: 100%;
    height: auto;
}

/* Contact Page */
.contact-page-hero {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 4rem 0;
}

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

.bg-teal {
    background-color: var(--primary-teal);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .two-col-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .two-col-section.reverse {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 1.875rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .limitations-block {
        padding: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner .btn {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.625rem;
    }
    
    h1 {
        font-size: 1.625rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
}
