/*
 * FireCycle – site stylesheet (bricks-child/assets/css/site-custom.css)
 * Layout, spacing, colour and type live in Bricks global classes (fc-*) + theme style.
 * This file holds only what Bricks controls can't express cleanly:
 * fonts, hero video layering, nav-menu internals, vertical labels, drop shadows,
 * interaction states, focus styles and reduced-motion support.
 * Tokens: Core Framework variables (--primary, --space-*, --text-*, --radius-*).
 */

/* ---------- 1. Fonts ---------- */
/* Montserrat (SIL OFL) – self-hosted variable font, latin subset. Footer details only. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fc-ease: cubic-bezier(.2, .7, .2, 1);
  --fc-speed: 200ms;
  --fc-stripe: 2.5rem; /* black bands above/below the CTA */
  --fc-font-detail: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-padding-top: 12rem; }

/* ---------- 2. Header ---------- */
.fc-nav .bricks-nav-menu { gap: var(--space-m); }
.fc-nav .bricks-nav-menu > li > a {
  position: relative;
  padding-block: .6rem;
  font-size: var(--text-m);
  font-weight: 400;
  color: var(--text-title);
  transition: color var(--fc-speed) ease;
}
.fc-nav .bricks-nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--fc-speed) var(--fc-ease);
}
.fc-nav .bricks-nav-menu > li > a:hover,
.fc-nav .bricks-nav-menu > .current-menu-item > a { color: var(--primary); }
.fc-nav .bricks-nav-menu > li > a:hover::after,
.fc-nav .bricks-nav-menu > .current-menu-item > a::after { transform: scaleX(1); }

/* "Contact Us" menu item: desktop shows the button instead, mobile menu shows the item */
.fc-nav .bricks-nav-menu > .fc-menu-contact { display: none; }

/* Mobile menu (opens at tablet portrait) */
.fc-nav .bricks-mobile-menu-toggle { color: var(--text-title); }
.fc-nav .bricks-mobile-menu-wrapper { background-color: var(--bg-body); box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
.fc-nav .bricks-mobile-menu-wrapper:before { background-color: var(--bg-body); }
.fc-nav .bricks-mobile-menu > li > a {
  color: var(--text-title);
  font-size: var(--text-l);
  padding: var(--space-xs) var(--space-l);
  transition: color var(--fc-speed) ease, background-color var(--fc-speed) ease;
}
.fc-nav .bricks-mobile-menu > li > a:hover,
.fc-nav .bricks-mobile-menu > .current-menu-item > a { color: var(--primary); background-color: var(--primary-5); }
.fc-nav .bricks-mobile-menu-wrapper .bricks-mobile-menu-toggle { color: var(--text-title); }

/* Sticky state shadow is set in the header template; keep logo crisp */
.fc-header__logo img { display: block; height: auto; }

/* ---------- 3. Hero ---------- */
.fc-hero { isolation: isolate; overflow: hidden; }
.fc-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.fc-hero--video-ready .fc-hero__video { opacity: 1; }
/* White fade from the header (PSD) + soft left wash so the black H1 stays legible over video */
.fc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .85) 5%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(90deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .2) 45%, rgba(255, 255, 255, 0) 65%);
}
.fc-hero__text { text-shadow: 0 1px 12px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .35); }

/* Pause/play control for the background video (WCAG 2.2.2) */
.fc-hero__video-toggle {
  position: absolute;
  right: var(--space-m);
  bottom: var(--space-m);
  z-index: 3;
  width: 4.4rem;
  height: 4.4rem;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--fc-speed) ease;
}
.fc-hero__video-toggle::before { /* pause icon */
  content: "";
  width: 1.2rem;
  height: 1.4rem;
  border-left: .4rem solid currentColor;
  border-right: .4rem solid currentColor;
}
.fc-hero--video-paused .fc-hero__video-toggle::before { /* play icon */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: .8rem 0 .8rem 1.3rem;
  border-color: transparent transparent transparent currentColor;
  margin-left: .3rem;
}
.fc-hero__video-toggle:hover { background: rgba(0, 0, 0, .7); }

/* ---------- 4. Buttons ---------- */
.fc-btn {
  transition: background-color var(--fc-speed) ease, color var(--fc-speed) ease,
    border-color var(--fc-speed) ease, transform var(--fc-speed) var(--fc-ease),
    box-shadow var(--fc-speed) ease;
}
@media (hover: hover) and (pointer: fine) {
  .fc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
}

/* ---------- 5. About ---------- */
.fc-about__strip { transition: transform 300ms var(--fc-ease), box-shadow 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .fc-about__strip:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
}

/* ---------- 6. Collect cards ---------- */
.fc-collect-card { transition: transform var(--fc-speed) var(--fc-ease), box-shadow var(--fc-speed) ease, border-color var(--fc-speed) ease; }
.fc-collect-card__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.fc-collect-card__image {
  filter: drop-shadow(0 0 0 transparent);
  transition: transform 300ms var(--fc-ease);
  transform-origin: center bottom;
}
@media (hover: hover) and (pointer: fine) {
  .fc-collect-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); border-color: var(--primary-d-1); }
  .fc-collect-card:hover .fc-collect-card__image { transform: translateY(-6px) rotate(-2deg); }
}

/* ---------- 7. CTA band ---------- */
.fc-cta__extinguisher { filter: drop-shadow(1.8rem 2.2rem 2.4rem rgba(0, 0, 0, .35)); }

/* ---------- 8. Footer ---------- */
.fc-footer a { transition: color var(--fc-speed) ease, opacity var(--fc-speed) ease; }
.fc-footer__nav a:hover,
.fc-footer__contact-link:hover { color: var(--primary); }
.fc-footer__social a:hover { color: var(--primary); }

/* ---------- 9. In-between widths (Bricks has no 992–1199px breakpoint) ---------- */
.fc-nav .bricks-nav-menu > li > a { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) {
  .brxe-logo.fc-header__logo { width: 20rem; }
  .fc-nav .bricks-nav-menu { gap: var(--space-s); }
  .brxe-button.fc-header__cta { min-width: 0; }
  .brxe-block.fc-header__actions { column-gap: var(--space-m); }
  .brxe-logo.fc-footer__logo { width: 20rem; }
  .brxe-block.fc-footer__nav { column-gap: var(--space-m); }
  .fc-footer__top .brxe-button.fc-btn { min-width: 0; }
}
/* Collect cards: images overhang the card top by ~29% of card height, so row gaps must clear it */
@media (max-width: 1199px) {
  .brxe-block.fc-collect__grid { grid-template-columns: var(--columns-2); max-width: 76rem; row-gap: 15rem; margin-top: 15rem; }
}
@media (max-width: 767px) {
  .fc-collect__title br { display: none; }
  .brxe-block.fc-collect__grid { margin-top: 12rem; row-gap: 13rem; }
}
@media (max-width: 478px) {
  .brxe-block.fc-collect__grid { grid-template-columns: var(--columns-1); max-width: 36rem; }
}

/* ---------- 10. Focus + motion ---------- */
.fc-btn:focus-visible,
.fc-nav a:focus-visible,
.fc-footer a:focus-visible,
.fc-hero__video-toggle:focus-visible,
.fc-nav .bricks-mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.fc-cta .fc-btn:focus-visible { outline-color: #000; }

@media (prefers-reduced-motion: reduce) {
  .fc-btn,
  .fc-about__strip,
  .fc-collect-card,
  .fc-collect-card__image,
  .fc-hero__video,
  .fc-nav .bricks-nav-menu > li > a::after { transition: none !important; } /* !important: override Bricks/element transitions */
  .fc-btn:hover,
  .fc-about__strip:hover,
  .fc-collect-card:hover,
  .fc-collect-card:hover .fc-collect-card__image { transform: none; }
}
