/* =========================================================
   CAFÉ MAHUER — HOME (CSS completo)
   - Paleta café/negro
   - Home split layout (video hero + cards)
   - Overlay menú 1:1 (100vh, full height), texto un poco más pequeño
   ========================================================= */

:root {
    --bg: #050505;
    --panel: rgba(0, 0, 0, .28);
    --panel2: rgba(0, 0, 0, .18);
    --border: rgba(255, 255, 255, .10);

    --text: rgba(245, 237, 226, .92);
    --muted: rgba(245, 237, 226, .70);

    --cream: #F2E6D9;
    --cafe: #6B4630;
    /* overlay */
    --cafe2: #7A5137;
    --espresso: #120C09;

    --shadow: 0 25px 80px rgba(0, 0, 0, .55);

    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 14px;

    --serif: "Playfair Display", Georgia, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;

    --max: 1220px;

    /* Menu sizing tweaks (smaller) */
    --menu-font: clamp(26px, 3.4vw, 52px);
    --menu-gap: 10px;
}

/* ===== Base ===== */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    background:
        radial-gradient(1100px 700px at 18% 15%, rgba(122, 81, 55, .20), transparent 60%),
        radial-gradient(900px 600px at 70% 30%, rgba(242, 230, 217, .06), transparent 55%),
        linear-gradient(180deg, #050505 0%, #070605 55%, #050505 100%);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    width: 98%;
    margin: 0 auto;
    height: fit-content;
}

.grain {
    position: fixed;
    inset: -120px;
    opacity: .06;
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: contrast(120%);
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    padding: 0px 0 48px;
}

/* Prevent scroll when menu open */
html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

/* ===== Top bar (cream pill) ===== */
.topbar {
    position: absolute;
    top: 5%;
    left: 2%;
    z-index: 30;
    display: flex;
    justify-content: left;
    pointer-events: none;
    width: fit-content;
}

.topbar .pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(242, 230, 217, .92);
    color: var(--cafe2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
    border: 1px solid rgba(0, 0, 0, .10);
}

.brand {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.brand .burger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .45);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.brand .burger span {
    width: 18px;
    height: 1.5px;
    background: #291a12;
    display: block;
    position: relative;
}

.brand .burger span:before,
.brand .burger span:after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #291a12;
}

.brand .burger span:before {
    top: -6px;
}

.brand .burger span:after {
    top: 6px;
}

.brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .logo img {
    width: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12));
}

.brand .logo strong {
    font-family: var(--serif);
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 14px;
}

/* right actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions a {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .12);
    font-weight: 600;
    letter-spacing: .02em;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .35);
    transition: transform .15s ease, background .15s ease;
}

.nav-actions a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .55);
}

.nav-actions a.primary {
    background: #996740;
    border-color: rgba(0, 0, 0, .10);
    color: var(--cream);
}

.nav-actions a.primary:hover {
    background: #996740;
}

@media (max-width: 720px) {
    .nav-actions a {
        display: none;
    }

    .nav-actions a.primary {
        display: inline-flex;
        color: var(--cream);
    }

    .brand .logo img {
        width: 80px;
    }

}

/* ===== Home split ===== */
.home {
    margin-top: 18px;
}

.split {
    display: grid;
    grid-template-columns: 1.55fr .45fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 980px) {
    .split {
        grid-template-columns: 1fr;
    }
}

/* ===== Card base ===== */
.card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .35);
    box-shadow: var(--shadow);
    position: relative;
}

/* ===== Hero video card ===== */
.hero {
    min-height: 560px;
    width: 100%;
    height: 95vh;
}

@media (max-width: 980px) {
    .hero {
        min-height: 420px;
    }

}

@media (max-width: 520px) {
    .hero {
        min-height: 360px;
    }
}

.hero video,
.hero .media {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    filter: saturate(105%) contrast(105%);
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .55) 100%),
        radial-gradient(800px 500px at 20% 70%, rgba(122, 81, 55, .22), transparent 60%);
    z-index: 1;
}

.hero .headline {
    position: absolute;
    left: 34px;
    bottom: 34px;
    z-index: 2;
    max-width: 620px;
}

@media (max-width: 520px) {

    .hero {
        top: 10px;
        height: 45vh;
        width: 95%;
        margin: 0 auto;
    }

    .home {
        margin-top: 0px;
    }

    .hero .headline {
        left: 18px;
        bottom: 20px;
        max-width: 92%;
    }

    .navCard {
        margin: 0 auto;
        width: 95%;
    }
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(34px, 4.2vw, 72px);
    line-height: .9;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hero .sub {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: .04em;
    max-width: 52ch;
}

.hero .cta-row {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .02em;
    transition: transform .15s ease, background .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, .35);
}

.btn.primary {
    background: rgba(122, 81, 55, .55);
    border-color: rgba(242, 230, 217, .20);
}

.btn.primary:hover {
    background: rgba(122, 81, 55, .70);
}

.icon-arrow {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .20);
    display: grid;
    place-items: center;
}

/* ===== Right rail cards ===== */
/* ===== Right rail cards (New Design) ===== */
.rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.navCard {
    display: block;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
    transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.navCard:hover {
    transform: translateY(-4px);
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}

.navCard .bg {
    position: absolute;
    inset: 0;
    transition: transform .7s ease;
    filter: saturate(110%);
    background-size: cover;
    background-position: center;
}

.navCard:hover .bg {
    transform: scale(1.06);
}

/* Subtle overlay for contrast, but keeping image vivid */
.navCard:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Fluid Pill Content */
.navCard .content {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 5;
    background: #080808;
    padding: 0px 18px 0px 10px;
    border-top-left-radius: 15px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 85%;
}

/* The 'Inverted Radius' connector effect atop the pill */
.navCard .content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border-bottom-right-radius: 24px;
    box-shadow: 6px 6px 0 6px #080808;
    pointer-events: none;
}

.navCard .label {
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 14px;
    color: var(--cream);
    white-space: nowrap;
}

.navCard .go {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(242, 230, 217, .3);
    color: var(--cream);
    display: grid;
    align-content: end;
    place-items: center;
    margin-bottom: 5px;
    margin-top: 5px;
    transition: background .2s, border-color .2s, transform .2s;
}

.navCard:hover .go {
    background: rgba(242, 230, 217, .1);
    border-color: var(--cream);
    transform: rotate(-45deg);
}

@media (max-width: 980px) {
    .navCard {
        min-height: 280px;
        height: 45vh;
        /* Even taller on mobile/tablet for impact */
    }

    .topbar {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: fit-content;
    }
}

/* ===== Footer panel ===== */
.footerPanel {
    margin-top: 18px;
    padding: 22px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.footerPanel:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footerGrid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 900px) {
    .footerGrid {
        grid-template-columns: 1fr;
    }
}

.fuck {
    filter: brightness(0) saturate(100%) invert(100%) sepia(80%) saturate(500%) hue-rotate(339deg) brightness(100%) contrast(100%);
    width: 75%;
    height: 75%;
}

.fuck-2 {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(500%) hue-rotate(339deg) brightness(100%) contrast(100%);
    width: 60%;
    height: 60%;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 10px;
    max-width: 490px;
}

.kicker .line {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, .12);
}

.hours {
    padding: 6px 0;
}

.hours h3 {
    margin: 0 0 12px 0;
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 18px;
}

.hoursList {
    display: grid;
    gap: 10px;
    max-width: 520px;
}

.hoursRow {
    display: grid;
    grid-template-columns: 110px 1fr 120px;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: rgba(245, 237, 226, .86);
}

.hoursRow .dots {
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px);
    opacity: .55;
}

.metaBox {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    text-align: right;
    color: rgba(245, 237, 226, .82);
    font-size: 13px;
}

.metaLinks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    align-items: flex-end;
}

.metaLinks a {
    color: rgba(245, 237, 226, .75);
}

.metaLinks a:hover {
    color: rgba(245, 237, 226, .95);
}

.socialRow {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(242, 230, 217, .18);
    background: rgba(0, 0, 0, .25);
    display: grid;
    place-items: center;
}

/* =========================================================
   OVERLAY MENU — 1:1 (full height, exact vibe)
   - overlay full viewport height
   - sheet full height (with margin), centered links
   - smaller type, diamond ornaments
   ========================================================= */

.overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    /* ✅ full height */
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 80;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* panel */
.menuSheet {
    position: absolute;
    inset: 20px;
    /* margin like screenshot */
    height: calc(100vh - 40px);
    border-radius: var(--radius-xl);
    background: var(--cafe);
    border: 1px solid rgba(0, 0, 0, .22);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .60);
    display: grid;
    place-items: center;
    overflow: hidden;

    /* animate */
    transform: scale(.985) translateY(10px);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.overlay.open .menuSheet {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* mobile inset slightly smaller (matches your screenshot spacing) */
@media (max-width: 520px) {
    .menuSheet {
        inset: 16px;
        height: calc(100vh - 32px);
    }
}

/* top-left close */
.menuClose {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .25);
    background: rgba(0, 0, 0, .18);
    color: rgba(242, 230, 217, .92);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
}

/* center list */
.menuLinks {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--menu-gap);
    text-align: center;
    padding: 24px;
}

.menuLinks a {
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 45px;
    /* ✅ smaller */
    color: rgba(242, 230, 217, .92);
    line-height: 1.02;
    transition: opacity .12s ease, transform .12s ease;
    opacity: .95;
}

.menuLinks a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* active link underline */
.menuLinks a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 12px;
    opacity: 1;
}

/* ornaments (small diamonds + lines) */
.menuDecor {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 22px;
    opacity: .55;
    z-index: 1;
    pointer-events: none;
}

.menuDecor.top {
    top: 105px;
}

.menuDecor.bottom {
    bottom: 105px;
}

@media (max-width: 520px) {
    .menuDecor.top {
        top: 92px;
    }

    .menuDecor.bottom {
        bottom: 92px;
    }
}

/* line segments */
.menuDecor {
    background:
        linear-gradient(90deg,
            transparent 0 22px,
            rgba(18, 12, 9, .40) 22px 24px,
            transparent 24px 116px,
            rgba(18, 12, 9, .40) 116px 118px,
            transparent 118px);
}

/* diamonds */
.menuDecor::before,
.menuDecor::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(18, 12, 9, .55);
    transform: translateY(-50%) rotate(45deg);
}

.menuDecor::before {
    left: 16px;
}

.menuDecor::after {
    right: 16px;
}

/* Optional subtle vignette inside menu */
.menuSheet::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 550px at 50% 45%, rgba(0, 0, 0, .14), transparent 60%);
    pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.footerLink a:hover {
    color: rgb(52, 218, 77);
}