/* Shared chassis for the agent resource pages: specs, floor plans, stages, warranty,
   the three fillable forms, and the header of the contract.

   Colors follow the sales dashboard (index.html), not the brand guide's green: Daniel,
   2026-11-06, wanted the resources to match the dashboard agents already use.

     Navy   #1f2f55   primary (dashboard --navy)
     Gold   #c9a445   accent  (dashboard --gold; metallic on dark via gold.css)
     Page   #f7f4ec   background (dashboard --soft)
     Ink    #1e2330   text

   Type is the brand guide's: Candal for headlines, Google Sans Flex for text. */

:root {
  --navy: #1f2f55;
  --navy-deep: #172340;
  --navy-ink: #111a30;
  --gold: #c9a445;
  --gold-deep: #9a7b2c;
  --gold-light: #d9c9a8;
  --bone: #eee9d5;
  --beige: #d9c9a8;
  --ink: #1e2330;
  --text: #1e2330;
  --muted: #6b6a66;
  --line: #e3dccb;
  --line-strong: #cfc5ae;
  --paper: #ffffff;
  --bg: #f7f4ec;
  --bg-deep: #eee9d5;
  --tint: #f1ecdd;
  --ok: #2f6b4a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(30, 35, 48, 0.04), 0 18px 40px -18px rgba(31, 47, 85, 0.28);
  --head: "Candal", "Archivo Black", "Arial Black", sans-serif;
  --body: "Google Sans Flex", "Google Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --page: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy); }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

/* The arch from the logo, very large and very faint, sitting behind the header. */
.masthead::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -40px;
  width: 420px;
  height: 540px;
  background: url("../logos/mark-white.svg") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}

.masthead .bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 18px 28px;
}

.masthead .brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.masthead .brand img { display: block; height: 58px; width: auto; }
.masthead .brand span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.masthead .home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.masthead .home:hover { background: rgba(255, 255, 255, 0.1); }

/* Resource switcher: every agent resource one tap away, current page marked. */
.resnav {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.resnav ul {
  display: flex;
  gap: 4px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 22px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.resnav ul::-webkit-scrollbar { display: none; }

.resnav a {
  display: block;
  padding: 13px 10px 12px;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.resnav a:hover { color: #fff; }
.resnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: #fff;
}

.hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: end;
  max-width: var(--page);
  margin: 0 auto;
  padding: 42px 28px 0;
}

.hero.solo .inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 52px; }

.hero .copy { padding-bottom: 52px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.hero h1 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero .intro {
  max-width: 54ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.06rem;
  line-height: 1.6;
}

.hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero .facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 500;
}

.hero .facts .icon { color: var(--gold-light); }

/* The photo sits on the bottom edge of the navy and runs into the light page. */
.hero figure {
  position: relative;
  margin: 0 0 -64px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.hero figure img { display: block; width: 100%; height: 360px; object-fit: cover; }

.hero figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 26, 48, 0.72);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.hero + .page { padding-top: 104px; }
.hero.solo + .page { padding-top: 44px; }

/* ---------- Page body ---------- */

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 44px 28px 80px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 64px 0 22px;
}

.section-head:first-child { margin-top: 0; }

.section-head .no {
  color: var(--gold);
  font-family: var(--head);
  font-size: 0.95rem;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--head);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
}

.section-head p {
  margin: 0 0 0 auto;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lede {
  max-width: 66ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Pill-shaped download / action links. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 600 0.9rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: var(--navy-deep); }

.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--paper); border-color: var(--navy); }

.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--bg); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Note strips: a thin gold rule and an icon, never a loud colored box. */
.note {
  display: flex;
  gap: 14px;
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--beige);
  border-radius: 0 14px 14px 0;
  background: var(--paper);
  color: var(--text);
  font-size: 0.93rem;
}

.note .icon { margin-top: 2px; color: var(--navy); font-size: 1.1rem; }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }
.note b { color: var(--navy); }

/* A dark band to close a page with the next step. */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 64px;
  padding: 34px 38px;
  border-radius: var(--radius);
  background: var(--navy) url("../logos/mark-white.svg") no-repeat right -40px center / 220px;
  background-blend-mode: normal;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 55%, rgba(31, 47, 85, 0.92));
}

.band > * { position: relative; }

.band h3 {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 1.35rem;
  font-weight: 400;
}

.band p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-foot {
  background: var(--navy-ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.site-foot .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 30px 28px;
}

.site-foot img { height: 40px; width: auto; opacity: 0.9; }
.site-foot .motto { color: #fff; font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.02em; }
.site-foot .legal { margin-left: auto; max-width: 62ch; text-align: right; }
.site-foot a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Small screens ---------- */

@media screen and (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; gap: 0; padding-top: 30px; }
  .hero .copy { padding-bottom: 34px; }
  .hero figure img { height: 230px; }
  .hero + .page { padding-top: 92px; }
  .section-head { flex-wrap: wrap; }
  .section-head p { margin: 0; text-align: left; flex-basis: 100%; }
  .band { grid-template-columns: 1fr; padding: 28px 24px; }
  .site-foot .legal { margin-left: 0; text-align: left; }
}

@media screen and (max-width: 560px) {
  .masthead .bar { padding: 14px 18px; }
  .masthead .brand img { height: 44px; }
  .masthead .brand span { display: none; }
  .masthead .home span { display: none; }
  .resnav ul { padding: 0 10px; }
  .hero .inner { padding: 26px 18px 0; }
  .page { padding: 32px 18px 60px; }
  .hero + .page { padding-top: 84px; }
}

/* ---------- Print ---------- */

@media print {
  @page { size: letter; margin: 0.45in; }
  body { background: #fff; font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resnav, .masthead .home, .no-print { display: none !important; }
  .masthead .brand span { display: none; }
  .masthead::after { display: none; }
  .masthead .bar { padding: 12px 18px; }
  .hero .inner { padding: 16px 18px 18px; grid-template-columns: 1fr; }
  .hero .copy { padding-bottom: 0; }
  .hero figure { display: none; }
  .hero h1 { font-size: 26pt; }
  .hero .intro { font-size: 10.5pt; }
  .hero + .page, .hero.solo + .page, .page { padding: 18px 0 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .section-head { margin: 22px 0 10px; break-after: avoid; }
  .band { display: none; }
  .site-foot { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
  .site-foot img { display: none; }
  .site-foot .motto { color: var(--navy); }
  .site-foot .inner { padding: 10px 0 0; }
}
