/* =========================================================
   Kintail Injury Law: design tokens
   Colors are sampled from the logo: teal water, slate mountain.
   ========================================================= */
:root {
  --teal: #167c80;          /* logo water */
  --teal-deep: #0f5e62;     /* hover / pressed */
  --teal-tint: #e3f0ef;     /* soft panels */
  --slate: #434b58;         /* logo mountain */
  --ink: #1d2a2e;           /* text and dark surfaces */
  --ink-soft: #4a5659;      /* secondary text (7:1 on mist) */
  --mist: #f5f8f7;          /* page background: cool, fresh off-white */
  --sand: #f6f1e8;          /* warm section background */
  --white: #ffffff;
  --line: #dde5e3;
  --error: #a3271f;
  --focus: #e0a43a;         /* warm focus ring, visible on teal and white */

  --font-display: "Lora", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Montserrat", var(--font-body);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Signature shape: soft corners with one squared "foothold" corner. */
  --radius: 10px;
  --radius-lg: 28px;
  --shape: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;

  --container: 74rem;
  --shadow: 0 1px 2px rgb(29 42 46 / 0.05), 0 12px 32px -12px rgb(29 42 46 / 0.18);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0 0 var(--space-2); }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-2);
}
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 36rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--font-label);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn .icon { width: 1rem; height: 1rem; transition: transform 0.2s; }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-deep); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--teal-deep); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--teal-tint); color: var(--ink); }
.btn--outline-light { border-color: rgb(255 255 255 / 0.7); color: var(--white); }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.12); border-color: var(--white); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--header-h); }
.brand { display: block; flex-shrink: 0; }
.brand img { width: clamp(130px, 30vw, 172px); height: auto; mix-blend-mode: multiply; }

.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.site-nav a:not(.btn) {
  font: 600 0.9375rem/1 var(--font-label); color: var(--ink); text-decoration: none;
  padding-block: 0.75rem;
}
.site-nav a:not(.btn):hover { color: var(--teal); }
.site-nav__phone { display: none; }
@media (min-width: 900px) { .site-nav__phone { display: inline; } }
@media (max-width: 420px) { .site-nav li:first-child { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: var(--white);
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before {
  /* Gradient keeps text legible over the bright river photo. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(17 30 33 / 0.88) 0%, rgb(17 30 33 / 0.7) 38%, rgb(17 30 33 / 0.15) 72%, rgb(17 30 33 / 0) 100%),
    linear-gradient(0deg, rgb(17 30 33 / 0.35) 0%, rgb(17 30 33 / 0) 40%);
}
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgb(17 30 33 / 0.55) 0%, rgb(17 30 33 / 0.78) 55%, rgb(17 30 33 / 0.9) 100%); }
}
.hero__inner { padding-block: var(--space-6) calc(var(--space-6) + 3rem); }
.hero .eyebrow { color: #9fd6d3; }
.hero h1 { max-width: 11ch; margin-bottom: var(--space-3); }
.hero .lede { color: rgb(255 255 255 / 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); }

/* Ridgeline echoing the logo's mountains */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 96px); color: var(--mist); }

/* ---------- Expectations strip ---------- */
.expect { padding-block: var(--space-4) var(--space-5); }
.expect__title { font-size: var(--step-2); margin-bottom: var(--space-4); }
.expect__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .expect__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.expect__grid li { border-left: 3px solid var(--teal); padding: 0.2rem 0 0.2rem var(--space-3); }
.expect__grid h3 { font-family: var(--font-label); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 0.35rem; }
.expect__grid p { margin: 0; color: var(--ink-soft); }

/* ---------- Split: photo + text ---------- */
.split { padding-block: var(--space-6); background: var(--white); }
.split__inner { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) { .split__inner { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 52% 45%; border-radius: var(--shape); }
.split__media::after {
  /* Teal "water line" accent offset behind the photo */
  content: ""; position: absolute; z-index: -1; inset: auto -14px -14px auto; width: 55%; height: 45%;
  border-radius: var(--shape); background: var(--teal-tint);
}
.split__media { isolation: isolate; }
.split__body .lede { margin-bottom: var(--space-3); }

/* ---------- Approach ---------- */
.approach { padding-block: var(--space-6); }
.approach__intro { display: grid; gap: var(--space-4); align-items: end; margin-bottom: var(--space-5); }
@media (min-width: 900px) { .approach__intro { grid-template-columns: 1.2fr 1fr; gap: var(--space-5); } }
.approach__intro p { color: var(--ink-soft); max-width: 34rem; }

.focus-card {
  background: var(--teal); color: var(--white);
  border-radius: var(--shape);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  position: relative; overflow: hidden;
}
.focus-card .eyebrow { color: #bfe5e2; }
.focus-card h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.focus-card p { margin: 0; color: rgb(255 255 255 / 0.9); max-width: 26rem; }
/* Logo mark as quiet background art: rendered white, low opacity */
.focus-card__mark, .cta-band__mark {
  position: absolute; pointer-events: none; user-select: none;
  filter: brightness(0) invert(1);
}
.focus-card__mark { right: -28px; bottom: -36px; width: 220px; opacity: 0.14; }
.focus-card > :not(.focus-card__mark) { position: relative; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--shape);
  padding: var(--space-4) var(--space-3) var(--space-3);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: var(--space-3);
  font: 700 0.8125rem/1 var(--font-label); letter-spacing: 0.15em; color: var(--teal);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--line);
}
.steps h3 { font-size: var(--step-1); }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Callback form ---------- */
/* Canyon photo with a deep teal wash: calms the photo's saturation and ties it to the brand.
   Ridgelines frame it top (mist, from the section above) and bottom (teal, into the closing band). */
.talk {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding-block: calc(var(--space-6) + 3rem);
}
.talk__media { position: absolute; inset: 0; z-index: -2; }
.talk__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(0.85); }
.talk::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 40 44 / 0.9) 0%, rgb(15 40 44 / 0.72) 42%, rgb(15 40 44 / 0.3) 100%),
    linear-gradient(0deg, rgb(22 124 128 / 0.35) 0%, rgb(22 124 128 / 0) 45%);
}
@media (max-width: 960px) { .talk::before { background: rgb(15 40 44 / 0.82); } }
.talk .ridge { z-index: 0; }
.ridge--top { top: -1px; bottom: auto; transform: scaleY(-1); color: var(--mist); }
.ridge--bottom { color: var(--teal); }

.talk__inner { display: grid; gap: var(--space-5); align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .talk__inner { grid-template-columns: 1fr minmax(0, 30rem); justify-content: space-between; } }
.talk .eyebrow { color: #9fd6d3; }
.talk h2 { max-width: 13ch; }
.talk__body p { color: rgb(255 255 255 / 0.88); max-width: 32rem; }
.next-box {
  margin-top: var(--space-4); padding: var(--space-3);
  max-width: 32rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--shape);
  backdrop-filter: blur(6px);
}
.next-box h3 { font-size: var(--step-1); margin-bottom: var(--space-1); color: var(--white); }
.next-box p { margin: 0; font-size: 1rem; }
.talk__body a { color: var(--white); }
.talk .form-card { color: var(--ink); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45); }

.form-card { background: var(--white); border-radius: var(--shape); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form { display: grid; gap: var(--space-3); }
.form__title { font-size: var(--step-2); margin: 0; }
.form__note { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.field { display: grid; gap: 0.4rem; }
.field label { font: 600 0.875rem/1.3 var(--font-label); }
.field input {
  width: 100%; min-height: 52px; padding: 0.75rem 1rem;
  font: inherit; color: inherit; background: var(--mist);
  border: 1.5px solid #c9d3d1; border-radius: var(--radius);
  transition: border-color 0.15s, background-color 0.15s;
}
.field input:hover { border-color: #9fb0ad; }
.field input:focus { border-color: var(--teal); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgb(22 124 128 / 0.2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.form__consent { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.form__alert { padding: var(--space-2); border-radius: var(--radius); border-left: 4px solid var(--error); background: #fbeceb; color: var(--error); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Closing CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--teal); color: var(--white); padding-block: var(--space-6); }
.cta-band__inner { display: grid; gap: var(--space-4); align-items: end; position: relative; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-5); } }
.cta-band .eyebrow { color: #bfe5e2; }
.cta-band h2 { margin: 0; max-width: 14ch; }
.cta-band p { color: rgb(255 255 255 / 0.9); }
.cta-band__mark {
  /* Oversized mark bleeding off the right edge */
  width: clamp(360px, 52vw, 760px); right: clamp(-220px, -10vw, -80px); bottom: -12%;
  opacity: 0.09;
}
@media (max-width: 760px) { .cta-band__mark { right: -140px; bottom: -40px; opacity: 0.07; } }

/* ---------- Simple pages ---------- */
.page-head { padding-block: var(--space-6) var(--space-5); }
.page-head--center { text-align: center; }
.page-head--center .lede { margin-inline: auto; }
.prose { max-width: 44rem; padding-bottom: var(--space-6); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.prose h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: var(--space-5); font-size: var(--step--1); color: var(--ink-soft); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--space-4); padding-bottom: var(--space-4); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand img { width: 120px; mix-blend-mode: multiply; margin: -12px 0 var(--space-1) -12px; }
.site-footer__brand p { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); max-width: 18rem; line-height: 1.4; }
.site-footer__heading { font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--space-2); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__legal { border-top: 1px solid var(--line); padding-block: var(--space-3); font-size: 0.8125rem; }
.site-footer__legal p { max-width: 60rem; }
