/* ============================================================
   Flying Fries — Layout
   Header, slide-in menu, footer.
   Shared across all pages.
   ============================================================ */

/* =========================
   HEADER
   ========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--ff-z-header);
    background: var(--ff-bg);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background var(--ff-transition-mid),
                border-bottom var(--ff-transition-mid),
                box-shadow var(--ff-transition-mid),
                backdrop-filter var(--ff-transition-mid);
}

/* Home: header starts transparent */
body.is-home .header {
    background: transparent;
}

/* Home + scrolled: same glass effect as inner pages */
body.is-home .header.scrolled {
    background: rgba(255, 255, 255, 0.88);
}

/* Scrolled state: glass effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ff-border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo --- */

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 36px;
    width: auto;
}

/* --- Page title in header (appears on scroll) --- */

.header-page-title {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.header-page-title.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-page-title-main {
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ff-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-page-title-sub {
    font-size: 10px;
    color: var(--ff-text-muted);
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Right side: social + hamburger --- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-separator {
    width: 1px;
    height: 20px;
    background: var(--ff-border);
    margin: 0 8px;
    transition: background var(--ff-transition-mid);
}

/* On home (not scrolled): separator is light */
body.is-home .header:not(.scrolled) .header-separator {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Social icon buttons (header) --- */

.header-social {
    background: transparent;
    border: none;
    border-radius: var(--ff-radius-md);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--ff-transition-fast);
    padding: 0;
}

.header-social:hover {
    background: rgba(194, 153, 30, 0.06);
}

.header-social svg {
    width: 20px;
    height: 20px;
    fill: var(--ff-text);
    transition: fill var(--ff-transition-mid);
}

/* On home (not scrolled): icons are white */
body.is-home .header:not(.scrolled) .header-social:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.is-home .header:not(.scrolled) .header-social svg {
    fill: #fff;
}

/* --- Hamburger button --- */

.header-hamburger {
    background: transparent;
    border: none;
    border-radius: var(--ff-radius-md);
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: background var(--ff-transition-fast);
    padding: 0;
}

.header-hamburger:hover {
    background: var(--ff-bg-warm);
}

.header-hamburger span {
    display: block;
    height: 2px;
    background: var(--ff-text);
    border-radius: 1px;
    transition: background var(--ff-transition-mid);
}

.header-hamburger .bar1,
.header-hamburger .bar2 {
    width: 20px;
}

.header-hamburger .bar3 {
    width: 14px;
    align-self: flex-end;
    margin-right: 11px;
}

/* On home (not scrolled): hamburger bars are white */
body.is-home .header:not(.scrolled) .header-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.is-home .header:not(.scrolled) .header-hamburger span {
    background: #fff;
}


/* =========================
   SLIDE-IN MENU
   ========================= */

/* Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--ff-z-menu);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Panel */
.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 80vw;
    z-index: calc(var(--ff-z-menu) + 1);
    background: var(--ff-bg);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-panel.open {
    transform: translateX(0);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
}

/* Close button */
.menu-close {
    display: flex;
    justify-content: flex-end;
    padding: 14px 20px 20px;
}

.menu-close button {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--ff-text);
    border-radius: var(--ff-radius-md);
    transition: background var(--ff-transition-fast),
                opacity var(--ff-transition-fast);
}

.menu-close button:hover {
    background: var(--ff-bg-warm);
    opacity: 0.7;
}

/* Navigation items */
.menu-nav {
    flex: 1;
    padding: 0 24px;
    list-style: none;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 4px;
    text-decoration: none;
    color: var(--ff-text);
    border-bottom: 1px solid var(--ff-border);
    opacity: 0.75;
    transition: all var(--ff-transition-fast);
    position: relative;
}

.menu-nav li:last-child a {
    border-bottom: none;
}

.menu-nav a:hover {
    opacity: 1;
    color: var(--ff-text);
    border-bottom-color: transparent;
}

/* Gold accent bar on hover */
.menu-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 20px;
    background: var(--ff-gold);
    border-radius: 2px;
    transition: transform var(--ff-transition-fast);
}

.menu-nav a:hover::after {
    transform: translateY(-50%) scaleY(1);
}

.menu-nav .menu-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.menu-nav .menu-label {
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu separator */
.menu-separator {
    margin: 8px 24px 0;
    height: 1px;
    background: var(--ff-border);
}

/* Social icons in menu */
.menu-social {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.menu-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ff-radius-md);
    opacity: 0.5;
    transition: opacity var(--ff-transition-fast),
                background var(--ff-transition-fast);
    border: none;
    padding: 0;
}

.menu-social a:hover {
    opacity: 1;
    background: rgba(194, 153, 30, 0.06);
}

.menu-social a svg {
    width: 20px;
    height: 20px;
    fill: var(--ff-text);
}

/* Secondary links */
.menu-secondary {
    padding: 8px 24px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: center;
}

.menu-secondary a {
    font-size: 11px;
    color: var(--ff-text-muted);
    text-decoration: none;
    transition: color var(--ff-transition-fast);
}

.menu-secondary a:hover {
    color: var(--ff-gold);
}


/* =========================
   FOOTER
   ========================= */

/* Footer */
.footer {
    margin-top: 0;
    padding: 24px;
    background: var(--ff-bg-warm);
    border-top: 1px solid var(--ff-border);
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-size: 12px;
    color: var(--ff-text);
    font-weight: 600;
}

.footer-brand span {
    color: var(--ff-gold);
}

.footer-brand small {
    display: block;
    font-size: 10px;
    color: var(--ff-text-muted);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    font-size: 11px;
    color: var(--ff-text-muted);
    text-decoration: none;
    transition: color var(--ff-transition-fast);
}

.footer-links a:hover {
    color: var(--ff-gold);
}

.footer-social {
    display: flex;
    gap: 6px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: var(--ff-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ff-transition-fast);
}

.footer-social a:hover {
    background: rgba(194, 153, 30, 0.06);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: var(--ff-text-muted);
    transition: fill var(--ff-transition-fast);
}

.footer-social a:hover svg {
    fill: var(--ff-gold);
}

/* Dark footer (home page) */
body.is-home .footer {
    background: var(--ff-dark);
    border-top: none;
}

body.is-home .footer-brand {
    color: rgba(255, 255, 255, 0.8);
}

body.is-home .footer-brand small {
    color: rgba(255, 255, 255, 0.4);
}

body.is-home .footer-links a {
    color: rgba(255, 255, 255, 0.4);
}

body.is-home .footer-links a:hover {
    color: var(--ff-gold);
}

body.is-home .footer-social a:hover {
    background: rgba(194, 153, 30, 0.15);
}

body.is-home .footer-social a svg {
    fill: rgba(255, 255, 255, 0.4);
}

body.is-home .footer-social a:hover svg {
    fill: var(--ff-gold);
}


/* =========================
   RESPONSIVE
   ========================= */

@media screen and (max-width: 600px) {
    .header-inner {
        padding: 12px 16px;
    }

    .header-social.hide-mobile {
        display: none;
    }

    .header-separator {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 350px) {
    .header-social {
        display: none;
    }
}
