/* ============================================================
   JIMS — informational pages
   Full-width, banded, professional layout. Pairs with main.css.
   ============================================================ */

:root {
  --page-max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --hero-grad: linear-gradient(155deg, #052a10 0%, #0a3c1d 52%, #064e25 100%);
}

html { scroll-behavior: smooth; }

body.page {
  overflow: auto;
  height: auto;
  min-height: 100%;
  background: #fff;
  padding-top: var(--topbar-h);
  -webkit-font-smoothing: antialiased;
}

/* ---- shared inner container ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---- full-bleed section bands -------------------------------- */
.section { padding: clamp(44px, 6.5vw, 86px) 0; }
.section--tint { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--hero-grad); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---- secondary navigation ------------------------------------ */
.page-nav {
  position: sticky; top: var(--topbar-h); z-index: 90;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.page-nav-inner {
  display: flex; gap: 4px; overflow-x: auto;
  padding-block: 7px; scrollbar-width: none;
}
.page-nav-inner::-webkit-scrollbar { display: none; }
.page-nav a {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; padding: 8px 14px; border-radius: 9px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.page-nav a:hover { background: var(--paper-2); color: var(--ink); }
.page-nav a.active { background: var(--coral); color: #fff; }

/* ---- hero ---------------------------------------------------- */
.phero {
  position: relative; overflow: hidden;
  background: var(--hero-grad); color: #fff;
}
.phero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(640px 320px at 88% -10%, rgba(244,194,13,.20), transparent 70%),
    radial-gradient(560px 360px at -8% 116%, rgba(0,155,58,.30), transparent 70%);
  pointer-events: none;
}
.phero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--green-flag) 0 38%, var(--gold) 38% 62%, var(--black-flag) 62% 100%);
}
.phero .container {
  position: relative;
  padding-block: clamp(52px, 8vw, 104px);
}
.phero-inner { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 13px; border-radius: 999px;
}
.phero h1 {
  color: #fff; margin-top: 18px;
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -.6px;
}
.phero-sub {
  margin-top: 16px; max-width: 60ch;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: rgba(255,255,255,.84);
}
.phero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* hero buttons (main.css .btn variants are light-on-light) */
.btn-lg { padding: 12px 22px; font-size: 14px; border-radius: 12px; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid #fff; }
.btn-light:hover { background: var(--gold); border-color: var(--gold); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---- section heading ----------------------------------------- */
.sec-head { max-width: 720px; margin-bottom: 30px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-kicker {
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 700; color: var(--coral);
}
.sec-head h2 {
  font-size: clamp(22px, 3vw, 31px); line-height: 1.2; margin-top: 8px;
  letter-spacing: -.4px;
}
.sec-head p {
  margin-top: 12px; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft);
}

/* ---- generic prose ------------------------------------------- */
.prose p { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); margin: 12px 0; }
.prose p:first-child { margin-top: 0; }
.prose b { color: var(--ink); }
.prose a { color: var(--coral-2); font-weight: 600; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; }
.prose li { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 6px 0; }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink); }

/* ---- card grid ----------------------------------------------- */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 28px; box-shadow: var(--shadow);
}
.card h3 {
  font-size: 17px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 9px;
}
.card .card-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--paper-2); border: 1px solid var(--line);
}
.card.span-2 { grid-column: span 2; }

/* ---- feature tiles ------------------------------------------- */
.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
}
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe6d5; }
.feature .emo {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: linear-gradient(150deg, #e7f6ec, #f3f9ef);
  border: 1px solid var(--line);
}
.feature b { display: block; margin-top: 13px; font-size: 15px; color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif; }
.feature span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---- numbered steps ------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px 22px 70px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--coral); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step b { font-size: 15.5px; color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }
.step p { margin: 6px 0 0; font-size: 14px; line-height: 1.62; color: var(--ink-soft); }

/* ---- traffic colour swatches --------------------------------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 18px 0; }
.swatch {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px 8px 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.swatch i { width: 26px; height: 10px; border-radius: 5px; flex-shrink: 0; }

/* ---- callout / note ------------------------------------------ */
.note {
  background: #fffaf0; border: 1px solid #f0e2a8; border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 16px 18px;
  font-size: 14px; line-height: 1.62; color: var(--ink-2); margin: 18px 0;
}
.note b { color: #7a5b00; }
.note.alert { background: #fef2f2; border-color: #fbcfcf; border-left-color: var(--red); }
.note.alert b { color: #991b1b; }
.note.info { background: #eef7f1; border-color: #cfe6d5; border-left-color: var(--coral); }
.note.info b { color: var(--coral-2); }

/* ---- key/value table ----------------------------------------- */
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv td {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.6; color: var(--ink-2);
}
table.kv tr:last-child td { border-bottom: 0; }
table.kv td:first-child {
  width: 34%; font-weight: 700; color: var(--ink); padding-right: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
table.kv a { color: var(--coral-2); font-weight: 600; }

/* ---- FAQ accordion ------------------------------------------- */
.faq-grid {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px; box-shadow: var(--shadow); transition: border-color .15s;
}
details.faq[open] { border-color: #cfe6d5; }
details.faq summary {
  list-style: none; cursor: pointer; padding: 17px 0;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 14.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--paper-2); color: var(--coral-2);
  font-size: 17px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
details.faq[open] summary::after { content: "\2013"; background: var(--coral); color: #fff; }
details.faq .faq-a {
  padding: 14px 0 18px; font-size: 14px; line-height: 1.66; color: var(--ink-2);
  border-top: 1px solid var(--line);
}
details.faq .faq-a a { color: var(--coral-2); font-weight: 600; }

/* ---- legal layout (privacy / terms) -------------------------- */
.legal { display: grid; gap: 44px; align-items: start; }
@media (min-width: 880px) { .legal { grid-template-columns: 248px 1fr; } }
.legal-toc {
  position: sticky; top: calc(var(--topbar-h) + 64px);
  align-self: start;
}
.legal-toc .toc-title {
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin-bottom: 8px;
}
.legal-toc a {
  display: block; font-size: 13.5px; line-height: 1.35; color: var(--ink-soft);
  text-decoration: none; padding: 8px 12px;
  border-left: 2px solid var(--line); transition: color .15s, border-color .15s;
}
.legal-toc a:hover { color: var(--coral-2); border-left-color: var(--coral); }
.legal-body { max-width: 820px; }
.legal-sec { padding: 8px 0 26px; scroll-margin-top: calc(var(--topbar-h) + 64px); }
.legal-sec + .legal-sec { border-top: 1px solid var(--line); padding-top: 26px; }
.legal-sec h2 { font-size: 20px; margin-bottom: 6px; letter-spacing: -.2px; }
.legal-sec h2 .num { color: var(--coral); margin-right: 8px; }

/* ---- contact grid -------------------------------------------- */
.contact-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.emergency-card {
  background: linear-gradient(160deg, #fef2f2, #fff);
  border: 1px solid #fbcfcf; border-left: 4px solid var(--red);
  border-radius: 18px; padding: 26px 28px;
}
.emergency-card h3 { color: #991b1b; }

/* ---- CTA band ------------------------------------------------ */
.cta { text-align: center; }
.cta .container { max-width: 760px; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); }
.cta p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.82); }
.cta .phero-actions { justify-content: center; }

/* ---- site footer --------------------------------------------- */
.site-foot { background: #06220f; color: rgba(255,255,255,.7); }
.site-foot .container { padding-block: 54px 26px; }
.foot-top {
  display: grid; gap: 34px;
  grid-template-columns: 1.6fr 1fr 1fr;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; height: 44px; border-radius: 10px; }
.foot-brand b { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; }
.foot-brand span { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
.foot-blurb { margin-top: 14px; font-size: 13.5px; line-height: 1.66; max-width: 38ch; }
.foot-col h4 {
  color: #fff; font-size: 13px; letter-spacing: .4px; margin-bottom: 12px;
}
.foot-col a {
  display: block; color: rgba(255,255,255,.7); text-decoration: none;
  font-size: 13.5px; padding: 5px 0; transition: color .15s;
}
.foot-col a:hover { color: var(--gold); }
.foot-bar {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.55);
}
.foot-flag {
  width: 30px; height: 8px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green-flag) 0 38%, var(--gold) 38% 62%, var(--black-flag) 62% 100%);
}

/* ---- responsive --------------------------------------------- */
@media (max-width: 820px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand-col { grid-column: 1 / -1; }
  .card.span-2 { grid-column: auto; }
}
@media (max-width: 540px) {
  .foot-top { grid-template-columns: 1fr; }
  .step { padding-left: 24px; padding-top: 64px; }
  .step::before { top: 20px; }
}
