:root {
    --paper: #fbfaf7;
    --surface: #ffffff;
    --ink: #202825;
    --muted: #66716c;
    --coffee: #7c4a32;
    --coffee-dark: #4c3026;
    --sage: #4f6f64;
    --mint: #dbe8e1;
    --clay: #b86955;
    --gold: #d2a348;
    --line: #e4e1d8;
    --shadow: 0 18px 45px rgba(32, 40, 37, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 250, 247, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--sage);
    color: #ffffff;
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--mint);
    color: var(--ink);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: var(--ink);
    transition: transform 200ms ease, opacity 200ms ease;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 60;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.lang-dropdown {
    position: relative;
    margin-left: 10px;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.lang-trigger:hover,
.lang-dropdown:hover .lang-trigger,
.lang-dropdown:focus-within .lang-trigger {
    border-color: var(--sage);
    background: var(--mint);
}

.lang-caret {
    transition: transform 200ms ease;
}

.lang-dropdown:hover .lang-caret,
.lang-dropdown:focus-within .lang-caret,
.lang-trigger[aria-expanded="true"] .lang-caret {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

/* Hover yoki klaviatura fokusi -> menyu ochiladi */
.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu,
.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover "ko'prigi": trigger va menyu orasidagi bo'sh joyni qoplaydi */
.lang-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.lang-option:hover,
.lang-option:focus-visible {
    background: var(--mint);
}

.lang-option.active {
    color: var(--sage);
    font-weight: 800;
}

.lang-check {
    margin-left: auto;
    color: var(--sage);
    font-weight: 900;
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.hero,
.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 22, 0.5);
}

.hero-home {
    background-image: url("../img/hero-home.jpg");
}

.menu-hero {
    background-image: url("../img/hero-menu.jpg");
}

.about-hero {
    background-image: url("../img/hero-about.jpg");
}

.gallery-hero {
    background-image: url("../img/hero-gallery.jpg");
}

.booking-hero {
    background-image: url("../img/hero-booking.jpg");
}

.contact-hero {
    background-image: url("../img/hero-contact.jpg");
}

.hero-inner,
.page-hero .container {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 720px;
    padding: 64px 0;
}

.hero h1,
.page-hero h1 {
    max-width: 820px;
    margin: 8px 0 18px;
    font-size: 4rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.page-hero {
    min-height: 390px;
}

.page-hero p,
.hero-text {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--clay);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--coffee);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.text-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--sage);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--coffee);
}

.text-link.small {
    margin-top: 14px;
    font-size: 0.88rem;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: #eef3ee;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 28px;
}

.section-heading h2,
.split-copy h2,
.contact-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2.35rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.split-copy p {
    color: var(--muted);
}

.split-layout,
.form-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.reverse .image-panel {
    order: -1;
}

.image-panel {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-panel img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

.menu-list {
    display: grid;
    gap: 44px;
}

.menu-category[hidden] {
    display: none;
}

.category-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.category-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.category-title span {
    color: var(--muted);
    font-weight: 700;
}

.menu-card,
.value-card,
.contact-panel,
.panel-form,
.gallery-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.value-card {
    padding: 22px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(32, 40, 37, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(32, 40, 37, 0.14);
}

.menu-card-media {
    overflow: hidden;
    background: var(--mint);
}

.menu-card-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 320ms ease;
}

.menu-card:hover .menu-card-media img {
    transform: scale(1.05);
}

.menu-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.menu-card-body p {
    flex: 1;
}

.menu-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.menu-card h3,
.value-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.menu-card span {
    color: var(--coffee);
    font-weight: 900;
    white-space: nowrap;
}

.menu-card p,
.value-card p {
    margin: 0;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
    border-color: var(--sage);
    background: var(--mint);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stats-row div {
    min-height: 130px;
    display: grid;
    align-content: center;
    border-left: 5px solid var(--sage);
    border-radius: 8px;
    background: var(--surface);
    padding: 20px;
    box-shadow: 0 10px 28px rgba(32, 40, 37, 0.08);
}

.stats-row strong {
    color: var(--coffee);
    font-size: 2.1rem;
    line-height: 1;
}

.stats-row span {
    color: var(--muted);
    font-weight: 700;
}

.value-grid,
.gallery-preview,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(32, 40, 37, 0.08);
}

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

.gallery-card span {
    display: block;
    padding: 14px 16px;
    font-weight: 800;
}

.panel-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.panel-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

.panel-form input,
.panel-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fcfcfb;
    color: var(--ink);
    padding: 12px 13px;
}

.panel-form textarea {
    resize: vertical;
}

.panel-form input:focus,
.panel-form textarea:focus {
    outline: 3px solid rgba(79, 111, 100, 0.2);
    border-color: var(--sage);
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.contact-list p {
    margin: 0;
    color: var(--muted);
}

.contact-panel {
    padding: 24px;
}

.contact-panel img {
    width: 100%;
    height: 260px;
    margin-top: 22px;
    border-radius: 8px;
    object-fit: cover;
}

.site-footer {
    background: #1f2522;
    color: rgba(255, 255, 255, 0.78);
    padding: 46px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer p {
    margin: 6px 0;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: 72px 0 auto 0;
        display: none;
        grid-template-columns: 1fr;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        padding: 12px 20px 18px;
    }

    .site-nav.open {
        display: grid;
    }

    .site-nav a {
        min-height: 46px;
        padding: 0 12px;
    }

    .lang-dropdown {
        margin: 8px 0 0;
    }

    .lang-trigger {
        width: max-content;
    }

    .lang-menu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
    }

    .lang-option {
        min-height: 42px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 3rem;
    }

    .split-layout,
    .form-layout,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .reverse .image-panel {
        order: 0;
    }

    .menu-grid,
    .menu-grid.compact,
    .value-grid,
    .gallery-preview,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .hero,
    .page-hero {
        min-height: 520px;
    }

    .page-hero {
        min-height: 360px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.35rem;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading h2,
    .split-copy h2,
    .contact-panel h2 {
        font-size: 1.85rem;
    }

    .hero-actions,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .menu-grid,
    .menu-grid.compact,
    .value-grid,
    .gallery-preview,
    .gallery-grid,
    .stats-row,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .category-title {
        align-items: start;
        flex-direction: column;
    }

    .image-panel img,
    .contact-panel img {
        height: 300px;
    }
}
