* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --background-color: #f1faee;
    --text-color: #2b2d42;
    --accent-color: #457b9d;
    --error-color: #d90429;
    --success-color: #2a9d8f;
    --font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    --spacing-unit: 1rem;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-unit);
    color: var(--secondary-color);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:visited {
    color: #a43a3a;
}

a:hover {
    color: var(--secondary-color);
}

header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 64px;
    display: flex;
    align-items: center;
}

nav {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

nav a,
nav a:visited {
    color: white !important;
    text-decoration: none;
}

nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    background: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    padding: 0;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 3rem;
}

article {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

img, video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

figure {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center;
}

figcaption {
    text-align: center;
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.team-image {
    max-width: 800px;
    width: 100%;
}

.team-member-image {
    max-width: 300px;
    width: 100%;
}

.partner-logo {
    max-width: 200px;
    width: 100%;
    margin: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

.recipe-image {
    max-width: 800px;
    width: 100%;
}

.chef-image {
    max-width: 400px;
    width: 100%;
}

.experiment-image {
    max-width: 600px;
    width: 100%;
}

.seasonal-image {
    max-width: 800px;
    width: 100%;
}

.contact-info, .contact-form, .map {
    max-width: 100%;
    margin-bottom: 4rem;
}

.contact-info h1,
.contact-form h2,
.map h2 {
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.contact-info:last-child,
.contact-form:last-child,
.map:last-child {
    margin-bottom: 0;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin: 0;
}

.contact-item {
    flex: 1 1 250px;
    max-width: 350px;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text-color);
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.recipe-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card-content {
    padding: 1.5rem;
}

.team-member {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.team-member figure {
    flex: 0 0 15%;
    max-width: 220px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.team-member-info {
    flex: 1 1 85%;
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-logos a {
    display: block;
    transition: transform 0.3s ease;
}

.partner-logos a:hover {
    transform: scale(1.05);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.accessibility-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.accessibility-controls button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessibility-controls button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        margin: 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    
    nav ul.open {
        display: flex;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    nav a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .team-member, .chef-profiles, .recipe-content {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .team-image,
    .recipe-image,
    .chef-image,
    .experiment-image,
    .seasonal-image {
        max-width: 100%;
    }
    
    .team-member-image {
        max-width: 250px;
    }
    
    .partner-logo {
        max-width: 150px;
    }

    .recipe-content > div {
        align-items: center;
        text-align: center;
    }
    .team-member-info {
        text-align: center;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .contact-details {
        gap: 2rem;
    }
    
    .contact-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (min-width: 769px) {
    nav ul {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .team-member-info {
        text-align: left;
    }
}

@media (max-width: 900px) {
    .team-member {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        text-align: center;
    }
    .team-member figure, .team-member-info {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .team-member-info {
        text-align: center;
    }
}

@media print {
    header,
    .accessibility-controls,
    footer {
        display: none;
    }

    body {
        background-color: white;
    }

    main {
        max-width: none;
        padding: 0;
    }

    article {
        box-shadow: none;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: var(--text-color);
    }

    img {
        max-width: 50%;
    }
}

body.high-contrast {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --background-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffff00;
    --error-color: #ff0000;
    --success-color: #00ff00;
}

body.high-contrast header {
    background-color: #000000;
    border-bottom: 2px solid #ffffff;
}

body.high-contrast nav a,
body.high-contrast nav a:visited,
body.high-contrast nav a:hover {
    color: #fff !important;
    border: 1px solid #fff !important;
}

body.high-contrast article {
    background-color: #000000;
    border: 1px solid #ffffff;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6 {
    color: #ffffff;
}

body.high-contrast p,
body.high-contrast li {
    color: #ffffff;
}

body.high-contrast .partner-logo {
    filter: invert(1) grayscale(1) brightness(1.2) !important;
    background: #000;
    border-radius: 8px;
}

body.high-contrast .partner-logo:hover {
    filter: brightness(0) invert(1) sepia(100%) saturate(10000%) hue-rotate(0deg);
}

body.high-contrast button {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

body.high-contrast button:hover {
    background-color: #000000;
    color: #ffffff;
}

body.high-contrast footer {
    background-color: #000000;
    border-top: 2px solid #ffffff;
}

body.high-contrast table {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff;
}
body.high-contrast thead {
    background: #222 !important;
    color: #fff !important;
}
body.high-contrast tbody tr:nth-child(even) {
    background: #222 !important;
}
body.high-contrast tbody tr:hover {
    background: #333 !important;
}
body.high-contrast caption {
    color: #fff !important;
}
body.high-contrast td, body.high-contrast th {
    border-color: #fff !important;
}

body.high-contrast .seasonal-bg {
    background-blend-mode: multiply;
    background-color: #222;
}
body.high-contrast .seasonal-bg::before {
    background: rgba(0,0,0,0.45);
}
body.high-contrast .seasonal-bg-content {
    background: rgba(0,0,0,0.85);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,255,255,0.08);
}

body.high-contrast nav a.active {
    background-color: #fff;
    color: #000 !important;
}

body.high-contrast a,
body.high-contrast a:visited,
body.high-contrast a:hover {
    color: #ffff00 !important;
    border-bottom: none !important;
}

body.high-contrast figcaption {
    color: #fff !important;
}

.seasonal-bg {
    background-image: url('images/seasonal.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.seasonal-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 1;
}

.seasonal-bg-content {
    position: relative;
    z-index: 2;
    padding: 2rem 3rem;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 600px;
    width: 100%;
    text-align: left;
}

@media (max-width: 600px) {
    .seasonal-bg-content {
        padding: 1rem;
    }
    .seasonal-bg {
        min-height: 180px;
    }
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin: 1.5rem 0;
    font-size: 1rem;
}

thead {
    background: var(--secondary-color);
    color: #fff;
}

thead th {
    padding: 1rem 0.75rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.03em;
}

tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

tbody tr:hover {
    background: #e9ecef;
    transition: background 0.2s;
}

caption {
    caption-side: top;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    padding: 0.5rem 0;
}

@media (max-width: 600px) {
    .recipe-table table, .recipe-table thead, .recipe-table tbody, .recipe-table th, .recipe-table td, .recipe-table tr {
        display: block;
        width: 100%;
    }
    .recipe-table thead {
        display: none;
    }
    .recipe-table tr {
        margin-bottom: 1.2rem;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        background: #fff;
        padding: 0.5rem 0.5rem 0.7rem 0.5rem;
    }
    .recipe-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        min-height: 2.2em;
        text-align: left;
    }
    .recipe-table td:before {
        position: absolute;
        left: 0.75rem;
        top: 0.75rem;
        width: 45%;
        white-space: pre-wrap;
        font-weight: bold;
        color: var(--secondary-color);
        content: attr(data-label);
    }
}


.team-members, .partner-logos, .chef-profiles, .experiment-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.team-member, .partner-logo, .chef-image, .experiment-image {
    flex: 1 1 30%;
    min-width: 250px;
    max-width: 400px;
}

.recipe-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.recipe-content > div {
    flex: 1 1 250px;
    min-width: 220px;
    max-width: 350px;
}

.recipe-content h4 {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.recipe-content ul,
.recipe-content ol {
    margin-top: 0;
    margin-bottom: 0.7rem;
    padding-left: 1.2rem;
}

.recipe-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.ingredients, .instructions {
    flex: 1 1 300px;
    min-width: 220px;
}

@media (max-width: 1024px) {
    .team-members, .partner-logos, .chef-profiles, .experiment-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem;
    }
    .team-member, .partner-logo, .chef-image, .experiment-image {
        flex: 1 1 45%;
        min-width: 180px;
        max-width: 350px;
    }
    .recipe-content {
        flex-direction: row;
        gap: 1.2rem;
    }
    .ingredients, .instructions {
        flex: 1 1 200px;
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    .team-members, .partner-logos, .chef-profiles, .experiment-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .team-member, .partner-logo, .chef-image, .experiment-image {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
    .recipe-content {
        flex-direction: column;
        gap: 1rem;
    }
    .ingredients, .instructions {
        flex: 1 1 100%;
        min-width: 0;
    }
    .seasonal-bg-content {
        padding: 1rem;
    }
}

.chef-profiles {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.chef-profiles figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

@media (min-width: 1024px) {
    .contact-info, .contact-form, .map {
        margin: 0 auto;
    }
    
    .contact-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
    }
}

body.high-contrast .contact-item {
    background-color: #000000;
    border: 2px solid #ffffff;
    color: #ffffff;
}

body.high-contrast .contact-item h3 {
    color: #ffffff;
}

body.high-contrast .contact-item address {
    color: #ffffff;
}

body.high-contrast .contact-item a {
    color: #ffff00;
    border-bottom: 1px solid #ffff00;
}

body.high-contrast .contact-item a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

body.high-contrast input[type="text"],
body.high-contrast input[type="email"],
body.high-contrast textarea {
    background-color: #000000;
    border: 2px solid #ffffff;
    color: #ffffff;
}

body.high-contrast input[type="text"]:focus,
body.high-contrast input[type="email"]:focus,
body.high-contrast textarea:focus {
    border-color: #ffff00;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

body.high-contrast label {
    color: #ffffff;
}

body.high-contrast legend {
    color: #ffffff;
}

body.high-contrast .map-container {
    border: 2px solid #ffffff;
}

.latest-posts article + article {
    margin-top: 2rem;
}

.latest-posts article h3 {
    padding-left: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

ul.no-bullets {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 1rem;
}

.mission-values {
    margin-top: 2rem;
}

.mission-values h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.mission-values ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.mission-values li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.mission-values li strong {
    margin-right: 0.5em;
    display: inline-block;
    min-width: 7em;
}


article h1,
article h2,
article h3,
article h4,
article h5,
article h6,
.contact-item h3,
.recipe-card h3,
.latest-posts article h3 {
    padding-left: 0 !important;
}

main > section > h1,
main > section > h2 {
    padding-left: 0 !important;
}

.latest-posts > h2,
.latest-posts > h3,
.modern-goulash > h2,
.modern-goulash > h3,
.chefs > h2,
.chefs > h3,
.experiments > h2,
.experiments > h3,
.seasonal > h2,
.seasonal > h3,
.partners > h2,
.partners > h3,
.video-section > h2,
.video-section > h3,
.intro > h1,
.intro > h2,
.welcome > h1,
.welcome > h2 {
    padding-left: 2rem;
}

.indented-title {
    padding-left: 1rem !important;
}
