:root {
    --color-cream: #FFF8F0;
    --color-terracotta: #E07A5F;
    --color-sage: #8AB17D;
    --color-honey: #F2C94C;
    --color-dark: #2D2D2D;
    --color-light-gray: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #2D2D2D;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2D2D2D;
}

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

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

header {
    background-color: var(--color-cream);
    border-bottom: 1px solid #E8DDD0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    top: 0;
}

header .navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-terracotta) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .navbar-brand img {
    border-radius: 4px;
}

header .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

header .nav-link:hover {
    color: var(--color-terracotta) !important;
}

main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.15), rgba(138, 177, 125, 0.1));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.intro-section {
    padding: 110px 7% 110px 7%;
    background-color: #fff;
}

.categories-section {
    padding: 110px 7% 110px 7%;
}

.categories-section .card {
    border: 1px solid #E8DDD0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.categories-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(224, 122, 95, 0.12);
    border-color: var(--color-terracotta);
}

.category-card .card-title {
    color: var(--color-terracotta);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.category-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.btn-custom {
    background-color: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background-color: #D56A4F;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.25);
    text-decoration: none;
    color: white;
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--color-terracotta);
    border: 2px solid var(--color-terracotta);
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-link {
    background-color: transparent;
    color: var(--color-terracotta);
    border: none;
    padding: 0;
    font-weight: 500;
    text-decoration: underline;
}

.btn-link:hover {
    color: #D56A4F;
}

.patterns-section, .minerals-section, .myths-section {
    padding: 110px 7% 110px 7%;
}

.vitamin-c-section, .guidelines-section, .cta-section, .meals-section, .comparison-section {
    padding: 110px 7% 110px 7%;
}

.table {
    font-size: 0.95rem;
    border-collapse: collapse;
}

.table th {
    background-color: #F5F5F5;
    border-bottom: 2px solid #E8DDD0;
    color: #2D2D2D;
    font-weight: 600;
}

.table td {
    border-bottom: 1px solid #E8DDD0;
    padding: 12px 8px;
}

.table tr:hover {
    background-color: #FFF8F0;
}

.footer {
    background-color: #2D2D2D;
    color: #fff;
    margin-top: 60px;
}

.footer h4, .footer h5 {
    color: var(--color-honey);
    margin-bottom: 15px;
}

.footer a {
    color: var(--color-terracotta);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-cream);
    border-top: 2px solid var(--color-terracotta);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

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

.cookie-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cookie-accept {
    background-color: var(--color-terracotta);
    color: white;
    border: none;
}

#cookie-accept:hover {
    background-color: #D56A4F;
}

#cookie-reject {
    background-color: white;
    color: #333;
    border: 1px solid #E8DDD0;
}

#cookie-reject:hover {
    background-color: #F5F5F5;
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .intro-section, .categories-section, .patterns-section, .minerals-section,
    .myths-section, .vitamin-c-section, .guidelines-section, .cta-section,
    .meals-section, .comparison-section {
        padding: 60px 5% 60px 5%;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-content p {
        width: 100%;
    }

    .cookie-buttons {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .intro-section, .categories-section, .patterns-section, .minerals-section,
    .myths-section, .vitamin-c-section, .guidelines-section, .cta-section,
    .meals-section, .comparison-section {
        padding: 40px 5% 40px 5%;
    }

    .table {
        font-size: 0.85rem;
    }
}
