/* ==========================================================================
   The Law Office of Jeff Klinger, P.A. — site styles
   Plain CSS, no build step. Retheme by editing the tokens in :root.
   ========================================================================== */

:root {
  /* Palette — navy sampled from the logo (gradient #314A71 → #142A4B) */
  --navy-900: #142a4b;
  --navy-700: #22395f;
  --navy-500: #314a71;
  --navy-100: #e7ebf2;
  --silver-500: #a7b0bc;
  --silver-300: #d5dae1;
  --platinum: #e9ecf0;
  --ivory: #faf7f0;
  --ivory-2: #f3eee3;
  --ink: #1b1f27;
  --ink-muted: #4a5261;
  --error: #a1281e;
  --success: #1f6b3a;
  --focus: #c8a951;

  --bg: var(--ivory);
  --text: var(--ink);
  --link: var(--navy-700);

  /* Type */
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.7rem + 2.8vw, 3.5rem);
  --lh-body: 1.6;
  --lh-head: 1.15;

  /* Space and shape */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(3rem, 8vw, 6rem);
  --container: 72rem;
  --prose: 65ch;
  --radius: 4px;
  --header-h: 4.5rem;
  --shadow: 0 12px 32px -14px rgba(20, 42, 75, 0.35);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--lh-head);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy-900);
}

a[href^="tel:"] {
  white-space: nowrap;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

address {
  font-style: normal;
}

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

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 40em) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font: 600 var(--step--1) / 1.2 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-500);
}

.prose {
  max-width: var(--prose);
}

.prose p {
  margin-bottom: 1.1em;
}

.text-center {
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s-5);
}

.cta-row--center {
  justify-content: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font: 600 0.9rem / 1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.btn--inverse {
  background: var(--platinum);
  color: var(--navy-900);
  border-color: var(--platinum);
}

.btn--inverse:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-900);
}

.btn--outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}

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

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn--phone {
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--silver-300);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: var(--navy-900);
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand__tagline {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--navy-900);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 55.99em) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--silver-300);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--silver-300);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--silver-300);
    color: var(--navy-900);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand__tagline {
    display: none;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .btn--phone .btn__label {
    display: none;
  }

  .btn--phone {
    padding: 0.7rem;
  }
}

@media (max-width: 23.99em) {
  .brand__name {
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--platinum);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 42, 75, 0.95) 0%, rgba(20, 42, 75, 0.84) 45%, rgba(20, 42, 75, 0.5) 100%),
    linear-gradient(to top, rgba(20, 42, 75, 0.6), transparent 40%);
}

.hero__inner {
  max-width: 44rem;
  padding: clamp(4rem, 12vw, 8rem) 0;
}

.hero h1 {
  margin-bottom: 0.4em;
  color: #fff;
}

.hero__lang {
  margin: 0 0 1.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--silver-300);
}

.hero__call {
  margin: 0 0 2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--platinum);
}

.hero__call a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.hero .cta-row {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Practice-area quick links
   -------------------------------------------------------------------------- */

.practice-band {
  background: var(--ivory-2);
  border-bottom: 1px solid var(--silver-300);
}

.practice-grid {
  list-style: none;
  margin: 0;
  padding: var(--s-5) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

/* Odd card out spans the full row on small screens so the layout stays balanced */
.practice-grid li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 48rem) {
  .practice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .practice-grid li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.practice-grid li {
  display: flex;
}

.practice-grid a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 6.5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  line-height: 1.25;
  background: var(--ivory);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.practice-grid a:hover {
  border-color: var(--navy-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.practice-grid svg {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--navy-500);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Sections and layout
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--ivory-2);
}

.section--navy {
  background: var(--navy-900);
  color: var(--platinum);
}

.section--navy h2 {
  color: #fff;
}

.section--navy .eyebrow {
  color: var(--silver-300);
}

.section--navy a {
  color: #fff;
}

.split {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
  }

  .split--text-wide {
    grid-template-columns: 3fr 2fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.figure {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.figure--framed {
  padding-bottom: 1rem;
  padding-right: 1rem;
}

.figure--framed::before {
  content: "";
  position: absolute;
  inset: 1rem 0 0 1rem;
  z-index: -1;
  background: var(--navy-900);
  border-radius: var(--radius);
}

.figure--portrait {
  max-width: 24rem;
  margin-inline: auto;
}

.figure--portrait img {
  aspect-ratio: 4 / 5;
}

.figure--landscape img {
  aspect-ratio: 3 / 2;
}

/* --------------------------------------------------------------------------
   Fine print
   -------------------------------------------------------------------------- */

.fine-print {
  max-width: 50rem;
  margin: var(--s-7) auto 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--silver-300);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step--1);
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.fine-print p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--navy-900);
  color: var(--platinum);
  border-bottom: 4px solid var(--navy-500);
}

.page-hero h1 {
  margin-bottom: 0.3em;
  color: #fff;
}

.page-hero p {
  max-width: var(--prose);
  margin: 0;
  color: var(--silver-300);
}

.page-hero a:not(.btn) {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.page-hero .cta-row {
  margin-top: var(--s-5);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.jump-nav {
  background: var(--ivory);
  border-bottom: 1px solid var(--silver-300);
}

.jump-nav ol {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  display: flex;
  gap: 0 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jump-nav ol::-webkit-scrollbar {
  display: none;
}

.jump-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.jump-nav a:hover {
  color: var(--navy-900);
  border-bottom-color: var(--navy-900);
}

@media (min-width: 56em) {
  .jump-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(250, 247, 240, 0.96);
    backdrop-filter: blur(8px);
  }
}

.service {
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 3.25rem);
}

.service + .service {
  border-top: 1px solid var(--silver-300);
}

.service:nth-of-type(even) {
  background: var(--ivory-2);
}

.service h3 {
  margin: 1.5rem 0 0.5rem;
  font: 600 var(--step--1) / 1.3 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
}

.service ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
}

.service li {
  margin-bottom: 0.3rem;
  padding-left: 0.15rem;
}

.service li::marker {
  color: var(--silver-500);
}

.list--cols {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 39.99em) {
  .list--cols {
    columns: 1;
  }
}

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

.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.25rem;
}

.contact-card dt {
  padding-top: 0.2em;
  font: 600 var(--step--1) / 1.3 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
}

.contact-card dd {
  margin: 0;
}

.hours table {
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 0.35rem 1.5rem 0.35rem 0;
  text-align: left;
  font-weight: 400;
}

.hours th {
  color: var(--navy-700);
  font-weight: 600;
}

.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 32rem;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 40em) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--navy-900);
}

.field .req {
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--silver-500);
  border-radius: var(--radius);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 1px;
  border-color: var(--navy-700);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin: 0.35rem 0 0;
  font-size: var(--step--1);
  color: var(--error);
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.form__status {
  margin: 0;
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.form__status.is-success {
  color: var(--success);
}

.form__status.is-error {
  color: var(--error);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

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

.site-footer {
  margin-top: auto;
  padding-block: var(--s-7) var(--s-5);
  background: var(--navy-900);
  color: var(--silver-300);
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 56em) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.15;
  color: #fff;
}

.footer-brand__tagline {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-300);
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font: 600 var(--step--1) / 1.2 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-300);
}

.site-footer p {
  margin-bottom: 0.5em;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--step--1);
  color: var(--silver-500);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  padding-block: var(--section-y);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Small additions
   -------------------------------------------------------------------------- */

@media (max-width: 55.99em) {
  .nav-toggle {
    order: 3;
  }
}

.split--top {
  align-items: start;
}

.contact-card dt svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--navy-500);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card dl {
  grid-template-columns: 24px 1fr;
  align-items: start;
}

.contact-card dd a {
  font-weight: 600;
}

.contact-card + .hours {
  margin-top: var(--s-6);
}

.hours h2 {
  font-size: var(--step-2);
}

.site-footer__bottom--bare {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
