* {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    background-image: linear-gradient(rgba(12, 12, 12, 0.35), rgba(12, 12, 12, 0.65)), url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8Zm9vZHxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=1400&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

main {
    flex: 1;
}

.page-shell {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero,
.about-hero,
.recipes-hero,
.gallery-hero {
    padding: 6rem 1rem 0;
}

.hero h1,
.about-hero h1,
.recipes-hero h1,
.gallery-hero h1 {
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    background-image: url("w.jpg");
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 6.25rem);
    font-style: italic;
    text-shadow: 10px 10px 10px rgba(0, 0, 0, 0.342);
}

.lead {
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    max-width: 700px;
    color: white;
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: center;
    font-style: italic;
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(20, 20, 20, 0.9);
    color: white;
    backdrop-filter: blur(8px);
}

.logo {
    font-style: italic;
    font-size: 3rem;
    font-weight: 700;
    text-shadow:  8px 8px 5px rgba(255, 0, 0, 0.267);
    letter-spacing: 0.06em;
    background-image: url("w.jpg");
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: #ffd166;
}

.eyebrow {
    margin: 0 0 1rem;
    text-align: center;
    color: #ffd166;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 3rem 1rem 4rem;
}

.recipes-page,
.country-page,
.gallery-page {
    background-image: linear-gradient(rgba(12, 12, 12, 0.42), rgba(12, 12, 12, 0.7)), url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1400&q=80");
}

.recipes-hero .lead,
.gallery-hero .lead {
    max-width: 780px;
}

.recipe-summary,
.world-columns {
    display: grid;
    gap: 1.5rem;
    padding: 0 1rem;
}

.recipe-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recipe-summary {
    padding-top: 2.5rem;
}

.summary-card,
.world-column {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.8);
    color: white;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.summary-card {
    padding: 1.5rem;
}

.summary-number {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: #ffd166;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
}

.summary-card p,
.world-column-header p,
.world-item p {
    margin: 0;
    line-height: 1.7;
}

.world-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.world-column {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.8);
    color: white;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.world-column-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.world-region {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #ffd166;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.world-column h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
}

.world-list {
    display: grid;
    gap: 1rem;
}

.world-item {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.world-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.world-item h3 {
    margin: 0;
    font-size: 1.05rem;
}

.origin-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #ffd166;
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.world-item p {
    margin-top: 0.65rem;
}

.country-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem 4rem;
}

.country-group,
.country-panel,
.meta-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.8);
    color: white;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.country-group,
.country-panel {
    padding: 1.5rem;
}

.country-group-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.country-group h2,
.country-panel h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
}

.country-group p,
.country-card p,
.country-panel p {
    margin: 0;
    line-height: 1.7;
}

.country-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.country-card {
    display: block;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.is-hidden {
    display: none !important;
}

.country-card:hover,
.country-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.45);
    background: rgba(255, 255, 255, 0.09);
}

.country-region-tag,
.country-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #ffd166;
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
}

.country-card h3 {
    margin: 0.8rem 0 0.45rem;
    font-size: 1.05rem;
}

.country-hero {
    padding: 6rem 1rem 0;
}

.country-hero h1 {
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    background-image: url("w.jpg");
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 6.25rem);
    font-style: italic;
    text-shadow: 10px 10px 10px rgba(0, 0, 0, 0.342);
}

.country-meta,
.country-layout {
    display: grid;
    gap: 1.5rem;
    padding: 0 1rem;
}

.country-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 2.5rem;
}

.meta-card {
    padding: 1.25rem;
}

.meta-card span {
    display: block;
    color: #ffd166;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-card strong {
    display: block;
    margin-top: 0.65rem;
    font-size: 1.5rem;
}

.country-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 2rem;
}

.country-recipes {
    display: grid;
    gap: 1.5rem;
    padding: 2rem 1rem 0;
}

.recipe-guide {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.8);
    color: white;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.recipe-guide-header {
    margin-bottom: 1rem;
}

.recipe-guide-header h2 {
    margin: 0.8rem 0 0.45rem;
    font-size: 1.55rem;
}

.recipe-guide-header p {
    margin: 0;
    line-height: 1.7;
}

.recipe-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.country-list,
.country-steps {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.9;
}

.country-back-wrap {
    padding: 2rem 1rem 4rem;
    text-align: center;
}

.country-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: #ffd166;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
}

.search-empty {
    margin: -1.5rem auto 4rem;
    padding: 0 1rem;
    text-align: center;
    color: #ffd166;
    font-size: 1rem;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem 4rem;
}

.gallery-section {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.8);
    color: white;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.gallery-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.gallery-section-header h2 {
    margin: 0.65rem 0 0.45rem;
    font-size: 1.55rem;
}

.gallery-section-header p {
    margin: 0;
    line-height: 1.7;
}

.gallery-country-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: #ffd166;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.gallery-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.gallery-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.8);
    color: white;
    text-decoration: none;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 209, 102, 0.45);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.32);
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.gallery-card h3 {
    margin: 0.8rem 0 0.45rem;
    font-size: 1.2rem;
}

.gallery-region {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #ffd166;
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
}

.gallery-card p {
    margin: 0;
    line-height: 1.7;
}

.gallery-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd166;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.gallery-credit {
    margin: -1.5rem auto 4rem;
    padding: 0 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.info-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.78);
    color: white;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.info-card h2 {
    margin: 0 0 0.9rem;
    color: #ffd166;
    font-size: 1.2rem;
}

.info-card p {
    margin: 0;
    line-height: 1.7;
}

.about-list {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.9;
}

.search input {
    width: min(220px, 100%);
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    outline: none;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bar {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1100px) {
    .world-columns,
    .country-directory,
    .gallery-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .hamburger {
        display: flex;
        z-index: 20;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 18px;
        background: rgba(28, 28, 28, 0.96);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1.15rem;
    }

    .search input {
        width: 100%;
    }

    .hero,
    .about-hero,
    .recipes-hero,
    .country-hero,
    .gallery-hero {
        padding-top: 4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .recipe-summary,
    .world-columns,
    .country-directory,
    .country-meta,
    .country-layout,
    .recipe-guide-grid,
    .gallery-grid,
    .gallery-section-grid {
        grid-template-columns: 1fr;
    }

    .country-card-grid {
        grid-template-columns: 1fr;
    }
}

footer {
    margin: 4rem auto 2rem;
    padding: 0 1rem;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}
