/* Concept B — "Hometown" — Blue Ridge Law face-off */
:root {
  --paper: #fbfbf8;
  --ink: #1c2430;
  --stone: #8f9491;
  --stone-soft: #d9dbd6;
  --navy: #002156;
  --navy-hover: #0a3372;
  --shutter: #2a2f36;
  --oxblood: #7a2a26;
  --white: #ffffff;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-0: 1rem;      /* 16 */
  --fs-1: 1.125rem;  /* 18 */
  --fs-2: 1.375rem;  /* 22 */
  --fs-3: 1.625rem;  /* 26 */
  --fs-4: 2rem;      /* 32 */
  --fs-5: 2.75rem;   /* 44 */
  --fs-6: 3.75rem;   /* 60 */

  --measure: 64ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-hover); }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; color: var(--navy); letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-0);
  line-height: 1;
  padding: 0.95rem 1.4rem;
  border-radius: 4px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: rgba(0, 33, 86, 0.06); color: var(--navy); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--stone-soft);
  position: relative;
  z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: block; width: clamp(150px, 18vw, 210px); flex: none; }
.brand img { width: 100%; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-weight: 700; text-decoration: none; color: var(--ink); font-size: var(--fs-0); }
.nav a:hover { color: var(--navy); text-decoration: underline; }
.header-phone { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2); text-decoration: none; color: var(--navy); white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.nav .header-phone { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--navy); border-radius: 4px; color: var(--navy); font: 700 1rem var(--font-body); padding: .5rem .8rem; cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--paper); }
.hero img { width: 100%; height: clamp(380px, 56vw, 620px); object-fit: cover; object-position: 50% 40%; }
.hero-card {
  position: relative;
  background: var(--paper);
  padding: 1.75rem 2rem 2rem;
  max-width: 640px;
  margin: -140px 0 0 var(--gutter);
  margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.hero-card h1 { font-size: clamp(2.25rem, 5vw, var(--fs-6)); }
.hero-card p { font-size: var(--fs-2); margin: 1rem 0 1.5rem; line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--stone-soft); }
.section-title { text-align: center; font-size: clamp(var(--fs-4), 4vw, var(--fs-5)); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title + .lede { text-align: center; margin: -1.5rem auto 2.5rem; }

/* Practice areas — plain big links */
.areas-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem var(--gutter); margin-bottom: 3rem; }
.area h3 { font-size: var(--fs-4); margin-bottom: .5rem; }
.areas-lead .area h3 { font-size: clamp(var(--fs-4), 3.4vw, var(--fs-5)); }
.area h3 a { color: var(--navy); text-decoration-color: var(--oxblood); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.area h3 a:hover { color: var(--oxblood); }
.area p { margin: 0; max-width: 52ch; }
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem var(--gutter); padding-top: 2.5rem; border-top: 1px solid var(--stone-soft); }
.areas-grid .area h3 { font-size: var(--fs-3); }
.areas-grid .area h3 a { text-decoration-thickness: 2px; }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about h2 { font-size: var(--fs-4); margin-bottom: 1rem; }
.about .lead { font-size: var(--fs-2); line-height: 1.4; }
.about figcaption { font-size: var(--fs-0); color: var(--stone); margin-top: .5rem; }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem var(--gutter); max-width: 1000px; margin-inline: auto; }
.team li { padding: 1.1rem 0; border-top: 1px solid var(--stone-soft); }
.team .name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2); color: var(--ink); }
.team .role { color: var(--ink); margin: .15rem 0 .25rem; }
.team .mail { font-size: var(--fs-0); word-break: break-word; }

/* Town band */
.band { position: relative; background: var(--shutter); color: #fff; }
.band img { width: 100%; height: clamp(320px, 42vw, 520px); object-fit: cover; object-position: 50% 55%; }
.band .caption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.5rem 0 1.75rem;
  background: linear-gradient(to top, rgba(28, 36, 48, .85), rgba(28, 36, 48, 0));
}
.band .caption .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; }
.band h2 { color: #fff; font-size: var(--fs-4); }
.band p { color: #fff; margin: 0; max-width: none; }

/* Memberships */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem var(--gutter); align-items: center; }
.logos li { background: var(--white); border: 1px solid var(--stone-soft); padding: 1rem; display: flex; align-items: center; justify-content: center; min-height: 104px; }
.logos img { max-height: 70px; width: auto; object-fit: contain; }
.logos-note { text-align: center; color: var(--stone); margin: 1.5rem auto 0; font-size: var(--fs-0); }

/* Location + contact */
.visit { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); }
.visit h2 { font-size: var(--fs-4); margin-bottom: 1rem; }
.address { font-style: normal; font-size: var(--fs-2); line-height: 1.4; margin-bottom: 1.25rem; }
.address a { display: inline-block; margin-top: .35rem; }
.contact-list li { margin-bottom: .5rem; font-size: var(--fs-1); }
.visit .lede { margin-bottom: 1.5rem; }

/* Form */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--stone); border-radius: 4px; background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--oxblood); outline-offset: 2px; }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { color: var(--oxblood); font-size: var(--fs-0); display: none; margin-top: .3rem; }
.field.is-invalid .err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--oxblood); }
.consent { font-size: .9375rem; color: #4a515b; line-height: 1.45; max-width: none; }
.thanks { background: #fff; border: 1px solid var(--stone-soft); padding: 2rem; font-size: var(--fs-2); line-height: 1.4; }
.thanks h3 { font-size: var(--fs-3); margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--shutter); color: #e9ebee; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem var(--gutter); align-items: start; }
.footer-logo { width: min(100%, 300px); filter: brightness(0) invert(1); opacity: .95; }
.site-footer h2 { color: #fff; font-size: var(--fs-2); margin-bottom: .75rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .9375rem; color: #c9ccd2; }

/* Inner page */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.page-head .back { display: inline-block; margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(var(--fs-4), 5vw, var(--fs-6)); }
.page-head .summary { font-size: var(--fs-2); line-height: 1.4; margin-top: 1rem; }
.article { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); align-items: start; }
.prose h2 { font-size: var(--fs-3); margin: 1.5rem 0 .75rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; max-width: var(--measure); }
.prose li { margin-bottom: .35rem; }
.prose figure { margin: 2rem 0 0; }
.prose figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.aside { position: sticky; top: 1.5rem; display: grid; gap: 1.5rem; }
.aside-box { border: 1px solid var(--stone-soft); background: #fff; padding: 1.5rem; }
.aside-box h2 { font-size: var(--fs-2); margin-bottom: .75rem; }
.aside-box li { padding: .45rem 0; border-top: 1px solid var(--stone-soft); }
.aside-box li:first-child { border-top: 0; }
.aside-box .btn { margin-top: .5rem; }

/* Responsive */
@media (max-width: 960px) {
  .areas-lead, .areas-grid, .about, .team, .visit, .article { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--stone-soft); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-top: 1px solid var(--stone-soft); }
  .site-header > .wrap > .header-phone { display: none; }
  .nav .header-phone { display: block; padding-top: 1rem; }
  .hero img { height: clamp(300px, 70vw, 420px); }
  .hero-card { margin: -70px var(--gutter) 0; padding: 1.4rem 1.25rem 1.5rem; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band img { height: 300px; }
}
