/* JSTJ Consultants — site styles. Theme taken from the company letterhead:
   layered navy/blue waves, a gold stroke, cream under-wave, serif type. */

:root {
  --navy: #12385f;
  --navy-deep: #0c2743;
  --blue: #1f5a8c;
  --gold: #fdc83f;
  --gold-deep: #e0a91a;
  --cream: #fbefc6;
  --cream-soft: #fdf8e6;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --ink: #1b2430;
  --ink-soft: #46515f;
  --line: #d6dee8;
  --error: #a4261d;
  --ok: #1d6b3a;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(12, 39, 67, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.header :focus-visible, .hero :focus-visible, .banner :focus-visible, .cta :focus-visible,
.footer :focus-visible, .mobile-bar :focus-visible { outline-color: var(--gold); }
.skip:focus { outline-color: #fff; }
.mobile-bar a:focus-visible { outline-offset: -4px; }
.hero .form-card :focus-visible { outline-color: var(--blue); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 0.82rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-deep); color: var(--navy-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--blue); color: #fff; }
.btn--line { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn--line:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header { background: var(--navy-deep); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { text-decoration: none; color: #fff; text-align: center; line-height: 1.15; }
.brand:hover { color: #fff; }
.brand__name { display: block; font: 700 1.3rem var(--serif); letter-spacing: 0.06em; white-space: nowrap; }
.brand__sub { display: block; font: 400 0.66rem var(--serif); letter-spacing: 0.12em; color: var(--gold); margin-top: 3px; white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__actions .btn { padding: 11px 16px; }
.menu-btn { background: var(--blue); border: 0; color: #fff; width: 42px; height: 42px; border-radius: var(--radius); cursor: pointer; display: none; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.nav { background: var(--navy); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nav a { display: block; padding: 12px 15px; color: #fff; text-decoration: none; font: 600 0.76rem var(--sans); letter-spacing: 0.09em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }

/* ---------- Waves (letterhead motif) ---------- */
.wave { display: block; width: 100%; height: clamp(46px, 8vw, 110px); }
.wave--on-white { background: #fff; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 100%); color: #fff; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: 0.02em; }
.hero h1 span { color: var(--gold); display: block; }
.hero__lede { font: 400 1.2rem/1.5 var(--serif); color: #e8eef6; max-width: 34em; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__wave { margin-bottom: -1px; }

/* ---------- Form ---------- */
.form-card { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 26px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.form-card h2, .form-card h3 { text-align: center; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.35rem; margin-bottom: 0.8em; }
.field { margin-bottom: 12px; }
.field label { display: block; font: 600 0.8rem var(--sans); color: var(--ink-soft); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  padding: 11px 12px; border: 1.5px solid #66788f; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid var(--blue); outline-offset: 1px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.78rem; line-height: 1.45; color: var(--ink-soft); margin: 4px 0 14px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; }
.form-req { font-size: 0.76rem; color: var(--ink-soft); margin: 0 0 8px; }
.field .hint { font-weight: 400; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.form-note { font-size: 0.76rem; line-height: 1.45; color: var(--ink-soft); margin: 12px 0 0; }
.form-status { margin: 12px 0 0; font-size: 0.92rem; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--error); }
.form-status:empty { margin: 0; }
noscript .form-status { margin: 0 0 12px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section__title { text-align: center; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.4em; }
.section__title::after { content: ""; display: block; width: 72px; height: 4px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }

.welcome { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 40px; align-items: start; }
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick a { display: block; text-align: center; text-decoration: none; color: var(--navy); font: 600 0.92rem/1.3 var(--sans); padding: 10px 4px; border-radius: var(--radius); }
.quick a:hover { background: var(--cream); }
.quick svg { width: 62px; height: 62px; margin: 0 auto 10px; color: var(--navy); }
.welcome__card { background: var(--paper); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; height: 100%; background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); color: #fff; text-decoration: none; padding: 30px 24px 26px; border-radius: 8px; border-bottom: 5px solid var(--gold); transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.card svg { width: 46px; height: 46px; color: var(--gold); margin-bottom: 16px; }
.card h3 { color: #fff; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.1rem; }
.card p { font-size: 0.95rem; color: #dbe5f0; margin: 0 0 16px; }
.card span { margin-top: auto; font: 600 0.76rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

.cta { background: var(--navy); color: #fff; }
.cta__grid { display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; padding: 20px 0 56px; }
.cta h2 { color: #fff; text-transform: uppercase; letter-spacing: 0.03em; }
.cta p { color: #dbe5f0; margin: 0; max-width: 44em; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner pages ---------- */
.banner { background: linear-gradient(140deg, var(--navy-deep), var(--blue)); color: #fff; text-align: center; }
.banner__in { padding: 46px 0 14px; }
.banner h1 { color: #fff; margin-bottom: 0.3em; }
.crumbs { font-size: 0.86rem; color: #dbe5f0; }
.crumbs a { color: var(--gold); text-decoration: underline; }

.inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px 0 64px; align-items: start; }
.inner--single { grid-template-columns: 1fr; max-width: 800px; margin-inline: auto; }
.side h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.side ul { list-style: none; margin: 0 0 24px; padding: 0; }
.side li a { display: block; padding: 11px 2px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); font-size: 0.97rem; }
.side li a:hover, .side li a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--gold); }
.side li a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--blue); }
.inner > .side { grid-column: 1; grid-row: 1; }
.inner > .prose { grid-column: 2; grid-row: 1; }
.inner--single > .prose { grid-column: 1; }
.side__box { background: var(--cream-soft); border-left: 5px solid var(--gold); padding: 18px; border-radius: var(--radius); font-size: 0.95rem; }
.side__box strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.side__box a { font-weight: 600; }

.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose > .btn { margin-top: 12px; }
.checks { list-style: none; margin: 0 0 1.4em; padding: 0; }
.checks li { position: relative; padding: 5px 0 5px 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdc83f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps { counter-reset: step; list-style: none; margin: 0 0 1.4em; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 14px 50px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font: 700 1rem/34px var(--serif); text-align: center; }
.steps strong { color: var(--navy); font-family: var(--serif); font-size: 1.08rem; }
.sig { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); border-top: 2px solid var(--line); padding-top: 16px; margin-top: 28px; }

.faq details { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font: 700 1.1rem var(--serif); color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; content: "–" / ""; }
.faq details p { padding: 0 0 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; padding: 48px 0 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.contact-list li { padding: 12px 0; border-bottom: 2px solid var(--line); }
.contact-list span { display: block; font: 600 0.74rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a, .contact-list address { font: 400 1.15rem var(--serif); font-style: normal; color: var(--navy); }

.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal .updated { color: var(--ink-soft); font-size: 0.92rem; }
.callout { background: var(--cream-soft); border-left: 5px solid var(--gold); padding: 16px 18px; border-radius: var(--radius); margin: 0 0 1.2em; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #cfdae6; font-size: 0.92rem; }
.footer__in { padding: 8px 0 26px; text-align: center; }
.footer__brand { font: 700 1.25rem var(--serif); letter-spacing: 0.06em; color: #fff; }
.footer__sub { font: 400 0.66rem var(--serif); letter-spacing: 0.14em; color: var(--gold); margin-bottom: 12px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--gold); }
.footer__nav { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer__nav a { display: inline-block; padding: 6px 0; text-decoration: none; font: 600 0.74rem var(--sans); letter-spacing: 0.09em; text-transform: uppercase; }
.footer__small { font-size: 0.8rem; color: #a9b9cb; max-width: 760px; margin: 0 auto 6px; }

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .nav.is-open { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; }
  .hero__grid, .welcome, .inner, .contact-grid, .cta__grid { grid-template-columns: 1fr; }
  .hero__grid { padding-top: 40px; gap: 30px; }
  .inner { gap: 34px; }
  .inner > .side, .inner > .prose { grid-column: 1; grid-row: auto; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .header__actions .btn--review { display: none; }
}
@media (max-width: 640px) {
  html { scroll-padding-bottom: 64px; }
  body { font-size: 1rem; padding-bottom: 58px; }
  .nav.is-open { max-height: calc(100vh - 76px - 52px); max-height: calc(100dvh - 76px - 52px); }
  .section { padding: 46px 0; }
  .cards { grid-template-columns: 1fr; }
  .brand__name { font-size: clamp(0.92rem, 4.6vw, 1.05rem); letter-spacing: 0.04em; }
  .brand__sub { font-size: 0.56rem; letter-spacing: 0.01em; }
  .header__actions .btn--call span { display: none; }
  .header__actions .btn--call { padding: 12px; }
  .quick svg { width: 48px; height: 48px; }
  .quick a { font-size: 0.82rem; }
  .welcome__card { padding: 22px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy-deep); border-top: 3px solid var(--gold); }
  .mobile-bar a { color: #fff; text-decoration: none; text-align: center; padding: 15px 4px; font: 600 0.76rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
  .mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.18); }
}
@media (max-height: 480px) {
  .header, .mobile-bar { position: static; }
  html { scroll-padding-top: 12px; scroll-padding-bottom: 0; }
  body { padding-bottom: 0; }
  .nav.is-open { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

@media print {
  .header, .mobile-bar, .cta, .wave, .side, .form-card, .skip { display: none !important; }
  body { padding: 0; font-size: 12pt; }
  .hero, .banner { background: none; color: var(--ink); }
  .hero h1, .hero h1 span, .banner h1, .hero__lede, .crumbs, .crumbs a { color: var(--ink); }
  .footer { background: none; color: var(--ink); }
  .footer a, .footer__brand, .footer__sub, .footer__small { color: var(--ink); }
  .inner, .contact-grid, .hero__grid, .welcome { display: block; padding: 0; }
  .card, .card h3, .card p, .card span, .btn { color: var(--ink) !important; background: none !important; }
  .card, .btn { border: 1px solid var(--ink); }
  .card svg, .btn svg { color: var(--ink); }
  .checks li { padding-left: 0; }
  .checks li::before { content: "✓ "; position: static; display: inline; background: none; width: auto; height: auto; }
}
