/* Roman Administrative & Compliance
   Navy #071E33 and gold #C4A15A come from the brand mark. */

:root {
  --navy: #071e33;
  --navy-mid: #0c314d;
  --ink: #12202c;
  --muted: #3e5163;
  --gold: #c4a15a;
  --gold-deep: #7a5e2e;
  --gold-soft: #e7d3a1;
  --cream: #f4f1ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e3dccf;
  --serif: "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --header: 4.75rem;
  --measure: 65ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color-scheme: light;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.hero :focus-visible,
.about-panel :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.65rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

.container,
.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4.25rem, 8vw, 6.75rem) 0;
  scroll-margin-top: 6.25rem;
}

.section-lead {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--gold);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.94);
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  min-height: 48px;
}

.brand img {
  width: 74px;
  height: auto;
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 600;
}

.brand-sub {
  display: block;
  margin-top: 0.22rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--navy);
  position: relative;
  content: "";
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  padding: 0.35rem 1.25rem 0.85rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

body.nav-open .nav-panel {
  display: flex;
}

.nav-panel a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--gold-deep);
}

.nav-cta {
  margin-top: 0.35rem;
  border-bottom: 0;
}

@media (max-width: 879px) {
  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .nav-cta {
    margin-top: 0;
  }

  .site-header {
    position: sticky;
  }

  .nav-panel {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-panel a {
    padding: 0.4rem 0;
    border: 0;
  }

  body.nav-open .nav-panel {
    display: flex;
  }
}

/* Hero */

.hero {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(196, 161, 90, 0.16), transparent 60%),
    var(--navy);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.75rem, 8vw, 6.25rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 699px) {
  .hero .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
}

.hero h1 {
  font-size: clamp(2.35rem, 4.5vw, 3.55rem);
  color: var(--white);
  max-width: 11em;
  line-height: 1.12;
}

.lede {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: #e7eef4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #d4b36a;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold-soft);
}

.btn-ghost:hover {
  background: rgba(244, 241, 234, 0.08);
}

.bilingual {
  margin-top: 1.35rem;
  color: var(--gold-soft);
  font-size: 0.98rem;
}

.hero-brand {
  background: var(--cream);
  border-radius: 14px;
  padding: 0.85rem 0.85rem 0.35rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.hero-brand img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-inline: auto;
}

.hero-lockup {
  margin: 0.1rem 0.75rem 0.95rem;
  text-align: center;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.5rem;
  }
}

/* Focus strip */

.focus-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.focus-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 2.25rem;
  margin: 0 auto;
  padding: 1.15rem 0;
  text-align: center;
}

@media (max-width: 999px) {
  .focus-list {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-items: center;
  }
}

@media (max-width: 540px) {
  .focus-list {
    grid-template-columns: max-content;
  }
}

.focus-list li {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.focus-list li::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-1px);
}

@media (min-width: 800px) {
  .focus-list {
    padding: 1.35rem 0;
  }
}

/* Services */

.services {
  background: var(--paper);
}

.service-list,
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: item;
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-list li,
.steps li {
  counter-increment: item;
}

.service-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.25rem 1.2rem 1.3rem;
}

.service-list h3::before,
.steps h3::before {
  content: counter(item, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.service-list h3,
.steps h3 {
  font-size: 1.55rem;
  color: var(--navy);
}

.service-list p,
.steps p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.tools-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  color: var(--ink);
}

@media (min-width: 760px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .service-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* About */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.portrait {
  margin: 0;
  justify-self: start;
}

.portrait img {
  display: block;
  /* File is 400px wide. Cap at half of that so a 2x screen maps one file pixel to one screen pixel. */
  width: min(100%, 200px);
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(7, 30, 51, 0.16);
}

.about-panel {
  background: var(--navy);
  color: var(--cream);
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}

.about-panel .eyebrow {
  margin-bottom: 1rem;
}

.about-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-panel li {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(231, 211, 161, 0.35);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  max-width: var(--measure);
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(180px, 200px) minmax(0, 1fr);
    grid-template-areas:
      "photo copy"
      "panel panel";
    gap: 2rem 3rem;
    align-items: center;
  }

  .portrait {
    grid-area: photo;
  }

  .about-copy {
    grid-area: copy;
  }

  .about-panel {
    grid-area: panel;
  }

  .about-panel ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

@media (min-width: 1040px) {
  .about-panel ul {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-panel li {
    border-top: 0;
    padding-top: 0.35rem;
  }
}

/* Process */

.process {
  background: var(--cream);
}

.steps {
  display: grid;
  gap: 1.5rem;
}

.steps h3::before {
  font-size: 2.4rem;
  margin-bottom: 0.35rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Contact */

.contact {
  background: var(--navy);
  color: var(--cream);
}

.contact h2 {
  color: var(--white);
}

.contact .section-lead {
  color: #d5e0ea;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-link {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(231, 211, 161, 0.35);
}

.contact-link span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-link strong {
  display: block;
  margin-top: 0.2rem;
  font-weight: 650;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-aside {
  margin-top: 1rem;
  color: #d5e0ea;
  max-width: 36rem;
}

.contact-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 1.4rem 1.25rem 1.35rem;
}

.contact-card h3 {
  font-size: 1.7rem;
  color: var(--navy);
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.form-note,
.form-status {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-note {
  text-align: center;
}

.form-status:empty {
  display: none;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfc6b6;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.75rem;
  min-height: 48px;
}

.contact-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline-color: var(--navy);
  border-color: var(--navy);
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
  font: inherit;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Footer */

.site-footer {
  background: #051626;
  color: #d7e1ea;
  padding: 2.25rem 0 2rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--gold-soft);
}

.footer-areas {
  margin: 0;
}

.disclaimer {
  max-width: 46rem;
  color: #c5d2de;
}

/* 404 */

.missing {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.missing .eyebrow {
  color: var(--gold-deep);
}

.missing h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--navy);
  max-width: 14ch;
}

.missing p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--muted);
}

.missing .hero-actions {
  margin-top: 1.5rem;
}

.missing .btn-line {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

/* Print */

@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .contact-card,
  .skip-link {
    display: none;
  }

  body,
  .hero,
  .contact,
  .site-footer,
  .about-panel {
    background: white;
    color: black;
  }

  .hero h1,
  .contact h2,
  a {
    color: black;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
