/* Travis Johns Law Firm — site styles */

:root {
  --ink: #14151a;
  --paper: #ffffff;
  --stone: #f6f5f3;
  --red: #e10001;
  --red-deep: #b50001;
  --gray: #55575e;
  --line: #e4e3e0;
  --max: 1120px;
  --radius: 6px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Top bar ---------- */

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #ffb3b3; }
.topbar .loc { color: #b9bac1; }

/* ---------- Header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--red); }
.brand small {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2px;
}

nav.primary { display: flex; align-items: center; gap: 28px; }
nav.primary a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
nav.primary a:hover { color: var(--red); }
nav.primary a[aria-current="page"] {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-ghost { color: var(--red); background: transparent; }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn-ink { border-color: #fff; color: #fff; background: transparent; }
.btn-ink:hover { background: #fff; color: var(--ink); }
nav.primary .btn { padding: 10px 20px; font-size: 0.9375rem; }

.nav-toggle { display: none; }

/* ---------- Eyebrow device ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
}

/* ---------- Hero ---------- */

.hero { padding: 88px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: center;
}
.hero-photo { justify-self: end; margin-right: 14px; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-photo { justify-self: start; max-width: 320px; }
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero h1 .dot { color: var(--red); }
.hero .lede {
  margin-top: 26px;
  font-size: 1.1875rem;
  color: var(--gray);
  max-width: 54ch;
}
.hero .cta-row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero .fineprint {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--gray);
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.alt { background: var(--stone); }
section.dark {
  background: var(--ink);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.03) 16px 17px);
  color: #fff;
}
section.dark .eyebrow { color: #b9bac1; }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 24ch;
}
.section-intro {
  margin-top: 16px;
  color: var(--gray);
  max-width: 62ch;
}
section.dark .section-intro { color: #c7c8ce; }

/* ---------- Practice grid ---------- */

.practice-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}
.pcard::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: var(--red);
  transition: width 0.2s ease;
}
.pcard:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.pcard:hover::before { width: 100%; }
.pcard h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.pcard p { margin-top: 10px; font-size: 0.9375rem; color: var(--gray); flex: 1; }
.pcard .venue {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.pcard .go {
  position: absolute;
  top: 26px; right: 22px;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Why / proof ---------- */

.why-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-grid h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.why-grid h3::before { content: "—"; color: var(--red); font-weight: 800; }
.why-grid p { margin-top: 10px; font-size: 0.9375rem; color: #c7c8ce; }

/* ---------- Service area ---------- */

.area-flex { margin-top: 40px; display: flex; gap: 60px; flex-wrap: wrap; }
.area-col h3 {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.area-col ul { list-style: none; }
.area-col li { padding: 4px 0; color: var(--gray); }

/* ---------- Contact ---------- */

.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.contact-card + .contact-card { margin-top: 20px; }
.contact-card p { color: var(--gray); }
.contact-card .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 6px 0 2px;
  display: inline-block;
}
.contact-card .big:hover { color: var(--red); }
.hours { list-style: none; margin-top: 8px; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--gray);
}
.hours li:last-child { border-bottom: none; }

/* ---------- Page hero (interior) ---------- */

.page-hero {
  background: var(--ink);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.03) 16px 17px);
  color: #fff;
  padding: 72px 0;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.page-hero h1 .dot { color: var(--red); }
.page-hero .lede { margin-top: 20px; color: #c7c8ce; max-width: 58ch; font-size: 1.125rem; }
.page-hero .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.crumbs { font-size: 0.8125rem; margin-bottom: 26px; color: #8f919b; }
.crumbs a { color: #c7c8ce; }
.crumbs a:hover { color: #fff; }

/* ---------- Article / practice content ---------- */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}
article h2 {
  margin-top: 52px;
  font-size: 1.625rem;
  max-width: none;
}
article h2:first-child { margin-top: 0; }
article p { margin-top: 18px; color: #33343b; }
article ul { margin: 18px 0 0 22px; color: #33343b; }
article li { margin-top: 8px; }
article strong { color: var(--ink); }
.callout {
  margin-top: 28px;
  background: var(--stone);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.9375rem;
}
.callout p { margin-top: 0; }

aside.rail { position: sticky; top: 96px; }
.rail-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
}
.rail-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.rail-card p { margin-top: 10px; font-size: 0.9375rem; color: #c7c8ce; }
.rail-card .btn { margin-top: 18px; display: block; text-align: center; }
.rail-links {
  margin-top: 20px;
  background: var(--stone);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.rail-links h3 {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.rail-links ul { list-style: none; }
.rail-links li { padding: 5px 0; }
.rail-links a { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.rail-links a:hover { color: var(--red); }

/* ---------- FAQ ---------- */

.faq { margin-top: 20px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--gray); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--red);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.05) 16px 17px);
  color: #fff;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; max-width: none; }
.cta-band p { margin-top: 12px; color: #ffd6d6; max-width: 60ch; }
.cta-band .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn { border-color: #fff; }
.cta-band .btn-solid { background: #fff; color: var(--red); }
.cta-band .btn-solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: #b9bac1;
  padding: 64px 0 40px;
  font-size: 0.9375rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
footer.site .brand { color: #fff; }
footer.site .brand small { color: #8f919b; }
footer.site h3 {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
footer.site ul { list-style: none; }
footer.site li { padding: 4px 0; }
footer.site a { color: #b9bac1; }
footer.site a:hover { color: #fff; }
.foot-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2a2b32;
  font-size: 0.8125rem;
  color: #8f919b;
}
.foot-legal p + p { margin-top: 8px; }

/* ---------- Attorney / about ---------- */

.about-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}
.photo-frame {
  position: relative;
  display: inline-block;
}
.photo-frame img {
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.photo-frame::after {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 100%; height: 100%;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  z-index: 0;
}
.about-copy p { margin-top: 16px; color: #33343b; }
.about-copy p:first-of-type { margin-top: 0; }
.about-copy .btn { margin-top: 26px; }
.cred-list {
  list-style: none;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.cred-list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--gray);
}
.cred-list li strong {
  font-family: var(--display);
  color: var(--ink);
  min-width: 120px;
}
.rail-card .rail-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--red);
  object-fit: cover;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .photo-frame { max-width: 360px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  aside.rail { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding: 60px 0 68px; }
  .practice-grid { grid-template-columns: 1fr; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
  }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
  }
  nav.primary.open { display: flex; }
  .topbar .loc { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
