/* Triple J's — bespoke, not the shared template.
   This site diverged from template/styles.css deliberately: a reseller's
   page has no storefront, no hours and no service list, and the trade
   template's call-bar-and-services shape fought all three. See the note in
   client.json before running new-site.mjs --build against this folder.

   One stylesheet, no framework, no build. Mobile first, because every
   visitor arrives from a link in a feed on a phone. */

:root {
  --accent: #c81e1e;
  --accent-dark: #9d1616;
  --ink: #17181c;
  --ink-soft: #575c66;
  --ink-faint: #8a8f98;
  --line: #e4e6eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 10px;
  --wrap: 64rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 1.375rem; padding-right: 1.375rem; }

/* Masthead. Sticky, because the one action worth keeping within reach on a
   long scroll is "text me", and it lives in the nav.

   The nav is one list in the markup, styled two ways: a row on desktop, a
   panel behind the burger on mobile. Two separate navs would be the easier
   thing to write and the thing that drifts apart the first time a link
   changes. */
.masthead-bar { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; }
body.nav-open .masthead-bar { border-bottom-color: var(--line); }

.masthead {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-top: 1.25rem; padding-bottom: 1rem;
}

/* Mobile: the nav collapses behind the button; the area label steps aside so
   the bar is brand + burger and nothing else. */
.nav { display: none; }
.where { display: none; }

.burger {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -.625rem;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
/* Three lines from one element: the middle is the element, the others are
   its pseudo-elements, so the X is two transforms rather than three nodes. */
.burger-box { position: relative; display: block; width: 22px; height: 16px; }
.burger-line, .burger-line::before, .burger-line::after {
  position: absolute; left: 0; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .18s ease, opacity .18s ease;
}
.burger-line { top: 7px; }
.burger-line::before { content: ""; top: -7px; }
.burger-line::after { content: ""; top: 7px; }
body.nav-open .burger-line { background: transparent; }
body.nav-open .burger-line::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger-line::after { transform: translateY(-7px) rotate(-45deg); }

body.nav-open .nav {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: .5rem 1.375rem 1.25rem;
}
body.nav-open .nav a {
  display: flex; align-items: center; min-height: 52px;
  color: var(--ink); font-size: 1.0625rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
body.nav-open .nav a:last-child { border-bottom: 0; }
body.nav-open .nav .nav-cta { color: var(--accent); font-weight: 600; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; color: var(--ink); }
.brand .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.masthead .where { font-size: .75rem; color: #6b7079; }

/* ---- Hero ------------------------------------------------------------ */
.hero-wrap { border-bottom: 1px solid var(--line); }
.hero { padding-top: 2.25rem; padding-bottom: 2.5rem; }
.kicker { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.25rem, 9vw, 2.5rem); letter-spacing: -.035em; font-weight: 700; margin-bottom: 1rem; }
.hero h1 .hot { color: var(--accent); }
.lede { font-size: 1rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 1.5rem; }

/* The three things a buyer actually wants to know before messaging a
   stranger about money. Claims he can stand behind, not statistics. */
.proof { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.proof li { position: relative; padding-left: 1.5rem; font-size: .875rem; color: var(--ink-soft); }
.proof li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---- Sections -------------------------------------------------------- */
.section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.eyebrow { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .625rem; }
.eyebrow.light { color: rgba(255,255,255,.55); }
.section h2 { font-size: 1.625rem; letter-spacing: -.03em; font-weight: 700; margin-bottom: 1.5rem; }

.cards { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: .875rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.375rem; }
.card-n { display: block; font-size: .6875rem; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.card h3 { font-size: 1.0625rem; letter-spacing: -.01em; margin-bottom: .4375rem; }
.card p { margin: 0; font-size: .875rem; color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-n {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .875rem; font-weight: 700;
}
.steps h3 { font-size: 1.0625rem; letter-spacing: -.01em; margin-bottom: .3125rem; }
.steps p { margin: 0; font-size: .875rem; color: var(--ink-soft); }

/* ---- The claim ------------------------------------------------------- */
.band { background: var(--ink); color: #fff; }
.band .inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.band h2 { font-size: 1.75rem; letter-spacing: -.03em; font-weight: 700; margin: 0 0 1rem; }
.band p { margin: 0; font-size: .9375rem; color: #b9bdc5; max-width: 36rem; }

/* ---- Closing ask ----------------------------------------------------- */
.cta { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 2.75rem; padding-bottom: 2.75rem; }
.cta h2 { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 700; margin-bottom: .625rem; }
.cta p { font-size: .9375rem; color: var(--ink-soft); max-width: 32rem; }

/* ---- Foot ------------------------------------------------------------ */
.site-foot { border-top: 1px solid var(--line); }
.foot { padding-top: 1.75rem; padding-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.foot-brand { display: flex; flex-direction: column; gap: .375rem; }
.foot .meta { font-size: .8125rem; color: var(--ink-faint); }
.foot .tel { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

@media (min-width: 62rem) {
  body { font-size: 17px; }
  .masthead { padding-top: 1.625rem; padding-bottom: 1.625rem; border-bottom: 1px solid #eceef2; }
  .burger { display: none; }
  .where { display: inline; font-size: .9375rem; font-weight: 500; color: var(--ink); }

  /* Static, not absolutely positioned: past the breakpoint the panel is just
     a row of links, and body.nav-open must not be able to reopen it. */
  .nav, body.nav-open .nav {
    display: flex; flex-direction: row; align-items: center; gap: 1.75rem;
    position: static; padding: 0; border: 0; background: none;
  }
  .nav a, body.nav-open .nav a {
    min-height: 0; border: 0; font-size: .9375rem; font-weight: 500; color: var(--ink-soft);
  }
  .nav a:hover { color: var(--ink); }
  .nav .nav-cta, body.nav-open .nav .nav-cta { color: var(--accent); font-weight: 600; }

  .hero { padding-top: 4.5rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(3rem, 5vw, 4rem); letter-spacing: -.04em; max-width: 18ch; }
  .lede { font-size: 1.1875rem; }
  .actions { gap: .75rem; }
  .btn { width: auto; min-height: 56px; font-size: 1.0625rem; }
  /* One row on desktop, where three stacked ticks under a hero look like a
     list of terms rather than reassurance. */
  .proof { flex-direction: row; gap: 2rem; margin-top: 2rem; }

  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section h2 { font-size: 2.25rem; margin-bottom: 2.25rem; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .card { padding: 1.5rem 1.5rem 1.75rem; }

  .steps { flex-direction: row; gap: 2.5rem; }
  .steps li { flex: 1; flex-direction: column; gap: .875rem; }

  .band .inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; align-items: start; padding-top: 4rem; padding-bottom: 4rem; }
  .band h2 { font-size: 2.5rem; }
  .band p { font-size: 1.0625rem; }

  .cta { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .cta h2 { font-size: 2rem; }

  .foot { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 2.25rem; padding-bottom: 2.75rem; }
}

/* Visible focus. Keyboard users and anyone tabbing through on a phone
   keyboard need to see where they are; removing this to tidy the design is
   how a site becomes unusable for people who never mention it. */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* 404.html shares this stylesheet and uses .lede, .actions and the buttons
   above; .nf is its own. Kept deliberately — a 404 that loses its styling
   is the page least likely to be looked at again. */
.nf .actions { flex-direction: column; }
@media (min-width: 62rem) { .nf .actions { flex-direction: row; } .nf .btn { width: auto; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
