/* First Flame Solutions — self-hosted Barlow Condensed + system sans.
   Colours: #212025 / #F26A1B / #C25100. No external CDNs. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #212025;
  --charcoal: #1f1f1f;
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --wash: #f3f3f3;
  --white: #ffffff;
  --cream: #f6f4f0;
  --orange: #f26a1b;
  --orange-dark: #c25100;
  --orange-hover: #a84400;
  --max: 68rem;
  --header-h: 3.1rem;
  --callbar-h: 3.15rem;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, address { margin: 0; }

h1, h2, .call-mike, .kicker, .nav, .contact-name, .toc-title,
.quiz-hud, .fc-date, .fc-toll, .badge, .jump a, .call-bar {
  font-family: var(--display);
}

a { color: var(--orange-dark); }
a:hover { color: var(--orange-hover); }

a:focus-visible,
.btn:focus-visible,
.call-mike:focus-visible,
.call-bar:focus-visible,
.opt:focus-visible,
.tabs button:focus-visible,
.diff-row select:focus-visible,
.quiz-actions button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 400;
  background: var(--orange-dark);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 0.75rem; color: var(--white); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header — nav only, no logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--cream);
  min-height: var(--header-h);
  border-top: 3px solid var(--orange);
  box-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(var(--header-h) - 3px);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem 1.15rem;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0;
}
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--orange);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--black);
  color: var(--cream);
  padding: 2.4rem 0 2.6rem;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 46rem; }
.hero-logo {
  display: block;
  width: 10.5rem;
  height: auto;
  margin: 0 0 0.85rem -0.9rem;
  filter: drop-shadow(0 0 22px rgba(242, 106, 27, 0.4));
}
.kicker {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.call-mike {
  display: inline-block;
  font-size: clamp(3.1rem, 8.5vw, 6.1rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 6px solid var(--orange);
  padding: 0 0 0.08em;
  text-shadow: 0 0 28px rgba(242, 106, 27, 0.35);
}
.call-mike:hover,
.call-mike:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.pitch {
  margin-top: 0.85rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #cfcbc4;
  max-width: 38rem;
}
.call-or-text {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #cfcbc4;
}
.call-or-text a { color: var(--orange); text-decoration: none; }
.call-or-text a:hover { color: var(--cream); text-decoration: underline; }
.hero .call-or-text { margin-top: 0.35rem; }


/* Flame glow + scan line (off when reduced motion) */
.hero-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-fx .glow {
  position: absolute;
  width: 26rem;
  height: 26rem;
  left: -4rem;
  top: 8%;
  background: radial-gradient(circle, rgba(242, 106, 27, 0.32), transparent 68%);
  animation: glow-pulse 5.5s ease-in-out infinite;
}
.hero-fx .scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 106, 27, 0.55), transparent);
  animation: scan-down 9s linear infinite;
  opacity: 0.7;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes scan-down {
  0% { top: -3px; }
  100% { top: 100%; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--wash); }
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  margin-bottom: 1rem;
}
.lead { font-size: 1.1rem; max-width: 38rem; margin-bottom: 1.4rem; }

.services {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}
.services li {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0 0.65rem 0.7rem;
  border-left: 3px solid transparent;
}
.services.bare li { padding-top: 0.55rem; padding-bottom: 0.5rem; }
.services h3,
.services.bare h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.services li:hover { border-left-color: var(--orange); }

/* Contact */
.section-contact { background: var(--black); color: var(--cream); }
.section-contact h2 { border-bottom-color: var(--orange); }
.section-contact a { color: var(--orange); }
.section-contact a:hover { color: var(--cream); }
.section-contact .call-or-text { color: #cfcbc4; margin-top: 0; }
.contact-card {
  font-style: normal;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 2.5rem;
  padding: 0.85rem 0 0;
  max-width: 40rem;
}
.contact-name {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--orange);
}
.close-line {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}
.close-line a { color: var(--white); text-decoration: none; border-bottom: 3px solid var(--orange); }
.close-line a:hover { color: var(--orange); }
.placeholder { font-weight: 700; color: var(--white); }

/* Buttons (shared) */
.btn {
  display: inline-block;
  background: var(--orange-dark);
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover { background: var(--orange-hover); color: var(--white); }

/* Footer */
.site-footer {
  background: var(--black);
  color: #a8a8a8;
  padding: 0.85rem 0;
  font-size: 0.85rem;
  border-top: 1px solid #3a393e;
}
.footer-inner { display: flex; align-items: center; gap: 0.85rem; }
.footer-logo { display: block; height: 2.4rem; width: auto; flex-shrink: 0; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* Sticky mobile tap-to-call */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--orange-dark);
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
  display: none;
  grid-template-columns: 1fr auto;
  align-items: stretch;
}
.call-bar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.7rem 1rem;
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
}
.call-bar a:last-child {
  background: var(--orange-hover);
  padding-inline: 1.25rem;
  border-left: 1px solid rgba(255,255,255,.2);
}
.call-bar a:hover,
.call-bar a:focus-visible { color: var(--white); background: #8f3a00; }

/* —— Home: one screen —— */
html.home,
body.home { background: var(--black); }
body.home {
  --header-h: 2.7rem;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.home main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.home .section-contact { flex: 1 0 auto; }
body.home #work { background: var(--white); color: var(--ink); }
body.home .hero { padding: 0.4rem 0 0.45rem; }
body.home .hero-logo {
  width: 10.8rem;
  margin: 0 0 0.1rem -0.9rem;
}
body.home .kicker { font-size: 0.92rem; margin-bottom: 0.05rem; }
body.home .call-mike { font-size: clamp(3rem, 7vw, 5.2rem); border-bottom-width: 5px; }
body.home .call-or-text { margin-top: 0.2rem; font-size: 0.95rem; }
body.home .pitch { margin-top: 0.2rem; font-size: 1.05rem; }
body.home .section { padding: 0.45rem 0 0.5rem; }
body.home .section h2 {
  font-size: 1.45rem;
  padding-bottom: 0.2rem;
  margin-bottom: 0.25rem;
  border-bottom-width: 2px;
}
body.home .lead { font-size: 1rem; margin-bottom: 0.25rem; }
body.home .services li,
body.home .services.bare li { padding: 0.26rem 0 0.22rem 0.55rem; }
body.home .services h3,
body.home .services.bare h3 { font-size: 1.05rem; }
body.home .contact-card { gap: 0.15rem 2rem; padding-top: 0.25rem; }
body.home .close-line { margin-top: 0.2rem; font-size: 1.3rem; }
body.home .site-footer { padding: 0.25rem 0; }
body.home .footer-logo { height: 1.9rem; }
body.home .nav a { padding: 0.4rem 0; font-size: 0.88rem; }

/* Practice */
.practice-main { padding: 2.25rem 0 4.5rem; min-height: calc(100vh - 9rem); }
.practice-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}
.practice-hero .lead { margin-bottom: 0.5rem; }
.disclaimer {
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.tabs button,
.diff-row select,
.quiz-actions button,
.opt { font-family: inherit; }
.tabs button {
  appearance: none;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}
.tabs button[aria-selected="true"] {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}
.tabs button:focus-visible,
.diff-row select:focus-visible,
.opt:focus-visible,
.quiz-actions button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.diff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
}
.diff-row label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.diff-row select {
  font-size: 1rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #ccc;
  background: var(--white);
  color: var(--ink);
}
.pool-count { color: var(--muted); }

.quiz-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  background: var(--black);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  margin: 0 0 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.quiz-hud [data-k="score"] { color: var(--orange); }
.quiz-hud [data-k="miss"] { color: #ffb088; }

.quiz-card { background: var(--white); border-top: 4px solid var(--orange); padding: 1.15rem 0 0; }
.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.quiz-meta .tag-std { color: var(--orange-dark); }
.q-text {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 1.05rem;
  max-width: 44rem;
}
.opts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.05rem;
  display: grid;
  gap: 0.5rem;
  max-width: 44rem;
}
.opt {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #cfcfcf;
  border-left: 4px solid #cfcfcf;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 2px;
}
.opt:hover:not(:disabled) { border-color: var(--black); border-left-color: var(--orange); }
.opt.correct { background: #e8f5e9; border-color: #2e7d32; border-left-color: #2e7d32; color: #1b4d1e; font-weight: 650; }
.opt.wrong { background: #fdecea; border-color: #b42318; border-left-color: #b42318; }
.opt:disabled { cursor: default; }
.feedback { max-width: 44rem; padding: 0.85rem 0 0.3rem; font-size: 1rem; }
.feedback.ok { color: #1b4d1e; }
.feedback.no { color: #8a1c13; }
.feedback .explain { margin-top: 0.4rem; color: var(--ink); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.15rem; }
.quiz-actions .btn-ghost,
[hidden] { display: none !important; }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  border-radius: 2px;
  border: 1px solid #cfcfcf;
  cursor: pointer;
}
.quiz-actions .btn-ghost:hover,
.btn-ghost:hover { border-color: var(--black); }
.score-box { border-top: 4px solid var(--orange); padding-top: 1.3rem; max-width: 40rem; }
.score-box h2 { margin-bottom: 0.55rem; }
.miss-list { list-style: none; padding: 0; margin: 1rem 0; }
.miss-list li { border-top: 1px solid var(--line); padding: 0.7rem 0; }
.miss-list .mq { font-weight: 650; }

/* Leftover layout helpers from earlier pages */
.clients, .steps, .why { list-style: none; padding: 0; }
.note { font-size: 0.92rem; color: #a8a8a8; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 1.5rem, var(--max)); }
  .header-inner { justify-content: flex-start; padding: 0.2rem 0; }
  .nav { justify-content: flex-start; gap: 0.05rem 0.75rem; }
  .nav a { font-size: 0.78rem; padding: 0.3rem 0; }
  .hero { padding: 1.4rem 0 1.6rem; }
  .hero-logo { width: 7rem; margin-left: -0.55rem; margin-bottom: 0.55rem; }
  .section { padding: 2.2rem 0; }
  .services, .clients, .steps { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 0.25rem; }
  .call-bar { display: grid; }
  body { padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom)); }

  /* Home still two-col services; tighter to fit 390x844 with the call bar */
  body.home { --header-h: 3.15rem; }
  body.home .header-inner { padding: 0.1rem 0; }
  body.home .nav a { padding: 0.18rem 0; font-size: 0.7rem; }
  body.home .hero { padding: 0.35rem 0 0.4rem; }
  body.home .hero-logo { width: 6.8rem; margin: 0 0 0.1rem -0.5rem; }
  body.home .kicker { font-size: 0.78rem; }
  body.home .call-mike { font-size: 2.55rem; border-bottom-width: 4px; }
  body.home .call-or-text { margin-top: 0.1rem; font-size: 0.85rem; }
  body.home .pitch { margin-top: 0.2rem; font-size: 0.95rem; }
  body.home .section { padding: 0.5rem 0 0.55rem; }
  body.home .section h2 { font-size: 1.15rem; margin-bottom: 0.25rem; padding-bottom: 0.12rem; }
  body.home .lead { margin-bottom: 0.28rem; font-size: 0.95rem; }
  body.home .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.6rem;
  }
  body.home .services li,
  body.home .services.bare li { padding: 0.2rem 0 0.16rem 0.4rem; }
  body.home .services h3,
  body.home .services.bare h3 { font-size: 0.9rem; }
  body.home .contact-card { gap: 0.08rem; padding-top: 0.2rem; }
  body.home .close-line { margin-top: 0.15rem; font-size: 1.15rem; }
  body.home .site-footer { padding: 0.25rem 0; }
  body.home .footer-logo { height: 1.45rem; }

  .practice-main { padding: 1.3rem 0 3rem; }
  .q-text { font-size: 1.1rem; }
  .opt { padding: 0.85rem 0.85rem; }
}

@media (max-width: 420px) {
  body { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-fx .glow,
  .hero-fx .scan { animation: none; }
  .hero-logo { filter: none; }
  .call-mike { text-shadow: none; }
}
