/* ==========================================================================
   Floyd F. James, Sr. & Associates, P.C.
   2026 refresh — Site managed by Axsen
   Plain HTML & CSS. No frameworks, no build step.
   ========================================================================== */

:root {
  /* Palette — evolved from the original khaki / olive / maroon scheme */
  --cream:       #f7f5ee;
  --khaki:       #cccc99;   /* original page background */
  --khaki-soft:  #e8e6d2;
  --olive:       #999966;   /* original header */
  --olive-dark:  #66663a;   /* original #666633, nudged for contrast */
  --olive-deep:  #2f2f1c;
  --maroon:      #663333;   /* original headings */
  --maroon-deep: #4a2424;
  --red:         #990000;   /* original links */
  --ink:         #26231f;
  --muted:       #5d5a52;
  --white:       #ffffff;
  --line:        rgba(38, 35, 31, 0.12);

  /* Font stacks carried over from the original 2017 site */
  --font-sans:  "Trebuchet MS", Arial, Helvetica, sans-serif;   /* headings, nav, UI */
  --font-text:  Arial, Helvetica, sans-serif;                    /* paragraphs & lists */
  --font-serif: var(--font-sans);

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(38, 35, 31, .06), 0 8px 24px rgba(38, 35, 31, .08);
  --wrap:      1160px;
  --gutter:    clamp(16px, 4vw, 32px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--maroon);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
h4 { font-size: 1.15rem; margin-top: 1.75em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p, li, address { font-family: var(--font-text); }
.site-nav li, .jump li, .services li, .perks li { font-family: var(--font-sans); }

a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--maroon-deep); text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--maroon); color: var(--white);
  padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--maroon); }
.btn-light:hover { background: var(--khaki-soft); color: var(--maroon-deep); }
.btn-outline { border: 1.5px solid currentColor; color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--olive-deep);
  color: var(--khaki);
  font-size: .875rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  padding-block: .5rem;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: 1rem;
}

.brand { text-decoration: none; display: block; }
.brand h1 {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.1;
}
.brand .tag {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-top: .3rem;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem;
}
.site-nav a {
  display: block;
  padding: .55rem .95rem;
  border-radius: 999px;
  color: var(--olive-dark);
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--khaki-soft); color: var(--maroon); }
.site-nav a[aria-current="page"] { background: var(--maroon); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--olive-deep);
  color: var(--white);
  isolation: isolate;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(47,47,28,.88) 0%, rgba(47,47,28,.65) 45%, rgba(47,47,28,.15) 100%);
}
.hero .wrap { padding-block: clamp(4rem, 10vw, 8rem); }
.hero .eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--khaki);
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
}
.hero .eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1.75rem; height: 2px; background: var(--khaki);
}
.hero h2 {
  color: var(--white);
  font-size: clamp(2rem, 1.2rem + 3.5vw, 3.5rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}
.hero h2.hero-focus {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem);
  max-width: 920px;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  max-width: 46ch;
  color: rgba(255,255,255,.9);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Shorter banner for inner pages */
.hero--page .wrap { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hero--page h2 { margin-bottom: 0; }

/* ---------- Main content ---------- */
main { display: block; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { padding-top: 0; }

.prose { max-width: 72ch; }
.prose > h3:first-child, .prose > h4:first-child { margin-top: 0; }

.intro h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.intro .sub {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.4;
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--olive);
  text-wrap: balance;
}

/* Two column layout: copy + aside */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.card h4:first-child { margin-top: 0; }

/* Feature tiles (home value props) */
.tiles {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-block: 2rem;
}
.tile {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--olive);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}
.tile h4 { margin-top: 0; }
.tile p:last-child { margin-bottom: 0; }

/* Lists */
.list {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
}
.list li {
  position: relative;
  padding: .45rem 0 .45rem 1.6rem;
  border-bottom: 1px solid var(--line);
}
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: "";
  position: absolute; left: .2rem; top: 1.05em;
  width: .5rem; height: .5rem;
  background: var(--olive);
  border-radius: 2px;
  transform: rotate(45deg);
}
/* Two columns, filled top-to-bottom; left column always gets the extra item */
@media (min-width: 640px) {
  .list--cols {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(var(--rows, 6), auto);
    column-gap: 2rem;
  }
  .list--cols li.col-end { border-bottom: 0; }
}

/* Service list on home (name — detail) */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.services li { display: block; }
.services a {
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: background-color .2s, transform .2s, border-color .2s;
  padding: .9rem 1.1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--maroon);
}
.services a:hover { background: var(--khaki-soft); border-left-color: var(--red); transform: translateX(3px); }
.services a:hover strong::after { opacity: 1; transform: translateX(0); }
.services strong::after { content: " \2192"; opacity: 0; display: inline-block; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.services strong { color: var(--maroon); font-family: var(--font-serif); font-size: 1.1rem; }
.services span { color: var(--muted); font-size: .95rem; }

/* ---------- Practice areas ---------- */
.jump {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; padding: 0; margin: 1.25rem 0 0;
}
.jump a {
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--maroon);
  font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow);
}
.jump a:hover { background: var(--maroon); color: var(--white); }

.practice {
  scroll-margin-top: 110px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
}
.practice > h3 {
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--khaki);
  margin-bottom: 1.25rem;
}
.practice .photo {
  margin: .25rem 0 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
}
.practice .photo img { width: 100%; }
.practice .photo--tall { max-width: 320px; }
@media (min-width: 700px) {
  .practice .photo { float: right; margin: .25rem 0 1.25rem 2rem; width: min(42%, 400px); }
  .practice .photo--tall { width: min(30%, 260px); }
}
.practice .clear { clear: both; }
.back-top {
  display: inline-flex; align-items: center; gap: .35em;
  margin-top: 1rem;
  font-size: .875rem; font-weight: 600;
  text-decoration: none;
}
.back-top:hover { text-decoration: underline; }

/* ---------- Attorney profile ---------- */
.profile-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin-top: 2rem;
}
.profile-grid .card h4 { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: 1.5rem;
}
.contact-grid .card p:last-child { margin-bottom: 0; }
.map {
  aspect-ratio: 4 / 3;
  margin: 0 0 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--khaki-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
address { font-style: normal; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .3rem 0; }
.contact-list .label {
  display: inline-block; min-width: 3.5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--olive-dark);
}

/* ---------- Consultation band ---------- */
.cta-band {
  background: var(--olive-dark);
  background: linear-gradient(135deg, var(--olive-dark), var(--olive-deep));
  color: var(--white);
}
.cta-band .wrap {
  display: grid; gap: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 860px) {
  .cta-band .wrap { grid-template-columns: 1.3fr 1fr; }
}
.cta-band h3 { color: var(--white); margin: 0 0 .5rem; }
.perks {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.perks li {
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(204,204,153,.45);
  color: var(--khaki-soft);
  font-size: .9rem; font-weight: 600;
}
.cta-band address {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(204,204,153,.3);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  line-height: 1.75;
  color: rgba(255,255,255,.92);
}
.cta-band address strong { color: var(--white); font-family: var(--font-serif); font-size: 1.1rem; }
.cta-band a { color: var(--white); }
.cta-band a:hover { color: var(--khaki); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive-deep);
  color: var(--khaki);
  font-size: .85rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .site-nav a { text-align: center; background: var(--cream); }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar-address { display: none; }
  .hero::after { background: rgba(47,47,28,.72); }
  .practice { scroll-margin-top: 16px; }
}

@media print {
  .topbar, .site-nav, .hero img, .jump, .back-top, .btn { display: none !important; }
  .hero, .cta-band, .site-footer { background: none; color: var(--ink); }
  .hero h2, .cta-band h3 { color: var(--maroon); }
  .card, .practice, .tile { box-shadow: none; }
}
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cta-band a.btn-light, .cta-band a.btn-light:hover { color: var(--maroon); }
