/* ============================================================
   WARD LAW FIRM — Design System
   Editorial / Litigation Authority
   Colors: Deep navy #0a2540 + warm gold #b8924a + ivory #faf8f3
   Fonts: Fraunces (display) + Inter (body) + JetBrains Mono (labels)
   ============================================================ */

:root {
  --ink: #0a2540;          /* deep navy — primary brand */
  --ink-dark: #061a30;     /* even deeper for hover */
  --gold: #b8924a;          /* warm gold — accent */
  --gold-light: #d4b876;    /* lighter gold for hover */
  --ivory: #faf8f3;         /* warm off-white background */
  --paper: #ffffff;        /* cards */
  --warm-gray: #6b6b6b;     /* body text muted */
  --line: #e8e2d5;          /* subtle borders */
  --shadow: 0 1px 3px rgba(10, 37, 64, 0.04), 0 4px 12px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 8px 32px rgba(10, 37, 64, 0.10), 0 2px 8px rgba(10, 37, 64, 0.06);
  --radius: 2px;
  --radius-lg: 4px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --max: 1280px;
  --gutter: 32px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--gold); }

em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

/* ============================================================
   Layout
   ============================================================ */

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

section {
  padding: 80px 0;
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  :root { --gutter: 20px; }
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); gap: 24px; }

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: 1fr; }
  [class*="span-"] { grid-column: 1; }
}

/* ============================================================
   Top utility bar (dark)
   ============================================================ */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
}

.topbar a:hover {
  color: var(--gold-light);
}

.topbar-left, .topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-call {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  vertical-align: middle;
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav a:hover, .nav a.active { color: var(--gold); }

.cta-btn {
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 800px) {
  .nav { display: none; flex-direction: column; gap: 16px; width: 100%; padding: 24px 0; align-items: flex-start; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--ink);
  color: white;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(184, 146, 74, 0.18), transparent 50%),
    radial-gradient(ellipse at 0% 80%, rgba(184, 146, 74, 0.10), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  color: white;
  font-weight: 300;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  color: var(--gold-light);
  font-weight: 500;
}

.hero-lede {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .cta-primary {
  background: var(--gold);
  color: var(--ink);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.hero-actions .cta-primary:hover {
  background: var(--gold-light);
  color: var(--ink-dark);
}

.hero-actions .cta-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
}

.hero-actions .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.hero-card h3 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.hero-trust-item svg {
  flex-shrink: 0;
  color: var(--gold);
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { padding: 24px; }
}

/* ============================================================
   Trust bar (Martindale-style)
   ============================================================ */

.trust-bar {
  background: var(--paper);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--warm-gray);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-item .icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

@media (max-width: 720px) {
  .trust-bar-inner { gap: 24px; }
}

/* ============================================================
   Practice areas (asymmetric editorial grid)
   ============================================================ */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 24px;
}

.practice-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
}

.practice-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.practice-card.tall {
  grid-column: span 6;
  grid-row: span 2;
  background: var(--ink);
  color: white;
}

.practice-card.tall .practice-eyebrow { color: var(--gold-light); }

.practice-card.tall h3 { color: white; }

.practice-card.tall p { color: rgba(255, 255, 255, 0.78); }

.practice-card.wide {
  grid-column: span 6;
}

.practice-card.half {
  grid-column: span 6;
}

.practice-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.practice-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  margin: 0;
}

.practice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 16px;
}

.practice-card.tall .practice-link { color: var(--gold-light); }

@media (max-width: 960px) {
  .practice-card.tall,
  .practice-card.wide,
  .practice-card.half {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ============================================================
   About snippet
   ============================================================ */

.about {
  background: var(--paper);
}

.about-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 300;
}

.about-text em {
  color: var(--gold);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num sup {
  font-size: 1.5rem;
  color: var(--gold);
  margin-left: 2px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

@media (max-width: 720px) {
  .about-stats { grid-template-columns: 1fr; gap: 24px; }
  .stat-num { font-size: 2.25rem; }
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
  background: var(--ink);
  color: white;
}

.testimonials h2 { color: white; }

.testimonials .eyebrow { color: var(--gold-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 2px solid var(--gold);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

.testimonial-quote::before {
  content: "\201C";
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  line-height: 0.5;
  margin-bottom: 12px;
}

.testimonial-cite {
  font-size: 13px;
  color: var(--gold-light);
}

.testimonial-cite strong {
  display: block;
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

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

/* ============================================================
   CTA banner
   ============================================================ */

.cta-banner {
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 146, 74, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: white;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.cta-banner h2 em {
  color: var(--gold-light);
}

.cta-banner p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
}

.cta-banner .cta-primary {
  background: var(--gold);
  color: var(--ink);
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  display: inline-block;
  letter-spacing: 0.02em;
}

.cta-banner .cta-primary:hover {
  background: var(--gold-light);
  color: var(--ink-dark);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--ink-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

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

.footer h4 {
  color: white;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

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

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

/* ============================================================
   Sub-page styles
   ============================================================ */

.page-hero {
  background: var(--ink);
  color: white;
  padding: 80px 0 60px;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(184, 146, 74, 0.15), transparent 50%);
}

.page-hero-inner {
  position: relative;
  max-width: 760px;
}

.page-hero h1 {
  color: white;
  font-weight: 300;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover { color: var(--gold-light); }

.content {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 720px;
}

.content h3 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.content ul {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.content ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.callout-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: var(--radius);
}

.callout-box p { margin: 0; }

.callout-box strong { color: var(--ink); }

/* ============================================================
   Contact page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 32px;
  margin-bottom: 8px;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info p {
  font-size: 1.0625rem;
  margin: 0;
  line-height: 1.5;
}

.contact-info a {
  color: var(--gold);
  font-weight: 500;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: var(--ink);
  color: white;
  padding: 14px 28px;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.form-submit:hover {
  background: var(--gold);
  color: var(--ink);
}

.form-note {
  font-size: 13px;
  color: var(--warm-gray);
  margin-top: 12px;
}

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

/* ============================================================
   Placeholder markers (swap with real content)
   ============================================================ */

.placeholder-swap {
  position: relative;
  display: inline-block;
  background: rgba(184, 146, 74, 0.15);
  border: 1px dashed var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: help;
}

.placeholder-swap::after {
  content: attr(data-note);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

.placeholder-swap:hover::after {
  opacity: 1;
}

/* ============================================================
   Animations (subtle scroll-reveal)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Print styles
   ============================================================ */

@media print {
  .header, .footer, .topbar, .cta-banner { display: none; }
  body { background: white; }
}
