/* Kent IP PLLC — site styles
   Tokens mirror design-system/tokens.css (canonical source).
   Accessibility target: WCAG 2.1 AA minimum, AAA where feasible. */
:root {
  /* Greens */
  --green-600: #02752D;   /* brand (logo). On white 5.9:1 — AA normal text */
  --green-700: #0A5A24;   /* link hover / pressed */
  --green-900: #0A3D1C;   /* filled panels w/ white text. ~12:1 — AAA */
  --green-50:  #EEF4EF;   /* section tint. ink text ~14:1 — AAA */

  /* Neutrals */
  --ink:       #14201A;
  --ink-muted: #45524B;
  --paper:     #FCFCFA;
  --white:     #FFFFFF;
  --line:      #DCE3DD;

  /* Type */
  --font-serif: "EB Garamond", Georgia, serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --leading-body: 1.65;

  --focus: 3px solid var(--green-600);
  --focus-offset: 2px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

*:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }

.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--green-900); color: #fff;
  padding: 10px 16px; border-radius: 6px; text-decoration: none; font-weight: 600;
  transition: top .15s ease; z-index: 100;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600); font-weight: 600; margin: 0 0 8px;
}

/* ---------- Site nav ---------- */
.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; position: relative;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img { height: 56px; width: auto; display: block; }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px;
  background: none; border: none; cursor: pointer; border-radius: 6px;
}
.nav-toggle:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
.nav-toggle .bar {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
}
.nav-links a {
  color: var(--ink); font-size: 15px; font-weight: 500;
  text-decoration: none; padding-bottom: 2px;
}
.nav-links a:hover { color: var(--green-600); }
.nav-links a[aria-current="page"] {
  color: var(--green-600);
  border-bottom: 2px solid var(--green-600);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a {
    display: block; padding: 16px 32px; font-size: 16px; padding-bottom: 16px;
  }
  .nav-links a[aria-current="page"] {
    border-bottom: none; border-left: 3px solid var(--green-600); padding-left: 29px;
  }
}

/* ---------- Hero (home only) ---------- */
:root { --hero-map: url('assets/hero-map.png'); }
.hero-band {
  background-color: var(--green-900);
  background-image: linear-gradient(rgba(10, 61, 28, 0.65), rgba(8, 36, 19, 0.75)), var(--hero-map);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  padding: 80px 32px 88px; text-align: center;
}
.hero-band-inner { max-width: 720px; margin: 0 auto; }
.hero-band h1 {
  font-family: var(--font-serif); color: #E8F1EA; font-weight: 700;
  font-size: clamp(32px, 5.5vw, 52px); line-height: 1.1; margin: 0 0 20px;
}
.hero-band .sub {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.65; color: #BDD3C3;
  margin: 0;
}

/* ---------- Page header (interior pages) ---------- */
.page-header { background: var(--green-900); padding: 56px 0 44px; }
.page-header h1 {
  font-family: var(--font-serif); color: #fff; font-weight: 700;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0;
}
.page-sub {
  color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.55;
  margin: 14px 0 0; max-width: 680px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-900); color: #fff; font-weight: 600; font-size: 16px;
  text-decoration: none; padding: 14px 26px; border-radius: 6px;
  transition: background .15s ease;
}
.btn:hover { background: #073016; }
.btn:active { background: #052310; }
.btn--invert { background: #fff; color: var(--green-900); }
.btn--invert:hover { background: var(--green-50); }
.btn--invert:focus-visible { outline-color: #fff; }

/* ---------- About ---------- */
.about { padding: 56px 0; }
.about h2 {
  font-family: var(--font-serif); color: var(--ink); font-weight: 700;
  font-size: 36px; line-height: 1.1; margin: 0 0 24px;
}
.about p { font-size: 18px; line-height: 1.7; color: var(--ink-muted); max-width: none; margin: 0 0 18px; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Our Approach ---------- */
.approach { background: var(--green-50); padding: 56px 0; }
.approach h2 { font-family: var(--font-serif); color: var(--ink); font-weight: 700; font-size: 36px; line-height: 1.1; margin: 0 0 24px; }
.approach p { font-size: 18px; line-height: 1.7; color: var(--ink-muted); max-width: none; margin: 0 0 18px; }
.approach p:last-child { margin-bottom: 0; }

/* Prose sections sit in a comfortable-measure column */
.about .wrap, .approach .wrap { max-width: 760px; }

/* ---------- Practice areas ---------- */
.practice-intro { padding: 56px 0; }
.practice-intro p { font-size: 18px; line-height: 1.75; color: var(--ink-muted); max-width: 760px; margin: 0; }
.practice { background: var(--green-50); padding: 56px 0; }
.practice h2 {
  font-family: var(--font-serif); color: var(--ink); font-weight: 700;
  font-size: 36px; margin: 0 0 36px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card .bar { width: 34px; height: 3px; background: var(--green-600); border-radius: 2px; margin-bottom: 14px; }
.card h2 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
.card h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.card p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

/* ---------- Attorney bio ---------- */
.bio { padding: 56px 0; }
.bio h2 { font-family: var(--font-serif); color: var(--ink); font-weight: 700; font-size: 36px; margin: 0 0 4px; line-height: 1.1; }
.bio .role { color: var(--green-700); font-weight: 600; font-size: 16px; margin: 0 0 20px; }
.bio .lede { font-size: 18px; line-height: 1.65; color: var(--ink-muted); max-width: none; margin: 0 0 28px; }
.bio-head { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 0 0 8px; }
.bio-photo { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 10px; background: var(--line); display: block; order: -1; }
.bio-intro .eyebrow { margin-top: 4px; }
.bio-intro .lede { margin-bottom: 0; }
@media (min-width: 681px) {
  .bio-head { grid-template-columns: 1fr 260px; gap: 40px; align-items: start; }
  .bio-intro { grid-column: 1; grid-row: 1; }
  .bio-photo { grid-column: 2; grid-row: 1; max-width: none; }
}
.bio-quote { margin: 40px 0; padding: 28px 32px; border-left: 3px solid var(--green-600); font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); }
.bio-subhead { font-family: var(--font-serif); font-size: 24px; color: var(--green-600); font-weight: 700; margin: 40px 0 14px; }
.bio-rep { margin: 0; padding: 0; list-style: none; }
.bio-rep li {
  font-size: 15px; line-height: 1.6; color: var(--ink-muted);
  padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line);
  position: relative;
}
.bio-rep li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-600);
}
.bio-rep li:first-child { border-top: 1px solid var(--line); }
.bio-rep .editorial { font-size: 13px; color: var(--ink-muted); font-style: italic; opacity: .75; }
.bio-rep-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); font-style: italic; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 0; }
@media (max-width: 600px) { .creds { grid-template-columns: 1fr; } }

.creds h3 {
  font-family: var(--font-serif); font-size: 19px; color: var(--ink); font-weight: 700;
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.creds ul { list-style: none; margin: 0; padding: 0; }
.creds li { font-size: 15px; line-height: 1.5; color: var(--ink); margin: 0 0 10px; }
.creds li span { display: block; color: var(--ink-muted); font-size: 14px; }
.creds .role-list { list-style: disc; margin: 8px 0 0; padding-left: 18px; }
.creds .role-list li { font-size: 14px; color: var(--ink-muted); margin: 0 0 5px; }
.creds .icon-list { list-style: none; margin: 0; padding: 0; }
.creds .icon-list li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; margin: 0 0 24px; align-items: start; }
.creds .icon-list li:last-child { margin-bottom: 0; }
.rec-logo { flex-shrink: 0; width: 72px; height: auto; object-fit: contain; }
.creds .icon-list li > span { grid-column: 2; font-size: 14px; color: var(--ink-muted); display: block; margin-top: 2px; }

/* ---------- Recognition section (homepage) ---------- */
.recognition { padding: 56px 0; border-top: 1px solid var(--line); }

/* ---------- WTR recognition block ---------- */
.wtr-block {
  margin: 40px 0; padding: 28px 32px;
  background: var(--green-50); border-radius: 10px;
  display: flex; gap: 28px; align-items: flex-start;
}
.wtr-logo { width: 120px; height: auto; flex-shrink: 0; margin-top: 4px; }
.wtr-quote {
  margin: 0; padding: 0;
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; line-height: 1.55; color: var(--ink);
}
.wtr-quote cite {
  display: block; margin-top: 12px;
  font-family: var(--font-sans); font-style: normal;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green-600);
}
@media (max-width: 560px) {
  .wtr-block { flex-direction: column; gap: 16px; }
}

/* ---------- Team (Charlotte + others) ---------- */
.team { background: var(--green-50); padding: 56px 0; }
.team > .wrap > h2 {
  font-family: var(--font-serif); color: var(--ink); font-weight: 700;
  font-size: 30px; margin: 0 0 36px;
}
.team-member { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 600px) {
  .team-member { grid-template-columns: 200px 1fr; gap: 36px; }
}
.team-photo {
  width: 100%; max-width: 200px; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: top; border-radius: 10px;
  background: var(--line); display: block;
}
.team-name { font-family: var(--font-serif); font-weight: 700; font-size: 26px; margin: 0 0 4px; color: var(--ink); line-height: 1.1; }
.team-role { color: var(--green-700); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.team-bio { font-size: 16px; line-height: 1.65; color: var(--ink-muted); margin: 0 0 12px; }
.team-quote { margin: 16px 0 0; padding: 0 0 0 16px; border-left: 3px solid var(--green-600); font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink); }

/* ---------- Connect ---------- */
.connect-info { padding: 56px 0; }
.connect-info .wrap { max-width: 600px; }
.connect-info p { font-size: 18px; line-height: 1.7; color: var(--ink-muted); margin: 0 0 28px; }
.connect-info p:last-child { margin-bottom: 0; }
.connect-detail { font-size: 20px; font-weight: 500; }
.connect-detail a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.connect-detail a:hover { color: var(--green-600); }
.connect-disclaimer { font-size: 13px !important; color: var(--ink-muted); font-style: italic; margin-top: 40px !important; }

/* ---------- Footer ---------- */
footer { background: var(--green-900); color: #fff; }
footer .inner { max-width: 1000px; margin: 0 auto; padding: 56px 32px 36px; }

.foot-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
}

.foot-brand { font-family: var(--font-serif); font-weight: 700; font-size: 22px; color: #fff; display: block; margin-bottom: 10px; }
.foot-tagline { font-size: 14px; color: #9DBFAA; margin: 0; line-height: 1.6; }

.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { color: #BDD3C3; font-size: 15px; text-decoration: none; }
.foot-nav a:hover { color: #fff; }

.foot-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-contact-link { color: #BDD3C3; font-size: 15px; text-decoration: none; }
.foot-contact-link:hover { color: #fff; }
.foot-cta {
  display: inline-flex; align-items: center;
  margin-top: 6px; padding: 10px 20px;
  border: 1.5px solid rgba(255,255,255,.45); border-radius: 6px;
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.foot-cta:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.foot-social { display: flex; gap: 12px; margin-top: 8px; }
.social-icon { color: #9DBFAA; display: flex; align-items: center; text-decoration: none; }
.social-icon:hover { color: #fff; }

.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; }
.disclaimer { font-size: 12px; line-height: 1.6; color: #6B8F78; max-width: 80ch; margin: 0 0 8px; }
.copyright { font-size: 12px; color: #6B8F78; margin: 0; }
