/* ==========================================================================
   FDP Legal — shared stylesheet
   Brand: navy/blue text, gold accents only, light backgrounds.
   Spacing scale (8px base): 8 / 16 / 24 / 40 / 64 / 96
   ========================================================================== */

:root {
  --navy: #1e3a5f;
  --navy-ink: #15273d;  /* deeper navy for text ON gold — WCAG AA on the CTA */
  --blue: #3a6190;
  --gold: #c8983e;       /* bright gold: rules, dividers, sunburst, CTA fill */
  --gold-light: #e8c172;
  --gold-ink: #8a6a1c;   /* darkened gold for TEXT on light bg — passes WCAG AA (~5:1) */
  --grey: #6b7280;
  --sky: #7a9bbe;
  --bg: #fdfcfa;

  /* body copy leans navy/blue, never black */
  --ink: #35547a;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: var(--s1) var(--s2);
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(30, 58, 95, 0.07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  text-decoration: none;
  padding-block: var(--s1);
}
.brand-logo { display: block; height: 54px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-bottom: 2px;
}
@media (max-width: 480px) {
  .brand-logo { height: 44px; }
  .brand-name { font-size: 1.2rem; }
}

.site-nav { display: flex; gap: var(--s3); }
.site-nav a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); border-bottom-color: var(--gold-light); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Nav CTA button (header only) */
.site-nav a.nav-cta {
  background: var(--gold);
  color: var(--navy-ink);
  padding: 9px 20px;
  border-radius: 3px;
  border-bottom: 0;
}
.site-nav a.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy-ink);
  border-bottom: 0;
}
.site-nav a.nav-cta[aria-current="page"] { border-bottom: 0; }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 12px 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    padding: var(--s2) var(--s3) var(--s3);
    box-shadow: 0 12px 24px rgba(30, 58, 95, 0.08);
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a {
    font-size: 1.25rem;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.06);
  }
  .site-nav a[aria-current="page"] {
    color: var(--blue);
    font-weight: 700;
    border-bottom-color: rgba(30, 58, 95, 0.06);
  }
  .site-nav a.nav-cta {
    align-self: flex-start;
    margin-top: 14px;
    padding: 12px 24px;
    font-size: 1.0625rem;
    color: var(--navy-ink);
  }
  .site-nav a.nav-cta[aria-current="page"] { color: var(--navy-ink); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 15px 30px;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--gold-light); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { min-height: 660px; }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* people sit right-of-centre; text overlays the lighter left side */
  object-position: 68% 35%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(253, 252, 250, 0.97) 0%,
    rgba(253, 252, 250, 0.9) 34%,
    rgba(253, 252, 250, 0.62) 58%,
    rgba(253, 252, 250, 0.14) 85%
  );
}
@media (max-width: 640px) {
  .hero-veil { background: rgba(253, 252, 250, 0.86); }
}

.hero-content {
  position: relative;
  width: 100%;
  padding-block: var(--s6);
}
.hero-inner { max-width: 640px; }

.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0.015em;
  color: var(--navy);
  margin: 0;
}
.hero-kicker {
  margin: var(--s2) 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: var(--gold-ink);
}
.hero-sub {
  margin: var(--s1) 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue);
}
.hero-tagline {
  margin: var(--s4) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  color: var(--navy);
}

/* Value-proposition-led hero */
.hero-headline {
  margin: var(--s2) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  /* matched to the interior-page banner headings (.banner h1) */
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--navy);
  max-width: 18ch;
}
.hero-lede2 {
  margin: var(--s3) 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--blue);
  max-width: 46ch;
}
.hero .btn { margin-top: var(--s4); }

/* Credibility strip */
.cred {
  background: #f6f2ea;
  border-top: 1px solid rgba(200, 152, 62, 0.3);
  border-bottom: 1px solid rgba(200, 152, 62, 0.3);
}
.cred-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  padding-block: var(--s3);
}
.cred-item {
  position: relative;
  padding: 2px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.cred-item + .cred-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--gold);
}
@media (max-width: 720px) {
  .cred-item { padding: 2px 16px; font-size: 0.875rem; }
}

/* Closing call-to-action band (interior pages) */
.cta-band {
  background: #f6f2ea;
  border-top: 1px solid rgba(200, 152, 62, 0.3);
  text-align: center;
}
.cta-band .container { padding-block: var(--s5); }
.cta-band-line {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  color: var(--navy);
  margin: 0 0 var(--s3);
}

/* --------------------------------------------------------------------------
   Sections & shared typography
   -------------------------------------------------------------------------- */

.section { padding-block: var(--s5); }
@media (min-width: 768px) {
  .section { padding-block: var(--s6); }
}
/* Reduced top space (used before "Our Commitment") */
.section--tight-top { padding-top: var(--s3); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  color: var(--navy);
  margin: 0 0 var(--s2);
}
.centered { text-align: center; }

.gold-rule {
  width: 64px;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 0 var(--s4);
}
.gold-rule.centered { margin-inline: auto; }

.divider {
  width: min(240px, 50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Home preview sections
   -------------------------------------------------------------------------- */

.preview { text-align: center; }
.preview p {
  max-width: 680px;
  margin: 0 auto var(--s3);
  color: var(--grey);
  font-size: 1.0625rem;
}

/* Alternating warm tint gives the single-scroll flow rhythm (backgrounds stay light) */
.preview--tint { background: #f6f2ea; }

/* RE preview: a scannable line of headline agreement types (RE is the primary area) */
.preview-tags {
  max-width: 680px;
  margin: 0 auto var(--s3) !important;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.read-more {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.read-more::after { content: ' \2192'; color: var(--gold-ink); }
.read-more:hover { text-decoration: underline; text-decoration-color: var(--gold); }

.preview-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--s2);
  border: 2px solid rgba(200, 152, 62, 0.5);
}

.preview-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--navy);
  margin: 0 0 var(--s2);
}

.contact-strip { text-align: center; }
.contact-strip .contact-phone {
  margin: var(--s3) 0 0;
  color: var(--ink);
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Interior page banners
   -------------------------------------------------------------------------- */

.banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
@media (min-width: 768px) {
  .banner { min-height: 420px; }
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-img--re { object-position: 50% 65%; }
.banner-img--insurance { object-position: 50% 45%; }

.banner-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(253, 252, 250, 0.93) 0%,
    rgba(253, 252, 250, 0.72) 40%,
    rgba(253, 252, 250, 0.28) 75%,
    rgba(253, 252, 250, 0.06) 100%
  );
}

.banner-content {
  position: relative;
  width: 100%;
  padding-block: var(--s4);
}
.banner h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  color: var(--navy);
  margin: 0;
  max-width: 760px;
}
/* Long banner heading forced onto one line on desktop (Insurance page) */
.banner h1.banner-h1--fit {
  max-width: none;
  font-size: clamp(1.375rem, 3.3vw, 2.25rem);
}
@media (min-width: 768px) {
  .banner h1.banner-h1--fit { white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Prominent statement (below banner)
   -------------------------------------------------------------------------- */

.statement-block { padding-block: var(--s5) 0; }
@media (min-width: 768px) {
  .statement-block { padding-top: var(--s6); }
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  line-height: 1.3;
  margin: 0;
  text-align: center;
}
.st-navy { color: var(--navy); font-weight: 700; }
.st-grey { color: var(--grey); font-weight: 400; }
.st-gold { color: var(--gold-ink); font-weight: 700; }

.lede {
  margin: var(--s3) auto 0;
  font-size: 1.0625rem;
  color: var(--grey);
  max-width: 720px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Service category blocks (two balanced columns)
   -------------------------------------------------------------------------- */

.intro {
  max-width: 820px;
  margin: 0 auto var(--s4);
  text-align: center;
  color: var(--ink);
}

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}
@media (min-width: 820px) {
  .cols { grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
}

/* Category sub-headings: BOLD ALL CAPS sans, ZERO gap before their bullets.
   Space goes BETWEEN category groups, not within them. */
.cat { margin: 0 0 var(--s4); }
.cat:last-child { margin-bottom: 0; }
.cat h3 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin: 0;
}
.cat ul { margin: 2px 0 0; padding-left: 1.2em; }
.cat li { margin-top: 4px; color: var(--ink); }
.cat p { margin: 2px 0 0; color: var(--ink); }
.cat p + ul { margin-top: var(--s1); }

li::marker { color: var(--gold-ink); }

/* Commitment */
.commit-line {
  text-align: center;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 0;
}
.commit-list {
  max-width: 620px;
  margin: 0 auto;
  padding-left: 1.2em;
  font-size: 1.125rem;
  color: var(--ink);
}
.commit-list li { margin-top: var(--s1); }

/* --------------------------------------------------------------------------
   Your Attorney page
   -------------------------------------------------------------------------- */

.attorney-head { text-align: center; padding-top: var(--s5); }
.attorney-photo {
  width: min(280px, 68vw);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.12);
}
.attorney-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--navy);
  margin: var(--s3) 0 0;
}

.attorney-body {
  max-width: 800px;
  margin-inline: auto;
  padding-bottom: var(--s6);
  text-align: left;
}
.attorney-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.625rem;
  color: var(--navy);
  margin: var(--s5) 0 var(--s1);
}
.attorney-body .cat { margin-top: var(--s4); }
.attorney-body h2 + .cat { margin-top: 0; }
.attorney-body h2 + ul { margin-top: 0; }
.attorney-body ul { margin: 0; padding-left: 1.2em; }
.attorney-body li { margin-top: 6px; color: var(--ink); }
.attorney-body ul ul { margin-top: 4px; }
.attorney-body a { color: var(--blue); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-wrap {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--navy);
  margin: 0 0 var(--s2);
}
.contact-firm {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--navy);
  margin: var(--s4) 0 var(--s1);
}
.contact-line {
  margin: 4px 0;
  color: var(--ink);
  font-size: 1.0625rem;
}

.contact-form { margin-top: var(--s5); text-align: left; }
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin: var(--s2) 0 6px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--navy);
  border: 1px solid #d7dbe2;
  border-radius: 3px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 152, 62, 0.15);
}
.contact-form textarea { resize: vertical; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: var(--s3) 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--grey);
}
.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--gold);
}

.contact-form .btn { width: 100%; margin-top: var(--s3); }

.form-status {
  margin: var(--s2) 0 0;
  padding: 12px 14px;
  font-size: 0.9375rem;
  color: var(--navy);
  background: #f3ede1;
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  display: none;
}
.form-status.is-visible { display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(200, 152, 62, 0.45);
  background: #f7f4ee;
  padding: var(--s4) 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s4);
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: flex-end; gap: 8px; }
.footer-logo { height: 34px; width: auto; display: block; }
.footer-brand .brand-name { font-size: 1.15rem; padding-bottom: 1px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.footer-nav a {
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  color: var(--grey);
  font-size: 0.9375rem;
}
.footer-meta p { margin: 0; }

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-meta { flex-direction: column; gap: var(--s1); }
}
