/* ===========================================================
   HBRB Legal — "Editorial Establishment" design system
   Haberl, Buell, Rice & Bell PLLC
   =========================================================== */

:root {
  --paper:      #f6f1e7;   /* warm bone page */
  --paper-2:    #efe8d8;   /* slightly deeper panel */
  --ink:        #1b201b;   /* near-black */
  --ink-soft:   #4a514a;
  --ink-faint:  #7c837b;
  --green-900:  #12271f;
  --green-800:  #17352a;   /* deep forest */
  --green-600:  #2b6049;
  --sage:       #8ea595;
  --brass:      #a9803a;   /* accent for numerals + rules */
  --brass-deep: #8a6a2e;
  --line:       rgba(27,32,27,0.18);
  --line-soft:  rgba(27,32,27,0.10);
  --wrap:       1220px;
  --gutter:     clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Display serif */
h1, h2, h3, .display, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 480;
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Small-caps eyebrow label */
.eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-deep);
}
.eyebrow.on-dark { color: var(--sage); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--green-800); color:#fff; padding: 12px 18px; }
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #ffffff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo img { height: clamp(32px, 4.5vw, 42px); width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--brass-deep); }
.nav .nav-phone { color: var(--green-800); display: inline-flex; align-items: center; gap: 7px; }
.nav .ic { width: 15px; height: 15px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 78px); padding-bottom: clamp(30px, 4vw, 46px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 68px); align-items: end; }
.hero-copy .eyebrow { display: block; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 460; letter-spacing: -0.022em; }
.hero h1 .amp { font-style: italic; color: var(--brass-deep); font-weight: 420; }
.hero .tagline { font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin: 26px 0 0; }
.hero .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 40ch; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.hero-figure figcaption { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 12px; font-weight: 600; }
.hero-figure .frame-tag { position: absolute; top: -1px; left: -1px; background: var(--green-800); color: var(--paper); font-family: "Fraunces", serif; font-size: .9rem; letter-spacing: .04em; padding: 8px 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: "Source Sans 3", sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: 1px solid var(--ink); transition: all .2s; cursor: pointer; }
.btn .ic { width: 16px; height: 16px; }
.btn-solid { background: var(--green-800); border-color: var(--green-800); color: var(--paper); }
.btn-solid:hover { background: var(--green-900); border-color: var(--green-900); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line.on-dark { color: var(--paper); border-color: var(--sage); }
.btn-line.on-dark:hover { background: var(--paper); color: var(--green-900); border-color: var(--paper); }

/* Text link with arrow */
.arrow-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--brass-deep); }
.arrow-link .ic { width: 18px; height: 18px; transition: transform .2s; }
.arrow-link:hover .ic { transform: translateX(5px); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.dark { background: var(--green-800); color: var(--paper); }
.section.panel { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 20px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head .eyebrow { white-space: nowrap; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 460; }
.section-head .lead-in { grid-column: 2; color: var(--ink-soft); max-width: 52ch; margin-top: 6px; }

/* ---------- Practice areas (numbered rows) ---------- */
.practice-list { border-top: 1px solid var(--line); }
.practice-row { display: grid; grid-template-columns: 88px minmax(0,1.1fr) minmax(0,1.3fr) auto; gap: 24px; align-items: baseline; padding: 28px 6px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; text-decoration: none; color: inherit; }
.practice-row:hover { background: color-mix(in srgb, var(--brass) 8%, transparent); padding-inline: 18px; }
.practice-row .num { font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--brass-deep); font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.practice-row .name { font-family: "Fraunces", serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 440; line-height: 1.1; }
.practice-row .desc { color: var(--ink-soft); font-size: 1rem; }
.practice-row .go { color: var(--brass-deep); }
.practice-row .go .ic { width: 22px; height: 22px; transition: transform .2s; }
.practice-row:hover .go .ic { transform: translateX(5px); }

/* ---------- Attorneys (editorial rows) ---------- */
.attorneys { display: grid; gap: 0; border-top: 1px solid var(--line); }
.attorney { display: grid; grid-template-columns: 280px 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.attorney-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; border: 1px solid var(--line); filter: grayscale(0.15); }
.attorney-body .a-num { font-family: "Fraunces", serif; color: var(--brass-deep); font-size: .95rem; letter-spacing: .1em; }
.attorney-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 440; margin: 8px 0 4px; }
.attorney-body .a-role { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.attorney-body .a-blurb { color: var(--ink-soft); margin: 16px 0 18px; max-width: 56ch; }
.a-tags { display: flex; flex-wrap: wrap; gap: 8px 8px; padding: 0; margin: 0 0 20px; list-style: none; }
.a-tags li { font-size: .76rem; letter-spacing: .04em; color: var(--green-800); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.attorney-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.attorney-cta .mail { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); text-decoration: none; }
.attorney-cta .mail .ic { width: 16px; height: 16px; color: var(--brass-deep); }
.attorney-cta .mail:hover { color: var(--brass-deep); }

/* ---------- About / quote band ---------- */
.about-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-band .pull { font-family: "Fraunces", serif; font-weight: 420; font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.18; color: var(--paper); }
.about-band .pull .amp { color: var(--sage); }
.about-band p { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.about-band .stat-row { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.about-band .stat b { font-family: "Fraunces", serif; font-size: 2.2rem; font-weight: 460; color: var(--paper); display: block; }
.about-band .stat span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; margin-top: 26px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 6px 0 0; font-size: 1.15rem; }
.contact-info dd a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { border-color: var(--brass); color: var(--brass-deep); }
.contact-info .addr-line { font-family: "Fraunces", serif; font-size: 1.5rem; line-height: 1.25; }
.contact-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.map-frame { border: 1px solid var(--line); overflow: hidden; min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(0.2) contrast(1.02); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: color-mix(in srgb, var(--paper) 78%, transparent); padding-block: clamp(46px, 6vw, 72px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .footer-logo { height: 46px; width: auto; margin-bottom: 6px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin: 16px 0 0; font-size: .95rem; max-width: 38ch; }
.site-footer h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin: 0 0 16px; font-family: "Source Sans 3", sans-serif; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: color-mix(in srgb, var(--paper) 82%, transparent); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(246,241,231,0.15); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.footer-bottom .disclaimer { max-width: 60ch; }

.ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-figure { order: -1; }
  .attorney { grid-template-columns: 200px 1fr; }
  .attorney-cta { grid-column: 2; flex-direction: row; align-items: center; margin-top: 6px; }
  .about-band .wrap, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .practice-row { grid-template-columns: 54px 1fr auto; }
  .practice-row .desc { display: none; }
}
@media (max-width: 640px) {
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); letter-spacing: .1em; }
  .nav-toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-head .lead-in { grid-column: 1; }
  .attorney { grid-template-columns: 1fr; }
  .attorney-photo { max-width: 240px; }
  .attorney-cta { grid-column: 1; }
}
