/* ==========================================================================
   X5 FILM FESTIVAL  (BETA)
   --------------------------------------------------------------------------
   Loaded after x5.css and x5-pages.css on the /film-festival/ pages only.
   Every class here starts with "ff-" so nothing can collide with the main
   site. Built from the initial layout mockups; expect it to change once the
   team has seen it in a browser.
   ========================================================================== */


.ff-page {
    /* X5 BRAND GUIDELINES (Aug 2026) — colour core.
       Typography may only be black, white or gold. */
    --ff-yellow:     #efbe54;   /* Gold — primary brand colour */
    --ff-yellow-2:   #ffdf8e;   /* Light Gold */
    --ff-gold-dark:  #c9972e;   /* Dark Gold */
    --ff-white:      #fefefe;
    --ff-black:      #000000;
    --ff-navy-dark:  #04182a;
    --ff-panel-top:  #07131d;   /* dark container gradient, lighter on top */
    --ff-line:       rgba(208, 214, 220, .28);   /* Light Grey #D0D6DC, 1px lines */

    /* Zone 02 — X5 CULTURE (Film) accents, from Color Clusters V2:
       red #C63B1F into purple #C855D6. Never put a gold logo on these. */
    --ff-brand-red:    #c63b1f;
    --ff-brand-purple: #c855d6;
    --ff-brand-orange: #ff9505;

    /* Segoe UI is the brand typeface. It is a Microsoft font and cannot be
       hosted on a website, so it shows on Windows; other systems fall back
       to their own clean sans-serif. */
    --ff-display: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

    background: var(--ff-black);
    color: var(--ff-white);
    font-family: var(--ff-display);
}

/* Gold underline from the brand guide: 2.5px, fading to 0% at both ends. */
.ff-underline,
.ff-section__heading::after {
    content: "";
    display: block;
    width: min(420px, 70%);
    height: 2.5px;
    margin-top: 12px;
    background: linear-gradient(90deg, transparent, var(--ff-yellow), transparent);
}

.ff-hero .ff-underline { margin: 0 0 18px; background: linear-gradient(90deg, var(--ff-yellow), transparent); }

.ff-container {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

.ff-accent { color: var(--ff-yellow); }

/* "Opens February 16, 2027" — a gold badge above a page title.
   Gold container fill from the brand guide, 8px corners, black text. */
.ff-notice {
    display: inline-block;
    margin: 0 0 14px;
    padding: 7px 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbd573, #e1ac3f);
    color: var(--ff-black);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ff-kicker {
    margin: 0 0 12px;
    color: var(--ff-yellow);
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ---- Buttons ------------------------------------------------------------- */
.ff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ff-btn--gold {
    /* Brand "gold container": #FBD573 on top into #E1AC3F. */
    background: linear-gradient(180deg, #fbd573, #e1ac3f);
    border-color: rgba(208, 214, 220, .45);
    color: var(--ff-black);
    box-shadow: 0 10px 28px rgba(239, 190, 84, .18);
}

.ff-btn--gold:hover,
.ff-btn--gold:focus-visible { background: var(--ff-yellow-2); }

/* The "back to X5 Convergence" button — brand-deck accent colours. */
.ff-btn--x5 {
    background: linear-gradient(90deg, var(--ff-brand-red), var(--ff-brand-purple));
    color: var(--ff-white);
}

.ff-btn--x5:hover,
.ff-btn--x5:focus-visible { filter: brightness(1.12); }

.ff-btn--outline {
    border-color: rgba(255, 255, 255, .85);
    background: rgba(0, 0, 0, .35);
    color: var(--ff-white);
}

.ff-btn--outline:hover,
.ff-btn--outline:focus-visible {
    border-color: var(--ff-yellow);
    color: var(--ff-yellow);
}

.ff-btn--block { width: 100%; }

/* The home tiles are narrow on a laptop; keep their buttons on one line. */
.ff-tile .ff-btn {
    padding: 0 10px;
    font-size: 11.5px;
    letter-spacing: .02em;
}

/* ==========================================================================
   BACK-TO-X5 BAR — top of every festival page, brand-deck accent
   ========================================================================== */
.ff-x5bar {
    background: linear-gradient(90deg, var(--ff-brand-red), var(--ff-brand-purple));
    color: var(--ff-white);
}

.ff-x5bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 20px;
    min-height: 38px;
    padding: 6px 0;
}

.ff-x5bar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ff-white);
}

.ff-x5bar__back:hover,
.ff-x5bar__back:focus-visible { text-decoration: underline; }

.ff-x5bar__note {
    font-size: 12px;
    letter-spacing: .03em;
    opacity: .9;
}

@media (max-width: 620px) {
    .ff-x5bar__note { display: none; }
}

/* ==========================================================================
   HEADER + DROPDOWN NAV
   In normal page flow, not sticky: the site's smooth-scroll script offsets
   by the MAIN site header's height, so a sticky festival header would hide
   the card a dropdown link scrolls to.
   ========================================================================== */
.ff-header {
    position: relative;
    z-index: 60;
    background: var(--ff-black);
    border-bottom: 1px solid var(--ff-line);
}

.ff-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.ff-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--ff-white);
}

.ff-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ff-brand span {
    font-family: var(--ff-display);
    font-weight: 300;   /* Segoe UI Semilight Display — the wordmark style */
    font-size: 19px;
    letter-spacing: .08em;
    white-space: nowrap;
}

.ff-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.ff-nav__list {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.ff-nav__link {
    display: block;
    padding: 25px 4px 23px 10px;
    border-bottom: 2.5px solid transparent;
    border-image: linear-gradient(90deg, transparent, transparent) 1;
    color: var(--ff-white);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ff-nav__link:hover { color: var(--ff-yellow); }
.ff-nav__link.is-current { border-image: linear-gradient(90deg, transparent, var(--ff-yellow), transparent) 1; }

.ff-nav__caret {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ff-white);
    cursor: pointer;
}

.ff-nav__caret::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.ff-nav__item.is-open > .ff-nav__caret::before { transform: translateY(2px) rotate(-135deg); }

.ff-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 70;
    width: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--ff-panel-top), var(--ff-black));
    border: 1px solid var(--ff-line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

/* The last two menus open to the LEFT so they cannot run off the screen. */
.ff-nav__item:nth-last-child(-n+2) > .ff-menu { left: auto; right: 0; }

.ff-nav__item--has-menu:hover > .ff-menu,
.ff-nav__item--has-menu:focus-within > .ff-menu,
.ff-nav__item.is-open > .ff-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ff-menu__image picture,
.ff-menu__image img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.ff-menu ul {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.ff-menu a {
    display: block;
    padding: 7px 16px;
    color: var(--ff-white);
    font-size: 13px;
}

.ff-menu a:hover,
.ff-menu a:focus-visible {
    background: rgba(239, 190, 84, .12);
    color: var(--ff-yellow);
}

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

.ff-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ff-white);
}

/* Seven menu items plus the button need room; below this width the nav
   becomes a stacked menu behind the ☰ button. Without JavaScript (no
   .ff-js on <html>) it simply stays open as a stacked list. */
@media (max-width: 1240px) {
    .ff-nav-toggle { display: inline-flex; }

    .ff-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        margin: 0;
        padding: 6px 24px 22px;
        background: var(--ff-black);
        border-bottom: 1px solid var(--ff-line);
    }

    .ff-js .ff-nav { display: none; }
    .ff-js .ff-header.is-open .ff-nav { display: flex; }

    .ff-nav__list { flex-direction: column; }

    .ff-nav__item {
        flex-wrap: wrap;
        border-bottom: 1px solid var(--ff-line);
    }

    .ff-nav__link {
        flex: 1;
        padding: 14px 0;
        border-bottom: 0;
    }

    .ff-nav__link.is-current { color: var(--ff-yellow); }

    .ff-nav__caret { width: 44px; height: 44px; margin: 0; }

    .ff-menu {
        position: static;
        display: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .ff-nav__item.is-open > .ff-menu { display: block; }
    .ff-menu__image { display: none; }
    .ff-menu ul { padding: 0 0 10px 14px; }

    .ff-nav__cta { margin-top: 18px; }
}

@media (max-width: 420px) {
    .ff-brand span { font-size: 16px; letter-spacing: .12em; }
}

/* ==========================================================================
   HEROES
   ========================================================================== */
.ff-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    background: #000;
}

.ff-hero__media,
.ff-hero__media picture,
.ff-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ff-hero__media img { object-fit: cover; }

.ff-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 32%, rgba(0,0,0,.2) 66%, rgba(0,0,0,.05) 100%),
        linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%);
}

.ff-hero__content {
    position: relative;
    z-index: 1;
    padding: 76px 0 70px;
}

.ff-hero__content > * { max-width: 640px; }

.ff-hero--home    { min-height: min(80vh, 660px); align-items: center; }
.ff-hero--section { min-height: 470px; align-items: center; }
.ff-hero--slim    { min-height: 280px; align-items: flex-end; }
.ff-hero--slim .ff-hero__content { padding: 60px 0 40px; }

.ff-hero__title {
    margin: 0 0 14px;
    color: var(--ff-white);
    font-family: var(--ff-display);
    font-weight: 700;   /* Header 01 — Segoe UI Bold Display, all caps */
    font-size: clamp(38px, 5vw, 72px);
    line-height: .95;   /* brand: 95% */
    letter-spacing: .005em;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.ff-hero__title--xl { font-size: clamp(44px, 5.8vw, 86px); }

.ff-hero__sub {
    margin: 0 0 12px;
    color: var(--ff-white);
    font-size: clamp(18px, 1.8vw, 25px);
    font-weight: 600;   /* Subheader — Segoe UI Semibold */
    line-height: 1.05;
}

.ff-hero__text {
    max-width: 540px;
    margin: 0;
    color: var(--ff-white);
    font-size: 16px;
    line-height: 1.6;
}

.ff-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

@media (max-width: 760px) {
    /* On a phone the photo sits behind the text, so darken it all over. */
    .ff-hero__shade { background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.6)); }
    .ff-hero--section { min-height: 0; }
    .ff-hero__content { padding: 56px 0 52px; }
}

/* ==========================================================================
   HOME — THE SIX SECTION TILES
   ========================================================================== */
.ff-tiles {
    display: grid;
    /* minmax(0, 1fr): keeps all six columns equal even when one button
       label is longer than the rest. */
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
    background: var(--ff-black);
}

/* Brand container: 8px corners, 1px grey border, dark gradient lighter on top. */
.ff-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ff-line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--ff-panel-top), var(--ff-black));
}

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

.ff-tile__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 16px 20px;
}

.ff-tile__title {
    margin: 0 0 10px;
    color: var(--ff-yellow);
    font-family: var(--ff-display);
    font-weight: 700;   /* Header 01 style, all caps */
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: .95;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.ff-tile__text {
    flex: 1;
    margin: 0 0 18px;
    color: var(--ff-white);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1240px) {
    .ff-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .ff-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .ff-tiles { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HOME — "WHERE CREATORS ... CONVERGE." BAND
   ========================================================================== */
.ff-band {
    position: relative;
    overflow: hidden;
    background: #000;
}

.ff-band__media,
.ff-band__media picture,
.ff-band__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ff-band__media img { object-fit: cover; }

.ff-band__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.4) 50%, rgba(0,0,0,.82));
}

.ff-band__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 70px 0;
}

.ff-band__title {
    margin: 0;
    color: var(--ff-white);
    font-family: var(--ff-display);
    font-weight: 300;   /* Header 02 — Segoe UI Semilight Display */
    font-size: clamp(22px, 2.6vw, 38px);
    line-height: 1.1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ff-band__title .ff-accent {
    display: inline-block;
    margin-top: 4px;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4em;
    line-height: .95;
    letter-spacing: .01em;
}

.ff-band__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.ff-band__side p { flex-basis: 100%; }

.ff-band__side p {
    margin: 0 0 22px;
    color: var(--ff-white);
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .ff-band__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION PAGES — CARD GRID
   ========================================================================== */
.ff-section { padding: 56px 0 76px; }

.ff-section__heading {
    margin: 0 0 22px;
    color: var(--ff-white);
    font-family: var(--ff-display);
    font-weight: 300;   /* Header 02 — Semilight Display, all caps */
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: .95;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ff-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 22px;
}

.ff-cards--4 { grid-template-columns: repeat(4, 1fr); }

.ff-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--ff-line);
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Highlight the card a dropdown link just brought you to. */
.ff-card:target .ff-card__image img {
    border-color: var(--ff-yellow);
    box-shadow: 0 0 0 2px var(--ff-yellow);
}

.ff-card__title {
    margin: 14px 0 6px;
    color: var(--ff-white);
    font-family: var(--ff-display);
    font-weight: 600;   /* Subheader — Segoe UI Semibold */
    font-size: 19px;
    line-height: 1.05;
}

.ff-card__text {
    margin: 0;
    color: var(--ff-white);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1040px) {
    .ff-cards,
    .ff-cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .ff-cards,
    .ff-cards--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PLACEHOLDER PAGES
   ========================================================================== */
.ff-placeholder { padding: 110px 0 130px; }

/* ---- About page: the Utah event map ------------------------------------- */
.ff-about { padding: 110px 0 100px; }

.ff-about__text {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--ff-white);
    font-size: 16px;
    line-height: 1.6;
}

.ff-map {
    /* Text-dense infographic — shown at its own aspect ratio, never cropped.
       Nov 2026: the map became a wide (3:2) version, so the cap went from
       620px (sized for the old tall one) to 1100px, or the labels would be
       too small to read on a laptop. */
    max-width: 1100px;
    margin: 40px 0;
    border: 1px solid var(--ff-line);
    border-radius: 8px;
    overflow: hidden;
}

.ff-map img { display: block; width: 100%; height: auto; }

.ff-map__caption {
    max-width: 1100px;
    margin: -16px 0 32px;
    color: var(--ff-muted, #b9bec4);
    font-size: 13px;
    line-height: 1.5;
}

.ff-placeholder__note {
    display: inline-block;
    margin: 22px 0 28px;
    padding: 7px 12px;
    border: 1px dashed var(--ff-yellow);
    border-radius: 8px;
    color: var(--ff-yellow);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
}

.ff-placeholder .ff-btn { display: flex; width: max-content; }

/* ==========================================================================
   FOOTER
   Extra bottom padding keeps the BETA tag from covering the links.
   ========================================================================== */
.ff-footer {
    padding: 30px 0 72px;
    border-top: 1px solid var(--ff-line);
    background: var(--ff-black);
}

.ff-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.ff-footer__brand p {
    margin: 6px 0 0 54px;
    color: var(--ff-white);
    font-size: 13px;
    line-height: 1.6;
}

.ff-footer__brand p a { color: var(--ff-white); text-decoration: underline; }

.ff-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.ff-footer__links a { color: var(--ff-white); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ff-footer__links a:hover { color: var(--ff-yellow); }

.ff-footer__social {
    display: flex;
    gap: 18px;
    justify-self: end;
}

.ff-footer__social a {
    display: block;
    width: 26px;
    height: 26px;
    color: var(--ff-white);
}

.ff-footer__social a:hover { color: var(--ff-yellow); }
.ff-footer__social svg { width: 100%; height: 100%; }

@media (max-width: 860px) {
    .ff-footer__inner { grid-template-columns: 1fr; }
    .ff-footer__social { justify-self: start; }
}
