/* ============================================================
   Sexton Litigation Consulting PLLC
   Design system built around the brand mark.
   Primary: #1a2e45 (deep navy from logo)
   Accent: #8b7355 (warm bronze)
   Typography: Inter (body), Libre Baskerville (display)
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Type scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.5vw,  1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem  + 1vw,    2rem);
  --text-2xl:  clamp(1.75rem,  1.2rem  + 2vw,    3rem);
  --text-3xl:  clamp(2.25rem,  1rem    + 3.5vw,  4rem);

  /* Spacing */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;   --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;    --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;      --sp-24: 6rem;
  --sp-32: 8rem;

  /* Fonts */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 920px;
  --content-wide: 1140px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 200ms;
}

/* --- Light Mode --- */
:root, [data-theme="light"] {
  --navy:        #1a2e45;
  --navy-light:  #243d5c;
  --navy-dark:   #0f1d2d;
  --bronze:      #8b7355;
  --bronze-soft: #a08a6e;
  --bg:          #fafaf8;
  --surface:     #ffffff;
  --surface-alt: #f3f2ef;
  --border:      #e2e0db;
  --border-soft: #eceae6;
  --text:        #1a1a1a;
  --text-2:      #555555;
  --text-3:      #8a8a8a;
  --text-inv:    #fafaf8;
  --shadow-sm:   0 1px 3px rgba(26,46,69,0.06);
  --shadow-md:   0 4px 16px rgba(26,46,69,0.08);
  --shadow-lg:   0 12px 40px rgba(26,46,69,0.12);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --navy:        #8fb4d9;
  --navy-light:  #a6c5e3;
  --navy-dark:   #7aa3cc;
  --bronze:      #c4a882;
  --bronze-soft: #b39570;
  --bg:          #121417;
  --surface:     #1a1d22;
  --surface-alt: #1e2128;
  --border:      #2a2d35;
  --border-soft: #232730;
  --text:        #d8dae0;
  --text-2:      #9097a4;
  --text-3:      #5a6070;
  --text-inv:    #121417;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.2);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --navy:        #8fb4d9;
    --navy-light:  #a6c5e3;
    --navy-dark:   #7aa3cc;
    --bronze:      #c4a882;
    --bronze-soft: #b39570;
    --bg:          #121417;
    --surface:     #1a1d22;
    --surface-alt: #1e2128;
    --border:      #2a2d35;
    --border-soft: #232730;
    --text:        #d8dae0;
    --text-2:      #9097a4;
    --text-3:      #5a6070;
    --text-inv:    #121417;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.2);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.35);
  }
}


/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--navy);
  color: var(--text-inv);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); }


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header__logo-img {
  height: 32px;
  width: auto;
}

/* Dark mode logo inversion */
[data-theme="dark"] .header__logo-img,
[data-theme="dark"] .footer__logo,
[data-theme="dark"] .hero__logo {
  filter: brightness(0) invert(0.85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .header__logo-img,
  :root:not([data-theme]) .footer__logo,
  :root:not([data-theme]) .hero__logo {
    filter: brightness(0) invert(0.85);
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.header__nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--speed) var(--ease);
}
.header__nav a:hover { color: var(--text); }
.header__cta {
  background: var(--navy) !important;
  color: var(--text-inv) !important;
  padding: var(--sp-2) var(--sp-5) !important;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background var(--speed) var(--ease) !important;
}
.header__cta:hover { background: var(--navy-light) !important; }
.header__menu {
  display: none;
  color: var(--text);
  padding: var(--sp-2);
}
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__menu { display: block; }
  .header__inner { padding: var(--sp-3) var(--sp-4); }
}


/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 49;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-10);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  color: var(--text);
}
.mobile-nav a:hover { color: var(--navy); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(var(--sp-20), 12vw, var(--sp-32)) var(--sp-6);
  padding-bottom: clamp(var(--sp-12), 8vw, var(--sp-20));
}
.hero__inner {
  max-width: var(--content-default);
  margin: 0 auto;
}
.hero__brand {
  margin-bottom: var(--sp-8);
}
.hero__logo {
  height: clamp(48px, 4vw + 24px, 72px);
  width: auto;
}
.hero__rule {
  width: 48px;
  height: 2px;
  background: var(--bronze);
  margin-bottom: var(--sp-8);
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.hero__subtitle {
  font-size: var(--text-base);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: clamp(var(--sp-12), 6vw, var(--sp-20));
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-6), 3vw, var(--sp-10));
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  font-weight: 700;
}
.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}
@media (max-width: 600px) {
  .hero__stats { flex-direction: column; align-items: flex-start; gap: var(--sp-6); }
  .hero__stat-divider { width: 32px; height: 1px; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  transition: all var(--speed) var(--ease);
}
.btn--primary {
  background: var(--navy);
  color: var(--text-inv);
}
.btn--primary:hover { background: var(--navy-light); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--text-2);
  background: var(--surface);
}
.btn--white {
  background: var(--text-inv);
  color: var(--navy);
  font-weight: 600;
}
.btn--white:hover { opacity: 0.92; }
.btn--large {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--text-base);
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(var(--sp-16), 8vw, var(--sp-24)) var(--sp-6);
}
.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.section__header {
  margin-bottom: clamp(var(--sp-10), 4vw, var(--sp-16));
}
.section__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bronze);
  margin-bottom: var(--sp-3);
}
.section__label--light { color: var(--bronze-soft); }
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}
.section__title--light { color: var(--text-inv); }
.section__desc {
  font-size: var(--text-base);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.75;
}

/* Navy section */
.section--navy {
  background: #1a2e45;
  --text: #e8eaee;
  --text-2: #b0b8c4;
  --text-3: #7a8594;
  --text-inv: #e8eaee;
  --border: rgba(255,255,255,0.12);
  --border-soft: rgba(255,255,255,0.08);
  --surface: rgba(255,255,255,0.06);
}
[data-theme="dark"] .section--navy {
  background: #0f1d2d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .section--navy {
    background: #0f1d2d;
  }
}


/* ============================================================
   SERVICES GRID
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--sp-6);
}
.service-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-5);
  color: var(--navy);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}
.service-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  color: var(--text);
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
}
.services__note {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-3);
  font-style: italic;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(var(--sp-10), 6vw, var(--sp-16));
  align-items: start;
  max-width: var(--content-wide);
}
@media (max-width: 768px) {
  .about__layout { grid-template-columns: 1fr; }
}
.about__content { max-width: 640px; }
.about__text {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}
.about__text--emphasis {
  color: var(--text);
  font-weight: 500;
  font-style: italic;
  margin-top: var(--sp-4);
}
.about__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}
.about__detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.about__detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bronze-soft);
}
.about__detail-value {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
}


/* ============================================================
   PROCESS
   ============================================================ */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .process__steps { grid-template-columns: 1fr; }
}
.process__step {
  padding: var(--sp-6);
  border-left: 1px solid var(--border);
}
.process__step:first-child { border-left: none; }
@media (max-width: 900px) {
  .process__step:nth-child(3) { border-left: none; }
}
@media (max-width: 520px) {
  .process__step { border-left: none; border-top: 1px solid var(--border); padding: var(--sp-6) 0; }
  .process__step:first-child { border-top: none; }
}
.process__number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--bronze);
  display: block;
  margin-bottom: var(--sp-4);
}
.process__step-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--text);
}
.process__step-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
}


/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact__inner {
  max-width: var(--content-default);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__desc {
  font-size: var(--text-base);
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}
.contact__methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.contact__phone {
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  transition: color var(--speed) var(--ease);
}
.contact__phone:hover { color: var(--text); }
.contact__note {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--sp-2);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer__left {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer__logo {
  height: 22px;
  width: auto;
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-3);
}
.footer__attribution {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-decoration: none;
}
.footer__attribution:hover { color: var(--text-2); }

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__left { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
