/* ============================================================
   WHITAKER LEGAL SOLUTIONS — Design tokens
   ============================================================ */

:root {
  /* Brand color, pulled from the real logo/business card assets */
  --navy: #15182A;
  --blue: #129AD6;
  --blue-tint: #4698D9;
  --paper: #F6F7F9;
  --paper-warm-off: #FCFCFD;
  --tint: #E9F1F8;
  --ink: #1B1E2C;
  --ink-soft: #4A4E5C;
  --ink-faint: #8A8D9A;
  --line: #DFE2E8;
  --line-soft: #ECEEF2;

  /* Type */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* Layout */
  --max-width: 1180px;
  --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(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em 0; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 1rem;
}

.firm-nameplate {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.firm-nameplate .diamond {
  width: 8px;
  height: 8px;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

section {
  padding: 96px 0;
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

.section-dark {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: #fff;
}
.section-dark .lede { color: rgba(255,255,255,0.72); }

.section-tint {
  background: var(--tint);
}

/* ============================================================
   Diamond motif — the signature element
   Reuses the actual mark geometry (a single rotated square)
   as a recurring structural device between sections.
   ============================================================ */

.diamond {
  width: 10px;
  height: 10px;
  background: var(--blue);
  transform: rotate(45deg);
  display: inline-block;
}

.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.diamond-divider .diamond:nth-child(1) { opacity: 0.35; }
.diamond-divider .diamond:nth-child(2) { opacity: 0.65; background: var(--blue-tint); }
.diamond-divider .diamond:nth-child(3) { opacity: 1; }
.diamond-divider .diamond:nth-child(4) { opacity: 0.65; background: var(--blue-tint); }
.diamond-divider .diamond:nth-child(5) { opacity: 0.35; }

.diamond-bullet {
  width: 7px;
  height: 7px;
  background: var(--blue);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark img {
  height: 40px;
  width: auto;
}

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

nav.primary-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.primary-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 20px;
    display: none;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #0f86bc;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

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

footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 40px;
  font-size: 0.9rem;
}

footer.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

footer.site-footer .footer-nav {
  display: flex;
  gap: 28px;
}
footer.site-footer .footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
footer.site-footer .footer-nav a:hover { color: #fff; }

footer.site-footer .licensure {
  max-width: 520px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.6;
}

footer.site-footer .contact-line a {
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   Utility
   ============================================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ============================================================
   Responsive two-column grids (hero, about intro)
   ============================================================ */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 800px) {
  .hero-grid,
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-grid > div:last-child,
  .about-intro-grid > div:first-child {
    order: -1;
    max-width: 340px;
  }
}

.two-col-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ============================================================
   Simple on-load reveal for the hero headline
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-load {
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.1s;
}

@media (max-width: 640px) {
  .two-col-pair {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================================
   Services & Pricing — product blocks
   ============================================================ */

.product-block {
  padding: 30px 0;
}
.product-block .product-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.product-block h3 {
  font-size: 1.7rem;
  margin: 0;
}
.product-block .product-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue);
  white-space: nowrap;
}
.product-block > p.intro {
  color: var(--ink-soft);
  max-width: 640px;
  font-size: 0.98rem;
}
.product-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}
.product-icon img { width: 100%; height: 100%; display: block; }

.doc-item {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.doc-item h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px 0;
}
.doc-item p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
  max-width: 600px;
}

.note-line {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.note-line strong { color: var(--navy); }

.draft-banner {
  background: #FFF6E5;
  border-bottom: 1px solid #EAD9A8;
  color: #6B5416;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.02em;
}
