/* Neumann Notary — assets at ?v=6
   Contrast tokens recomputed from hex 2026-08-16 (rule A5), on navy #0d1b2a unless noted:
   --cream #f5efe6 = 15.2:1 · --warm-white #fdfaf5 = 16.7:1 · --gold #c9a84c = 7.6:1
   --stone #a39887 = 6.1:1 · navy-on-gold (buttons) = 7.6:1
   gold on --deep #060e18 = 8.5:1
   NOT a text token: --border is gold at 30% over navy, which flattens to #454534 and
   computes 1.78:1 as a NON-TEXT boundary vs WCAG 1.4.11's 3:1. A5 governs text only, so
   this is a known open item, not an oversight — see PROJECT-STATE 2026-08-16. */
:root {
  --navy: #0d1b2a;
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --cream: #f5efe6;
  --warm-white: #fdfaf5;
  --deep: #060e18;
  --stone: #a39887;
  --border: rgba(201, 168, 76, 0.3);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Libre Baskerville', Georgia, serif;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 200;
  background: var(--gold); color: var(--navy);
  font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 0.1em;
  padding: 0.6rem 1rem; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ---- header / nav ------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--nav-h);
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  background: rgba(6, 14, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; min-width: 0; }
.brand-name {
  font-family: 'Cinzel', serif; font-size: clamp(0.95rem, 3.4vw, 1.1rem); font-weight: 600;
  color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.brand-tagline {
  font-style: italic; font-size: 0.7rem; color: var(--stone); letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; }
.nav-panel { display: flex; align-items: center; gap: 2.2rem; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem; color: var(--cream); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); background: var(--gold);
  padding: 0.55rem 1.4rem; text-decoration: none; transition: background 0.3s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-toggle { display: none; }

/* mobile nav: full-height panel below header, Escape-closable (rule A4).
   Breakpoint 920px: full nav crowds the brand/tagline into a wrap in the
   ~861-881px band (QA-measured), so the hamburger engages above it. */
@media (max-width: 920px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid var(--border); cursor: pointer;
  }
  .nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--gold); transition: transform 0.25s, opacity 0.25s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-panel {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    flex-direction: column; justify-content: flex-start; align-items: center;
    gap: 0; padding: 2.5rem 1.5rem;
    background: rgba(6, 14, 24, 0.98);
    overflow-y: auto;
    display: none;
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; align-items: center; gap: 0; }
  .nav-links a { display: block; font-size: 1rem; padding: 1.1rem 2rem; }
  .nav-cta { margin-top: 2rem; padding: 0.9rem 2.4rem; font-size: 0.85rem; }
}

/* ---- hero ---------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: calc(var(--nav-h) + 4rem) 1.25rem 4rem;
  position: relative; overflow: hidden; z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201, 168, 76, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--deep) 0%, var(--navy) 100%);
}
.hero-seal {
  width: 90px; height: 90px; color: var(--gold);
  border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
  animation: rotateSeal 30s linear infinite;
}
.hero-seal svg { animation: rotateSeal 30s linear infinite reverse; }
@keyframes rotateSeal { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.75rem, 12vw, 7.5rem);
  font-weight: 900; line-height: 0.95; color: var(--warm-white);
  animation: fadeUp 0.8s ease 0.4s both;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-style: italic; font-size: 1.05rem; color: var(--stone);
  margin-top: 1.5rem; max-width: 480px; line-height: 1.7;
  animation: fadeUp 0.8s ease 0.6s both;
}
.hero-divider { width: 60px; height: 1px; background: var(--gold); margin: 2rem auto 0; animation: fadeUp 0.8s ease 0.7s both; }
.hero-actions {
  display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeUp 0.8s ease 0.8s both;
}
.btn {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 1rem 2.2rem; text-decoration: none; display: inline-block;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-primary { color: var(--navy); background: var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { color: var(--gold); border: 1px solid var(--gold); }
.btn-ghost:hover { background: rgba(201, 168, 76, 0.1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---- shared section bits -------------------------------------------------- */
section { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section-label {
  font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--warm-white); line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ---- services ------------------------------------------------------------- */
.services { padding: 7rem 0; background: var(--deep); }
.services-header { text-align: center; margin-bottom: 4rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5px; background: var(--border);
  align-items: stretch;
}
@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.service-card {
  background: var(--navy); padding: 2.5rem 2rem; min-width: 0;
  transition: background 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: rgba(201, 168, 76, 0.05); }
.service-icon { color: var(--gold); margin-bottom: 1.1rem; }
.service-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--warm-white); margin-bottom: 0.6rem; }
.service-desc { font-size: 0.85rem; color: var(--stone); line-height: 1.7; }

/* ---- availability ---------------------------------------------------------- */
.availability { padding: 5.5rem 0; background: var(--navy); }
.avail-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.avail-badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; list-style: none; }
.badge {
  font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); border: 1px solid var(--border);
  padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.avail-quote { border-left: 2px solid var(--gold); padding-left: 2rem; min-width: 0; }
.pull-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--warm-white); line-height: 1.5; }
.pull-cite { margin-top: 1rem; font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ---- documents ------------------------------------------------------------- */
.documents { padding: 7rem 0; background: var(--deep); }
.docs-header { text-align: center; margin-bottom: 4rem; }
.docs-header .docs-intro { margin-top: 1rem; color: var(--stone); font-style: italic; font-size: 0.95rem; }
.docs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; align-items: start;
}
.doc-category {
  background: rgba(201, 168, 76, 0.04); border: 1px solid var(--border);
  padding: 2rem; transition: border-color 0.3s; min-width: 0;
}
.doc-category:hover { border-color: var(--gold); }
.doc-cat-title {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
}
.doc-list { list-style: none; }
.doc-list li {
  font-size: 0.85rem; color: var(--cream); padding: 0.4rem 0 0.4rem 1rem;
  position: relative; line-height: 1.45;
}
.doc-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; }
/* 7 cards: at 2-column widths (grid math caps at 2 cols below ~940px viewport)
   let the last card span the row instead of sitting orphaned beside a gap */
@media (max-width: 940px) {
  .docs-grid .doc-category:last-child { grid-column: 1 / -1; }
}
.docs-note { text-align: center; margin-top: 3rem; font-style: italic; font-size: 0.9rem; color: var(--stone); }
.docs-note a { color: var(--gold); }
.docs-note a:hover { color: var(--gold-light); }

/* ---- about ------------------------------------------------------------------ */
.about { padding: 6rem 0; background: var(--navy); }
.about-inner {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 3.5rem; align-items: center;
}
/* Fixed 240x300 slot at every viewport (see the max-width under 900px). The asset is
   shipped pre-cropped to 4:5 at 3x, so object-fit only guards against a future swap
   whose aspect ratio differs -- it is not doing the framing. */
.about-photo {
  aspect-ratio: 4 / 5; border: 1px solid var(--border);
  background: rgba(201, 168, 76, 0.04);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy { margin: 1.4rem 0 2rem; color: var(--cream); line-height: 1.8; font-size: 0.95rem; max-width: 60ch; }
.credential {
  margin-top: 2rem; padding: 1.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--gold);
}
.credential-name {
  font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warm-white); margin-bottom: 0.5rem;
}
.credential-line {
  font-family: 'Libre Baskerville', Georgia, serif; font-size: 0.8rem;
  line-height: 1.75; color: var(--stone);
}
.about-btn { font-size: 0.72rem; padding: 0.85rem 1.8rem; }

/* ---- contact ----------------------------------------------------------------- */
.contact { padding: 7rem 0; background: var(--deep); }
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4rem; align-items: start; }
.contact-info { min-width: 0; }
.contact-intro { color: var(--stone); font-style: italic; margin: 1rem 0 2.5rem; line-height: 1.7; font-size: 0.95rem; }
.info-items { display: flex; flex-direction: column; gap: 1.4rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
.info-icon { color: var(--gold); margin-top: 0.15rem; flex: none; }
.info-label { font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.info-value { font-size: 0.88rem; color: var(--cream); text-decoration: none; overflow-wrap: anywhere; }
a.info-value:hover { color: var(--gold); }
.info-note {
  font-size: 0.78rem; line-height: 1.6; color: var(--stone);
  font-style: italic; margin-top: 0.4rem; max-width: 34ch;
}

.form-wrap { background: var(--navy); border: 1px solid var(--border); padding: clamp(1.25rem, 4vw, 2.5rem); min-width: 0; }
.form-header { margin-bottom: 2rem; }
.form-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--warm-white); }
.form-sub { font-style: italic; font-size: 0.8rem; color: var(--stone); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.1rem; min-width: 0; }
.form-group label {
  font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem;
}
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--cream); font-family: 'Libre Baskerville', Georgia, serif; font-size: 0.85rem;
  padding: 0.7rem 0.9rem; transition: border-color 0.3s;
  width: 100%; min-width: 0;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--stone); font-style: italic; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--deep); color: var(--cream); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; }
.btn-submit {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--navy); background: var(--gold);
  border: none; padding: 1rem 2rem; width: 100%; cursor: pointer;
  transition: background 0.3s, transform 0.2s; margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.success-msg {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--gold); text-align: center; margin-top: 1.2rem; padding: 1rem;
  border: 1px solid var(--border);
}
.form-hint, .form-consent {
  font-size: 0.72rem; line-height: 1.6; color: var(--stone); margin-top: 0.5rem;
}
.form-consent { text-align: center; margin-top: 1rem; }
.form-consent a, .form-hint a { color: var(--gold); }

/* ---- footer -------------------------------------------------------------------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--border); padding: 2rem 1.25rem; text-align: center; position: relative; z-index: 1; }
.site-footer p { font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.15em; color: var(--stone); text-transform: uppercase; }
.site-footer strong { color: var(--gold); font-weight: 600; }
.site-footer a { color: var(--gold); }

/* ---- 404 ------------------------------------------------------------------------ */
.notfound { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.25rem; position: relative; z-index: 1; }
.notfound .hero-seal { animation: none; }
.notfound .hero-seal svg { animation: none; }
.notfound h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 900; color: var(--warm-white); margin-bottom: 1rem; }
.notfound p { color: var(--stone); font-style: italic; margin-bottom: 2rem; max-width: 46ch; line-height: 1.7; }

/* ---- responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .avail-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .about-photo { max-width: 240px; }
  .contact-top { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 820px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-eyebrow { letter-spacing: 0.18em; font-size: 0.68rem; }
}

/* ---- motion safety ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-seal, .hero-seal svg, .badge .dot { animation: none; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-divider, .hero-actions { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- legal pages -------------------------------------------------------- */
.legal { padding: 7rem 0 5rem; background: var(--navy); min-height: 60vh; }
.legal-inner { max-width: 68ch; }
.legal-title {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900; color: var(--warm-white); line-height: 1.1; margin: 0.6rem 0 0.4rem;
}
.legal-title em { color: var(--gold); font-style: italic; }
.legal-updated {
  font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 2.5rem;
}
.legal-lede { font-size: 1rem; line-height: 1.8; color: var(--warm-white); margin-bottom: 2.5rem; }
.legal h2 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--warm-white); margin: 2.5rem 0 0.8rem;
}
.legal p, .legal li { font-size: 0.9rem; line-height: 1.85; color: var(--stone); }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--warm-white); }
.legal a { color: var(--gold); }
.legal-back { margin-top: 3rem; }
