/**
 * Site stylesheet for blaazinsoftware.com: the single stylesheet every page loads.
 *
 * Replaces the Porto 4.4.0 theme (Bootstrap, jQuery plugins, ~20 vendor stylesheets per page)
 * with one file and no build step, on the pattern of sportsplanr/website. Approved as a homepage
 * mockup (docs/rebuild/mockup/index.html) before being split out here.
 *
 * Design tokens come from the brand kit in blaazin_modern_minimal_primary_orange_fixed/: Midnight
 * Navy as the base, Blaze Orange as the one accent, Slate Gray for secondary text. Energy Amber
 * and Blaze Red appear only inside the mark's gradient (img/brand/blaazin-mark.svg), never as
 * interface colours.
 *
 * Paths: every url() is root-relative, because 404.html is served for any missing path, including
 * nested ones, and a relative url() would resolve against a directory that does not exist.
 */

/* ---- Fonts ------------------------------------------------------------------------------- */
/* Self-hosted, latin subset, variable weights. See fonts/LICENSE.md for sources and licence.
   `swap` shows text in the fallback font at once rather than hiding it while the file loads. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/outfit-latin-500-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-400-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-italic-400.woff2) format('woff2');
}

/* ---- Tokens ------------------------------------------------------------------------------ */
:root {
  --navy: #101B32;
  --navy-deep: #0A1224;          /* footer: one step darker than the navy bands above it */
  --orange: #FF5A12;
  --orange-dark: #D9480B;        /* hover state and orange text on white: 4.6:1, passes AA */
  --slate: #626A75;
  --ink: #1C2433;                /* body text on white */
  --on-navy: #D5DAE4;            /* body text on navy: 11:1 */
  --on-navy-muted: #AEB6C6;
  --paper: #FFFFFF;
  --mist: #F4F5F8;               /* alternate section background */
  --line: #E3E6EC;
  --radius: 10px;
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  --gutter: 24px;
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* ---- Base -------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* No `scroll-behavior: smooth` on html: in Chromium it stopped links such as
   /services.html#support from landing on their section when arriving from another page. */
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff; padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Buttons ----------------------------------------------------------------------------- */
.btn { display: inline-block; font: 600 1rem/1 var(--body); text-decoration: none; padding: 14px 22px; border-radius: 999px; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }

/* ---- Header ------------------------------------------------------------------------------ */
.site-header { background: var(--navy); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
/* Stand-in lettering until the designer's wordmark vector is available (content brief §9). */
.brand-name { font-family: var(--display); line-height: 1; }
.brand-name b { display: block; font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.brand-name span { display: block; font-weight: 500; font-size: .62rem; letter-spacing: .42em; margin-top: 4px; opacity: .85; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.nav ul a:not(.btn) { text-decoration: none; opacity: .9; }
.nav ul a:not(.btn):hover, .nav ul a[aria-current="page"] { opacity: 1; color: var(--orange); }
.nav .btn { padding: 10px 18px; }
/* On phones only the contact button stays; the footer repeats every page link, so nothing is
   unreachable, and a six-page site does not earn a hamburger menu. */
@media (max-width: 760px) { .nav ul li:not(:last-child) { display: none; } }

/* ---- Hero and page headers --------------------------------------------------------------- */
.hero, .page-head { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero { padding: 72px 0 96px; }
.page-head { padding: 56px 0 64px; }
.hero::after, .page-head::after { /* the mark, oversized and faint, as the only decoration */
  content: ""; position: absolute; right: -80px; top: -20px; width: 520px; height: 520px;
  background: url(/img/brand/blaazin-mark.svg) no-repeat center / contain; opacity: .07; pointer-events: none;
}
.page-head::after { width: 360px; height: 360px; top: -60px; }
.hero h1 { font: 700 clamp(2.4rem, 5.5vw, 4rem)/1.08 var(--display); letter-spacing: -.01em; margin: 0 0 24px; max-width: 14ch; }
.page-head h1 { font: 700 clamp(2rem, 4.5vw, 3rem)/1.1 var(--display); margin: 0 0 16px; max-width: 20ch; }
.hero h1 em, .page-head h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 1.3rem; max-width: 36rem; margin: 0 0 36px; color: var(--on-navy); }
.page-head p { font-size: 1.2rem; max-width: 40rem; margin: 0; color: var(--on-navy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Sections ---------------------------------------------------------------------------- */
section { padding: 88px 0; }
section.tint { background: var(--mist); }
.eyebrow { font: 600 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark); margin: 0 0 14px; }
h2 { font: 700 clamp(1.8rem, 3.6vw, 2.5rem)/1.15 var(--display); margin: 0 0 16px; color: var(--navy); }
h3 { font-family: var(--display); color: var(--navy); }
.lede { color: var(--slate); max-width: 40rem; margin: 0 0 48px; }
.text-link { font-weight: 600; color: var(--orange-dark); }

/* ---- Offering cards ---------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: #fff; }
.num { font: 700 .95rem/1 var(--display); color: var(--orange-dark); }
.card h3 { font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin: 14px 0 10px; }
/* Card titles link to their Services section; they read as headings until hovered. */
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--orange-dark); text-decoration: underline; }
/* The problem each offering solves, stated in one line under its title. */
.card .problem, .offering .problem { font-style: italic; color: var(--slate); margin: 0 0 12px; }
.card p { margin: 0; }
.support-strip { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--mist); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- Services page: one block per offering ----------------------------------------------- */
.offering { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.offering:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .offering { grid-template-columns: 1fr; gap: 16px; } }
.offering h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 10px; }
.offering ul { margin: 0 0 16px; padding-left: 1.2em; }
.offering li { margin-bottom: 6px; }
.offering h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.offering h3:first-child { margin-top: 0; }
.offering p { margin: 0 0 12px; }

/* ---- Work -------------------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -20px rgba(16,27,50,.35); border: 1px solid var(--line); background: #fff; }
.shot-bar { height: 28px; background: var(--line); display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9CED8; }
.work-grid h2, .work-grid h3.project { font: 700 1.8rem/1.2 var(--display); color: var(--navy); margin: 0 0 14px; }
.work-grid p { margin: 0 0 16px; }
.fact { border-left: 3px solid var(--orange); padding-left: 14px; color: var(--slate); }
.links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.tech { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 1rem; }
.tech h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: var(--slate); }
.tech ul { margin: 0; padding-left: 1.2em; }

/* ---- Process steps ----------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before { content: "0" counter(step); font: 700 .95rem/1 var(--display); color: var(--orange-dark); }
.steps h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin: 10px 0 8px; }
.steps p { margin: 0; color: var(--slate); }

/* ---- Long-form text (About, Privacy) ----------------------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--orange-dark); font-weight: 600; }
.updated { color: var(--slate); font-size: 1rem; }

/* ---- Contact band and footer ------------------------------------------------------------- */
.contact { background: var(--navy); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: var(--on-navy); max-width: 34rem; margin: 0 auto 32px; }
.contact .where { margin-top: 28px; margin-bottom: 0; font-size: 1rem; color: var(--on-navy-muted); }
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .95rem; padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a, .site-footer button { color: #fff; }
/* "Cookie settings" is a button (it acts, it does not navigate) styled as a footer link. */
.site-footer button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---- Consent banner (js/analytics.js) ---------------------------------------------------- */
.consent-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000;
  width: min(720px, calc(100% - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--navy); color: #fff; border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
}
.consent-text { flex: 1 1 320px; margin: 0; font-size: .95rem; line-height: 1.5; color: var(--on-navy); }
.consent-text a { color: #fff; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
/* 44px minimum: WCAG 2.5.5 touch target. */
.consent-btn { min-width: 44px; min-height: 44px; padding: 0 18px; font: 600 .95rem/1 var(--body); border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; }
.consent-accept { background: var(--orange); color: #fff; }
.consent-accept:hover { background: var(--orange-dark); }
.consent-decline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.consent-decline:hover { background: rgba(255,255,255,.12); }
@media (max-width: 575px) { .consent-banner { flex-direction: column; align-items: stretch; } .consent-actions > * { flex: 1; } }

/* ---- Work page: SportsPlanr, the flagship product ------------------------------------------ */
/* SportsPlanr gets a band of its own rather than the standard two-column block: it is the
   strongest evidence on the site that Blaazin builds and runs software for the long term.
   navy-deep, not navy, so it reads as a separate band below the navy page head. */
.flagship { background: var(--navy-deep); color: #fff; padding-bottom: 72px; border-top: 1px solid rgba(255,255,255,.08); }
.flagship h2 { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--display); color: #fff; margin: 0 0 18px; }
.flagship-lede { font-size: 1.3rem; max-width: 42rem; color: var(--on-navy); margin: 0 0 40px; }
.flagship-facts { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .flagship-facts { grid-template-columns: 1fr; gap: 16px; } }
.flagship-facts li { border-left: 3px solid var(--orange); padding-left: 16px; color: var(--on-navy-muted); font-size: 1rem; }
.flagship-facts strong { display: block; font: 700 1.35rem/1.2 var(--display); color: #fff; margin-bottom: 4px; }
/* Copy inside the flagship band (the Home teaser uses the band with the two-column grid). */
.flagship .work-grid p { color: var(--on-navy); }
.flagship .fact { color: var(--on-navy-muted); }
.flagship .text-link { color: var(--orange); }
.flagship .text-link:hover { color: #fff; }
.flagship .eyebrow { color: var(--orange); }
.flagship .work-grid .shot { border-color: rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.shot-feature { margin: 0; border-color: rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.shot-feature .shot-bar { background: #1E2A44; }
.shot-feature .shot-bar i { background: #3A4762; }
figure.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }

.features { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; gap: 8px; } }
.features li { border-top: 2px solid var(--navy); padding-top: 18px; }
.features h3 { font: 600 1.2rem/1.3 var(--display); color: var(--navy); margin: 0 0 8px; }
.features p { margin: 0 0 14px; }
.shot-wide { max-width: 1040px; }

/* The Command Centre panel: real requests and responses quoted from sportsplanr.com, drawn in
   HTML rather than as a screenshot so the text stays sharp and readable at any width. */
.command { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 48px -20px rgba(16,27,50,.25); overflow: hidden; }
.command-bar { padding: 14px 20px; background: #EEF0FB; color: #3B3FB6; font: 600 1rem/1 var(--display); }
.command ol { list-style: none; margin: 0; padding: 8px 20px; }
.command li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.command li:last-child { border-bottom: 0; }
.command-request { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 10px; }
.command-result { display: inline-block; font-size: .9rem; color: #1E7A4F; background: #E8F6EE; border-radius: 999px; padding: 3px 10px; margin: 0 6px 6px 0; }
.command-result::before { content: "✓ "; }
.command figcaption { padding: 12px 20px; font-size: .9rem; color: var(--slate); background: var(--mist); }
.tech-link { margin: 14px 0 0; }

/* A product title with its own icon beside it (Git Compare+). The icon is decorative: the
   heading text names the product, so the image has empty alt text. */
.with-icon { display: flex; align-items: center; gap: 14px; }
.with-icon img { flex: none; border-radius: 10px; }
