:root {
  --navy: #0c1b33;
  --navy-2: #14315c;
  --ink: #162233;
  --muted: #3e4e61;
  --paper: #f4f6f8;
  --white: #ffffff;
  --line: #d9e1ea;
  --brass: #a9782f;
  --brass-2: #e4c27a;
  --teal: #1a5f5b;
  --shadow: 0 18px 40px rgba(12, 27, 51, 0.08);
  --header: 78px;
  --dock: 0px;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --wrap: 1160px;
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.7rem;
}

h1 { font-size: clamp(2.05rem, 4.2vw, 3.55rem); }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brass);
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.wrap-l {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: #0c1b33;
  color: #fff;
  border-bottom: 1px solid rgba(228, 194, 122, 0.35);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  background: #000;
  border-radius: 10px;
  padding: 0.2rem 0.45rem;
  flex: 0 0 auto;
}
.brand img { height: 48px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.nav a,
.drop > button {
  color: #e8eef6;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  background: none;
  border: 0;
  font-family: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav a:hover,
.drop > button:hover,
.nav a[aria-current="page"] {
  color: var(--brass-2);
  background: rgba(255, 255, 255, 0.05);
}

.drop { position: relative; }
.drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: min(360px, 80vw);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.55rem;
  border: 1px solid var(--line);
}
.drop-panel a {
  display: block;
  color: var(--navy);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}
.drop-panel a:hover { background: var(--paper); color: var(--teal); }
.drop.is-open .drop-panel,
.drop:hover .drop-panel,
.drop:focus-within .drop-panel { display: block; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brass);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
  min-height: 44px;
}
.header-call:hover { background: #8d6424; color: #fff !important; }

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--navy);
  color: #e7eef7;
  min-height: calc(100vh - var(--header));
}

.hero-copy {
  padding: clamp(2.2rem, 6vw, 5.2rem) clamp(1.2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brass-2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--brass-2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px var(--brass-2);
}

.hero h1 { color: #fff; max-width: 14ch; }
.lede { font-family: var(--serif); font-size: 1.2rem; color: #d5dfeb; max-width: 42rem; }

.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: #8d6424; color: #fff; }
.btn-wa { background: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #187541; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.hero-points li {
  border-top: 1px solid rgba(228, 194, 122, 0.35);
  padding-top: 0.7rem;
  color: #d5dfeb;
  font-size: 0.95rem;
}
.hero-points strong { display: block; color: #fff; font-size: 1rem; }

.hero-media { position: relative; min-height: 320px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,27,51,.55), transparent 28%);
  pointer-events: none;
}

.section { padding: clamp(3rem, 6vw, 5.2rem) 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: #e7eef7; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.section-head p { max-width: 40rem; margin: 0; color: var(--muted); }
.section-navy .section-head p { color: #c9d5e4; }

.rule {
  width: 3rem;
  height: 3px;
  background: var(--brass);
  margin-bottom: 0.8rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(12,27,51,.02);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card .idx {
  font-family: var(--display);
  color: var(--brass);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}
.card h3 { margin-top: 0.35rem; }
.card p { color: var(--muted); flex: 1; }
.card a.more {
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.4rem;
}
.card a.more:hover { text-decoration: underline; }

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.card-link:hover { transform: translateY(-3px); border-color: #b7c6d6; color: inherit; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
}
.split img, .frame {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
}
.frame { overflow: hidden; background: #d7dee6; }
.frame img { border-radius: 0; }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.45rem 0;
}
.checklist li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  counter-reset: step;
}
.step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1rem;
}
.section:not(.section-navy) .step {
  background: #fff;
  border-color: var(--line);
}
.step b {
  display: block;
  font-family: var(--display);
  color: var(--brass);
  margin-bottom: 0.35rem;
}

.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ref-col {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.ref-col ul { margin: 0; padding-left: 1.1rem; }
.ref-col li { margin: 0.28rem 0; }

.page-hero {
  background:
    radial-gradient(900px 280px at 90% -10%, rgba(169, 120, 47, .25), transparent 60%),
    var(--navy);
  color: #e7eef7;
  padding: 2.4rem 0 2.2rem;
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: #d5dfeb; max-width: 44rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; color: #b7c6d8; font-size: 0.92rem; margin-bottom: 1rem; }
.crumbs a { color: #e4c27a; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.prose { width: min(820px, 100%); }
.prose h2 { margin-top: 2.3rem; }
.prose h3 { margin-top: 1.4rem; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}
.side {
  position: sticky;
  top: calc(var(--header) + 1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.side strong { display: block; margin-bottom: 0.4rem; }
.side .btn { width: 100%; margin-top: 0.45rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #fff;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
th { background: var(--navy); color: #fff; font-weight: 650; }
tr:nth-child(even) td { background: #f8fafc; }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brass); font-family: var(--display); font-size: 1.3rem; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0.7rem 0 0.2rem; color: var(--muted); }

.cta {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.cta h2 { color: #fff; }
.cta p { color: #d5dfeb; margin: 0; }
.cta .actions { margin-top: 0; }

.il-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.il-grid a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  color: var(--navy);
  font-weight: 700;
  min-height: 48px;
  align-items: center;
}
.il-grid a span { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.il-grid a:hover { border-color: var(--navy); color: var(--teal); }

.region { margin-top: 1.6rem; }
.region h2 { font-size: 1.35rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; align-items: start; }
.form {
  display: grid;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
}
label { font-weight: 700; color: var(--navy); display: grid; gap: 0.35rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: #fff;
  min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
.form-help { color: var(--muted); font-size: 0.95rem; }

.site-footer {
  background: #081426;
  color: #d5dfeb;
  padding: 3rem 0 1.4rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer a { color: #d5dfeb; text-decoration: none; }
.site-footer a:hover { color: var(--brass-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1.8rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #9aabbe;
  font-size: 0.92rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.dock {
  display: none;
}

.related { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.related a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  color: var(--navy);
}
.related a:hover { border-color: var(--navy); }

.figure { margin: 1.2rem 0 1.6rem; }
.figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.45rem;
}

:focus-visible {
  outline: 3px solid #e4c27a;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .nav a, .drop > button { padding: 0.45rem 0.45rem; font-size: 0.92rem; }
  .header-call { font-size: 0.92rem; }
}

@media (max-width: 980px) {
  :root { --dock: 64px; }
  body { padding-bottom: var(--dock); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-call { display: none; }
  .nav {
    position: fixed;
    inset: var(--header) 0 var(--dock) 0;
    background: #0c1b33;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    overflow: auto;
    margin: 0;
    z-index: 45;
    width: 100%;
    height: calc(100dvh - var(--header) - var(--dock));
    max-height: calc(100dvh - var(--header) - var(--dock));
  }
  .nav.is-open { display: flex; }
  .nav a, .drop > button { text-align: left; font-size: 1.08rem; padding: 0.85rem 0.7rem; }
  .drop-panel {
    position: static;
    display: block;
    width: auto;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0 0 0.4rem 0.6rem;
  }
  .drop-panel a { color: #d5dfeb; }
  .hero, .split, .layout, .cards, .cards-2, .cards-4, .steps, .refs, .foot-grid, .cta, .il-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 0; }
  .hero-media { min-height: 240px; order: 2; }
  .hero-media img { position: relative; height: 280px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(12,27,51,.2), transparent 30%); }
  .hero-points, .il-grid, .cards { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .side { position: static; }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--line);
    height: var(--dock);
  }
  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
  }
  .dock .call { background: var(--navy); }
  .dock .wa { background: #1f8f4e; }
}

@media (max-width: 640px) {
  .hero-points, .il-grid, .cards, .cards-2 { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
