/* =========================================================
   MAYFAIR INVESTIGATIONS — Site Stylesheet
   Palette pulled from the firm's approved capabilities deck:
   near-black ground, parchment, and a single brass/gold accent.
   ========================================================= */

/* Self-hosted fonts — works fully offline from a local hard drive,
   no external CDN request required. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Color tokens */
  --ink:        #0a0a0a;   /* primary dark background */
  --ink-2:      #151310;   /* raised panel on dark */
  --ink-3:      #201d18;   /* card / border on dark */
  --parchment:  #f6f4ef;   /* primary light background */
  --parchment-2:#eeeae0;   /* raised panel on light */
  --charcoal:   #1c1a17;   /* primary text on light */
  --charcoal-70:#4a463f;   /* secondary text on light */
  --mist:       #b7b3a8;   /* secondary text on dark */
  --mist-60:    #85817a;   /* tertiary text on dark */
  --gold:       #c8a470;   /* brand accent */
  --gold-deep:  #9c7a45;   /* accent, on light bg / hover */
  --gold-line:  rgba(200,164,112,0.35);
  --hairline-dark:  rgba(246,244,239,0.12);
  --hairline-light: rgba(28,26,23,0.12);

  /* Type */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; color: var(--charcoal-70); }

.section-dark p { color: var(--mist); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9em;
}
.section-dark .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #d8b988; }

.btn-outline-dark {
  background: transparent;
  border-color: rgba(246,244,239,0.35);
  color: var(--parchment);
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(28,26,23,0.3);
  color: var(--charcoal);
}
.btn-outline-light:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--hairline-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  height: 44px;
  width: 44px;
  background: var(--parchment);
  border-radius: 2px;
  padding: 4px;
  flex-shrink: 0;
}
.brand-mark img { height: 100%; width: 100%; object-fit: contain; }
.brand-word {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mist);
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--parchment);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-dark);
  border-radius: 2px;
  color: var(--parchment);
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}

.header-cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 0.85em 0; border-bottom: 1px solid var(--hairline-dark); }
  .main-nav .header-cta { margin-top: 0.75rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta.desktop-only { display: none; }
}
@media (min-width: 901px) {
  .main-nav .header-cta.mobile-only { display: none; }
}

/* The mobile "Request a Briefing" link is both a .btn-gold button AND
   a .main-nav link. .main-nav a's color rule is more specific than
   .btn-gold's, so it was winning and making the button text nearly
   invisible on the gold background. Force it back to dark text. */
.main-nav a.btn-gold,
.main-nav a.btn-gold:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--hairline-dark);
}
.hero-crest {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(48vw, 620px);
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
}
.hero h1 {
  color: var(--parchment);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.45em;
}
.hero .lede {
  color: var(--mist);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 2.1em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-dark { background: var(--ink); color: var(--parchment); }
.section-tint { background: var(--parchment-2); }
.section-head {
  max-width: 660px;
  margin-bottom: 2.75rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-dark .section-head h2 { color: var(--parchment); }

/* ---------- Pillars (About teaser) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline-light);
  border: 1px solid var(--hairline-light);
}
.pillar {
  background: var(--parchment);
  padding: 2.2rem 2rem;
}
.pillar .pillar-num {
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.9em;
  display: block;
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.pillar p { margin: 0; font-size: 0.95rem; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Card grid (Services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--parchment);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.service-card .svc-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.55em; }
.service-card p { font-size: 0.95rem; margin: 0; }

.section-dark .service-card {
  background: var(--ink-2);
  border-color: var(--hairline-dark);
}
.section-dark .service-card:hover { border-color: var(--gold-line); }
.section-dark .service-card h3 { color: var(--parchment); }

/* ---------- Feature list (Why Mayfair / Standards) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 2.6rem;
}
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline-light);
}
.section-dark .feature { border-top-color: var(--hairline-dark); }
.feature h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.feature h3 .num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.section-dark .feature h3 .num { color: var(--gold); }
.feature p { font-size: 0.95rem; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
  border-top: 1px solid var(--hairline-dark);
}
.cta-banner h2 {
  color: var(--parchment);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 700px;
  margin: 0 auto 0.55em;
}
.cta-banner p {
  color: var(--mist);
  max-width: 560px;
  margin: 0 auto 2em;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Quote / spotlight block ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight-panel {
  background: var(--ink-2);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.spotlight-panel h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1em;
}
.spotlight-panel ul { display: flex; flex-direction: column; gap: 0.65rem; }
.spotlight-panel li {
  color: var(--mist);
  font-size: 0.95rem;
  padding-left: 1.3em;
  position: relative;
}
.spotlight-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
}

/* ---------- Table-ish list (Standards) ---------- */
.standard-block {
  border-top: 1px solid var(--hairline-dark);
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem 2.5rem;
}
@media (max-width: 700px) { .standard-block { grid-template-columns: 1fr; gap: 0.4rem; } }
.standard-block:last-child { border-bottom: 1px solid var(--hairline-dark); }
.standard-block h3 { color: var(--parchment); font-size: 1.1rem; margin: 0; }
.standard-block p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--hairline-dark);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline-dark);
}
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--mist-60); font-size: 0.9rem; max-width: 280px; }
.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.1em;
}
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a,
.footer-links span { color: var(--mist); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Responsive 4-col grid (used for insurer names) ---------- */
.pillars-4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .pillars-4col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .pillars-4col { grid-template-columns: 1fr; } }

/* ---------- Insurer logo grid ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline-light);
  border: 1px solid var(--hairline-light);
}
@media (max-width: 760px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .logo-grid { grid-template-columns: 1fr; } }
.logo-tile {
  background: var(--parchment);
  min-height: 128px;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-tile img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}
.logo-tile.is-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--charcoal);
  text-align: center;
}

/* ---------- Service row (full-width title, no cramped label column) ---------- */
.service-row {
  border-top: 1px solid var(--hairline-light);
  padding: 1.7rem 0;
}
.service-row:last-child { border-bottom: 1px solid var(--hairline-light); }
.service-row h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45em;
  color: var(--charcoal);
}
.service-row p { margin: 0; max-width: 760px; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { margin: 0; color: var(--mist-60); font-size: 0.82rem; }

/* ---------- Page intro (interior pages) ---------- */
.page-intro {
  background: var(--ink);
  padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  border-bottom: 1px solid var(--hairline-dark);
}
.page-intro h1 { color: var(--parchment); font-size: clamp(2rem, 4.4vw, 3rem); max-width: 760px; }
.page-intro .lede { color: var(--mist); max-width: 640px; font-size: 1.05rem; margin: 0; }

/* ---------- Breadcrumb-ish back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* ---------- Simple entrance animation for hero ---------- */
.fade-up {
  animation: fadeUp 0.7s ease both;
}
.fade-up.delay-1 { animation-delay: 0.08s; }
.fade-up.delay-2 { animation-delay: 0.16s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}

/* ---------- Contact cards (no-form contact page) ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--parchment-2);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  text-align: center;
}
.contact-card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}
.contact-card .icon-badge svg { width: 20px; height: 20px; stroke: var(--gold); }
.contact-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 0.7em;
}
.contact-card p { margin: 0; font-size: 1.02rem; color: var(--charcoal); line-height: 1.5; }
.contact-card a { color: var(--charcoal); }
.contact-card a:hover { color: var(--gold-deep); }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
