/*!
Theme Name: Free Agent
Theme URI: http://underscores.me/
Author: Appomate
Author URI: https://www.appomate.com.au/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: free-agent
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Free Agent is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* =========================================================
   APPEND everything below to your theme's existing style.css —
   AFTER the required WordPress theme header comment block.
   This is the ONLY stylesheet for the whole site: tokens, reset,
   header, footer, and the homepage hero/ticker all live here.
   ========================================================= */

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-off-white: #F9F9F9;
  --color-grey-mid: #9B9B9B;
  --color-grey-soft: #A3A3A3;
  --color-orange: #FF3D1A;
  --color-orange-2: #F16001;
  --color-red: #C10801;
  --color-black: #0A0A0A;
  --color-hairline: rgba(255, 255, 255, 0.07);
  --color-hairline-strong: rgba(255, 255, 255, 0.11);
  --color-fill-soft: rgba(255, 255, 255, 0.05);

  --gradient-logo: linear-gradient(30.8deg, #FFFFFF 0%, #F16001 33.7%, #C10801 66.3%, #000000 100%);
  --gradient-cta: linear-gradient(60deg, #F16001 0%, #C10801 100%);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --space-1: 4px;
  --space-2: 6px;
  --space-3: 7px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 13px;
  --space-7: 16px;
  --space-8: 18px;
  --space-9: 20px;
  --space-10: 24px;
  --space-11: 26px;
  --space-12: 28px;
  --space-13: 36px;
  --space-14: 40px;

  --radius-sm: 6px;
  --radius-md: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms ease;
  --transition-smooth: 420ms var(--ease);

  --nav-height: 64px;
  --content-max: 1440px;
}

@media (min-width: 1024px) {
  :root { --nav-height: 70px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-off-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
* { min-width: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-off-white);
  color: var(--color-black);
  padding: var(--space-5) var(--space-7);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: left var(--transition-fast);
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

/* ---------- Shared buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: 44px;
  padding: var(--space-5) var(--space-10);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), opacity var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--gradient {
  background: var(--gradient-cta);
  color: var(--color-off-white);
}
.btn--gradient:hover {
  box-shadow: 0 8px 24px -8px rgba(241, 96, 1, 0.6);
  transform: translateY(-1px);
}

.btn--outline {
  width: 100%;
  border: 1.5px solid var(--color-off-white);
  background: transparent;
  color: var(--color-off-white);
  font-size: 14px;
  letter-spacing: 1px;
  padding: var(--space-9) var(--space-7);
  justify-content: space-between;
}
.btn--outline:hover {
  background: var(--color-off-white);
  color: var(--color-black);
}
.btn__icon-unlock {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.btn__icon-unlock svg { width: 100%; height: 100%; display: block; }
.btn__icon-unlock svg path { transition: stroke var(--transition-fast); }
.btn--outline:hover .btn__icon-unlock svg path { stroke: var(--color-black); }

.btn--split {
  width: 100%;
  min-height: 52px;
  background: var(--color-fill-soft);
  border: 1px solid var(--color-hairline-strong);
  color: var(--color-off-white);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 0 var(--space-2) 0 var(--space-8);
  justify-content: space-between;
}
.btn--split:hover { background: rgba(255, 255, 255, 0.09); }
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-orange);
  color: var(--color-black);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.btn--split:hover .btn__icon {
  transform: translateX(3px);
  background: var(--color-orange-2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--color-black);
  height: var(--nav-height);
}
.site-header__divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-hairline-strong);
}
.site-header__inner {
  position: relative;
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-10);
}

.site-logo { display: flex; align-items: center; }
.site-logo img { height: 32px; width: auto; }

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-12);
}
.site-nav a {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-grey-mid);
  transition: color var(--transition-fast);
  padding: var(--space-2) 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--color-off-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
}
.site-nav a:hover { color: var(--color-off-white); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-header__cta { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--color-off-white);
  border-radius: 1px;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 90;
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  gap: var(--space-13);
  padding: var(--space-13) var(--space-10);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-off-white);
}
.mobile-menu__cta { width: 100%; }

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-hairline);
  padding: var(--space-13) var(--space-10);
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
}
.site-footer__links a {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-grey-mid);
  transition: color var(--transition-fast);
}
.site-footer__links a:hover { color: var(--color-off-white); }
.site-footer__copyright {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-grey-soft);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Hero (homepage only, front-page.php) ---------- */
.hero {
  position: relative;
  width: 100%;
  background: var(--color-black);
  overflow: hidden;
}

.hero .hero__glow {
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.hero .hero__glow svg { width: 100%; height: 100%; display: block; }

.hero .hero__glow--one {
  width: clamp(220px, 45vw, 654px);
  aspect-ratio: 654 / 615;
  top: auto;
  bottom: -4%;
  right: -50%;
}
.hero .hero__glow--two {
  width: clamp(180px, 38vw, 377px);
  aspect-ratio: 377 / 361;
  top: auto;
  bottom: -10%;
  right: -34%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-9);
  padding: var(--space-13) var(--space-10) var(--space-14);
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.hero.is-visible .hero__copy {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.58px;
  text-transform: uppercase;
  color: var(--color-off-white);
}

.hero__heading {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 12vw, 94.52px);
  line-height: 0.93;
  letter-spacing: -0.03em;
}
.line--white { color: var(--color-off-white); }
.line--orange { color: var(--color-orange); }

.hero__sub {
  margin: 0;
  max-width: 400px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-off-white);
}

.hero__form {
  width: 100%;
  max-width: 342px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cta-row { width: 100%; }
.cta-row--desktop { display: none; }
.cta-row--mobile { display: block; }

.hero__count {
  margin: 0;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-grey-soft);
}

.hero__art {
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}
.hero.is-visible .hero__art { opacity: 1; }
.hero__art picture,
.hero__art img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 293;
  object-fit: contain;
  transition: transform 600ms var(--ease);
  transform: scale(1.03);
}
/* .hero__art:hover img { transform: scale(1.02); } */

.hero__copyright { display: none; }

.hero__divider {
  position: relative;
  z-index: 1;
  height: 1px;
  width: 100%;
  background: var(--color-hairline);
}

@media (min-width: 1024px) {
  .hero .hero__glow--one { top: -18%; bottom: auto; right: -8%; }
  .hero .hero__glow--two { top: -30%; bottom: auto; right: -2%; }

  .hero__inner {
    flex-direction: row;
    align-items: stretch;
    min-height: clamp(560px, 56vw, 819px);
  }
  .hero__copy {
    width: 44%;
    min-width: 420px;
    justify-content: center;
    padding: var(--space-13) 0 var(--space-13) var(--space-10);
  }
  .hero__sub { max-width: 361px; }
  .cta-row--desktop { display: block; }
  .cta-row--mobile { display: none; }
  .hero__art { width: 56%; }
  .hero__art picture,
  .hero__art img {
    height: 100%;
    aspect-ratio: auto;
    min-height: clamp(500px, 51vw, 836px);
  }
  .hero__copyright {
    display: block;
    position: absolute;
    right: var(--space-10);
    bottom: var(--space-10);
    z-index: 2;
    margin: 0;
    font-size: 10px;
    letter-spacing: 1.6px;
    color: var(--color-grey-soft);
    text-align: right;
  }
}

@media (min-width: 1280px) {
  .hero__copy {
    padding-left: max(var(--space-10), calc((100vw - var(--content-max)) / 2 + 40px));
  }
}

/* ---------- Ticker ---------- */
.ticker {
  width: 100%;
  overflow: hidden;
  background: var(--color-orange);
  padding: var(--space-9) 0;
  border-top: 1px solid var(--color-hairline);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: hero-scroll-left 32s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}
@keyframes hero-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: var(--space-11);
  padding-right: var(--space-11);
  flex-shrink: 0;
}
.ticker__item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--color-white);
  white-space: nowrap;
}
.ticker__dot {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 9px;
  color: var(--color-white-70);
}
@media (min-width: 1024px) {
  .ticker { padding: var(--space-10) 0; }
  .ticker__group { gap: var(--space-13); padding-right: var(--space-13); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy,
  .hero__art {
    opacity: 1;
    transform: none;
  }
}