/* ==========================================================
   Lee Ozmint, Attorney at Law — site styles
   Colors and fonts are set once here; change them in :root.
   ========================================================== */

:root {
  --ink: #1f2a2e;          /* body text */
  --ink-soft: #4a5a60;     /* secondary text */
  --brand: #1e3a4c;        /* deep slate blue: header, buttons */
  --brand-dark: #142836;
  --accent: #9a6b2f;       /* warm brass: rules, highlights */
  --paper: #fbf8f2;        /* warm off-white page background */
  --card: #ffffff;
  --line: #e4ddd0;
  --max: 1080px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--brand); }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-dark);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / navigation ---------- */

.site-header {
  background: #fff;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-dark);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand:hover { color: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  color: var(--brand-dark);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.98rem;
}
.site-nav a:hover { background: #f3eee4; color: var(--brand-dark); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 87px; left: 0; right: 0;
    background: #fff;
    border-bottom: 3px solid var(--accent);
    padding: 8px 20px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* ---------- Page sections ---------- */

.hero {
  background: linear-gradient(180deg, #eef1f0 0%, var(--paper) 100%);
  padding: 56px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8em;
}
.photo-frame {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,40,54,0.18);
  background: var(--card);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 10px 14px;
  background: var(--card);
}

.page-title {
  padding: 48px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.page-title p { color: var(--ink-soft); font-size: 1.1rem; max-width: 720px; }

section { padding: 36px 0; }

.rule {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: 0 0 1.2em;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn.secondary:hover { background: var(--brand); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Cards (practice areas, highlights) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }

/* Two-column text + photo */
.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.split.reverse { grid-template-columns: 1.3fr 1fr; }

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Disclaimer box (home page) */
.disclaimer {
  background: #f1ece2;
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 0 4px 4px 0;
}
.disclaimer strong { color: var(--ink); }

/* Contact */
.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}
.contact-box dl { margin: 0; }
.contact-box dt {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
}
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 4px 0 0; font-size: 1.1rem; }

.note { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 48px;
  background: var(--brand-dark);
  color: #c9d3d8;
  padding: 32px 0;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { padding: 36px 0; }
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .wrap { padding: 0 16px; }
}

/* Wide photo banner */
.banner { margin: 0 0 8px; border-radius: 6px; overflow: hidden; }
.banner img { width: 100%; height: clamp(180px, 32vw, 340px); object-fit: cover; }

/* Long-form story text on the About page */
.story { max-width: 760px; }
.story h2 { margin-top: 0.4em; }
.pull {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--brand-dark);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 1.4em 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.about-grid aside { display: grid; gap: 24px; position: sticky; top: 110px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid aside { position: static; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.1rem; gap: 10px; }
  .brand small { font-size: 0.66rem; letter-spacing: 0.08em; }
  .brand img { width: 48px; height: 48px; }
}

.gallery.tall img { aspect-ratio: 4 / 5; object-position: center 20%; }

/* Photo sections on the About page: natural proportions, no cropping */
.gallery.tall { display: block; columns: 3 260px; column-gap: 20px; }
.gallery.tall figure { break-inside: avoid; margin: 0 0 20px; display: block; }
.gallery.tall img { aspect-ratio: auto; height: auto; object-fit: initial; }

/* About page: photos set into the story with text wrapping around them */
.story.wrapped { max-width: 940px; margin: 0 auto; padding-top: 24px; }
.story.wrapped h2 { clear: both; padding-top: 0.6em; }
.story.wrapped .rule { margin-bottom: 1.4em; }
.wrap-photo {
  width: 34%;
  max-width: 310px;
  margin: 6px 0 18px;
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20,40,54,0.16);
}
.wrap-photo img { width: 100%; height: auto; }
.wrap-photo.right { float: right; margin-left: 28px; }
.wrap-photo.left  { float: left;  margin-right: 28px; clear: left; }
.wrap-photo.right + .wrap-photo.left { clear: none; width: 30%; }
.wrap-photo.right:has(+ .wrap-photo.left) { width: 30%; }
.closing-photos {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 12px;
  margin-bottom: 28px;
}
.closing-photos img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story.wrapped .btn-row { clear: both; }
@media (max-width: 640px) {
  .wrap-photo, .wrap-photo.right, .wrap-photo.left {
    float: none; width: 100%; max-width: none; margin: 8px 0 20px;
  }
  .closing-photos { grid-template-columns: 1fr; }
}
