/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: 100%; }
:focus { outline: 2px solid #EF8A10; outline-offset: 2px; }

/* VARIABLES & BASE */
:root {
    --color-primary: #21512E;
    --color-secondary: #EF8A10;
    --color-accent: #FFF7EF;
    --color-bg: #FFF7EF;
    --color-bg-dark: #f2efea;
    --color-text: #222;
    --color-link: #EF8A10;
    --color-white: #fff;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-md: 0 2px 12px rgba(33,81,46,0.07);
    --shadow-lg: 0 4px 28px 0 rgba(33,81,46,0.13);
    --shadow-card: 0 2px 14px rgba(239,138,16,0.11);
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body: 'Roboto', Arial, sans-serif;
    --transition: 0.2s cubic-bezier(.4,0,.2,1);
}
body {
    background: var(--color-bg);
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 16px;
    min-height: 100vh;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.16; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

p, li, dd { font-size: 1rem; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }
blockquote {
    background: var(--color-accent);
    border-left: 5px solid var(--color-secondary);
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    border-radius: var(--radius-md);
}
dt { font-weight: bold; margin-top: 14px; }
dd { margin-left: 10px; margin-bottom: 12px; }

/* BUTTONS */
.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white) !important;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    padding: 14px 36px;
    margin-top: 12px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
    background: #e67700;
    box-shadow: 0 6px 24px rgba(239,138,16,0.15);
    transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
    background: var(--color-primary);
    color: var(--color-white) !important;
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    padding: 12px 32px;
    margin-top: 12px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #18401f;
    box-shadow: 0 4px 16px rgba(33,81,46,0.16);
}

/* HEADER & NAVIGATION */
header {
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(68, 53, 31, 0.05);
    position: relative;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}
header nav {
    display: flex;
    gap: 16px;
    align-items: center;
}
header nav a {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
    background: var(--color-accent);
    color: var(--color-secondary);
}
header img {
    height: 44px;
    border-radius: var(--radius-md);
}

/* HIDE mobile-menu on desktop, burger on desktop */
.mobile-menu-toggle {
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 2rem;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin-left: 16px;
    transition: background var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 9001;
    display: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #e67700;
}
/* Styles for mobile menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: 0 0 40px -4px var(--color-primary);
    transform: translateX(-110%);
    transition: transform 0.35s cubic-bezier(.82,0,.17,1);
    z-index: 10010;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 32px 30px 20px;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    cursor: pointer;
    z-index: 10020;
    transition: color var(--transition);
    border-radius: var(--radius-lg);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--color-secondary);
    background: var(--color-accent);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}
.mobile-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    transition: background var(--transition), color var(--transition);
}
.mobile-nav a:focus, .mobile-nav a:hover {
    background: var(--color-accent);
    color: var(--color-secondary);
}
/* Hide menu and button on desktop */
@media (min-width: 1025px) {
    .mobile-menu, .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 1024px) {
    header nav, header .btn-primary {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* MAIN STRUCTURE/SECTIONS */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: transparent;
}
.content-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* FLEX CONTAINERS & GRIDS */
.features-grid, .recipes-grid, .diets-grid, .blog-grid, .events-list, .past-events {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 8px;
}
.features-grid > div, .recipes-grid > div, .diets-grid > div, .blog-grid > div, .events-list > div, .past-events > div {
    background: var(--color-accent);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
    flex: 1 1 280px;
    min-width: 230px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.features-grid > div:hover,
.recipes-grid > div:hover,
.diets-grid > div:hover,
.blog-grid > div:hover,
.events-list > div:hover,
.past-events > div:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px) scale(1.02);
}

.categories-sidebar {
    background: var(--color-bg-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 20px 18px;
    margin-top: 20px;
    min-width: 200px;
}
.categories-sidebar h3 {
    font-size: 1.15rem; margin-bottom: 9px;
}
.categories-sidebar ul {
    display: flex; flex-direction: column;
    gap: 9px;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    flex: 1 1 280px;
    padding: 20px 28px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    border-left: 6px solid var(--color-secondary);
    position: relative;
}
.testimonial-card p {
    font-size: 1.08rem;
    color: #2c2c2c;
}
.testimonial-meta {
    font-size: 0.96rem;
    color: var(--color-primary);
    font-weight: 600;
}

.contact-info ul {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 6px;
}
.contact-info li { display: flex; align-items: center; gap: 9px; }

.next-steps {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

/* LAYOUT PATTERNS */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 32px 26px;
    transition: box-shadow var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* GENERAL STYLES */
ul:not([class]), ol:not([class]) {
    margin: 16px 0 16px 22px;
    padding: 0;
    list-style: disc inside;
}
dt, dd {font-size: 1rem;}
dl {margin: 10px 0 16px 0;}
li > img, li > a > img {
    margin-right: 9px;
    vertical-align: middle;
}

/* FOOTER */
footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 36px 0 22px 0;
    margin-top: 60px;
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
}
footer nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
footer nav a {
    color: var(--color-accent);
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
    background: var(--color-accent);
    color: var(--color-secondary);
}
footer img {
    height: 42px;
    margin-bottom: 14px;
}
.footer-contact {
    font-size: 0.99rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-contact img {
    vertical-align: middle;
    margin-right: 7px;
    height: 22px;
    display: inline;
}
.footer-contact a {
    color: var(--color-accent);
    text-decoration: underline dotted;
}

/* FORMS & INPUTS (if any) */
input, textarea, select {
    background: var(--color-bg-dark);
    border: 1.2px solid #E6D3B8;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    box-sizing: border-box;
    font-size: 1rem;
    margin-bottom: 14px;
    transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
    border: 1.5px solid var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(239,138,16,0.13);
}

/* COOKIES BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0;
    width: 100vw;
    background: var(--color-bg-dark);
    color: var(--color-primary);
    border-top: 2px solid var(--color-secondary);
    box-shadow: 0 -4px 16px rgba(33,81,46,.08);
    padding: 22px 24px 28px 24px;
    z-index: 10030;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 1;
    transition: opacity 0.33s var(--transition), transform 0.33s var(--transition);
    font-size: 1rem;
}
.cookie-banner.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
}
.cookie-banner-buttons {
    display: flex; flex-wrap: wrap; gap: 16px;
}
.cookie-btn {
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    margin-top: 0;
}
.cookie-btn:hover, .cookie-btn:focus {
    background: #e67700;
}
.cookie-btn-outline {
    background: var(--color-accent);
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    transition: border var(--transition), background var(--transition), color var(--transition);
}
.cookie-btn-outline:hover, .cookie-btn-outline:focus {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33,81,46,0.28);
    z-index: 10040;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.23s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cookie-modal-overlay.hide {
    opacity: 0;
    visibility: hidden;
}
.cookie-modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(33,81,46,0.13);
    width: 96vw;
    max-width: 430px;
    padding: 32px 26px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 23px;
    animation: showModalPop 0.36s cubic-bezier(.71,1.5,.6,1) both;
}
@keyframes showModalPop {
    0% {opacity:0; transform: translateY(28px) scale(0.95);}
    100% {opacity:1; transform:translateY(0) scale(1);}
}
.cookie-modal h3 {
    font-size: 1.25rem;
    margin-bottom: 7px;
    color: var(--color-secondary);
    font-family: var(--font-display);
}
.cookie-modal-close {
    position: absolute;
    top: 15px; right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    border-radius: var(--radius-lg);
    z-index: 10041;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    background: var(--color-accent);
    color: var(--color-secondary);
}
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 17px;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-primary);
}
.cookie-toggle {
    accent-color: var(--color-secondary);
}
.cookie-category.disabled label {
    color: #999 !important;
    opacity: .6;
}
.cookie-category .cookie-toggle[disabled] {
    filter: grayscale(.9) opacity(.55);
    pointer-events: none;
}

/* ANIMATIONS & HOVER EFFECTS */
a, .btn-primary, .btn-secondary, .cookie-btn {
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
a:hover, a:focus { color: var(--color-link); }

/* ICON OVERRIDES */
.features-grid img,
.features-grid > div > img,
.footer-contact img,
.contact-info img {
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 6px rgba(33,81,46,0.04);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .container { max-width: 95vw; }
    header .container {
        min-height: 60px; flex-direction: row;
    }
    .content-wrapper {
        padding: 26px 8px;
        gap: 12px;
    }
    .features-grid, .recipes-grid, .diets-grid, .blog-grid, .events-list, .past-events {
        gap: 18px;
    }
    .features-grid > div, .recipes-grid > div, .diets-grid > div, .blog-grid > div, .events-list > div, .past-events > div {
        min-width: 200px;
    }
    .footer-contact { font-size: 0.99rem; }
}
@media (max-width: 768px) {
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.27rem; }
    .content-wrapper { padding: 16px 3vw; }
    .features-grid, .recipes-grid, .diets-grid, .blog-grid, .events-list, .past-events {
        flex-direction: column;
        gap: 16px;
    }
    .features-grid > div, .recipes-grid > div, .diets-grid > div, .blog-grid > div, .events-list > div, .past-events > div {
        min-width: unset;
        width: 100%;
        padding: 20px 12px;
        margin-bottom: 20px;
    }
    .card, .testimonial-card {padding: 20px 14px;}
    .section {padding: 28px 7px;}
    .testimonials-slider {flex-direction: column;gap: 15px;}
    .categories-sidebar {margin-top: 22px;}
    .text-image-section { flex-direction: column; gap: 18px; }
    .footer-contact {margin-top: 24px;}
    footer .container {flex-direction: column;gap: 26px;}
}
@media (max-width: 480px) {
    h1 { font-size: 1.15rem; }
    .content-wrapper { padding: 7px 2vw; }
    .footer-contact, .footer-contact a, .footer-contact img {font-size:0.97rem;}
    .cookie-modal {padding:18px 6px;}
}

/* MISCELLANEOUS */
::-webkit-scrollbar {width: 9px;background: #ece3d5;}
::-webkit-scrollbar-thumb {background: #e5ceae; border-radius: 10px;}
::-webkit-scrollbar-thumb:hover {background: #cca673;}

/* VISUAL HIERARCHY */
.section:nth-child(even) .content-wrapper,
.features-grid > div:nth-child(even) {
    background: var(--color-bg-dark);
}

/* Accessibility contrast improvements for testimonials */
.testimonial-card {
    background: var(--color-bg-dark);
    color: #14260f;
    border-left: 6px solid var(--color-secondary);
}
.testimonial-meta {color: var(--color-primary);}

/* Ensure no overlap */
main > section, .section, .content-wrapper, .card, .features-grid > div, .recipes-grid > div, .testimonial-card {
    margin-bottom: 20px;
}
@media (max-width: 480px) {
    .card, .features-grid > div, .recipes-grid > div, .diets-grid > div, .testimonial-card { padding: 11px 6px; }
}
