/* ==========================================================================
   MAXIMUM FILMSHOP — Film Types page
   Ported from the Claude Design project file FilmTypes.dc.html.

   The design file carries most of its styling inline; that is preserved in
   index.html so the port stays 1:1. This sheet holds the three things inline
   styles cannot express:
     1. the design's own <style> block (verbatim)
     2. :hover / ::before rules the DC runtime synthesised from the
        style-hover= and style-before= attributes
     3. the final footer layout, which the design produced at runtime by
        mutating the design-system <Footer> from componentDidMount
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Verbatim from the design file's <style> block
   -------------------------------------------------------------------------- */

body { margin: 0; background: var(--color-canvas); }
a { color: var(--color-ink); }
a:hover { color: var(--color-body); }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 720ms cubic-bezier(.2,.7,.2,1), transform 720ms cubic-bezier(.2,.7,.2,1);
}
[data-reveal].mx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.mx-apps::-webkit-scrollbar { height: 8px; }
.mx-apps::-webkit-scrollbar-thumb { background: var(--color-hairline); border-radius: 999px; }

.mx-appcard { transition: transform 460ms cubic-bezier(.2,.7,.2,1); }
.mx-appcard:hover { transform: translateY(-6px); }

.mx-jbtn { transition: all 200ms cubic-bezier(.2,.7,.2,1); }
.mx-jbtn:hover { transform: translateY(-2px); }

@media (max-width: 960px) {
  .mx-2c { grid-template-columns: 1fr !important; }
  .mx-sticky { position: static !important; }
  :root { --gutter-desktop: 24px; }
}
@media (max-width: 560px) {
  :root { --gutter-desktop: 20px; }
  h1 { font-size: 2.2rem !important; }
}
@media (max-width: 960px) {
  .mx-nav-desktop { display: none !important; }
  .mx-nav-burger { display: inline-flex !important; }
}

/* --------------------------------------------------------------------------
   2. Interactive states
   The DC runtime turned style-hover="…" into a :hover rule and
   style-before="…" into a ::before rule. Same declarations, real CSS.
   -------------------------------------------------------------------------- */

/* AR section — "View Details" (mint) */
.mx-btn-mint {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.75);
  background: linear-gradient(180deg, #eafbe9 0%, #ADEBB3 42%, #93d8c4 100%);
  color: var(--color-ink);
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.9),
    inset 0 -6px 12px rgba(36,48,71,.14),
    0 0 0 5px rgba(173,235,179,.28),
    0 8px 20px rgba(36,48,71,.14);
  transition: transform 160ms cubic-bezier(.2,.7,.2,1), box-shadow 160ms;
}
.mx-btn-mint:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.9),
    inset 0 -6px 12px rgba(36,48,71,.14),
    0 0 0 5px rgba(173,235,179,.4),
    0 12px 26px rgba(36,48,71,.2);
}

/* AR section — "Request Specification" (sky) */
.mx-btn-sky {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.75);
  background: linear-gradient(180deg, #f2f6fd 0%, #ADC6EB 48%, #9cb4de 100%);
  color: var(--color-ink);
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.9),
    inset 0 -6px 12px rgba(36,48,71,.14),
    0 0 0 5px rgba(173,198,235,.28),
    0 8px 20px rgba(36,48,71,.12);
  transition: transform 160ms cubic-bezier(.2,.7,.2,1), box-shadow 160ms;
}
.mx-btn-sky:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.9),
    inset 0 -6px 12px rgba(36,48,71,.14),
    0 0 0 5px rgba(173,198,235,.4),
    0 12px 26px rgba(36,48,71,.18);
}

/* Film Journey CTAs — glossy pills with a highlight sliver on ::before */
.mx-jbtn-blue,
.mx-jbtn-lav {
  position: relative;
  overflow: hidden;
  border: none;
  color: var(--color-ink);
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
}
.mx-jbtn-blue {
  cursor: pointer;
  background: linear-gradient(180deg, #d9e6f8 0%, #ADC6EB 48%, #93b4e2 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.95),
    inset 0 -6px 10px rgba(96,136,196,.4),
    0 6px 16px rgba(173,198,235,.75);
}
.mx-jbtn-lav {
  text-decoration: none;
  background: linear-gradient(180deg, #ece9fb 0%, #cfcaf3 48%, #B3ADEB 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.95),
    inset 0 -6px 10px rgba(126,116,204,.35),
    0 6px 16px rgba(179,173,235,.7);
}
.mx-jbtn-blue::before,
.mx-jbtn-lav::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 7%;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  pointer-events: none;
}

/* Film Selector — answer buttons */
.mx-selopt {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.9);
  color: var(--color-ink);
  border-radius: 999px;
  padding: 14px 20px 14px 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(36,48,71,.07);
}
.mx-selopt:hover {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}

/* FAQ cards */
.mx-faq {
  position: relative;
  background: linear-gradient(165deg, #f4f7fc 0%, #dfe8f6 55%, #d3dff2 100%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(36,48,71,.07);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms cubic-bezier(.2,.7,.2,1);
}
.mx-faq:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(36,48,71,.13);
}
@media (max-width: 640px) {
  .mx-film-faq-panel { padding: 24px 20px !important; }
  .mx-film-faq-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .mx-film-faq-grid > .mx-faq {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 22px !important;
  }
}

/* --------------------------------------------------------------------------
   3. Footer
   The design imported the design-system <Footer> and then rewrote it on mount
   (swapLogo in componentDidMount): the text lockup became the two logo images,
   and the menu column became a full-width row sitting under brand + contact.
   That end state is expressed directly here — no DOM mutation needed.
   -------------------------------------------------------------------------- */

.mx-footer {
  background: var(--color-surface);
  border-top: var(--border-hairline);
  padding: 48px 0 32px;
}
.mx-footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.mx-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mx-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mx-footer-brand p {
  margin: 0;
  font-size: .875rem;
  font-weight: 350;
  max-width: 32ch;
}
.mx-footer-tagline {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--color-body);
}
.mx-footer-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.mx-footer-nav a {
  color: var(--color-body);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 350;
  padding: 4px 0;
}
.mx-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mx-footer-contact p {
  margin: 0;
  font-size: .9375rem;
  font-weight: 350;
}
.mx-footer-contact p:last-child { line-height: 1.6; }
.mx-footer-grid .eyebrow { margin-bottom: 4px; }
.mx-footer-legal {
  max-width: var(--content-max);
  margin: 24px auto 0;
  padding: 16px var(--gutter-desktop) 0;
  border-top: var(--border-hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .75rem;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  color: var(--color-body);
}
/* Above 760px the design put the menu row below brand + contact. */
@media (min-width: 761px) {
  .mx-footer-nav { grid-row: 2; }
  .mx-footer-contact { grid-column: 3; grid-row: 1; }
}

/* --------------------------------------------------------------------------
   Port-only additions
   Behaviour React gave the original for free, or defects that would ship as
   dead UI in a static page. Nothing here changes the visual design.
   -------------------------------------------------------------------------- */

/* Keyboard focus. The design relied on UA defaults; --focus-ring is a design
   system token that was never wired up, so wire it up. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* The apps rail is horizontally scrollable, so it is a focusable region. */
.mx-apps:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 4px; }

/* A photo that fails to load leaves the design's tinted panel showing
   instead of a broken-image glyph. */
img.mx-img-missing { visibility: hidden; }

/* Journey blocks are stacked in one grid cell and cross-faded by JS. This is
   their pre-script state, so the five never flash on top of each other before
   filmtypes.js runs. JS then drives them with inline styles, which win. */
.mx-journey-block { opacity: 0; transform: translateY(28px); pointer-events: none; }
.mx-journey-block[data-journey-block="0"] { opacity: 1; transform: none; pointer-events: auto; }

/* Modal: lock background scroll while it is open. */
body.mx-modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Header / nav
   These were per-element inline styles in the design (the nav was built by a
   sc-for that stamped an `active` flag into the style string). Same
   declarations, expressed as a class plus an is-active modifier.
   -------------------------------------------------------------------------- */

.mx-nav-link {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 350;
  color: var(--color-ink);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all 200ms;
}
.mx-nav-link.is-active {
  font-weight: 600;
  border-bottom-color: var(--color-ink);
}

/* The panel's own display must lose to the hidden attribute, so `hidden` is
   restated here — an author `display: flex` otherwise beats the UA
   [hidden] { display: none } rule and the menu shows at every width. */
.mx-mobile-nav {
  background: #fff;
  border-bottom: 1px solid var(--color-hairline);
  box-shadow: var(--shadow-float);
  padding: 12px var(--gutter-mobile) 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mx-mobile-nav[hidden] { display: none; }

.mx-nav-mlink {
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 350;
  font-size: 1.05rem;
  color: var(--color-ink);
  padding: 12px 14px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 12px;
  display: flex;
  align-items: center;
}
.mx-nav-mlink.is-active { font-weight: 600; }

.mx-cta-ink {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
}
.mx-cta-ink:hover { color: #fff; }
