/* ==========================================================
   Christopher Bray Notary Corp
   Tokens: navy + gold, EB Garamond (headings) / Lato (body)
   ========================================================== */
:root {
  --navy-900: #0A1838;
  --navy-800: #0E2148;
  --navy-700: #16305F;
  --navy-600: #24427A;
  --gold-500: #C9A45C;   /* on navy, buttons */
  --gold-400: #D8BA7E;
  --gold-700: #8A6A2C;   /* gold text on light backgrounds (AA) */
  --gold-100: #F4ECDD;

  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --text: #14213D;
  --text-muted: #4A5568;
  --text-on-dark: #F3F5FA;
  --text-on-dark-muted: #C3CCDD;
  --border: #E2DED4;
  --error: #B42318;

  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 24, 56, .06), 0 2px 8px rgba(10, 24, 56, .05);
  --shadow-md: 0 8px 30px rgba(10, 24, 56, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--lg { width: 26px; height: 26px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }

/* Eyebrow: italic serif label with gold rule, echoes reference script labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem;
  color: var(--gold-700); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-sans); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-600); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--navy-900); color: var(--text-on-dark-muted); font-size: .85rem; }
.topbar__inner { display: flex; gap: 28px; align-items: center; min-height: 40px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar .icon { color: var(--gold-500); }
.topbar__loc { margin-left: auto; }

.nav { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-800); }
.brand__seal { width: 56px; height: 56px; color: var(--gold-700); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.brand__sub { font-size: .7rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-700); margin-top: 4px; }

.nav__menu { display: flex; align-items: center; gap: 36px; }
.nav__links { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav__links a {
  position: relative; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--navy-800);
  padding: 10px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--navy-800); cursor: pointer; border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(36, 66, 122, .55), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--text-on-dark);
  padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
}
.hero::before { /* faint guilloche-style rings, a nod to seals and certificates */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: repeating-radial-gradient(circle at 10% 110%, transparent 0 22px, var(--gold-400) 22px 23px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { color: #fff; }
.lead { font-size: 1.15rem; color: var(--text-on-dark-muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .92rem; color: var(--text-on-dark-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--gold-500); width: 18px; height: 18px; }

.hero__media { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.frame { position: relative; }
.frame::before { /* offset gold panel from the reference */
  content: ""; position: absolute; inset: -28px -28px 28px 28px; z-index: 0;
  background: linear-gradient(160deg, var(--gold-500), #A8853F);
  border-radius: 10px;
}
.frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-md); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }

/* About */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-md); }
/* Keep faces in frame when the 2:3 photos are cropped */
.frame img.photo-hero { object-position: 50% 18%; }
.about__media img.photo-about { object-position: 50% 12%; }
.about__badge {
  position: absolute; right: -20px; bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  background: var(--navy-800); color: #fff; padding: 18px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-md); font-size: .85rem; line-height: 1.3; font-weight: 700;
  border-left: 4px solid var(--gold-500);
}
.about__badge-num { font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold-400); font-weight: 600; }
.about__copy > p { color: var(--text-muted); }
.about__copy > .about__creds {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy-800);
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}
.about__creds span { color: var(--gold-700); font-weight: 600; }
.about__cards { display: grid; gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border-radius: 8px; padding: 28px; box-shadow: var(--shadow-sm); }
.card--outline { border: 1px solid var(--border); box-shadow: none; padding: 22px 24px; border-left: 3px solid var(--gold-500); }
.card--outline h3 { font-size: 1.3rem; margin-bottom: .3em; color: var(--navy-800); }
.card--outline p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* Services */
.services { background: var(--navy-800); color: var(--text-on-dark); position: relative; }
.services .section__head p { color: var(--text-on-dark-muted); }
.services h2 { color: #fff; }
.services__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(201, 164, 92, .22); border: 1px solid rgba(201, 164, 92, .22); border-radius: 10px; overflow: hidden;
}
.service { background: var(--navy-800); padding: 32px 28px 34px; transition: background-color .25s var(--ease); }
.service:hover { background: var(--navy-700); }
.service__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, .5); color: var(--gold-400); margin-bottom: 20px;
}
.service h3 { color: #fff; font-size: 1.3rem; }
.service p { color: var(--text-on-dark-muted); font-size: .95rem; margin: 0; }
.service--cta { background: var(--navy-700); display: flex; flex-direction: column; }
.service--cta h3 { color: var(--gold-400); }
.link-arrow {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-400); font-weight: 700; text-decoration: none; min-height: 44px;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info > p { color: var(--text-muted); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list li > div { min-width: 0; overflow-wrap: anywhere; }
.contact__icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400);
}
.contact__icon .icon { width: 20px; height: 20px; }
.contact__list strong { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.contact__list a { text-decoration: none; font-weight: 700; color: var(--navy-800); }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__list span { color: var(--text-muted); }

.contact__form { padding: clamp(24px, 4vw, 44px); border-top: 4px solid var(--gold-500); }
.contact__form h3 { font-size: 1.6rem; color: var(--navy-800); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: .9rem; color: var(--navy-800); }
.optional { font-weight: 400; color: var(--text-muted); }
input, select, textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--text);
  min-height: 48px; padding: 11px 14px;
  background: #fff; border: 1.5px solid #CBD2DC; border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(201, 164, 92, .45); }
[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; font-size: .85rem; color: var(--error); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__hint { font-size: .85rem; color: var(--text-muted); }
.form__status { margin: 14px 0 0; font-weight: 700; color: var(--navy-700); }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--text-on-dark-muted); padding: 48px 0; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.brand--footer { color: #fff; }
.brand--footer .brand__seal, .brand--footer .brand__sub { color: var(--gold-500); }
.footer__links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; display: inline-block; padding: 10px 0; }
.footer__links a:hover { color: var(--gold-400); }
.footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

/* Inner pages (privacy) */
.page-hero {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--text-on-dark); padding: clamp(48px, 7vw, 88px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero__meta { color: var(--text-on-dark-muted); margin: 0; font-size: .95rem; }
.legal { padding-top: clamp(48px, 6vw, 80px); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--navy-800); margin-top: 1.6em; }
.legal__body p, .legal__body li { color: var(--text-muted); }
.legal__body strong { color: var(--text); }
.legal__body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal__body li { margin-bottom: .4em; }
.legal__body a { color: var(--navy-700); text-underline-offset: 3px; }
.legal__intro { font-size: 1.1rem; }
.legal__contact {
  font-style: normal; line-height: 1.7; margin: 0 0 1em;
  padding: 18px 22px; background: var(--surface); border-left: 3px solid var(--gold-500); border-radius: var(--radius);
}
.footer__links a[aria-current="page"] { color: var(--gold-400); }
.form__hint a { color: var(--navy-700); }

/* Reveal on scroll (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .topbar .topbar__loc { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__links a::after { display: none; }
  .nav { position: relative; }

  .hero__grid, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { justify-self: center; max-width: 360px; margin: 24px auto 0; padding: 0 28px 0 0; }
  .about__media { max-width: 480px; }
  .about__badge { right: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar__inner { gap: 16px; font-size: .8rem; }
  .topbar a:nth-child(2) { display: none; }
  .topbar .topbar__loc { display: inline-flex; }
  .topbar a, .topbar span { white-space: nowrap; }
  .brand__name { font-size: 1.2rem; }
  .brand__seal { width: 48px; height: 48px; }
  .services__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
