/* =============================================================
   BriskCoders — shared base for the inner pages
   Tokens, header, footer, buttons, form and small utilities.
   Page-specific layouts live in css/<page>.css.
   Values mirror the homepage (index.html) design system.
   ============================================================= */
:root {
  --orange: #F4900C;
  --orange-soft: #F9A93F;
  --peach: #FFE3BF;
  --cream: #FFF4E5;
  --white: #FFFFFF;
  --ink: #000000;
  --ink-2: #3D3D3D;
  --ink-3: #5C5C5C;
  --link: #A85A00;
  --link-hover: #7A4100;
  --amber: #FFB75E;
  --line: #EADBC6;
  --line-2: #E6DCCD;
  --line-3: #EFE7DC;
  --dark-card: #161616;
  --dark-line: #2E2E2E;
  --brown: #2A1B14;
  --sage: #E4EDE3;
  --ok: #1E7F4F;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec-pad: clamp(64px, 8vw, 112px);
  --font-head: Unbounded, "Arial Black", sans-serif;
  --font-body: Figtree, ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
[hidden], .is-hidden { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
textarea:focus-visible, label:focus-within, [tabindex]:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}
input:focus, textarea:focus { border-color: var(--ink) !important; outline: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ic { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; width: 22px; height: 22px; flex: none; }
.wrap { max-width: var(--max); margin: 0 auto; }
.sec { padding: var(--sec-pad) var(--gutter); }
.lift { transition: transform .2s ease, filter .2s ease; }
.lift:hover { transform: translateY(-2px); filter: brightness(.95); }

/* Shared type */
.display { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.lead { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); }
.on-dark .lead, .on-dark p { color: #CFCFCF; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); display: block; }
.on-dark .eyebrow { color: var(--orange); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Scroll reveal (only when JS runs) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; } .js .rv.d2 { transition-delay: .2s; } .js .rv.d3 { transition-delay: .3s; }

/* ---------- Brand logo + text fallback ---------- */
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--ink); }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-word { display: none; font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.brand-word b { color: var(--orange); font-weight: 600; }
.brand-logo.logo-missing { display: none; }
.brand-logo.logo-missing + .brand-word { display: inline; }
.footer-brand .brand-logo { height: 44px; }
.footer-brand .brand-word { font-size: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
}
.btn .ic { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-lg .ic { width: 20px; height: 20px; }
.btn-orange, .btn-orange:hover { background: var(--orange); color: var(--ink); }
.btn-black, .btn-black:hover { background: var(--ink); color: var(--white); }
.btn-white, .btn-white:hover { background: var(--white); color: var(--ink); }
.btn-outline, .btn-outline:hover { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; font-weight: 600; }
.btn-outline2, .btn-outline2:hover { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-light, .btn-ghost-light:hover { border: 1.5px solid #4A4A4A; color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure .ic { width: 16px; height: 16px; color: var(--link); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: block; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,127,79,.45); } 100% { box-shadow: 0 0 0 10px rgba(30,127,79,0); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.pill .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.pill .dot .ic { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- Header (identical on every page) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,244,229,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(168,90,0,0.12); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.navlink { color: var(--ink); text-decoration: none; transition: color .15s ease; position: relative; white-space: nowrap; }
.navlink:hover { color: var(--link) !important; }
.navlink.is-active { font-weight: 700; }
.navlink.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; border-radius: 2px; background: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.mobile-nav { display: none; border-top: 1px solid rgba(168,90,0,0.12); background: var(--cream); padding: 8px var(--gutter) 22px; max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); }
.mobile-nav li a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 600; }
.mobile-nav li a[aria-current="page"] { color: var(--link); }
.mobile-nav li a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.mobile-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px auto 0; max-width: var(--max); }
.mobile-cta .btn { flex: 1 1 200px; min-height: 52px; }

/* ---------- Footer (identical on every page) ---------- */
.site-footer { background: var(--white); padding: 56px var(--gutter) 40px; border-top: 1px solid var(--line-3); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-brand .tagline { font-size: 15px; color: var(--ink-3); }
.footer-mail { font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2.4vw, 32px); color: var(--ink); text-decoration: none; word-break: break-word; }
.footer-mail:hover { color: var(--link); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; font-weight: 500; min-width: 140px; }
.footer-col h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 2px; font-family: var(--font-body); }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--link); }
.footer-col a[aria-current="page"] { color: var(--link); font-weight: 700; }
.footer-col.social a { font-weight: 600; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-3); font-size: 13px; color: var(--ink-3); }

.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,0.97); border-top: 1px solid var(--line-3); }
.mbar .btn { flex: 1; min-height: 52px; font-size: 16px; }
.mbar .round { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; }
.m-only { display: none !important; }

/* ---------- Audit form (Jotform) — shared fields, page sets the frame ---------- */
.form-card { background: var(--white); color: var(--ink); border-radius: 28px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 70px -30px rgba(80,35,0,0.5); position: relative; }
.form-card form { margin: 0; }
.form-body { display: flex; flex-direction: column; gap: 14px; }
.form-body .btn-xl { min-height: 58px; font-size: 17px; width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); margin: 6px 0 2px; }
.divider span { flex: 1; height: 1px; background: var(--line); display: block; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.form-body > .field { flex: none; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 50px; border: 1.5px solid #D9D2C7; border-radius: 12px; padding: 0 14px; font-family: var(--font-body); font-size: 16px; background: var(--white); color: var(--ink); width: 100%; }
.submit { min-height: 56px; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); font-family: var(--font-body); font-size: 17px; font-weight: 700; cursor: pointer; }
.success { display: none; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 0; }
.success .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.success .ok .ic { width: 28px; height: 28px; stroke-width: 2.5; }
.success h3 { font-family: var(--font-head); font-size: 26px; line-height: 1.2; margin: 0; font-weight: 600; }
.success p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 40ch; }
.success button { min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: 600; cursor: pointer; }

/* ---------- Accordion base (each page restyles the frame) ---------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.faq-ic { width: 22px; height: 22px; flex: none; color: var(--link); transition: transform .2s ease; }
details[open] .faq-ic { transform: rotate(45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1179px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .d-only { display: none !important; }
  .m-only { display: inline-flex !important; }
  .mbar { display: flex; }
  .site-footer { padding-bottom: 110px; }
  .header-actions .btn-outline.m-only { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .header-actions .btn-outline.m-only { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .rv { opacity: 1; transform: none; }
}
