/* ==========================================================================
   Dickerson Law, Inc — v2 design system
   "Heritage law office in cowboy country" — Oakdale, CA, Cowboy Capital
   of the World. Dark walnut, saddle leather, brass, cream paper.
   Display type: Besley (Clarendon revival). Body: Source Sans 3.
   ========================================================================== */

:root {
  --walnut: #241a12;        /* near-black brown — header, footer, heroes */
  --walnut-soft: #33261a;
  --leather: #7a4f2a;
  --saddle: #9c6b3c;
  --brass: #b8892f;
  --brass-light: #d3aa55;
  --brass-pale: #ecd9a8;
  --cream: #f5efe2;         /* page background */
  --paper: #fbf7ec;         /* card background */
  --ink: #2c241b;
  --muted: #6d604f;
  --line: #d9cdb4;
  --shadow: 0 3px 16px rgba(36, 26, 18, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(rgba(122, 79, 42, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
}

h1, h2, h3, h4 { font-family: "Besley", "Clarendon", Georgia, serif; color: var(--walnut); line-height: 1.18; font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leather); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.4rem; }

/* --- Ornaments & rules ------------------------------------------------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  color: var(--brass); font-size: .95rem; letter-spacing: .5em; text-indent: .5em;
  margin: 0 auto 1.1rem;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 64px; background: currentColor; opacity: .55;
}
.ornament-light { color: var(--brass-light); }

.eyebrow {
  color: var(--brass); text-transform: uppercase; letter-spacing: .24em;
  font-size: .78rem; font-weight: 700; margin-bottom: .6rem;
}
.eyebrow::before { content: "✶ "; }
.eyebrow::after { content: " ✶"; }

.rule-double { border: none; border-top: 3px double var(--brass); opacity: .7; margin: 0; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  background: linear-gradient(180deg, var(--walnut-soft), var(--walnut));
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px double var(--brass);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.header-bar {
  display: flex; align-items: center; gap: 1.6rem;
  min-height: 82px; flex-wrap: wrap; padding-top: .65rem; padding-bottom: .65rem;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 3px;
  border: 1px solid var(--brass); box-shadow: 0 0 0 3px rgba(184, 137, 47, .18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Besley", Georgia, serif; color: #fdf9ee;
  font-size: 1.4rem; font-weight: 900; letter-spacing: .015em;
}
.brand-sub {
  color: var(--brass-light); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .22em; margin-top: .2rem;
}
.site-nav { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: #e8ddc8; text-decoration: none; font-size: .92rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; padding: .4rem 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }
.call-btn {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: var(--walnut) !important;
  padding: .55rem 1.15rem !important; border-radius: 3px; font-weight: 700 !important;
  border: 1px solid rgba(36, 26, 18, .35); border-bottom: 1px solid rgba(36,26,18,.35) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); white-space: nowrap;
}
.call-btn:hover { filter: brightness(1.07); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .85rem 1.9rem; border-radius: 3px; letter-spacing: .06em;
  text-transform: uppercase; font-size: .92rem; transition: filter .15s, background .15s;
}
.btn-gold {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: var(--walnut); border: 1px solid rgba(36, 26, 18, .3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost { border: 2px solid var(--brass-pale); color: #fdf9ee; }
.btn-ghost:hover { background: rgba(236, 217, 168, .14); }

/* --- Heroes -------------------------------------------------------------- */
.hero {
  position: relative; color: #fdf9ee; text-align: center;
  padding: 7rem 1.4rem 7.5rem;
  background:
    linear-gradient(rgba(24, 16, 9, .72), rgba(36, 26, 18, .88)),
    url("../images/oakdale-sign.jpg") center 38% / cover no-repeat;
  border-bottom: 3px double var(--brass);
}
.hero h1 { color: #fdf9ee; font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 900; margin-bottom: .9rem; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero .tagline { font-size: clamp(1.08rem, 2.2vw, 1.32rem); max-width: 46rem; margin: 0 auto 1.4rem; color: #efe6cf; }
.hero .strapline {
  color: var(--brass-light); text-transform: uppercase; letter-spacing: .3em;
  font-size: .82rem; font-weight: 700; margin-bottom: 2.4rem;
}
.hero .actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }

.page-hero {
  background:
    linear-gradient(rgba(24, 16, 9, .55), rgba(36, 26, 18, .82)),
    var(--walnut);
  color: #fdf9ee; padding: 4rem 1.4rem; text-align: center;
  border-bottom: 3px double var(--brass);
}
.page-hero h1 { color: #fdf9ee; font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 900; }
.page-hero p { color: var(--brass-pale); max-width: 44rem; margin: .7rem auto 0; letter-spacing: .06em; }
.page-hero .kicker {
  color: var(--brass-light); text-transform: uppercase; letter-spacing: .28em;
  font-size: .76rem; font-weight: 700; margin-bottom: .8rem;
}

/* --- Sections ------------------------------------------------------------ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .6rem; }
.section .lede { color: var(--muted); max-width: 48rem; margin-bottom: 2.6rem; font-size: 1.1rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* --- Cards ---------------------------------------------------------------- */
.attorney-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.2rem; }
.attorney-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.attorney-card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(36, 26, 18, .18); }
.attorney-card::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--brass), var(--brass-light), var(--brass));
}
.attorney-card img { aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.attorney-card .body { padding: 1.7rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.attorney-card h3 { font-size: 1.5rem; font-weight: 900; }
.attorney-card .role { color: var(--brass); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; }
.attorney-card p { color: var(--muted); font-size: .99rem; flex: 1; }
.attorney-card .more { font-weight: 700; text-decoration: none; color: var(--leather); }
.attorney-card .more:hover { color: var(--brass); }

.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.practice-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: 1.6rem 1.7rem; text-decoration: none; color: inherit;
  box-shadow: 0 1px 6px rgba(36, 26, 18, .07);
  position: relative; transition: transform .16s ease, box-shadow .16s ease;
}
.practice-card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(184, 137, 47, .35); border-radius: 2px; pointer-events: none;
}
.practice-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(36, 26, 18, .16); }
.practice-card h3 { font-size: 1.18rem; margin-bottom: .45rem; font-weight: 900; }
.practice-card h3::after { content: " ✶"; color: var(--brass); font-size: .8em; }
.practice-card p { color: var(--muted); font-size: .94rem; }

/* --- Practice areas page --------------------------------------------------- */
.practice-entry { padding: 2.6rem 0; border-bottom: 1px solid var(--line); }
.practice-entry:last-child { border-bottom: none; }
.practice-entry h3 { font-size: 1.55rem; margin-bottom: .8rem; font-weight: 900; }
.practice-entry h3::before { content: "✶ "; color: var(--brass); font-size: .75em; vertical-align: .1em; }
.practice-entry p { max-width: 54rem; margin-bottom: .9rem; }

/* --- Bio pages --------------------------------------------------------------- */
.bio-layout { display: grid; grid-template-columns: 340px 1fr; gap: 3.4rem; align-items: start; }
.bio-photo img {
  border-radius: 4px; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--paper); padding: 8px;
}
.bio-photo .badges {
  display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; margin-top: 1.6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.2rem;
}
.bio-photo .badges img { max-height: 58px; width: auto; border: none; box-shadow: none; padding: 0; }
.bio-text .drop::first-letter {
  font-family: "Besley", Georgia, serif; font-weight: 900; color: var(--brass);
  font-size: 3.4em; float: left; line-height: .82; padding: .06em .12em 0 0;
}
.bio-text p { margin-bottom: 1.15rem; max-width: 58rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.gallery figure {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; box-shadow: 0 1px 6px rgba(36, 26, 18, .08);
}
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .25s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: .65rem 1rem; font-size: .85rem; color: var(--muted); font-style: italic; }

/* --- Bands --------------------------------------------------------------------- */
.award-band {
  background:
    linear-gradient(rgba(24, 16, 9, .82), rgba(36, 26, 18, .9)),
    url("../images/fence-and-field.jpg") center / cover no-repeat;
  color: #fdf9ee; text-align: center; padding: 4rem 1.4rem;
  border-top: 3px double var(--brass); border-bottom: 3px double var(--brass);
}
.award-band h2 { color: var(--brass-light); font-size: 1.6rem; margin-bottom: .6rem; font-weight: 900; }
.award-band p { max-width: 42rem; margin: 0 auto; color: #efe6cf; }

/* --- Contact --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 3.2rem; }
.contact-info h3 { margin: 1.4rem 0 .35rem; font-size: 1.15rem; font-weight: 900; }
.contact-info h3::before { content: "✶ "; color: var(--brass); font-size: .8em; }
.contact-info p { color: var(--ink); }
.contact-info a { font-weight: 600; }
.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 2rem; box-shadow: var(--shadow); position: relative;
}
.contact-form::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(184, 137, 47, .3); border-radius: 2px; pointer-events: none;
}
.contact-form > * { position: relative; }
.contact-form label { display: block; font-weight: 700; margin: 1.05rem 0 .3rem; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .75rem .95rem; border: 1px solid #c4b394; border-radius: 3px;
  font: inherit; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.contact-form button { margin-top: 1.3rem; border: none; cursor: pointer; font-size: 1rem; }

/* --- Footer --------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--walnut), #1a120b);
  color: #cbbfa8; padding: 3.4rem 0 2.2rem;
  border-top: 3px double var(--brass);
}
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.2rem; margin-bottom: 2.4rem; }
.site-footer h4 {
  color: var(--brass-light); font-size: .82rem; margin-bottom: .7rem;
  text-transform: uppercase; letter-spacing: .2em; font-family: "Source Sans 3", sans-serif; font-weight: 700;
}
.site-footer a { color: var(--brass-pale); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal {
  border-top: 1px solid rgba(184, 137, 47, .3); padding-top: 1.3rem;
  font-size: .85rem; color: #9c8f78; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.site-footer .cowboy {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--brass);
}

/* --- Responsive --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-photo { max-width: 340px; }
  .site-nav { gap: 1rem; }
  .hero { padding: 5rem 1.4rem 5.5rem; }
}

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