/* ── Variables ──
   Anders Almgren, Attorney at Law — deeper, warmer palette than DersCo to
   distinguish the firm from the consultancy. Ink navy + brass accent. */
:root {
  --navy:        #14233f;
  --navy-deep:   #0d1830;
  --brass:       #b08d4f;
  --brass-light: #c9a86a;
  --bg:          #f6f5f1;
  --bg-white:    #ffffff;
  --text:        #2a2f3a;
  --text-light:  #5d6573;
  --border:      #e3e1d9;
  --max-w:       1100px;
  --radius:      4px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-white);
}
img { max-width: 100%; display: block; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--navy); }

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.lead { max-width: 760px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--brass);
  color: #fff;
  border-color: var(--brass);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-logo span {
  color: var(--brass);
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .15rem;
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--brass); }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 6.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 40%, rgba(176,141,79,.22) 0%, transparent 62%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0px, rgba(255,255,255,.018) 1px, transparent 1px, transparent 14px),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero h1 em { color: var(--brass-light); font-style: normal; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 640px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-cta .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ── Argument (stakes) ── */
.argument { padding: 4.5rem 0; background: var(--bg); }
.argument-inner { max-width: 760px; }
.argument h2 { margin-bottom: 1.5rem; }
.argument p { font-size: 1.08rem; color: var(--text); }

/* ── Practice areas ── */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}
.practice-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.practice-card:hover {
  box-shadow: 0 8px 24px rgba(20,35,63,.1);
  transform: translateY(-2px);
}
.practice-card h3 { margin-bottom: .7rem; }
.practice-card p  { font-size: .95rem; color: var(--text-light); margin-bottom: 1.25rem; }
.practice-card .card-link {
  margin-top: auto;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brass);
}
.practice-card .card-link:hover { color: var(--navy); }
.practice-grid.two-up { max-width: 760px; }
.estate-note {
  margin-top: 2.5rem;
  max-width: 760px;
  font-size: .98rem;
  color: var(--text-light);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Headshot (with monogram fallback) ──
   The <img> sits on top of a monogram block. If the image file is missing,
   onerror hides the <img> and the monogram shows through. */
.headshot {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(20,35,63,.18);
}
.headshot .monogram {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--brass-light);
  letter-spacing: .05em;
}
.headshot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.headshot.is-small { max-width: 220px; }

/* ── Credentials / Why ── */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-media {
  display: flex;
  justify-content: center;
}
.why-text h2 { margin-bottom: 1.25rem; }
.why-text p  { color: var(--text); font-size: 1rem; }
.credentials { display: flex; flex-direction: column; gap: 1rem; }
.credential {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--brass);
}
.credential h3 { font-size: .95rem; margin-bottom: .2rem; color: var(--navy); }
.credential p  { font-size: .86rem; color: var(--text-light); margin: 0; }

/* ── Detail prose (practice pages, about) ── */
.prose { max-width: 760px; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); font-size: 1.05rem; }
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
}
.page-header h1 { color: #fff; margin-bottom: .75rem; }
.page-header p { color: rgba(255,255,255,.8); max-width: 640px; font-size: 1.1rem; }
.page-header .hero-eyebrow { margin-bottom: 1rem; }

/* ── CTA Band ── */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Contact ── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--text); font-size: 1rem; }
.contact-info a  { color: var(--brass); }

form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: .85rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--text-light); }
.form-status { font-size: .9rem; font-weight: 600; padding: .5rem 0; }
.form-status.ok  { color: #2f7a45; }
.form-status.err { color: #b04545; }

/* ── Disclaimer block ── */
.disclaimer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.footer-logo span { color: var(--brass-light); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-legal { width: 100%; margin-top: .75rem; font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.45); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: .75rem 0; }
  .nav-inner { flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; text-align: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; }
  .nav-links a { font-size: .85rem; white-space: nowrap; }
  .nav-links .btn { display: none; }
  .why-inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-inner  { grid-template-columns: 1fr; gap: 2rem; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-inner   { flex-direction: column; text-align: center; }
  .footer-links   { justify-content: center; }
  .hero-cta .btn-outline { display: none; }
}
@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .nav-links a:not(.btn) { font-size: .82rem; }
}
