/* ============================================================================
   PELTLAW, PLC: Stylesheet
   Classic navy + gold + serif. One cohesive theme. All design tokens live in
   :root below. Change a token, it updates everywhere. No colors hardcoded
   elsewhere.
   ========================================================================== */

:root {
  /* ---- Color ---- */
  --navy-950: #081729;   /* deepest navy: footer */
  --navy-900: #0B1F3A;   /* hero / footer / nav background */
  --navy-800: #12294B;   /* panels, cards on dark */
  --navy-700: #1C3A63;   /* borders, hovers on dark */
  --gold-500: #C8A24B;   /* primary accent (decorative + text on navy) */
  --gold-300: #E6CE8E;   /* hover/active gold */
  --gold-ink: #856420;   /* gold dark enough to read as TEXT on paper AND tan (AA on both) */
  --paper:    #F7F5EF;   /* warm off-white page background */
  --paper-2:  #EFEADF;   /* slightly deeper paper for gradient ends */
  --surface:  #FFFFFF;   /* card surfaces on paper */
  --ink:      #16202E;   /* body text on paper */
  --ink-soft: #4C586A;   /* secondary text on paper (AA on paper/white/gold-tint) */
  --ink-inv:  #EAEFF6;   /* text on navy */
  --ink-inv-soft: #A9B8CE;
  --line:     rgba(11,31,58,0.12);   /* hairline on paper */
  --line-inv: rgba(212,175,90,0.22); /* gold hairline on navy */
  --danger:   #9A3B3B;

  /* ---- Type ---- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* ---- Spacing (4px base) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 40px; --s-6: 64px; --s-7: 96px;

  --radius: 6px;
  --radius-sm: 4px;
  --container: 1140px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 10px 30px rgba(11,31,58,.07);

  --ribbon-h: 34px;
  --nav-h: 68px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon-h) + var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 var(--s-3); overflow-wrap: break-word; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s-3); }

/* Skip link: hidden until focused, then pinned top-left on-brand */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1200;
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 700; font-size: .9rem; text-decoration: none;
  padding: 10px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); transform: translateY(-150%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--navy-900); outline-offset: 2px; }
#main:focus { outline: none; }

/* Scroll reveal: armed by JS only (adds .reveal-on to <html>) and only when the
   visitor has not requested reduced motion, so content is never stuck hidden. */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-4); }
.section { padding: var(--s-7) 0; }
.section--tight { padding: var(--s-6) 0; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-ink);   /* readable as text on light backgrounds */
  margin: 0 0 var(--s-2);
}
/* On the dark (navy) sections the eyebrow sits on navy, where gold passes AA */
.hero .eyebrow, .experience .eyebrow, .contact .eyebrow { color: var(--gold-500); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Gold rule used under section headings */
.rule { width: 56px; height: 3px; background: var(--gold-500); border: 0; margin: 0 0 var(--s-4); }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--gold-500); color: #fff; text-shadow: 0 1px 2px rgba(11,31,58,.55); box-shadow: 0 2px 8px rgba(11,31,58,.20); }
.btn-primary:hover { background: var(--gold-500); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200,162,75,.5); }
.btn-outline { background: rgba(200,162,75,.08); color: var(--ink-inv); border-color: rgba(200,162,75,.6); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.btn-outline:hover { background: rgba(200,162,75,.16); border-color: var(--gold-500); color: var(--gold-300); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.btn-ink { background: var(--navy-900); color: var(--ink-inv); box-shadow: 0 2px 8px rgba(11,31,58,.20); }
.btn-ink:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(11,31,58,.32); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(11,31,58,.22); }

/* Visible keyboard focus across interactive elements */
a:focus-visible, .btn:focus-visible, .nav__toggle:focus-visible,
button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-300); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* ============================================================================
   DEMO ribbon
   ========================================================================== */
.demo-ribbon {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--ribbon-h);
  z-index: 1100;
  background: var(--navy-800);
  color: var(--gold-300);
  border-bottom: 1px solid var(--line-inv);
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  text-align: center; padding: 0 var(--s-3);
}
body.no-demo .demo-ribbon { display: none; }
body.no-demo { --ribbon-h: 0px; }

/* ============================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; left: 0; right: 0; top: var(--ribbon-h);
  height: var(--nav-h);
  z-index: 1000;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-inv);
  color: var(--ink-inv);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; height: 100%;
  padding: 0 var(--s-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.22rem; letter-spacing: .04em;
  color: var(--ink-inv); text-decoration: none; white-space: nowrap;
}
.brand b { color: var(--gold-500); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: var(--s-4); }
.nav__links a {
  position: relative;
  color: var(--ink-inv); text-decoration: none; font-size: .95rem; font-weight: 600;
  transition: color .15s;
}
.nav__links a:hover { color: var(--gold-300); }
/* gold underline accent wipes in on hover/focus (text links only, not the CTA) */
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a:not(.nav__cta):focus-visible::after { transform: scaleX(1); }
.nav__cta { margin-left: var(--s-2); padding: 9px 18px; font-size: .9rem; box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink-inv);
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

/* page is pushed below the fixed ribbon + nav */
.page { padding-top: calc(var(--ribbon-h) + var(--nav-h)); }

/* ============================================================================
   Hero (shorter navy band with a full-height photo panel on the right)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 430px;
  background:
    radial-gradient(900px 400px at 18% -20%, rgba(200,162,75,.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--ink-inv);
  border-bottom: 3px solid var(--gold-500);
}
/* Photo panel: bleeds to the top/right/bottom edges, blends into navy on its left */
.hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; max-width: 580px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-900) 0%, rgba(11,31,58,.80) 22%, rgba(11,31,58,0) 62%);
}
.hero__photo-name {
  position: absolute; left: var(--s-4); bottom: var(--s-3); z-index: 2;
  font-family: var(--font-display); color: #fff; font-size: 1.05rem; line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.hero__photo-name small { display: block; font-family: var(--font-body); color: var(--gold-300);
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

.hero__text {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: var(--s-6) var(--s-4);
}
.hero__text > * { max-width: 560px; }
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  color: #fff; margin-bottom: var(--s-4);
  hyphens: auto;
}
.hero__sub { font-size: 1.12rem; color: var(--ink-inv-soft); margin-bottom: var(--s-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.hero__trust {
  font-size: .9rem; color: var(--ink-inv-soft);
  border-top: 1px solid var(--line-inv); padding-top: var(--s-3); max-width: 44ch;
}
.hero__trust::before { content: "★ "; color: var(--gold-500); }

/* Scroll cue: gentle bounce chevron at the bottom of the hero */
.hero__scroll {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 3; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--gold-300); text-decoration: none;
}
.hero__scroll span {
  width: 13px; height: 13px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: heroBounce 1.8s ease-in-out infinite;
}
@keyframes heroBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* ============================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-6); align-items: start; }
.about__photo {
  width: 100%; aspect-ratio: 112/149; object-fit: cover; object-position: top center;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.about__photo-cap { font-size: .82rem; color: var(--ink-soft); text-align: center; margin-top: var(--s-2); }
.edu-block {
  margin-top: var(--s-4); padding: var(--s-4); background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--gold-500); border-radius: var(--radius);
}
.edu-block h3 { font-size: 1rem; margin-bottom: var(--s-1); }
.edu-block p { margin: 0; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); margin-top: var(--s-5); }
.stat {
  background: var(--navy-900); color: var(--ink-inv);
  border-radius: var(--radius); padding: var(--s-4); text-align: center;
  border: 1px solid var(--line-inv);
}
.stat__figure { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-500); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--ink-inv-soft); margin-top: var(--s-2); }
.disclaimer-note { font-size: .82rem; color: var(--ink-soft); margin-top: var(--s-3); font-style: italic; }

/* ============================================================================
   Practice areas
   ========================================================================== */
.practice { background: var(--paper-2); border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-4); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  border-top: 3px solid var(--line);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(11,31,58,.08), 0 16px 40px rgba(11,31,58,.10); }
.card--lead { border-top-color: var(--gold-500); }
.card__tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-500); padding: 2px 8px; border-radius: 3px; margin-bottom: var(--s-2);
}
.card__icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: var(--s-3);
  background: rgba(200,162,75,.14); color: var(--gold-ink);
}
.card__icon svg { width: 26px; height: 26px; display: block; }
.card--lead .card__icon { background: var(--gold-500); color: var(--navy-900); }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ============================================================================
   Experience / credentials (navy band)
   ========================================================================== */
.experience { background: var(--navy-900); color: var(--ink-inv); }
.experience h2 { color: #fff; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); max-width: 760px; }
.creds li {
  padding-left: var(--s-5); position: relative; color: var(--ink-inv-soft);
  border-bottom: 1px solid var(--line-inv); padding-bottom: var(--s-3);
}
.creds li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px;
  background: var(--gold-500); transform: rotate(45deg);
}

/* ============================================================================
   Testimonials
   ========================================================================== */
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s-4); }
.tcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s-3);
}
.tcard__quote { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); font-style: italic; }
.tcard__quote::before { content: "“"; color: var(--gold-500); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.tcard__who { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.tcard__avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy-900); color: var(--gold-500);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.tcard__matter { font-size: .85rem; color: var(--ink-soft); }
.results-note {
  background: rgba(200,162,75,.10); border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500); border-radius: var(--radius);
  padding: var(--s-3) var(--s-4); font-size: .88rem; color: var(--ink-soft); margin-bottom: var(--s-5);
}

/* ============================================================================
   Trust / memberships strip (sits directly under the hero)
   ========================================================================== */
.trustbar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.trustbar__list {
  list-style: none; margin: 0; padding: var(--s-4) 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5);
}
.trustbar__item {
  position: relative; padding-left: 20px;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em;
}
.trustbar__item::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; background: var(--gold-500); transform: rotate(45deg);
}

/* ============================================================================
   FAQ accordion (native <details>)
   ========================================================================== */
.faq { background: var(--paper-2); border-top: 1px solid var(--line); }
.faq__list { max-width: 820px; margin: var(--s-5) auto 0; display: grid; gap: var(--s-3); }
.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.faq__item[open] { border-left-color: var(--gold-500); }
.faq__q {
  cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; color: var(--gold-500); font-size: 1.5rem; font-family: var(--font-body);
  line-height: 1; flex: none; transition: transform .2s;
}
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__q:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }
.faq__a { padding: 0 var(--s-5) var(--s-4); color: var(--ink-soft); }
.faq__a p { margin: 0; }

/* ============================================================================
   Scheduling (Clio Scheduler / MS Bookings)
   ========================================================================== */
.schedule { background: var(--paper); border-top: 1px solid var(--line); }
.schedule .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.scheduler { max-width: 820px; margin: var(--s-5) auto var(--s-4); }
.scheduler .btn { font-size: 1.05rem; padding: 14px 28px; }

/* Demo placeholder shown until a real booking URL is set */
.scheduler-placeholder {
  background: rgba(200,162,75,.10); border: 2px dashed var(--gold-500);
  border-radius: var(--radius); padding: var(--s-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
}
.scheduler-placeholder p { margin: 0; color: var(--ink-soft); max-width: 460px; }
.scheduler-placeholder__btn { opacity: .6; cursor: default; pointer-events: none; box-shadow: none; transform: none; }

/* Inline iframe (only used when scheduler.embed is true AND framing is allowed) */
.scheduler-embed {
  border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.scheduler-embed iframe { display: block; width: 100%; min-height: 720px; border: 0; }

/* ============================================================================
   Contact
   ========================================================================== */
.contact { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--ink-inv); }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-6); align-items: start; }
.contact__list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.contact__list li { display: grid; grid-template-columns: 92px 1fr; gap: var(--s-3); align-items: baseline; }
.contact__list .k { color: var(--gold-300); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__list .v { color: var(--ink-inv); }
.contact__list a.v { text-decoration: none; }
.contact__list a.v:hover { color: var(--gold-300); }

.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow); }
.form .field { margin-bottom: var(--s-3); }
.form label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.form input, .form textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
.form textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .82rem; color: var(--ink-soft); margin-top: var(--s-3); }
.form__msg { display: none; margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  background: rgba(200,162,75,.14); border: 1px solid var(--gold-500); color: var(--ink); font-size: .92rem; }
.form__msg.show { display: block; }

/* ============================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-950); color: var(--ink-inv-soft); padding: var(--s-6) 0 var(--s-5); font-size: .9rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); align-items: center; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-inv); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer__nav a { color: var(--ink-inv-soft); text-decoration: none; }
.footer__nav a:hover { color: var(--gold-300); }
.footer__disclaimer { font-size: .8rem; color: var(--ink-inv-soft); margin-top: var(--s-4); line-height: 1.65; max-width: 80ch; }
.footer__disclaimer strong { color: #fff; }
.footer__bottom { margin-top: var(--s-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); align-items: baseline; }
.footer__copy { font-size: .8rem; color: #8094AB; margin: 0; }
.footer__credit { font-size: .8rem; color: #8094AB; margin: 0; }
.footer__credit a { color: var(--gold-300); text-decoration: none; font-weight: 600; }
.footer__credit a:hover { color: var(--gold-300); }

/* [TBD] placeholder token styling, only visible in demo mode */
body:not(.no-demo) .tbd { background: rgba(200,162,75,.18); border-bottom: 1px dashed var(--gold-500); padding: 0 3px; border-radius: 2px; }

/* ============================================================================
   Legal sub-pages (disclaimer / privacy / 404)
   ========================================================================== */
.legal { max-width: 820px; margin: 0 auto; padding: var(--s-7) var(--s-4); }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: var(--s-2); }
.legal h2 { font-size: 1.25rem; margin-top: var(--s-5); }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--navy-900); }
.back-link { display: inline-block; margin-bottom: var(--s-4); color: var(--gold-500); text-decoration: none; font-weight: 700; }

/* ============================================================================
   Responsive
   ========================================================================== */
/* Collapse the nav to a hamburger early enough that 7 links + CTA never crowd the bar */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; top: calc(var(--ribbon-h) + var(--nav-h)); left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--s-4) var(--s-4);
    border-bottom: 1px solid var(--line-inv);
    transform: translateY(-130%); transition: transform .25s ease, visibility .25s ease;
    box-shadow: var(--shadow);
    visibility: hidden;   /* keep links out of the tab order while closed */
  }
  .nav__links.open { transform: translateY(0); visibility: visible; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line-inv); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin: var(--s-3) 0 0; text-align: center; }
  .nav__toggle { display: block; }
}

@media (max-width: 860px) {
  /* Hero stacks: photo becomes a banner up top, text on navy below */
  .hero { display: block; min-height: 0; }
  .hero__photo { position: relative; width: 100%; max-width: none; height: 300px; }
  .hero__photo img { object-position: 50% 18%; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(11,31,58,0) 45%, var(--navy-900) 100%); }
  .hero__scroll { display: none; }
  .hero__text { padding: var(--s-5) var(--s-4) var(--s-6); }
  .hero__text > * { max-width: none; }
  .about__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .about__grid > div:first-child { text-align: center; }
  .about__photo { width: 180px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

@media (max-width: 760px) {
  .section { padding: var(--s-6) 0; }
}

@media (max-width: 420px) {
  .demo-ribbon { font-size: .68rem; }
  body { font-size: 16px; }
  .hero h1 { font-size: 1.95rem; }
  .hero__photo { height: 260px; }
  .container { padding: 0 var(--s-3); }
}

/* ============================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .card:hover { transform: none !important; }
}

/* Reset default figure/blockquote margins that were squeezing testimonial cards */
.tcard, .tcard__quote { margin: 0; }

/* Closing quotation mark to pair with the ::before opening mark */
.tcard__quote::after { content: "”"; color: var(--gold-500); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-left: 4px; }
