/* ═══════════════════════════════════════════════
   RESET & GLOBÁLIS
═══════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:     #F9F5EE;
    --text:   #2D2420;
    --accent: #531A18;
    --canvas: 1440px;
    --nav-h:  138px;
}

html {
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    overflow-x: hidden;
}

img { display: block; }

/* ═══════════════════════════════════════════════
   NAVIGÁCIÓ
═══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.nav.nav--scrolled {
    background-color: var(--bg);
    border-bottom-color: rgba(60, 17, 16, 0.13);
}

.nav__canvas {
    position: relative;
    width: var(--canvas);
    height: var(--nav-h);
    margin: 0 auto;
}

.nav__left, .nav__right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav__left { left: 80px; }
.nav__right { right: 80px; }

.nav__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav__logo img {
    height: 124px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.5s ease;
}

.nav.nav--scrolled .nav__logo img {
    filter: none;
}

.nav__link {
    font-family: 'Cormorant SC', serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.5s ease;
}

.nav.nav--scrolled .nav__link {
    color: var(--text);
}

/* ═══════════════════════════════════════════════
   HERO & INTRO
═══════════════════════════════════════════════ */
.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 4, 2, 0.55) 0%,
        rgba(10, 4, 2, 0.08) 30%,
        rgba(10, 4, 2, 0.00) 55%,
        rgba(10, 4, 2, 0.20) 100%
    );
}

.intro {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 35vh;
    background: transparent;
    pointer-events: none;
}

.intro__card {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 64px;
    z-index: 5;
}

.intro__title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.intro__title-rule {
    width: 54px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.intro__title {
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--text);
    white-space: nowrap;
}

.intro__sub {
    font-style: italic;
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    line-height: 1.68;
    color: var(--text);
}


/* ═══════════════════════════════════════════════
   SZEKCIÓ ELVÁLASZTÓ
═══════════════════════════════════════════════ */
.section-divider {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 72px;
    background: var(--bg);
    display: flex;
    align-items: center;
}

.section-divider__canvas {
    width: var(--canvas);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 80px;
}

.section-divider__line {
    flex: 1;
    height: 1px;
    background: rgba(60, 17, 16, 0.2);
}

.section-divider__gem {
    font-size: 8px;
    color: var(--accent);
    opacity: 0.55;
    letter-spacing: 0;
}

/* ═══════════════════════════════════════════════
   A SÉF AJÁNLATA
═══════════════════════════════════════════════ */
.chef {
    position: relative;
    width: 100%;
    background: var(--bg);
    z-index: 10;
}

.chef__canvas {
    position: relative;
    width: var(--canvas);
    margin: 0 auto;
    z-index: 10;
    padding: 160px 80px 120px;
}

.chef__heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 64px;
}

.chef__heading-line {
    width: 64px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.chef__heading-text {
    font-family: 'Abhaya Libre', serif;
    font-size: 45px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
}

.chef__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px 96px;
    align-items: start;
}

.chef__item {
    display: flex;
    flex-direction: column;
}

.chef__item:nth-child(even) {
    margin-top: 120px;
}

.chef__dish-name {
    font-family: 'Abhaya Libre', serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.chef__dish-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.chef__dish-name.line-drawn::after {
    width: 100%;
}

.chef__photo-wrap {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.chef__dish-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chef__photo-wrap:hover .chef__dish-photo {
    transform: scale(1.07);
}

.chef__item:nth-child(3) {
    align-items: flex-end;
}

.chef__item:nth-child(3) .chef__dish-name {
    width: 65%;
    margin-right: 160px;
}

.chef__item:nth-child(3) .chef__photo-wrap {
    width: 65%;
    height: 480px;
    margin-right: 160px;
}

.chef__item:nth-child(3) .chef__dish-photo {
    object-position: center 45%;
}

/* ═══════════════════════════════════════════════
   BELSŐ TÉR (ABOUT)
═══════════════════════════════════════════════ */
.about {
    position: relative;
    width: 100%;
    background: var(--bg);
    overflow: hidden;
    z-index: 10;
}

.about__canvas {
    position: relative;
    width: var(--canvas);
    height: 480px;
    margin: 0 auto;
    z-index: 10;
}

.about__photo-wrap {
    position: absolute;
    top: 56px;
    left: 80px;
    width: 420px;
}

.about__photo {
    width: 100%;
    height: auto;
    display: block;
}


.about__text {
    position: absolute;
    top: 140px;
    left: 560px;
    width: 396px;
    font-style: italic;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text);
    padding-top: 24px;
    text-align: center;
}

.about__text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__text.line-drawn::before {
    width: 100%;
}

/* ═══════════════════════════════════════════════
   ASZTALFOGLALÁS (CTA)
═══════════════════════════════════════════════ */
.cta {
    position: relative;
    width: 100%;
    background: var(--bg);
    overflow: hidden; /* Itt vágjuk le a túllógó vonalakat a széleken */
    z-index: 10;
}

.cta__canvas {
    position: relative;
    width: var(--canvas);
    height: 580px;
    margin: 0 auto;
    z-index: 10;
}

.frame-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--accent);
    border-style: solid;
}

.fc--tl { top: 72px;  left: 380px;  border-width: 1px 0 0 1px; }
.fc--tr { top: 72px;  right: 380px; border-width: 1px 1px 0 0; }
.fc--bl { top: 484px; left: 380px;  border-width: 0 0 1px 1px; }
.fc--br { top: 484px; right: 380px; border-width: 0 1px 1px 0; }

.cta__quote {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    font-style: italic;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.75;
    text-align: center;
    letter-spacing: 0.02em;
    color: var(--text);
}


.cta__btn-wrap {
    position: absolute;
    top: 360px;
    left: 50%;
    transform: translateX(-50%);
}

.cta__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 226px;
    height: 48px;
    border: 1px solid var(--accent);
    background: transparent;
    font-family: 'Cormorant SC', serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: var(--accent);
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease;
}

.cta__btn:hover {
    background: var(--accent);
    color: var(--bg);
}


/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 20; /* Footer a legtetejére, hogy biztosan elfedje az alálógó vonalat */
    width: 100%;
    background: var(--bg);
    border-top: 1px solid rgba(60, 17, 16, 0.15);
}

.footer__canvas {
    position: relative;
    width: var(--canvas);
    height: 160px;
    margin: 0 auto;
}

.footer__left {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 2.1;
    color: var(--text);
}

.footer__contact-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer__mid {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant SC', serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--text);
}

.footer__right {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant SC', serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 2.1;
}

.footer__social:hover {
    opacity: 0.65;
}

.footer__social-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   VISSZA A TETEJÉRE
═══════════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(83, 26, 24, 0.35);
    transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 500;
}

.scroll-top svg {
    width: 18px;
    height: 18px;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(83, 26, 24, 0.45);
}

/* ═══════════════════════════════════════════════
   HAMBURGER & MOBIL NAV
═══════════════════════════════════════════════ */
.nav__hamburger {
    display: none;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.92);
    transition: background 0.5s ease, transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav--scrolled .nav__hamburger span,
.nav__hamburger.is-open span {
    background: var(--text);
}

.nav__hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav__hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.nav__mobile-menu.is-open {
    display: flex;
}

.nav__mobile-link {
    font-family: 'Cormorant SC', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s ease;
}

.nav__mobile-link:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════
   RESZPONZÍV — 1200px alatt
═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .nav__canvas {
        width: 100%;
        padding: 0;
    }
    .nav__left  { left: 40px;  gap: 32px; }
    .nav__right { right: 40px; gap: 32px; }

    .section-divider__canvas { width: 100%; padding: 0 40px; }

    .chef__canvas    { width: 100%; padding: 60px 40px 80px; }
    .about__canvas   { width: 100%; }
    .cta__canvas     { width: 100%; }

    .footer__canvas  { width: 100%; }
    .footer__left    { left: 40px; }
    .footer__right   { right: 40px; }

    .about__photo-wrap { left: 40px; }
    .about__text       { left: 480px; width: 340px; }

    .fc--tl, .fc--bl { left: 260px; }
    .fc--tr, .fc--br { right: 260px; }
}

/* ═══════════════════════════════════════════════
   RESZPONZÍV — 900px alatt (tablet / mobil)
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    :root { --nav-h: 80px; }

    /* Nav */
    .nav__left, .nav__right { display: none; }
    .nav__hamburger         { display: flex; }
    .nav__canvas            { width: 100%; padding: 0; }

    .nav__logo img { height: 64px; }

    /* Intro card – mobilon nem kell */
    .intro__card { display: none; }

    /* Chef – egymás alá, helyes sorrendben:
       heading → kép1 → cím1 → kép2 → cím2 */
    .chef__canvas {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 60px 40px 60px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .chef__dish-name::after,
    .about__text::before { display: none; }

    .chef__item:nth-child(even)                { margin-top: 0; }

    .chef__item:nth-child(3)                   { align-items: flex-start; }
    .chef__item:nth-child(3) .chef__dish-name  { width: 100%; margin-right: 0; }
    .chef__item:nth-child(3) .chef__photo-wrap { width: 100%; height: 505px; margin-right: 0; }
    .chef__item:nth-child(3) .chef__dish-photo { object-fit: cover; object-position: center 70%; }

    .chef__canvas  { width: 100%; padding: 60px 24px 60px; }
    .chef__grid    { grid-template-columns: 1fr; gap: 48px; }

    /* About – egymás alá */
    .about__canvas {
        width: 100%;
        height: auto;
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .about__photo-wrap { position: static; width: 100%; }
    .about__text       { position: static; width: 100%; padding-top: 24px; }

    /* CTA */
    .cta__canvas {
        width: 100%;
        height: auto;
        padding: 80px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .frame-corner    { display: none; }
    .cta__quote      { position: static; transform: none; width: 100%; }
    .cta__btn-wrap   { position: static; transform: none; }

    /* Footer */
    .footer__canvas {
        width: 100%;
        height: auto;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer__left,
    .footer__mid,
    .footer__right   { position: static; transform: none; }

    .footer__contact-item { justify-content: center; }
    .footer__right        { align-items: center; }
    .footer__social       { flex-direction: row-reverse; }
}

/* ═══════════════════════════════════════════════
   RESZPONZÍV — 480px alatt (kis mobil)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .intro__card    { padding: 32px 24px 44px; }
    .intro__title   { font-size: 26px; white-space: normal; text-align: center; }
    .intro__sub     { font-size: 17px; }
    .intro__sub br  { display: none; }

    .chef__canvas       { padding: 40px 16px 48px; }
    .chef__heading-text { font-size: 32px; }
    .chef__dish-name    { font-size: 22px; }

    .about__canvas  { padding: 48px 24px; }

    .cta__canvas    { padding: 60px 24px; }
    .cta__quote     { font-size: 17px; }

    .footer__canvas { padding: 32px 24px; }
}

/* ═══════════════════════════════════════════════
   PORTFÓLIÓ OVERLAY — vissza gomb + "csak példa" jelvény
═══════════════════════════════════════════════ */
.back-to-portfolio,
.portfolio-badge__btn {
    font-family: 'Abhaya Libre', serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: rgba(249, 245, 238, 0.72);
    border: 1px solid rgba(83, 26, 24, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(45, 36, 32, 0.12);
    cursor: pointer;
    transition: background 0.25s ease, opacity 0.25s ease;
}

.back-to-portfolio {
    position: fixed;
    z-index: 1100;
    top: max(16px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    text-decoration: none;
    opacity: 0.85;
}

.back-to-portfolio svg { width: 14px; height: 14px; flex-shrink: 0; }

.back-to-portfolio:hover {
    background: rgba(249, 245, 238, 0.92);
    opacity: 1;
}

.portfolio-badge {
    position: fixed;
    z-index: 1100;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.portfolio-badge__btn {
    padding: 10px 18px;
    opacity: 0.85;
}

.portfolio-badge__btn:hover {
    background: rgba(249, 245, 238, 0.92);
    opacity: 1;
}

.portfolio-badge__panel {
    display: none;
    width: min(280px, calc(100vw - 32px));
    padding: 16px;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: rgba(249, 245, 238, 0.92);
    border: 1px solid rgba(83, 26, 24, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(45, 36, 32, 0.18);
}

.portfolio-badge.is-open .portfolio-badge__panel { display: block; }

.portfolio-badge__panel a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .back-to-portfolio span,
    .back-to-portfolio { font-size: 12px; padding: 8px 14px; }
    .portfolio-badge__btn { font-size: 12px; padding: 8px 14px; }
}