/**
 * FilmMerge — components.css
 *
 * Every shared visual component, extracted from the inline styles
 * that were previously duplicated across all 16 HTML pages.
 *
 * Includes: nav, footer, buttons, eyebrow, gold-line,
 *           breadcrumb, animations, and shared form states.
 *
 * Loaded globally after base.css on every page.
 */

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 151, 58, 0.3);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(242, 234, 216, 0.35);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(200, 151, 58, 0.3);
}
.btn-ghost:hover {
  background: rgba(200, 151, 58, 0.08);
  transform: translateY(-2px);
}

/* Small button modifier */
.btn--sm {
  padding: 10px 22px;
  font-size: 0.78rem;
}

/* Disabled state */
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHIC ACCENTS
═══════════════════════════════════════════════ */

/* Gold eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Gold decorative line below headings */
.gold-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 18px 0 32px;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */

.fm-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.fm-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Primary nav links (desktop) */
.fm-nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.fm-nav__links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}

.fm-nav__links a:hover { color: var(--cream); }
.fm-nav__links a.active,
.fm-nav__links .current-menu-item > a { color: var(--gold); }

/* CTA buttons in nav */
.fm-nav__cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.fm-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.fm-nav__btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.fm-nav__btn--gold:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  color: var(--ink);
}

.fm-nav__btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(242, 234, 216, 0.3);
}
.fm-nav__btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Mobile hamburger button — hidden on desktop */
.fm-nav__mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  flex-shrink: 0;
}

/* Mobile slide-down panel — closed by default */
.fm-nav__mobile-panel {
  display: none;
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 20px 28px 28px;
}

.fm-nav__mobile-panel.open { display: block; }

.fm-nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.fm-nav__mobile-links li a {
  display: block;
  padding: 13px 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.fm-nav__mobile-links li:last-child a { border-bottom: none; }
.fm-nav__mobile-links li a:hover { color: var(--cream); }
.fm-nav__mobile-links .current-menu-item > a { color: var(--gold); }

.fm-nav__mobile-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */

.fm-footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.fm-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.fm-footer__brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  margin-top: 12px;
}

.fm-footer__col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.fm-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm-footer__col a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}
.fm-footer__col a:hover { color: var(--gold); }

/* WordPress nav_menu renders a <ul> inside the column div */
.fm-footer__col nav > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fm-footer__col nav > ul li a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}
.fm-footer__col nav > ul li a:hover { color: var(--gold); }

.fm-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.fm-footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.fm-footer__legal {
  display: flex;
  gap: 24px;
}

/* WP nav_menu renders inline for footer legal */
.fm-footer__legal nav { display: contents; }
.fm-footer__legal nav ul { display: flex; gap: 24px; list-style: none; }

.fm-footer__legal a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);
}
.fm-footer__legal a:hover { color: var(--cream); }

/* ═══════════════════════════════════════════════
   BREADCRUMB  (shared across legal, film, news)
═══════════════════════════════════════════════ */

.fm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.fm-breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}
.fm-breadcrumb a:hover { color: var(--gold); }

.fm-breadcrumb i {
  font-size: 0.65rem;
  color: var(--border);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-up { animation: fadeUp 0.7s cubic-bezier(.4, 0, .2, 1) both; }
.fade-in { animation: fadeIn 0.5s ease both; }

/* Staggered animation delays */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

/* Short-form aliases — used on Buyers page hero (source: filmmerge-buyers.html) */
.d1 { animation-delay: 0.10s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.46s; }

/* ═══════════════════════════════════════════════
   FAQ ACCORDION  (shared: homepage, buyers,
   screener-access, resources, submit)
═══════════════════════════════════════════════ */

.fm-faq__item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}

.fm-faq__item:hover { border-color: rgba(200, 151, 58, 0.2); }
.fm-faq__item.open  { border-color: rgba(200, 151, 58, 0.25); }

.fm-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  gap: 16px;
}

.fm-faq__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: rgba(200, 151, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.75rem;
  transition: transform var(--transition), background var(--transition);
}

.fm-faq__item.open .fm-faq__icon {
  transform: rotate(45deg);
  background: rgba(200, 151, 58, 0.2);
}

.fm-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1);
}

.fm-faq__a-inner {
  padding: 0 22px 20px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.8;
}

.fm-faq__item.open .fm-faq__a {
  max-height: 500px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — shared breakpoints
═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .fm-nav__inner { gap: 16px; }
  .fm-nav__links { gap: 22px; }
}

@media (max-width: 768px) {
  /* Hide desktop nav links, show hamburger */
  .fm-nav__links { display: none; }
  .fm-nav__cta   { display: none; }
  .fm-nav__mobile-btn { display: flex; }

  .fm-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .fm-footer__top { grid-template-columns: 1fr; }
  .fm-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fm-footer__legal nav ul { flex-wrap: wrap; gap: 14px; }
}

/* ─────────────────────────────────────────
   FilmMerge native operational forms
───────────────────────────────────────── */
.fm-native-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fm-native-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fm-native-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fm-native-field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
}
.fm-native-field input,
.fm-native-field select,
.fm-native-field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(10,12,16,.7);
  color: var(--cream);
  padding: 13px 14px;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.fm-native-field textarea { min-height: 120px; resize: vertical; }
.fm-native-field input::placeholder,
.fm-native-field textarea::placeholder { color: #6f7682; }
.fm-native-field input:focus,
.fm-native-field select:focus,
.fm-native-field textarea:focus {
  outline: none;
  border-color: rgba(200,151,58,.55);
  box-shadow: 0 0 0 3px rgba(200,151,58,.08);
}
.fm-native-field .fm-native-help {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.55;
}
.fm-native-error,
.fm-native-alert {
  display: none;
  font-size: .75rem;
  line-height: 1.5;
}
.fm-native-error { color: #ff8b8b; }
.fm-native-alert {
  color: #ffb4b4;
  background: rgba(255,82,82,.08);
  border: 1px solid rgba(255,82,82,.18);
  border-radius: 8px;
  padding: 12px 14px;
}
.fm-native-form .fm-field-error {
  border-color: rgba(255,82,82,.5) !important;
  box-shadow: 0 0 0 3px rgba(255,82,82,.08) !important;
}
.fm-native-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@media (max-width: 768px) {
  .fm-native-grid { grid-template-columns: 1fr; }
}


/* Cookie consent */
.fm-cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(8, 12, 18, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0,0,0,.4);
  backdrop-filter: blur(14px);
  color: #f4f6fa;
}
.fm-cookie-consent__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 24px 26px 18px;
}
.fm-cookie-consent__copy h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #fff;
}
.fm-cookie-consent__copy p {
  margin: 0;
  color: rgba(223,231,240,.82);
  line-height: 1.7;
}
.fm-cookie-consent__copy a {
  color: var(--gold);
}
.fm-cookie-consent__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.fm-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.fm-cookie-consent__button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.fm-cookie-consent__button:hover {
  transform: translateY(-1px);
}
.fm-cookie-consent__button--primary {
  border: 1px solid rgba(200,151,58,.45);
  background: var(--gold);
  color: #0c1016;
}
.fm-cookie-consent__button--secondary,
.fm-cookie-consent__button--ghost {
  background: rgba(255,255,255,.04);
  color: #eff3f8;
  border: 1px solid rgba(255,255,255,.1);
}
.fm-cookie-consent__button--secondary:hover,
.fm-cookie-consent__button--ghost:hover {
  border-color: rgba(200,151,58,.34);
}
.fm-cookie-consent__preferences {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 26px 24px;
}
.fm-cookie-consent__prefgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.fm-cookie-consent__toggle {
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  color: #fff;
}
.fm-cookie-consent__toggle span {
  font-weight: 700;
}
.fm-cookie-consent__toggle small {
  color: rgba(223,231,240,.74);
  line-height: 1.6;
}
.fm-cookie-consent__toggle input {
  justify-self: start;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.fm-cookie-consent__toggle.is-locked {
  border-color: rgba(200,151,58,.16);
  background: rgba(200,151,58,.07);
}
.fm-cookie-consent__prefactions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
@media (max-width: 920px) {
  .fm-cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .fm-cookie-consent__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .fm-cookie-consent__actions,
  .fm-cookie-consent__prefactions {
    justify-content: stretch;
  }
  .fm-cookie-consent__actions .fm-cookie-consent__button,
  .fm-cookie-consent__prefactions .fm-cookie-consent__button {
    flex: 1 1 100%;
  }
  .fm-cookie-consent__prefgrid {
    grid-template-columns: 1fr;
  }
}
