/* ==========================================================================
   Fox Paralegal Solutions LLC
   Palette from Amanda's Board A. Rose gold measures 2.6:1 on ivory, so it is
   RULES AND ORNAMENT ONLY — never text, never a focus ring. Body ink is
   12.5:1 and sage headings are 7.9:1, both comfortably past WCAG AA.
   No build step, no dependencies. Edit this file directly.
   ========================================================================== */

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-latin.woff2') format('woff2');
  font-weight: 400 600;         /* variable axis, confirmed against the Google Fonts range API */
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2190-2193;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2190-2193;
}

:root {
  --ivory:      #FAF7F3;
  --warm-gray:  #E7E4DE;
  --sage:       #345446;
  --sage-deep:  #22332B;
  --rose-gold:  #C78E7A;
  --blush:      #D8A7A0;

  --ink:        var(--sage-deep);
  --ink-muted:  #4A5B52;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --measure: 34rem;
  --shell:   min(68rem, 100% - 2.5rem);
  --header-h: 5.6rem;   /* sticky bar height — drives scroll-padding so anchor targets clear it */

  --step-0: clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
  --step-1: clamp(1.20rem, 1.11rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.36rem + 0.95vw, 2.10rem);
  --step-3: clamp(2.00rem, 1.60rem + 2.00vw, 3.25rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Without this, jumping to #services parks the heading UNDERNEATH the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--sage);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--sage); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-deep); }

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

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- eyebrow / ornament ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.rule {
  width: 3.5rem;
  height: 2px;
  border: 0;
  background: var(--rose-gold);
  margin: 0 0 1.75rem;
}

/* ---------- wordmark (typographic — no AI fox art) ---------- */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;      /* optical centring against the tracking */
  color: var(--sage);
  text-transform: uppercase;
}
.wordmark__sub {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.34rem;
  border-top: 1px solid var(--rose-gold);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.15rem 0;
  background: var(--ivory);          /* must be opaque — it sits over the dark About band */
  border-bottom: 1px solid var(--warm-gray);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

/* ---------- mobile nav toggle ----------
   Hidden unless JS is running. With JS off the links stay visible and simply wrap,
   which is exactly the pre-existing behaviour — the menu is an enhancement, never a
   requirement for reaching the nav. */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: none;
  border: 1px solid var(--warm-gray);
  border-radius: 2px;
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sage);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--sage);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

.site-header.is-open .nav-toggle__bars { background: transparent; }
.site-header.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 40rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--warm-gray);
  }
  .js .site-header.is-open .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--warm-gray);
  }
  .js .site-header.is-open .site-nav a:last-child { border-bottom: 0; }
}

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--warm-gray); }
.section--dark { background: var(--sage); color: var(--ivory); }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark .eyebrow { color: var(--blush); }
.section--dark a { color: var(--ivory); }

.section__head { max-width: var(--measure); margin-bottom: 3rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__lede {
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 38rem;
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.95rem 2.1rem;
  background: var(--sage);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--sage);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--ivory); }

/* ---------- services ---------- */

.services {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.service h3 { margin-bottom: 0.5rem; }
.service p { font-size: 0.95rem; color: var(--ink-muted); max-width: none; }
.service::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  background: var(--rose-gold);
  margin-bottom: 1.1rem;
}

/* ---------- about ---------- */

.about { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .about { grid-template-columns: 1.35fr 1fr; gap: 4.5rem; }
}
.about p { max-width: none; }

.credentials { margin: 0; padding: 0; list-style: none; }
.credentials li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(250, 247, 243, 0.22);
  font-size: 0.92rem;
}
.credentials li:first-child { border-top: 1px solid rgba(250, 247, 243, 0.22); }
.credentials strong { font-weight: 600; }

/* ---------- form ---------- */

.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 4.5rem; }
}

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}
.field .req { color: var(--sage); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid #C9C4BC;
  border-radius: 2px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); }

/* honeypot — visually and programmatically hidden from real users */
.trap {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-note {
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--warm-gray);
  border-left: 3px solid var(--rose-gold);
  font-size: 0.9rem;
}
.form-note strong { display: block; margin-bottom: 0.25rem; }

.form-status { margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status[data-state="error"] {
  padding: 1rem 1.25rem;
  background: #F6E4DE;
  border-left: 3px solid #A8442A;
  color: #6E2A18;
}

.direct dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}
.direct dd { margin: 0 0 1.6rem; font-size: 1.02rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--sage-deep);
  color: var(--ivory);
  padding: 3rem 0 2.5rem;
  font-size: 0.85rem;
}
.site-footer a { color: var(--ivory); }
.disclaimer {
  max-width: 46rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(250, 247, 243, 0.2);
  color: #DCE4DF;
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  justify-content: space-between;
  color: #C4D0C8;
}

/* ---------- prose (privacy page) ---------- */

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
