/* Employment Law San Diego
   Two fonts, one accent, two neutrals. */

@font-face {
  font-family: "Zalando Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/zalando-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --bg: #FBFAF8;
  --ink: #1A1A1A;
  --line: #E3E1DD;
  --fill: #F2F0EC;          /* tint of --line, for the practice-area bars */
  --accent: #314A77;
  --accent-hover: #26385C;

  --accent-800: #465C85;
  --accent-700: #5A6E92;
  --accent-600: #6F80A0;
  --accent-500: #8392AD;
  --accent-400: #98A5BB;
  --accent-300: #ADB7C9;
  --accent-200: #C1C9D6;
  --accent-100: #D6DBE4;
  --accent-50:  #EAEDF1;

  --font-head: "Zalando Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

p { margin: 0; }

a { color: inherit; }

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

@media (min-width: 480px) {
  .wrap { padding-inline: var(--s3); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 15px 26px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.btn:hover { background: var(--accent-hover); }

.btn-lg {
  font-size: 1.0625rem;
  padding: 18px 32px;
}

.btn-sm {
  font-size: 0.9375rem;
  padding: 12px 20px;
}

.btn-outline {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--accent);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 62px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(0.9375rem, 3.6vw, 1.0625rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.header-call {
  font-size: 0.9375rem;
  text-align: right;
}

/* Hidden on phones so the bar stays a single tight line. */
.header-call-label {
  display: none;
  color: #55534E;
  margin-right: var(--s1);
}

@media (min-width: 720px) {
  .header-call-label { display: inline; }
}

.header-call a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-call a:hover { text-decoration: underline; }

/* ---------- Thanks (Formspree return target) ---------- */

#thanks {
  display: none;
  border-bottom: 1px solid var(--line);
  padding-block: var(--s5);
}

#thanks:target { display: block; }

#thanks h2 { margin-bottom: var(--s2); }

#thanks p { max-width: 56ch; }

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

.hero {
  position: relative;
  background-image: url('Images/AdobeStock_215879055.webp');
  background-size: cover;
  background-position: center 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.hero-inner {
  position: relative;
  padding-block: clamp(var(--s7), 16vw, 180px);
  color: #fff;
  max-width: var(--wrap);
}

.hero h1 { color: #fff; }

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s2);
}

.hero-actions .btn {
  white-space: nowrap;
  text-align: center;
  font-size: clamp(0.75rem, 2.6vw, 1.0625rem);
  padding: clamp(13px, 2.2vw, 18px) clamp(10px, 2.6vw, 32px);
}

.hero-sub {
  color: #fff;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin: var(--s2) 0 var(--s5);
}

/* ---------- Brag banner ---------- */

.brag {
  background: var(--accent);
  color: #fff;
}

.brag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-block: var(--s4);
  text-align: center;
}

/* Flex column so the labels sit on a common baseline even when a
   figure wraps to two lines. */
.brag-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  padding-inline: clamp(6px, 2vw, var(--s3));
}

.brag-item + .brag-item { border-left: 1px solid rgba(255, 255, 255, 0.22); }

.brag-figure {
  align-self: end;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.9375rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brag-label {
  font-size: clamp(0.6875rem, 2.2vw, 1rem);
  line-height: 1.3;
  color: var(--accent-200);
  padding-top: var(--s1);
}

/* ---------- Qualifier + form ---------- */

.qualifier-grid {
  display: grid;
  gap: var(--s5);
  padding-block: var(--s6);
}

.qualifier-grid .form-panel { order: -1; }

.qualifier-copy p {
  max-width: 58ch;
  margin-top: var(--s3);
}

.ticks {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  max-width: 40ch;
}

.ticks li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-weight: 600;
}

.ticks li:last-child { border-bottom: 1px solid var(--line); }

.form-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: var(--s4);
}

.form-note {
  color: #55534E;
  margin: var(--s2) 0 var(--s4);
}

.field { margin-bottom: var(--s3); }

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 12px;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

.form-panel .btn { width: 100%; }

/* ---------- No fee banner ---------- */

.nofee {
  background: var(--accent);
  color: #fff;
}

.nofee-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s2), 5vw, var(--s5));
  padding-block: var(--s5);
}

.nofee-inner h2 {
  font-size: clamp(1.125rem, 4.6vw, 2rem);
  white-space: nowrap;
}

.nofee .btn {
  flex: none;
  white-space: nowrap;
  font-size: clamp(0.8125rem, 2.8vw, 1rem);
  padding: clamp(12px, 2vw, 15px) clamp(14px, 3vw, 26px);
}

.nofee .btn {
  background: var(--bg);
  color: var(--accent);
}

.nofee .btn:hover { background: #fff; }

.nofee :focus-visible { outline-color: #fff; }

/* ---------- Real results ---------- */

.results {
  padding-block: var(--s6);
  background:
    radial-gradient(120% 90% at 12% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(90% 70% at 92% 110%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 65%),
    linear-gradient(170deg, var(--fill), var(--bg) 45%);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s1);
  margin-top: var(--s4);
}

/* Flex column so the initials line up across a row of uneven case types. */
.result {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--accent-100);
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  padding: var(--s2) var(--s1);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 10%, transparent);
}

.result-amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.0625rem, 4.4vw, 1.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--accent);
  padding-bottom: var(--s1);
  border-bottom: 1px solid var(--accent-50);
}

.result-type {
  margin-top: var(--s1);
  font-size: 0.75rem;
  line-height: 1.35;
}

.result-client {
  margin-top: auto;
  padding-top: var(--s1);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-500);
}

/* ---------- Practice areas ---------- */

.areas {
  border-top: 1px solid var(--line);
  padding-block: var(--s6);
}

.areas-tagline {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: #55534E;
  margin-top: var(--s2);
  max-width: 52ch;
}

.areas-grid {
  display: grid;
  gap: 6px;
  margin-top: var(--s5);
}

.area-tab {
  position: relative;
  display: block;
  width: 100%;
  background: var(--fill);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 2px;
  padding: 18px var(--s4);
  cursor: pointer;
}

.area-tab:hover { background: var(--line); }

.area-tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.area-tab[aria-selected="true"]:hover { background: var(--accent-hover); }

/* Chevron on the active bar, matching the reference layout. */
.area-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-left: 10px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(135deg);
}

.area-panel h3 { display: none; }

.area-panel { padding-bottom: var(--s3); }

.area-panel p {
  max-width: 62ch;
  margin: var(--s3) 0 var(--s4);
}

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

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: var(--s5);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  font-size: 0.9375rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
}

.footer-rule {
  width: 1px;
  height: 18px;
  background: rgba(251, 250, 248, 0.3);
}

.site-footer a { text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

/* ---------- Wider screens ---------- */

@media (min-width: 700px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s2);
  }

  .result { padding: var(--s3); }

  .result-amount {
    font-size: clamp(2rem, 3.6vw, 2.625rem);
    padding-bottom: var(--s2);
  }

  .result-type {
    margin-top: var(--s2);
    font-size: 1rem;
    line-height: 1.4;
  }

  .result-client {
    padding-top: var(--s2);
    font-size: 0.8125rem;
  }
}

@media (min-width: 900px) {
  .wrap { padding-inline: var(--s4); }

  .brag-grid {
    padding-block: var(--s5);
    text-align: left;
  }

  .brag-item { padding-inline: var(--s5); }

  .brag-item:first-child { padding-left: 0; }

  /* Qualifier sits left, form right; stacks with qualifier first below. */
  .qualifier-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s6);
    align-items: start;
  }

  .qualifier-grid .form-panel { order: 0; }

  .results-grid { grid-template-columns: repeat(3, 1fr); }

  .areas-grid {
    grid-template-columns: 5fr 7fr;
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: var(--s6);
    row-gap: 6px;
    align-items: start;
  }

  .area-item { display: contents; }

  .area-tab { grid-column: 1; }

  .area-panel {
    grid-column: 2;
    grid-row: 1 / -1;
    padding-bottom: 0;
  }

  .area-panel h3 { display: block; }

  .area-tab[aria-selected="true"]::after { transform: translateY(-50%) rotate(45deg); }
}
