/* =========================================================
   Lindsay Welch, CPA — Expert Witness Services
   Refined editorial aesthetic: deep navy, warm ivory, gold
   ========================================================= */

:root {
  --navy: #0f1e3d;
  --navy-deep: #0a1428;
  --navy-soft: #1a2a4f;
  --ivory: #f7f3ea;
  --cream: #efe8d8;
  --gold: #b8914a;
  --gold-bright: #d4a962;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --rule: #d9d0bc;
  --rule-dark: rgba(255, 255, 255, 0.15);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;

  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p { margin-bottom: 1rem; color: var(--ink-soft); }
p.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.nav-links a:hover { color: var(--navy); }

.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--ivory) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

.mobile-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem var(--pad);
    gap: 1.25rem;
    align-items: flex-start;
    display: none;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(184, 145, 74, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--ivory);
}

.btn svg { width: 14px; height: 14px; }

/* Hero portrait frame */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-left: auto;
  width: 100%;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  z-index: 0;
}

.portrait img, .portrait .placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
  line-height: 1.5;
  filter: grayscale(0.1);
}

@media (max-width: 900px) {
  .portrait { margin: 0 auto; max-width: 340px; }
}

/* ---------- Credibility bar ---------- */
.credibility {
  background: var(--navy);
  color: var(--cream);
  padding: 2.5rem 0;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.credibility-item .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.credibility-item .label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(239, 232, 216, 0.75);
}

@media (max-width: 720px) {
  .credibility-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

/* ---------- Section intros ---------- */
.section-intro {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.section-intro h2 { margin-bottom: 1rem; }

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.service {
  padding: 2.5rem 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background 0.3s ease;
  position: relative;
}

.service:hover { background: rgba(184, 145, 74, 0.06); }

.service:last-child { border-right: none; }

@media (max-width: 860px) {
  .service { border-right: none; }
}

.service-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: block;
}

.service h3 {
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.service p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- About section (home) ---------- */
.about-home {
  background: var(--cream);
  position: relative;
}

.about-home .about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .about-home .about-grid { grid-template-columns: 1fr; }
}

.about-home blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
  margin: 2rem 0;
}

/* ---------- CTA section ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle at center, rgba(184, 145, 74, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-banner h2 { color: var(--ivory); max-width: 720px; }
.cta-banner p { color: rgba(239, 232, 216, 0.85); max-width: 560px; margin-bottom: 2rem; }

.cta-banner .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.cta-banner .btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.cta-banner .btn-ghost {
  color: var(--cream);
  border-color: var(--cream);
}

.cta-banner .btn-ghost:hover {
  background: var(--cream);
  color: var(--navy);
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}

.page-header h1 { max-width: 900px; margin-bottom: 1.25rem; }
.page-header p.lead { max-width: 680px; color: var(--ink-soft); }

/* ---------- Content blocks (about, services detail) ---------- */
.content-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.content-block:last-child { border-bottom: none; }

.content-block .block-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 0.5rem;
}

.content-block h2 { margin-bottom: 1.25rem; }
.content-block h3 { margin-top: 2rem; margin-bottom: 0.75rem; color: var(--navy); }
.content-block p { max-width: 680px; }
.content-block ul {
  list-style: none;
  margin: 1rem 0;
  max-width: 680px;
}

.content-block li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--rule);
}

.content-block li:last-child { border-bottom: none; }

.content-block li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 820px) {
  .content-block { grid-template-columns: 1fr; gap: 1rem; }
  .content-block .block-label { padding-top: 0; }
}

/* ---------- Services page detail cards ---------- */
.service-detail {
  padding: clamp(3rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
}

.service-detail:last-child { border-bottom: none; }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 820px) {
  .service-detail-inner { grid-template-columns: 1fr; }
}

.service-detail .num-large {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
}

.service-detail h2 { margin-bottom: 1rem; }
.service-detail .detail-use-cases {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.service-detail .detail-use-cases h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.use-cases-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--rule);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3rem);
  border-left: 3px solid var(--gold);
}

.contact-card h3 {
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.contact-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: block;
}

.contact-item:last-child { border-bottom: none; }

.contact-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
  display: block;
}

.contact-item .value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  word-break: break-word;
}

a.contact-item:hover .value { color: var(--gold); }

.contact-copy h2 { margin-bottom: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(239, 232, 216, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.footer-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.footer-grid p { color: rgba(239, 232, 216, 0.7); font-size: 0.9rem; }

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a {
  color: rgba(239, 232, 216, 0.75);
  transition: color 0.2s ease;
}
.footer-grid a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(239, 232, 216, 0.55);
}

.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- Utility ---------- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}

.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
