/* ---------- Design tokens ---------- */
:root {
  --paper: #f3f2f6;
  --paper-panel: #fdfcfe;
  --ink: #1b2036;
  --ink-soft: #565a72;
  --ink-faint: #8a8da3;
  --line: #dcdae4;
  --gold: #a67f2e;
  --gold-strong: #8a6a24;
  --gold-tint: #eee2c4;
  --navy: #171b30;
  --navy-soft: #2a2f4a;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container-width: 72rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 550;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: inherit;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--gold); }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 0.75em 1.25em;
  border-radius: 0.25em;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) {
  .container { padding-inline: 2.5rem; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9em;
}

.hero .eyebrow,
.site-footer .eyebrow { color: var(--gold-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 254, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .header-inner { padding: 1rem 2.5rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 550;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { color: var(--ink-soft); flex-shrink: 0; }

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* --- Language switch --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  flex-shrink: 0;
}
.lang-switch:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}
.lang-flag {
  display: block;
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Nav ---
   Baseline (works with no JavaScript at all): the full nav list is
   simply visible, stacked on narrow screens, in a row from tablet
   width up. Only once the "js" class lands on <html> (see the inline
   script in <head>) does the hamburger button appear and take over
   collapsing the list on narrow screens. This keeps the site fully
   readable and navigable without JavaScript, as required. */
.main-nav { position: relative; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
  background: transparent;
  border: 1px solid transparent;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.nav-list a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a:hover { color: var(--gold-strong); }

@media (min-width: 48rem) {
  .nav-list { flex-direction: row; gap: 1.75rem; }
}

@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-flex; }

  .js .nav-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    flex-direction: column;
    gap: 0;
    background: var(--paper-panel);
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    padding: 0.5rem;
    min-width: 11rem;
    box-shadow: 0 12px 28px -8px rgba(23, 27, 48, 0.18);
  }

  .js .nav-list.is-open { display: flex; }

  .js .nav-list a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
  }
  .js .nav-list a:hover { background: var(--gold-tint); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.25rem;
}

.hero-mark {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.hero-content { max-width: 42rem; }

@media (min-width: 64rem) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
  .hero-mark {
    width: 140px;
    height: 140px;
  }
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin-bottom: 0.55em;
}

.hero-sub {
  color: #c7c9dc;
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  border-radius: 0.4em;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-strong);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.btn-large {
  padding: 1em 2em;
  font-size: 1.05rem;
}

/* ---------- Sections (light) ---------- */
section:not(.hero):not(.site-footer) {
  padding: 4rem 0;
}

.about { border-bottom: 1px solid var(--line); }

.about h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

.lede {
  max-width: 48rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.about-note {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-faint);
  max-width: 42rem;
}

/* ---------- Services ---------- */
.services { border-bottom: 1px solid var(--line); }
.services h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (min-width: 64rem) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 30rem) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Process ---------- */
.process { border-bottom: 1px solid var(--line); }
.process h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.75rem; }

.step-list {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 64rem) {
  .step-list { grid-template-columns: repeat(4, 1fr); }
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 64rem) {
  .step { flex-direction: column; gap: 0.75rem; }
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-strong);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3em;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Rate ---------- */
.rate { border-bottom: 1px solid var(--line); }
.rate h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.rate p { max-width: 40rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.contact-location {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c7c9dc;
  padding: 2rem 0;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  margin: 0;
}

.footer-meta a {
  color: var(--gold-tint);
}
.footer-meta a:hover { color: var(--gold); }

/* ---------- Legal page ---------- */
.legal-main {
  padding: 4rem 0 5rem;
}

.legal-main h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.legal-main .lede { margin-top: 1rem; }

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
