/* Fifth Castle Media — the new header and footer, on their own.
   For the pages that keep their own look and stylesheet (the Turnkey Studio
   service page on fcm.css, and the full-bleed landing pages). Everything is
   scoped under .fx and named fx-, so nothing here reaches the page's content
   and the page's own rules (.nav, .btn, .brand, footer) do not reach in.
   The look is copied from site.css: change both together. */

.fx {
  --fx-ink: #0b0b0d;
  --fx-ink-2: #131316;
  --fx-white: #f3f2ef;
  --fx-mute: #aeada8;
  --fx-line: rgba(255, 255, 255, 0.16);
  --fx-red: #bd202d;
  --fx-red-hi: #d32b39;
  --fx-display: "Vidaloka", Georgia, "Times New Roman", serif;
  --fx-label: "Khand", "Arial Narrow", "Helvetica Neue", sans-serif;
  --fx-body: "Literata", Georgia, "Times New Roman", serif;
  --fx-gut: clamp(20px, 5vw, 72px);
  --fx-max: 1360px;
  --fx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fx-h: 72px;
  --fx-t-h3: clamp(1.3rem, 1.75vw, 1.6rem);
  --fx-t-label: 0.95rem;
  font-family: var(--fx-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fx-white);
  text-align: left;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
.fx, .fx *, .fx *::before, .fx *::after { box-sizing: border-box; }
.fx a { color: inherit; text-decoration: none; }
.fx ul { list-style: none; margin: 0; padding: 0; }
.fx li { margin: 0; padding: 0; }
.fx p, .fx h3 { margin: 0; max-width: none; }
.fx img { display: block; max-width: 100%; height: auto; }
.fx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.fx :focus-visible { outline: 2px solid var(--fx-red-hi); outline-offset: 3px; }
.fx .fx-wrap { width: 100%; max-width: calc(var(--fx-max) + 2 * var(--fx-gut)); margin-inline: auto; padding-inline: var(--fx-gut); }

/* Button */
.fx .fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.7em; min-height: 54px; padding: 0 1.7em; font-family: var(--fx-label); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; white-space: nowrap; border: 1px solid transparent; border-radius: 0; box-shadow: none; background: var(--fx-red); color: #fff; position: relative; overflow: hidden; isolation: isolate; transition: color 0.45s var(--fx-ease); }
.fx .fx-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform 0.55s var(--fx-ease); }
.fx .fx-btn:hover, .fx .fx-btn:focus-visible { color: var(--fx-ink); transform: none; }
.fx .fx-btn:hover::before, .fx .fx-btn:focus-visible::before { transform: translateY(0); }
.fx .fx-btn--sm { min-height: 44px; padding: 0 1.25em; font-size: 0.95rem; }

/* Header */
.fx.fx-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--fx-h); padding: 0; margin: 0; display: block; background: var(--fx-ink); border-bottom: 1px solid transparent; transition: background-color 0.4s, border-color 0.4s; }
.fx.fx-header.fx-stuck { border-bottom-color: var(--fx-line); }
.fx .fx-nav { display: flex; align-items: center; justify-content: space-between; height: var(--fx-h); gap: 24px; }
.fx .fx-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.fx .fx-brand img { width: 44px; height: 44px; }
.fx .fx-brand-name { font-family: var(--fx-label); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: var(--fx-white); }
.fx .fx-brand-name b { font-weight: 600; color: var(--fx-mute); }
.fx .fx-list { display: none; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.fx .fx-link { font-family: var(--fx-label); font-weight: 600; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; display: inline-flex; align-items: center; gap: 0.45em; height: var(--fx-h); position: relative; color: var(--fx-white); }
.fx .fx-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 1px; background: var(--fx-red); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--fx-ease); }
.fx .fx-link:hover::after, .fx .fx-link[aria-current="page"]::after, .fx .fx-link[aria-expanded="true"]::after { transform: scaleX(1); }
.fx .fx-caret { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.4s var(--fx-ease); }
.fx .fx-link[aria-expanded="true"] .fx-caret { transform: rotate(225deg) translateY(-2px); }
.fx .fx-mega { position: absolute; left: 0; right: 0; top: var(--fx-h); background: var(--fx-ink-2); border-bottom: 1px solid var(--fx-line); padding-block: clamp(32px, 4vw, 56px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.35s var(--fx-ease), transform 0.45s var(--fx-ease), visibility 0s linear 0.35s; }
.fx .fx-mega.fx-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fx .fx-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.fx .fx-mega h3 { font-family: var(--fx-label); font-weight: 600; font-size: var(--fx-t-label); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6; color: var(--fx-mute); margin-bottom: 14px; }
.fx .fx-mega a { display: block; font-family: var(--fx-display); font-size: var(--fx-t-h3); line-height: 1.2; padding: 7px 0; color: var(--fx-white); transition: color 0.3s, transform 0.45s var(--fx-ease); }
.fx .fx-mega a:hover { color: #fff; transform: translateX(8px); }
.fx .fx-mega a small { display: block; font-family: var(--fx-body); font-size: 0.92rem; letter-spacing: normal; text-transform: none; color: var(--fx-mute); margin-top: 2px; }
.fx .fx-toggle { width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; margin-right: -10px; }
.fx .fx-toggle span { display: block; width: 26px; height: 1.5px; background: var(--fx-white); transition: transform 0.45s var(--fx-ease); }
.fx .fx-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.fx .fx-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 1080px) { .fx .fx-list { display: flex; } .fx .fx-toggle { display: none; } }

/* Over a film: clear at the top of the page, solid once the page's own
   script adds .solid, and whenever a menu is open. */
.fx.fx-header--over { z-index: 50; background: transparent; }
.fx.fx-header--over::before { content: ""; position: absolute; inset: 0 0 -48px 0; z-index: -1; background: linear-gradient(rgba(11, 11, 13, 0.62), rgba(11, 11, 13, 0)); pointer-events: none; transition: opacity 0.4s; }
.fx.fx-header--over.solid, .fx.fx-header--over.fx-has-open, .fx-menu-open .fx.fx-header--over { background: var(--fx-ink); border-bottom-color: var(--fx-line); }
.fx.fx-header--over.solid::before, .fx.fx-header--over.fx-has-open::before, .fx-menu-open .fx.fx-header--over::before { opacity: 0; }

/* Phone menu */
.fx.fx-menu { position: fixed; inset: var(--fx-h) 0 0 0; z-index: 99; display: block; margin: 0; background: var(--fx-ink); overflow-y: auto; padding: 28px var(--fx-gut) 120px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.35s var(--fx-ease), transform 0.45s var(--fx-ease), visibility 0s linear 0.35s; }
.fx.fx-menu--over { z-index: 49; }
.fx-menu-open .fx.fx-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body.fx-menu-open { overflow: hidden; }
.fx .fx-menu-main a { display: block; font-family: var(--fx-display); font-size: 2.1rem; line-height: 1.15; padding: 9px 0; color: var(--fx-white); }
.fx.fx-menu h3 { font-family: var(--fx-label); font-weight: 600; font-size: var(--fx-t-label); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6; color: var(--fx-mute); margin: 30px 0 8px; }
.fx .fx-menu-sub a { display: block; font-family: var(--fx-body); font-size: 1.1rem; padding: 8px 0; border-bottom: 1px solid var(--fx-line); color: var(--fx-white); }
.fx.fx-menu .fx-btn { width: 100%; margin-top: 34px; }
@media (min-width: 1080px) { .fx.fx-menu { display: none; } }

/* Phone call bar (not on landing pages, which carry their own) */
.fx.fx-mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; margin: 0; padding: 10px var(--fx-gut) calc(10px + env(safe-area-inset-bottom)); background: var(--fx-ink); border-top: 1px solid var(--fx-line); transform: translateY(110%); transition: transform 0.5s var(--fx-ease); }
.fx.fx-mcta.fx-on { transform: none; }
.fx.fx-mcta .fx-btn { width: 100%; min-height: 50px; }
.fx-menu-open .fx.fx-mcta { transform: translateY(110%); }
@media (min-width: 800px) { .fx.fx-mcta { display: none; } }

/* Footer */
.fx.fx-footer { display: block; margin: 0; background: var(--fx-ink); color: var(--fx-white); font-size: 17px; border-top: 1px solid var(--fx-line); padding: clamp(64px, 9vw, 130px) 0 calc(40px + env(safe-area-inset-bottom)); }
.fx .fx-foot-tag { font-family: var(--fx-display); font-size: clamp(2.6rem, 9.4vw, 9rem); line-height: 0.95; letter-spacing: -0.025em; color: var(--fx-white); margin-bottom: clamp(48px, 7vw, 100px); }
.fx .fx-foot-tag span { display: inline-block; }
.fx .fx-foot-tag span + span { color: var(--fx-mute); }
.fx .fx-foot-tag span:last-child { color: var(--fx-red-hi); }
.fx .fx-foot-grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .fx .fx-foot-grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); } }
.fx .fx-foot-grid h3 { font-family: var(--fx-label); font-weight: 600; font-size: var(--fx-t-label); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6; color: var(--fx-mute); margin-bottom: 12px; }
.fx .fx-foot-grid li a { display: inline-block; padding: 4px 0; font-size: 1rem; }
.fx .fx-foot-grid li a:hover { text-decoration: underline; text-decoration-color: var(--fx-red); text-underline-offset: 0.2em; }
.fx .fx-foot-contact { grid-column: 1 / -1; display: grid; gap: 6px; align-content: start; }
@media (min-width: 900px) { .fx .fx-foot-contact { grid-column: auto; } }
.fx .fx-foot-contact a { font-family: var(--fx-display); font-size: var(--fx-t-h3); line-height: 1.6; }
.fx .fx-foot-contact a:hover { text-decoration: underline; text-decoration-color: var(--fx-red); text-underline-offset: 0.2em; }
.fx .fx-foot-contact p { color: var(--fx-mute); }
.fx .fx-foot-legal { margin-top: clamp(48px, 6vw, 84px); padding-top: 22px; border-top: 1px solid var(--fx-line); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.9rem; color: var(--fx-mute); }
.fx .fx-foot-legal a:hover { color: var(--fx-white); }
.fx .fx-foot-note { margin-top: 18px; max-width: 68ch; font-size: 0.9rem; color: var(--fx-mute); }
@media (max-width: 799px) { .fx.fx-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  .fx, .fx *, .fx *::before, .fx *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
@media print { .fx.fx-header, .fx.fx-menu, .fx.fx-mcta { display: none !important; } }
