/* TDAN Law — landing page */
:root {
  --bg: #f6f5f2;
  --ink: #111111;
  --muted: #5a5a57;
  --line: #d7d4ce;
  --white: #ffffff;
  --accent: #8a7d68;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.35rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

h1 { font-size: clamp(2.2rem, 7.2vw, 4.35rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.prose { max-width: 42.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand {
  flex-shrink: 0;
}
.brand img {
  height: 2.15rem;
  width: auto;
  max-width: min(58vw, 13.5rem);
}
.nav {
  display: none;
  gap: 1.15rem;
  font-size: 0.84rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .brand img { height: 2.05rem; max-width: none; }
}

.site-header .header-cta { display: none; }
@media (min-width: 720px) {
  .site-header .header-cta { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.85rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  line-height: 1.2;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }
.icon-wa { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Hero */
.hero { padding: 2.1rem 0 3.5rem; }
.hero-grid { display: grid; gap: 1.75rem; }
.hero-copy p.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-photo {
  width: 100%;
  background: #d4d1cb;
}
.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
}
.hero-photo img {
  height: auto;
  aspect-ratio: 1280 / 853;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 880px) {
  .hero { padding: 3.25rem 0 5.25rem; }
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 4rem;
  }
  .hero-photo {
    aspect-ratio: auto;
    min-height: 0;
  }
}

/* Sections */
.section {
  padding: 4.25rem 0;
  border-top: 1px solid var(--line);
}
.section-head { max-width: 38rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }
.section-cta { margin-top: 2.25rem; }

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.85rem; }
}
.card {
  padding: 1.4rem 0 0.2rem;
  border-top: 1px solid var(--ink);
}
.card p { color: var(--muted); font-size: 0.98rem; }

/* Immediate steps */
.steps-list {
  display: grid;
  gap: 1.35rem;
  counter-reset: step;
  max-width: 44rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  color: var(--muted);
}
.steps-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.65rem;
  color: var(--ink);
  line-height: 1.2;
}
.steps-list strong { color: var(--ink); font-weight: 550; }

.quote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--ink);
  max-width: 40rem;
}
.quote p {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.step-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.8rem;
}
.step p { color: var(--muted); }

/* Partner */
.about-grid { display: grid; gap: 2rem; }
.about-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #d4d1cb;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-copy p { color: var(--muted); max-width: 38rem; }
.about-copy .role {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.15rem;
}
.creds {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  max-width: 38rem;
}
.creds li {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 0.35rem 1.15rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.creds-value {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .creds li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.7rem 0;
  }
}
@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 4.5rem;
    align-items: start;
  }
}

/* FAQ */
.faq-list { max-width: 46rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 500;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer {
  padding: 0 0 1.25rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Form */
.form-layout { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  .form-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}
.contact-form { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
  border-radius: 0;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0; }
.form-error { color: #7a1f1f; font-size: 0.85rem; display: none; }
.form-error.is-visible { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 calc(6.5rem + var(--safe-bottom));
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-brand img { height: 1.55rem; width: auto; margin-bottom: 1rem; }
.site-footer strong { color: var(--ink); font-weight: 500; }
.footer-address { margin: 0.35rem 0 0; }
.footer-area { margin: 0.2rem 0 0; }
.footer-disclaimer { margin-top: 0.75rem; max-width: 42rem; }
@media (min-width: 720px) {
  .site-footer { padding-bottom: 2.5rem; }
}

.wa-float {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: calc(1rem + var(--safe-bottom));
  z-index: 50;
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float:hover, .wa-float:focus-visible {
  background: #1EBE5A;
  border-color: #1EBE5A;
  color: #fff;
}
.wa-float .icon-wa { width: 1.35em; height: 1.35em; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media (min-width: 720px) {
  .wa-float { left: auto; right: 1.5rem; bottom: 1.5rem; padding-left: 1.4rem; padding-right: 1.4rem; border-radius: 999px; }
}

@media (max-width: 719px) {
  html { scroll-padding-bottom: calc(5.25rem + var(--safe-bottom)); }
  .section { padding-bottom: 5.75rem; }
  .hero { padding-bottom: 5rem; }
}

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