/*
Theme Name: FastForward
Theme URI: https://fwdtech.co.uk
Author: FastForward
Description: Block theme for FastForward, a boutique health technology consultancy.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fastforward
*/

:root {
  --ff-paper: #F3F5F4;
  --ff-card: #FFFFFF;
  --ff-mist: #E4EBEA;
  --ff-ink: #0E2B3B;
  --ff-ink-soft: #1D4257;
  --ff-muted: #50636E;
  --ff-line: #C9D4D7;
  --ff-deep: #0E2B3B;
  --ff-saffron: #F0AE2E;
  --ff-on-dark: #EAF0F1;
  --ff-on-dark-muted: #A9BCC4;
  --ff-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ff-gutter: clamp(20px, 5vw, 48px);
  --ff-section: clamp(72px, 10vw, 136px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ff-paper: #0B1D27; --ff-card: #10283A; --ff-mist: #11293A; --ff-ink: #E8EFF0;
    --ff-ink-soft: #C9D6DA; --ff-muted: #9FB2BA; --ff-line: #2A4452; --ff-deep: #06131A;
  }
}
:root[data-theme="dark"] {
  --ff-paper: #0B1D27; --ff-card: #10283A; --ff-mist: #11293A; --ff-ink: #E8EFF0;
  --ff-ink-soft: #C9D6DA; --ff-muted: #9FB2BA; --ff-line: #2A4452; --ff-deep: #06131A;
}

body {
  margin: 0;
  background: var(--ff-paper);
  color: var(--ff-ink);
  font-family: var(--ff-text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.ff-wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--ff-gutter); box-sizing: border-box; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: inherit; margin: 0; line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ff-saffron); outline-offset: 3px; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

/* Header */
.ff-header { position: sticky; top: 0; z-index: 50; background: var(--ff-paper); border-bottom: 1px solid var(--ff-line); }
.ff-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.ff-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ff-ink); }
.ff-logo__mark { width: 32px; height: 21px; flex: none; }
.ff-logo__mark .a { fill: currentColor; }
.ff-logo__mark .b { fill: var(--ff-saffron); }
.ff-nav, .ff-static-nav { font-family: var(--ff-display); font-size: 1rem; font-weight: 500; }
.ff-nav .wp-block-navigation__container { gap: 28px; }
.ff-nav a, .ff-static-nav a { text-decoration: none; }
.ff-nav a:hover, .ff-static-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ff-static-nav { display: flex; align-items: center; gap: 28px; }
.ff-nav .wp-block-navigation-item:last-child > a,
.ff-static-nav a:last-child { background: var(--ff-ink); color: var(--ff-paper); padding: 10px 18px; border-radius: 4px; white-space: nowrap; }
.ff-nav .wp-block-navigation-item:last-child > a:hover,
.ff-static-nav a:last-child:hover { text-decoration: none; background: var(--ff-ink-soft); }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.ff-btn .wp-block-button__link {
  display: inline-block; background: var(--ff-ink); color: var(--ff-paper); border: 2px solid var(--ff-ink);
  font-family: var(--ff-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 15px 26px; border-radius: 4px; text-decoration: none;
}
.ff-btn .wp-block-button__link:hover { background: var(--ff-ink-soft); border-color: var(--ff-ink-soft); }
.ff-btn--ghost .wp-block-button__link { background: transparent; color: var(--ff-ink); }
.ff-btn--ghost .wp-block-button__link:hover { background: var(--ff-mist); border-color: var(--ff-ink); }

/* Hero */
.ff-hero { padding-block: clamp(64px, 9vw, 120px) clamp(64px, 8vw, 112px); }
.ff-hero__title { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; }
.ff-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; max-width: 40rem; margin-top: 28px; color: var(--ff-ink-soft); }
.ff-hero .wp-block-buttons { margin-top: 36px; }

/* The journey line: the one moving element on the page */
.ff-journey { position: relative; margin-top: clamp(56px, 8vw, 96px); }
.ff-journey__track { position: absolute; top: 10px; left: 0; right: 34px; height: 2px; background: var(--ff-line); }
.ff-journey__progress { position: absolute; inset: 0; background: var(--ff-ink); transform-origin: left; animation: ff-grow 2.2s cubic-bezier(.6,0,.2,1) .3s both; }
.ff-journey__marker { position: absolute; top: 0; right: 0; width: 34px; height: 22px; fill: var(--ff-saffron); animation: ff-arrive 2.2s cubic-bezier(.6,0,.2,1) .3s both; }
@keyframes ff-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ff-arrive { from { right: calc(100% - 34px); } to { right: 0; } }
.ff-stages { list-style: none; margin: 0; padding: 44px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.ff-stages li { position: relative; }
.ff-stages li::before { content: ""; position: absolute; top: -40px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ff-paper); border: 2px solid var(--ff-ink); }
.ff-stages strong { display: block; font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.ff-stages span { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.45; color: var(--ff-muted); }

/* Sections */
.ff-section { padding-block: var(--ff-section); }
.ff-section--mist { background: var(--ff-mist); }
.ff-section:not(.ff-section--mist):not(.ff-dark) + .ff-section:not(.ff-section--mist):not(.ff-dark) { padding-top: 0; }
.ff-dark { background: var(--ff-deep); color: var(--ff-on-dark); }
.ff-section__head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.ff-h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.025em; }
.ff-intro { color: var(--ff-muted); max-width: 36rem; }
.ff-dark .ff-intro { color: var(--ff-on-dark-muted); }

.ff-grid { display: grid; gap: clamp(28px, 3vw, 40px); }
.ff-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ff-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ff-item { border-top: 2px solid var(--ff-ink); padding-top: 20px; }
.ff-item h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.ff-item p { margin-top: 10px; font-size: 1.02rem; color: var(--ff-muted); }
.ff-item .ff-item__meta { margin-top: 6px; font-family: var(--ff-display); font-size: .95rem; font-weight: 600; color: var(--ff-ink-soft); }

/* Services */
.ff-practice { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(16px, 5vw, 80px); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--ff-line); }
.ff-practice:last-child { border-bottom: 1px solid var(--ff-line); }
.ff-practice h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; }
.ff-practice p { max-width: 38rem; }
.ff-tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ff-tags li { font-family: var(--ff-display); font-size: .9rem; font-weight: 500; line-height: 1.3; padding: 6px 12px; border: 1px solid var(--ff-line); border-radius: 999px; background: var(--ff-card); }
.ff-dark .ff-tags li { background: transparent; border-color: rgba(234,240,241,.28); color: var(--ff-on-dark); }

/* Approach */
.ff-step__num { font-family: var(--ff-display); font-size: 3rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; margin-bottom: 18px; }
.ff-item p.ff-step__num { margin-top: 0; color: var(--ff-ink); font-size: 3rem; }

/* Boutique statement */
.ff-mark { width: 52px; height: 34px; fill: var(--ff-saffron); display: block; margin-bottom: 32px; }
.ff-statement { font-family: var(--ff-display); font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; max-width: 26ch; }
.ff-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(32px, 5vw, 56px); color: var(--ff-on-dark-muted); }
.ff-columns p + p { margin-top: 1em; }
.ff-network-label { font-family: var(--ff-display); font-weight: 600; color: var(--ff-on-dark); }

/* Experience */
.ff-proof { border-top: 4px solid var(--ff-saffron); padding-top: 22px; }
.ff-proof p { font-size: 1.25rem; line-height: 1.5; }

/* Contact */
.ff-contact { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.ff-contact__title { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.ff-contact .wp-block-buttons { margin-top: 24px; }
.ff-small { margin-top: 16px; font-size: .95rem; color: var(--ff-muted); }

/* Footer */
.ff-footer { background: var(--ff-deep); color: var(--ff-on-dark-muted); padding-block: 48px; font-size: .92rem; }
.ff-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.ff-footer .ff-logo { color: var(--ff-on-dark); }
.ff-footer__legal { max-width: 44rem; }
.ff-footer__legal a { color: var(--ff-on-dark); }

/* Ordinary pages (privacy policy etc.) */
.ff-page { padding-block: clamp(56px, 8vw, 104px); }
.ff-prose { max-width: 820px; }
.ff-content { margin-top: 32px; }
.ff-content > * + * { margin-top: 1.1em; }
.ff-content h2 { margin-top: 2em; font-size: 1.6rem; }
.ff-content h3 { margin-top: 1.6em; font-size: 1.25rem; }

/* Responsive */
@media (max-width: 960px) {
  .ff-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ff-section__head, .ff-practice, .ff-contact, .ff-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ff-stages { grid-template-columns: 1fr; gap: 22px; padding: 0 0 0 32px; }
  .ff-stages li::before { top: 8px; left: -32px; }
  .ff-journey__track { top: 6px; bottom: 6px; left: 5px; right: auto; width: 2px; height: auto; background: var(--ff-ink); }
  .ff-journey__progress, .ff-journey__marker { display: none; }
  .ff-static-nav a:not(:last-child) { display: none; }
  .ff-static-nav a:last-child { padding: 9px 14px; font-size: .92rem; }
  .ff-logo { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .ff-grid--4, .ff-grid--3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ff-journey__progress, .ff-journey__marker { animation: none; }
}
