/* ============================================================================
   TRENT ENTERPRISES — marketing page. Dark-only: the brand is the navy
   horizon, guards work nights, and one committed look means zero JS.
   Tokens trimmed from the app's globals.css; print flips to the paper set.
   ========================================================================== */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a1322;
  --surface: #111c2f;
  --raised: #1a2942;
  --line: rgba(226, 234, 246, 0.14);
  --ink: #f4f7fb;
  --mut: #93a3bc;
  --gold: #c9a85c;
  --gold-ink: #1a1305;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size-adjust: from-font;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--gold) 85%, transparent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Type voices ─────────────────────────────────────────────────────────── */
h1, h2, .wordmark span {
  font-family: "Marcellus", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 7.6vw, 3.25rem); line-height: 1.12; text-wrap: balance; }
h2 { font-size: 1.6rem; line-height: 1.2; }
h3 {
  font-family: "Marcellus", "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 10px;
}
.lockup {
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.lede { color: var(--mut); font-size: 1.06rem; max-width: 34em; }
.mut { color: var(--mut); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── Layout: one narrow column, hairline-ruled — the posted watch bill. ──── */
.col { max-width: 680px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 44px; border-top: 1px solid var(--line); }

/* ── Header ──────────────────────────────────────────────────────────────── */
/* Sticky: the wordmark and the two ways in stay reachable the whole way down
   a long page. Translucent + blur so the horizon still reads underneath. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 680px;
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
}
/* No blur support (or a browser that ignores it): fall back to opaque, never
   to unreadable text over the waves. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}
/* The rule only appears once the page has actually moved under it. */
.site-header.is-stuck {
  border-bottom-color: var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.wordmark span { font-size: 1.05rem; letter-spacing: 0.06em; }
.site-header nav { display: flex; align-items: center; gap: 14px; }
.ghost {
  color: var(--mut);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 2px;
  white-space: nowrap;
}
.ghost:hover { color: var(--ink); }

/* Now the header is sticky, both ways in have to survive the whole page, so
   the phone keeps the CTA and gives up the wordmark text instead — the crest
   still carries the identity and the hero says the name a line below.
   (The 420–500px band is where this bites: the wordmark is white-space:nowrap
   but still shrinkable, so it used to overflow into "Guard login" — 10px of
   overlap on a 430pt Pro Max.) */
@media (max-width: 519px) {
  .wordmark span { display: none; }
  .site-header { padding-inline: 16px; }
  .site-header nav { gap: 10px; }
  .btn-gold { padding: 9px 13px; font-size: 0.9rem; }
}
/* Narrowest phones: the wordmark yields a little before it can reach the nav. */
@media (max-width: 359px) {
  .wordmark span { font-size: 0.95rem; letter-spacing: 0.04em; }
  .ghost { font-size: 11px; letter-spacing: 0.09em; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
}
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, #ffffff); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }

/* ── Hero: the horizon appears once, at its foot. ────────────────────────── */
.hero {
  padding-block: clamp(56px, 12vw, 110px) clamp(150px, 30vw, 230px);
  background: url("/assets/waves-dark.svg") bottom center / 100% auto no-repeat;
}
.hero h1 { margin-block: 6px 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.phone { color: var(--mut); text-decoration: none; font-size: 0.95rem; padding-block: 10px; }
.phone:hover { color: var(--ink); }
.phone .lockup { color: var(--ink); font-weight: 600; }

.rise { animation: rise 250ms ease-out both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── The standard ────────────────────────────────────────────────────────── */
.stance {
  font-family: "Marcellus", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  max-width: 30em;
  margin: 0 0 22px;
}
/* Three equal columns so the rules divide the measure evenly and each claim
   sits centred beneath its own. Grid, not flex-wrap: 1fr columns hold the row
   together at phone width instead of orphaning the longest claim. */
.claims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.claims li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 519px) {
  .claims { gap: 10px; }
  .claims li { font-size: 9.5px; letter-spacing: 0.07em; }
}

/* ── Coverage: the duty lines (the signature). ───────────────────────────── */
.duty { padding-block: 26px; }
.duty + .duty { border-top: 1px solid var(--line); }
.duty-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.duty-line .arrow { color: var(--mut); padding-inline: 4px; }
.duty-line .hrs { color: var(--mut); font-size: 12px; flex-shrink: 0; }
.duty > p:last-child { margin: 12px 0 0; color: var(--mut); max-width: 36em; }
.duty h3 + .duty-line { margin-top: 2px; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding-block: 18px; }
.steps li + li { border-top: 1px solid var(--line); }
.step-label { color: var(--gold); font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.steps p:last-child { margin: 0; max-width: 36em; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}
details[open] summary::after { content: "–"; }
details > p { margin: 0 0 18px; color: var(--mut); max-width: 38em; }

/* ── Final CTA + the request form ────────────────────────────────────────── */
.cta-band { text-align: left; }
.cta-band .lede { margin-top: 8px; }
.lead-form { margin-top: 26px; }
.lead-form label { display: block; margin-bottom: 16px; }
.lead-form .eyebrow { display: block; margin-bottom: 6px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* iOS zooms focused inputs under 16px */
  transition: border-color 120ms ease;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.lead-form :disabled { opacity: 0.55; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 519px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } }
.lead-form .cta-row { margin-top: 4px; }
.lead-form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form-status { margin: 14px 0 0; color: var(--gold); min-height: 1.4em; }
.form-status.err { color: #e25549; }
/* The honeypot: absent for people, present for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Guards (deliberately recessive) ─────────────────────────────────────── */
.guards-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 20px 22px;
  font-size: 0.95rem;
}
.guards-box p { margin: 0 0 10px; }
.guards-box p:last-child { margin: 0; }
.guards-box a { color: var(--gold); text-underline-offset: 3px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer.col {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
footer address { font-style: normal; margin-bottom: 14px; line-height: 1.6; }
footer a { color: var(--mut); }
footer p { margin: 4px 0; }

/* ── Quality floor ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #f5f6f8;
    --raised: #ebeef3;
    --line: rgba(16, 28, 50, 0.2);
    --ink: #14213a;
    --mut: #57687f;
    --gold: #8a6d2e;
    --gold-ink: #ffffff;
    color-scheme: light;
  }
  .hero { background: none; padding-bottom: 40px; }
  .site-header nav, .btn-gold { display: none; }
}
