/* ============================================================
   POWER2ADAPT — BRAND SYSTEM
   Athletic Development Coaching & Consulting
   Melbourne, Australia
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Color — Core */
  --teal: #12d4c8;
  --orange: #FF6600;
  --dark-grey: #525759;
  --black: #000000;
  --blue-mid: #4096a2;
  --blue-bright: #359bee;
  --white: #ffffff;

  /* Color — Derived neutrals */
  --off-white: #f7f8f8;
  --light-grey: #e4e6e7;
  --mid-grey: #9aa0a2;

  /* Color — Semantic */
  --bg-page: var(--white);
  --bg-dark: var(--black);
  --bg-subtle: var(--off-white);
  --bg-fill: var(--blue-mid);
  --text-body: var(--dark-grey);
  --text-heading: var(--black);
  --text-on-dark: var(--white);
  --text-muted: var(--mid-grey);
  --link: var(--blue-bright);
  --accent-primary: var(--teal);
  --accent-energy: var(--orange);
  --border: var(--light-grey);

  /* Typography */
  --font-display: 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale (px) */
  --fs-caption: 14px;
  --fs-base: 16px;
  --fs-md: 20px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-2xl: 48px;
  --fs-3xl: 64px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container-max: 1200px;
  --gutter: 24px;

  /* Radius — used sparingly, athletic feel = sharper edges */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover {
  color: var(--teal);
}

ul,
ol {
  list-style: none;
}

/* ------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--subtle {
  background: var(--bg-subtle);
}

.section--fill {
  background: var(--bg-fill);
  color: var(--text-on-dark);
}

/* ------------------------------------------------------------
   4. TYPOGRAPHY SCALE
   ------------------------------------------------------------ */
.heading-xl,
.heading-lg,
.heading-md,
.heading-sm,
.eyebrow {
  font-family: var(--font-display);
  color: var(--teal);
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  text-transform: uppercase;
}

.heading-xl {
  font-size: var(--fs-3xl);
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: var(--fs-2xl);
}

.heading-md {
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}

.heading-sm {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  color: var(--orange);
}

.body-lg {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
}

.body {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}

.text-on-dark .heading-xl,
.text-on-dark .heading-lg,
.text-on-dark .heading-md,
.text-on-dark .heading-sm,
.section--dark .heading-xl,
.section--dark .heading-lg,
.section--dark .heading-md,
.section--dark .heading-sm {
  color: var(--teal);
}

.section--dark .body-lg,
.section--dark .body {
  color: var(--light-grey);
}

/* Inline accents */
.accent-orange { color: var(--orange); }
.accent-teal { color: var(--teal); }

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: #FF8533;
  border-color: #FF8533;
  color: var(--black);
}

.btn-secondary {
  background: var(--teal);
  color: var(--black);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background: #2ee9dd;
  border-color: #2ee9dd;
  color: var(--black);
}

/* Ghost defaults to dark surfaces (white outline). 
   Add .btn-ghost--dark when placing on a light surface. */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
}

.btn-ghost--dark {
  color: var(--black);
  border-color: var(--black);
}

.btn-ghost--dark:hover {
  background: var(--black);
  color: var(--white);
}

/* ------------------------------------------------------------
   6. CARD
   ------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.card__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  text-transform: uppercase;
  color: var(--black);
  line-height: var(--lh-snug);
}

.card__body {
  color: var(--text-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.card__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 600;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
}

/* ------------------------------------------------------------
   7. NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo {
  height: 64px;
  width: auto;
  display: block;
}

.footer__logo {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: var(--space-5);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 6px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--t-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--teal);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link.is-active {
  color: var(--teal);
}

.nav__cta {
  /* uses .btn .btn-primary inline */
  padding: 10px 20px;
  font-size: var(--fs-caption);
}

/* ------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--black);
  color: var(--light-grey);
  padding: var(--space-8) 0 var(--space-6);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer__brand .accent { color: var(--teal); }
.footer__brand .pulse { color: var(--orange); }

.footer__tag {
  font-size: var(--fs-caption);
  color: var(--mid-grey);
  max-width: 28ch;
  line-height: var(--lh-normal);
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: var(--space-4);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  color: var(--light-grey);
  font-size: var(--fs-caption);
}

.footer__link:hover {
  color: var(--orange);
}

.footer__bottom {
  max-width: var(--container-max);
  margin: var(--space-7) auto 0;
  padding: var(--space-5) var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-caption);
  color: var(--mid-grey);
}

/* ------------------------------------------------------------
   9. UTILITIES
   ------------------------------------------------------------ */
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.stack-xl > * + * { margin-top: var(--space-7); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.text-center { text-align: center; }
.max-prose { max-width: 60ch; }

.divider {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--orange);
  border: 0;
  margin: var(--space-4) 0;
}

/* ------------------------------------------------------------
   10. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --fs-3xl: 44px;
    --fs-2xl: 36px;
    --fs-xl: 26px;
    --space-9: 64px;
    --space-8: 48px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav__menu {
    gap: var(--space-4);
  }

  .nav__menu .nav__link:not(.nav__cta) {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-3xl: 36px;
    --fs-2xl: 28px;
    --fs-xl: 22px;
    --gutter: 16px;
    --space-9: 48px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .btn {
    padding: 12px 22px;
    font-size: var(--fs-caption);
  }
}
