/* ============================================
   HANZ — Landing Page Styles
   ============================================ */

/* --- FONT FACE DECLARATIONS --- */
@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    background-color: #FAF9F6;
    color: #0f0f0f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- SITE WRAPPER --- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 10px 0 20px;
    height: 120px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* Left info column */
.header-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    color: #0f0f0f;
    gap: 2px;
}

.header-info .year-digit {
    font-weight: 300;
}

/* Year digits container — vertical en desktop (cada dígito en su línea) */
.year-digits-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* Center navigation */
.header-nav {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    display: flex;
    gap:  100%;
}

.nav-link {
    font-size: 16px;
    letter-spacing: 0.2em;
    color: #0f0f0f;
    padding: 8px 24px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    text-decoration: line-through;
    text-decoration-color: #C41E3A;
    text-decoration-thickness: 1px;
}

.nav-link.active {
    text-decoration: line-through;
    text-decoration-color: #C41E3A;
    text-decoration-thickness: 1px;
    opacity: 0.6;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* --- Sections --- */
.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.section.active {
    opacity: 1;
    visibility: visible;
}

/* --- HOME SECTION --- */

/* --- ABOUT TWO-COLUMN LAYOUT --- */
.about-two-column {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ============================================
   SITE LOGO (shared, animated)
   ============================================ */
.site-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
}

.site-logo-img {
    max-width: 150px;
    height: auto;
    display: block;
    transition: max-width 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.site-logo.logo-about {
    top: 70px;
    transform: translate(-50%, 0);
}

.site-logo.logo-about .site-logo-img {
    max-width: 70px;
}

.about-left-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.about-left {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(15, 15, 15, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 40vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-right {
    margin-left: 40vw;
    width: calc(60vw - 28px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 36px 20px 28px;
    scrollbar-width: thin;
    scrollbar-color: #0f0f0f transparent;
}

/* --- Header info superpuesto en columna izquierda About --- */
.about-left-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0.05em;
    color: #FAF9F6;
    gap: 2px;
}

.about-left-header .year-digit {
    font-weight: 300;
}

/* --- Scrollbar personalizada right column --- */
.about-right::-webkit-scrollbar {
    width: 4px;
}

.about-right::-webkit-scrollbar-track {
    background: transparent;
}

.about-right::-webkit-scrollbar-thumb {
    background: #0f0f0f;
    opacity: 0.3;
}

/* Logo arrows + mountain image row */
.about-right-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.about-image-mountains {
    flex: 1;
    height: 100px;
    overflow: hidden;
    border-radius: 2px;
}

.about-image-mountains .about-img-ref {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Text content area */
.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px;
}

/* --- About Paragraphs --- */
.about-paragraph {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: #0f0f0f;
}

.about-paragraph.align-right {
    text-align: right;
}

.about-paragraph.align-center {
    text-align: center;
}

.about-paragraph.tagline {
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* --- About images inside text --- */
.about-image-food {
    width: 140px;
    height: 90px;
    overflow: hidden;
    align-self: flex-start;
    margin: 4px 0;
    border-radius: 2px;
}

.about-image-food .about-img-ref {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-image-eggs {
    width: 160px;
    height: 160px;
    overflow: hidden;
    align-self: center;
    margin: 12px -250px 6px 0;
    border-radius: 2px;
}

.about-image-eggs .about-img-ref {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- About inner footer --- */
.about-footer-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0 10px 0;
    border-top: 1px solid rgba(15, 15, 15, 0.08);
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #0f0f0f;
}

/* ============================================
   Nav Reserve (oculto por defecto)
   ============================================ */
.nav-reserve {
    display: none;
    font-size: 16px;
    letter-spacing: 0.2em;
    color: #0f0f0f;
    padding: 8px 24px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-reserve:hover {
    text-decoration: line-through;
    text-decoration-color: #C41E3A;
    text-decoration-thickness: 1px;
}

.nav-reserve.active {
    text-decoration: line-through;
    text-decoration-color: #C41E3A;
    text-decoration-thickness: 1px;
    opacity: 0.6;
}

/* ============================================
   Footer About Hours (oculto por defecto)
   ============================================ */
.footer-about-hours {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    align-items: center;
    gap: 40px;
    font-size: 14px;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.footer-menu-link {
    font-size: 14px;
    letter-spacing: 0.15em;
    color: #0f0f0f;
    padding: 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-menu-link:hover {
    text-decoration: line-through;
    text-decoration-color: #C41E3A;
    text-decoration-thickness: 1px;
}

.footer-hours-text {
    font-size: 14px;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   ABOUT MODE — Header & Footer Overrides
   ============================================ */
.about-mode .header-nav {
    left: 42vw;
    width: calc(60vw - 42px);
    transform: none;
    justify-content: space-between;
    gap: 0;
}

.about-mode #nav-menu {
    display: none;
}

.about-mode .nav-reserve {
    display: inline-block;
}

.about-mode .footer-social,
.about-mode .footer-contact,
.about-mode .footer-hours {
    display: none;
}

.about-mode .header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.about-mode .footer-about-hours {
    display: flex;
    align-items: center;
    gap: 40px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: 4px;
}

.about-mode .footer {
    justify-content: center;
}

.about-mode .main-content {
    overflow: visible;
}

.about-mode .section-about {
    justify-content: flex-start !important;
    overflow: visible;
}

.about-mode .about-two-column {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.about-mode .about-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 40vw;
    height: 100vh;
    z-index: 0;
}

.about-mode .about-right-top {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 70px;
    margin: 0 150px 20px 0px;
    height: auto;
}

.about-mode .about-image-mountains {
    flex: none;
    width: 200px;
    height: 100px;
}

.about-mode .about-right {
    margin-left: 20vw !important;
    width: calc(80vw - 28px) !important;
    position: relative;
    z-index: 5;
}

.about-mode .about-text-content {
    position: relative;
    padding-top: 0;
}

.about-mode .about-image-food {
    position: absolute;
    right: 560px;
    top: 200px;
    width: 140px;
    height: 90px;
    z-index: 2;
    margin: 0;
    align-self: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px 10px 20px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

/* Left - Social */
.footer-social {
    display: flex;
    gap: 48px;
}

.footer-link {
    font-size: 14px;
    letter-spacing: 0.15em;
    color: #0f0f0f;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.footer-link:hover {
    border-bottom-color: #0f0f0f;
}

/* Center - Hours */
.footer-hours {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-hours span {
    font-size: 14px;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    display: block;
}

/* Right - Contact & Reserve */
.footer-contact {
    display: flex;
    align-items: center;
    gap: 48px;
}

.btn-reserve {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    padding: 12px 48px;
    background: transparent;
    color: #0f0f0f;
    border: 1px solid #0f0f0f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reserve:hover {
    background: #C41E3A;
    color: #FAF9F6;
    border-color: #C41E3A;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.lang-btn {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #0f0f0f;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    transition: opacity 0.3s ease;
    opacity: 0.4;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 600;
}

.lang-btn:hover {
    opacity: 0.7;
}

.lang-separator {
    font-size: 12px;
    color: #0f0f0f;
    opacity: 0.3;
    margin: 0 2px;
}

/* ============================================
   SELECTION STYLE
   ============================================ */
::selection {
    background: #C41E3A;
    color: #FAF9F6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header {
        padding: 30px 40px 0 40px;
    }

    .header-nav {
        gap: 60px;
    }

    .footer {
        padding: 0 40px 30px 40px;
    }

    .footer-social {
        gap: 24px;
    }

    .footer-contact {
        gap: 24px;
    }

    .about-two-column {
        flex-direction: column;
        overflow-y: auto;
    }

    .about-left {
        position: relative;
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid rgba(15, 15, 15, 0.08);
    }

    .about-right {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        overflow-x: hidden;
       height:92vh;
       
    }

    .about-two-column {
        overflow-x: hidden;
    }

    .header {
        padding: 20px 20px 0 20px;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .header-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 5px;
        font-size: 12px;
    }

    .year-digits-container {
        flex-direction: row;
    }

    .header-nav {
        position: static;
        transform: none;
        gap: 40px;
    }

    .nav-link {
        font-size: 14px;
        padding: 4px 12px;
    }

    .about-right-top {
        flex-direction: column;
        align-items: center;
    }

    .about-image-mountains {
        width: 100%;
        height: 120px;
    }

    .about-mode .about-left {
        width: 20vw !important;
    }

    .about-mode .header {
        background: rgba(250, 249, 246, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .about-mode .footer-about-hours {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 30;
        background: rgba(250, 249, 246, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 20px;
        border-radius: 4px;
        width: 100%;
        justify-content: center;
    }

    .about-mode .site-logo.logo-about {
        top: auto !important;
        bottom: 20px;
        left: 20px;
        transform: none;
    }

    .about-image-food {
        position: static;
        align-self: center;
        margin: 4px 0;
        width: 140px;
        height: 90px;
    }

    .about-image-eggs {
        width: 140px;
        height: 140px;
    }

    .footer {
        padding: 0 20px 20px 20px;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-hours {
        position: static;
        transform: none;
    }

    .footer-social {
        gap: 16px;
    }

    .footer-contact {
        gap: 16px;
    }

    .btn-reserve {
        padding: 10px 32px;
        font-size: 14px;
    }
}
