:root {
  --ink: #0a0c0b;
  --ink-2: #121615;
  --teal-deep: #0c3532;
  --teal: #17625c;
  --teal-bright: #2fa59a;
  --gold: #d4a640;
  --gold-light: #f0d38b;
  --gold-dark: #9c7522;
  --parchment: #f7f0de;
  --parchment-2: #efe4c8;
  --text-dark: #1d1a14;
  --text-muted: #5b5341;
  --text-light: #efe9da;
  --error: #b3261e;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
  --serif-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif-body: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--text-dark);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 2px solid var(--gold-dark);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold-light);
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--gold-light); background: rgba(47, 165, 154, 0.18); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    border-bottom: 2px solid var(--gold-dark);
    padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { border-radius: 10px; padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(47, 165, 154, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(212, 166, 64, 0.22), transparent 55%),
    var(--ink);
  color: var(--text-light);
  text-align: center;
  padding: 64px 20px 72px;
}
.hero-logo {
  width: min(320px, 72vw);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 28px rgba(212, 166, 64, 0.28));
}
.eyebrow {
  font-family: var(--serif-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-bright);
  font-size: 0.8rem;
  margin: 0 0 10px;
}
.hero h1, .page-hero h1 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #fff3cc, var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.motto {
  font-style: italic;
  color: var(--gold-light);
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.motto-translation { color: #b9b2a0; margin: 0 0 28px; font-size: 0.95rem; }
.hero-lead { max-width: 640px; margin: 0 auto 32px; font-size: 1.12rem; }

.page-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(47, 165, 154, 0.3), transparent 65%),
    var(--ink);
  color: var(--text-light);
  text-align: center;
  padding: 52px 20px 48px;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { max-width: 640px; margin: 0 auto; color: #d9d2bf; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: var(--ink);
  box-shadow: 0 8px 22px -10px rgba(212, 166, 64, 0.8);
}
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal-bright); }
.btn-outline { color: var(--gold-light); border-color: var(--gold); background: transparent; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 20px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-narrow { max-width: 760px; margin: 0 auto; }
.section-teal {
  background: linear-gradient(160deg, var(--teal-deep), #0a2422);
  color: var(--text-light);
}
.section-parchment-2 { background: var(--parchment-2); }
.section h2 {
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  color: var(--teal-deep);
  text-align: center;
}
.section-teal h2 { color: var(--gold-light); }
.section-intro { text-align: center; max-width: 680px; margin: 0 auto 36px; color: var(--text-muted); }
.section-teal .section-intro { color: #cfe3df; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 26px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { font-size: 1.1rem; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.pillar {
  background: #fffaf0;
  border: 1px solid #e3d3a5;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.section-teal .pillar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 166, 64, 0.35);
  border-top-color: var(--gold);
}
.pillar-num {
  font-family: var(--serif-display);
  color: var(--teal-bright);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}
.pillar h3 {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  margin: 6px 0 10px;
  color: var(--teal-deep);
}
.section-teal .pillar h3 { color: var(--gold-light); }
.pillar p { margin: 0; font-size: 1rem; }

.pillar-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid #ddcfa8;
}
.pillar-detail:last-child { border-bottom: 0; }
.pillar-detail .badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold-light);
  background: radial-gradient(circle at 35% 30%, var(--teal-bright), var(--teal-deep));
  box-shadow: 0 0 0 3px var(--gold);
}
.pillar-detail h3 {
  font-family: var(--serif-display);
  color: var(--teal-deep);
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.pillar-detail p { margin: 0 0 10px; }
.pillar-detail ul { margin: 0; padding-left: 20px; }
@media (max-width: 560px) {
  .pillar-detail { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px var(--gold);
}
.timeline .when {
  font-family: var(--serif-display);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.timeline p { margin: 2px 0 0; color: #dfe9e6; }

/* ---------- Documents viewer ---------- */
.doc-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}
.doc-picker button {
  font-family: var(--serif-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-dark);
  background: #fffaf0;
  color: var(--teal-deep);
  cursor: pointer;
}
.doc-picker button[aria-current="true"] {
  background: var(--teal-deep);
  color: var(--gold-light);
  border-color: var(--gold);
}
.doc-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) { .doc-viewer { grid-template-columns: 1fr; } }
.doc-frame {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 0 0 2px var(--gold-dark), var(--shadow);
}
.doc-frame a { display: block; cursor: zoom-in; }
.doc-frame img { width: 100%; height: auto; border-radius: 6px; background: #222; }
.doc-pending {
  aspect-ratio: 8.5 / 11;
  display: grid;
  place-items: center;
  text-align: center;
  color: #cfc6ad;
  padding: 24px;
  border: 1px dashed var(--gold-dark);
  border-radius: 6px;
  font-size: 0.95rem;
}
.doc-meta .doc-count {
  font-family: var(--serif-display);
  color: var(--teal);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.doc-meta h2 { text-align: left; margin: 6px 0 4px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.3; }
.doc-date { color: var(--text-muted); margin: 0 0 18px; font-style: italic; }
.doc-meta h3 {
  font-family: var(--serif-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 20px 0 6px;
}
.doc-meta ul { margin: 0; padding-left: 20px; }
.doc-meta li { margin-bottom: 4px; }
.doc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.doc-nav .btn { padding: 11px 20px; }
.doc-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }

/* ---------- Form ---------- */
.form-card {
  background: #fffaf0;
  border: 1px solid #e3d3a5;
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 34px clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend {
  display: block;
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  margin-bottom: 6px;
  padding: 0;
}
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { color: var(--gold-dark); margin-left: 3px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field input[type="number"], .field input[type="date"],
.field input[type="time"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #cbbb8e;
  border-radius: 10px;
  background: #fff;
  color: var(--text-dark);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--error);
}
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #d8c999;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.field .choice {
  font-family: var(--serif-body);
  letter-spacing: 0;
  color: var(--text-dark);
  margin: 0;
}
.choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--teal); }
.choice:has(input:checked) { border-color: var(--teal); background: #eef7f5; }
.other-text { margin-top: 10px; }
.help { font-size: 0.88rem; color: var(--text-muted); margin: 6px 0 0; }
.error-text { color: var(--error); font-size: 0.9rem; margin: 6px 0 0; min-height: 0; }
.form-error {
  background: #fdecea;
  border: 1px solid #f1b7b2;
  color: var(--error);
  padding: 12px 14px;
  border-radius: 10px;
  margin: 18px 0 0;
}
.form-actions { margin-top: 26px; display: flex; justify-content: flex-end; }
.skeleton { height: 54px; border-radius: 10px; background: linear-gradient(90deg, #efe6cf, #f8f2e2, #efe6cf); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .btn:hover { transform: none; } }
.thanks { text-align: center; padding: 20px 0; }
.thanks .seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--gold-light);
  background: radial-gradient(circle at 35% 30%, var(--teal-bright), var(--teal-deep));
  box-shadow: 0 0 0 3px var(--gold);
}
.thanks h2 { margin-bottom: 8px; }

.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.contact-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--text-light);
  border: 1px solid var(--gold-dark);
}
.contact-item h3 {
  font-family: var(--serif-display);
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.contact-item p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #bdb6a3;
  border-top: 2px solid var(--gold-dark);
  padding: 36px 20px;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer .foot-name {
  font-family: var(--serif-display);
  color: var(--gold-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--teal-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 12px; }