/*
 * Silent Film Rental — public visual layer (2026-11-25).
 * Loaded after app.css and premium-home.css.
 * Type is a local editorial stack. No font CDN.
 *
 * References (structure only, brand colors kept):
 * - NEON catalog grid: title under the still, open gutters
 * - A24 upcoming: poster then caption, tracked label
 * - Disney+ movies: pill filters, quiet header, rounded posters
 * - Paramount+ hero: full-bleed still, left-aligned title, two actions
 * - Siena Film Foundation footer: labeled columns, hairline rules
 * - Artlist: dark bar with a single gold action
 */
:root {
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
    --font-ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --sf-polish-ink: #f6f1e8;
    --sf-polish-line: rgba(196, 160, 85, 0.38);
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-ui);
    text-rendering: optimizeLegibility;
}

/* Header — quieter bar, tracked links, one pill action */
.sf-header {
    background: rgba(7, 10, 16, 0.82);
    border-bottom: 1px solid var(--sf-polish-line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.sf-header__inner {
    min-height: 4.25rem;
    padding-block: 0.55rem;
}

.sf-logo__title {
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--sf-polish-ink);
}

.sf-logo__tagline {
    margin-top: 0.12rem;
    letter-spacing: 0.18em;
    color: var(--sf-color-gold);
}

.sf-nav {
    gap: 0.15rem 0.35rem;
}

.sf-nav a {
    padding-inline: 0.55rem;
    color: #ddd4c6;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sf-nav a:hover,
.sf-nav a.is-active {
    color: var(--sf-polish-ink);
}

.sf-nav a.is-active:not(.sf-btn) {
    box-shadow: inset 0 -2px 0 var(--sf-color-cta);
}

.sf-nav__utility {
    border-left-color: rgba(196, 160, 85, 0.28);
}

.sf-btn,
.btn {
    border-radius: 999px;
    letter-spacing: 0.03em;
    font-weight: 650;
}

.sf-btn--primary,
.btn--gold {
    box-shadow: 0 0 0 1px rgba(26, 18, 6, 0.25);
}

.sf-btn--primary:hover,
.btn--gold:hover {
    transform: translateY(-1px);
}

.btn--ghost,
.sf-btn--outline,
.btn--outline {
    border-radius: 999px;
    border-color: rgba(246, 241, 232, 0.42);
    background: rgba(7, 10, 16, 0.42);
    color: var(--sf-polish-ink);
}

.btn--ghost:hover,
.sf-btn--outline:hover,
.btn--outline:hover {
    background: rgba(246, 241, 232, 0.1);
    color: var(--sf-polish-ink);
    border-color: var(--sf-color-gold);
}

.sf-nav-toggle {
    border-radius: 999px;
}

/* Hero — left scrim, poster-scale title */
.hero-slider {
    height: min(72dvh, 760px);
    min-height: clamp(380px, 58svh, 760px);
    max-height: min(72dvh, 760px);
}

.hero-slide__overlay {
    background: linear-gradient(
        100deg,
        rgba(7, 10, 16, 0.92) 0%,
        rgba(7, 10, 16, 0.74) 32%,
        rgba(7, 10, 16, 0.28) 64%,
        rgba(7, 10, 16, 0.4) 100%
    );
}

.hero-slide__frame {
    inset: 0.85rem;
    border-color: rgba(196, 160, 85, 0.32);
}

.hero-slider--rental .hero-slide__content--rental .section__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 0.85rem;
    padding: 0.28rem 0.6rem;
    border: 1px solid var(--sf-polish-line);
    letter-spacing: 0.16em;
    font-size: 0.68rem;
}

.hero-slider--rental .hero-slide__content--rental .hero-slide__title {
    max-width: 12ch;
    margin: 0 0 0.85rem;
    font-size: clamp(2.7rem, 6.2vw, 5.6rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: #fff;
}

.hero-slide__title {
    letter-spacing: -0.025em;
    line-height: 0.96;
    font-weight: 600;
}

.hero-slide__synopsis,
.sf-hero__lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(246, 241, 232, 0.92);
}

.hero-slide__process,
.sf-hero__process {
    letter-spacing: 0.16em;
    color: #e7c98a;
}

.hero-slider__nav {
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.72);
}

.hero-slider__dot {
    width: 1.6rem;
    height: 4px;
    border-radius: 999px;
}

.hero-slider__dot.is-active {
    width: 2.4rem;
    background: var(--sf-color-cta);
}

.sf-hero h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    line-height: 0.94;
    max-width: 12ch;
}

/* Sections */
.section__eyebrow,
.sf-partners__eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    font-weight: 650;
}

.section__title,
.page-hero__title,
.sf-partners__title,
.cta-banner__title {
    letter-spacing: -0.03em;
    line-height: 0.98;
    font-weight: 600;
}

.section__header--center .section__title {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
}

/* Audience cards */
.audience-grid {
    gap: 1rem;
}

.audience-tile {
    min-height: 188px;
    padding: 1.35rem 1.35rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(246, 241, 232, 0.1);
    box-shadow: inset 0 1px 0 rgba(196, 160, 85, 0.45);
}

.audience-tile__label {
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.audience-tile__cta {
    letter-spacing: 0.14em;
}

/* Catalog search and Disney-style filter chips */
.catalog-search {
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 16px;
    background: #121822;
    border-color: rgba(196, 160, 85, 0.22);
}

.catalog-search input[type="search"],
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(246, 241, 232, 0.22);
    background: #0c1018;
    color: var(--sf-polish-ink);
    min-height: 2.85rem;
    padding: 0.65rem 0.9rem;
}

.catalog-search input[type="search"]::placeholder {
    color: #b3a89a;
}

.filter-pill {
    position: relative;
    min-height: 2.5rem;
    padding: 0.35rem 0.95rem;
    border-color: rgba(246, 241, 232, 0.18);
    color: #ddd4c6;
    background: transparent;
}

.filter-pill:has(input:checked) {
    background: #f6f1e8;
    color: #1a1206;
    border-color: #f6f1e8;
    font-weight: 650;
}

.filter-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Film cards — still, then caption, no chrome box */
.film-grid {
    gap: 1.75rem 1.15rem;
}

.film-card {
    background: transparent;
    border: 0;
}

.film-card__poster {
    margin-bottom: 0.7rem;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.film-card__title {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--sf-polish-ink);
}

.film-card__meta {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #c9bfb2;
}

.film-card:hover .film-card__title {
    color: #f0d48a;
}

.film-badge {
    border-radius: 999px;
    background: rgba(7, 10, 16, 0.82);
}

.film-card__restored,
.film-card__seniors {
    border-radius: 999px;
}

/* Inquiry band */
.cta-banner__inner {
    border: 1px solid rgba(229, 167, 50, 0.5);
    border-radius: 20px;
    background:
        radial-gradient(ellipse at top, rgba(229, 167, 50, 0.16), transparent 55%),
        #10151e;
}

/* Footer — column labels with hairlines */
.sf-footer {
    margin-top: 3.5rem;
    padding: 4.25rem 0 1.75rem;
    background:
        linear-gradient(180deg, rgba(196, 160, 85, 0.09), transparent 7rem),
        #070a10;
    border-top: 1px solid var(--sf-polish-line);
}

.sf-footer__grid {
    gap: 2.25rem 2rem;
}

.sf-footer__heading {
    display: inline-block;
    margin-bottom: 0.95rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--sf-polish-line);
    letter-spacing: 0.18em;
    font-weight: 650;
}

.sf-footer__brand > p:not(.sf-footer__heading) {
    max-width: 36ch;
    color: #c9bfb2;
    line-height: 1.6;
}

.sf-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    color: #ddd4c6;
}

.sf-footer__links a:hover,
.sf-footer__links a:focus-visible {
    color: #f6f1e8;
}

.sf-footer__bottom {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top-color: rgba(246, 241, 232, 0.12);
}

.sf-partners__card {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(246, 241, 232, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* Focus and light-surface fields */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.filter-pill:focus-within {
    outline: 2px solid #f0b845;
    outline-offset: 3px;
}

.sf-surface--light input:not([type="checkbox"]):not([type="radio"]),
.sf-surface--light select,
.sf-surface--light textarea {
    background: #fff;
    color: #1a1206;
    border-color: #8a6d1d;
}

@media (max-width: 768px) {
    .sf-nav a {
        letter-spacing: 0.04em;
        text-transform: none;
        font-size: 1rem;
        font-weight: 600;
    }

    .sf-nav a.is-active:not(.sf-btn) {
        box-shadow: inset 3px 0 0 var(--sf-color-cta);
    }

    .hero-slider--rental .hero-slide__content--rental .hero-slide__title,
    .sf-hero h1 {
        max-width: none;
        font-size: clamp(2.35rem, 11vw, 3.15rem);
    }

    .hero-slide__frame {
        inset: 0.45rem;
    }

    .trust-bar__inner,
    .trust-bar__list,
    .trust-bar__brands {
        width: 100%;
        min-width: 0;
    }

    .trust-bar__brand {
        white-space: normal;
    }

    .trust-bar__list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .cta-banner__inner {
        padding: 2.25rem 1.1rem;
    }

    .audience-tile {
        min-height: 0;
    }

    .sf-btn--primary:hover,
    .btn--gold:hover,
    .audience-tile:hover {
        transform: none;
    }
}

@media (min-width: 900px) {
    .film-grid {
        gap: 2.15rem 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .film-card:hover .film-card__poster img,
    .sf-btn--primary:hover,
    .btn--gold:hover,
    .audience-tile:hover {
        transform: none !important;
    }
}
