/* ============================================================
   DH Brumer PC — site styles
   Typography: Libre Caslon Text (headings) + Inter (body)
   Palette: Charcoal #1A1A1A, Cream #FAF7F2 — no accent color
   The restraint is the brand.
   ============================================================ */

:root {
  /* Colors */
  --color-charcoal: #1A1A1A;
  --color-cream: #FAF7F2;
  --color-dark-bg: #14110D;
  --color-muted: #5F5E5A;
  --color-rule: #D5D2CB;          /* slightly darker than CV Business Law's rule for institutional weight */
  --color-cream-tint: #F3EFE7;

  /* Typography */
  --font-serif: 'Libre Caslon Text', 'Libre Caslon', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --content-width: 768px;
  --narrow-width: 640px;

  /* Strict vertical rhythm — slightly more generous than CV Business Law
     to give the institutional brand more breathing room */
  --section-y: clamp(4rem, 7vw, 7rem);
  --section-y-tight: clamp(2.5rem, 5vw, 4rem);
}

/* ============================================================
   Reset and base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-cream);
  font-feature-settings: "ss01", "cv11", "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--color-charcoal);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 400;
}

p {
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--color-charcoal);
  max-width: 56ch;
}

.muted { color: var(--color-muted); }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding: var(--section-y) 0;
}

.section-after-hero {
  padding-top: var(--section-y-tight);
  padding-bottom: var(--section-y);
}

.section-dark {
  background: var(--color-dark-bg);
  color: var(--color-cream);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--color-cream);
}

.section-dark .muted { color: rgba(245, 242, 236, 0.65); }
.section-dark .eyebrow { color: rgba(245, 242, 236, 0.55); }

/* ============================================================
   Header — minimal, just a CTA button
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 0.5px solid var(--color-rule);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.875rem 1.625rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.btn-primary:hover {
  background: #2A2825;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-charcoal);
  border: 0.5px solid var(--color-charcoal);
}

.btn-secondary:hover {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.section-dark .btn-secondary {
  color: var(--color-cream);
  border-color: var(--color-cream);
}

.section-dark .btn-secondary:hover {
  background: var(--color-cream);
  color: var(--color-charcoal);
}

/* ============================================================
   Masthead — large wordmark above hero
   ============================================================ */

.masthead {
  padding: clamp(3rem, 5vw, 5rem) 0 0;
  text-align: center;
}

.masthead-mark {
  height: clamp(96px, 13vw, 160px);
  width: auto;
  margin: 0 auto;
  display: block;
}

/* ============================================================
   Hero — pure typography, no imagery
   ============================================================ */

.hero {
  padding: var(--section-y-tight) 0 var(--section-y);
  position: relative;
}

.hero-inner {
  max-width: 64ch;
  margin: 0 auto;
  text-align: center;
}

.hero-inner h1 {
  margin-bottom: 1.75rem;
  max-width: none;
}

.hero-inner .lead {
  margin: 0 auto 2.5rem;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Section grid — two columns, fills page width
   ============================================================ */

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* Three-column variant for About section with image on the right */
.section-grid-with-image {
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .section-grid-with-image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .section-grid-with-image .section-grid-image {
    grid-column: 1 / -1;
    margin-top: 1rem;
    max-width: 320px;
  }
}

@media (min-width: 1100px) {
  .section-grid-with-image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(220px, 280px);
    gap: clamp(2.5rem, 4vw, 4rem);
    align-items: stretch;
  }
  .section-grid-with-image .section-grid-left,
  .section-grid-with-image .section-grid-right {
    align-self: start;
  }
  .section-grid-with-image .section-grid-image {
    grid-column: auto;
    margin-top: 0;
    max-width: none;
    position: relative;
    /* Image cell takes the row's height (= tallest text column),
       and the image inside is absolutely positioned so it doesn't
       contribute to the row's intrinsic height calculation. */
  }
  .section-grid-with-image .section-grid-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
}

.section-grid-image {
  width: 100%;
}

.section-grid-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1666 / 2500;
  object-fit: cover;
  background: #000;
  display: block;
  border-radius: 2px;
}

.section-grid-left .eyebrow {
  margin-bottom: 1rem;
  display: block;
}

.section-grid-left h2 {
  max-width: 14ch;
  margin: 0;
}

.section-subhead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-charcoal);
  max-width: 60ch;
  margin-top: 0;
}

.section-grid-right .section-subhead + .section-subhead {
  margin-top: 1.5rem;
}

.section-subhead-dark {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.85);
  max-width: 60ch;
}

/* ============================================================
   Practice areas grid (similar to CV's cols-4)
   ============================================================ */

.practice-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 640px) {
  .practice-areas { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .practice-areas {
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(2rem, 3vw, 2.5rem);
  }
}

.practice-item {
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--color-rule);
}

.practice-item h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.005em;
}

.practice-item p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA band — dark, road photo background
   ============================================================ */

.cta-band {
  background-color: var(--color-dark-bg);
  background-image:
    linear-gradient(rgba(20, 17, 13, 0.75), rgba(20, 17, 13, 0.75)),
    url('/images/cta-road.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-cream);
  padding: clamp(10rem, 22vw, 20rem) 0;
  position: relative;
  overflow: hidden;
}

/* Dark-mode overrides for elements used in the CTA */
.cta-band .eyebrow {
  color: rgba(245, 242, 236, 0.65);
  display: block;
  margin-bottom: 1rem;
}

.cta-band h2 {
  color: var(--color-cream);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.cta-band .section-subhead {
  color: rgba(245, 242, 236, 0.88);
  max-width: 42ch;
}

.cta-band-inner {
  max-width: 56%;
}

@media (max-width: 900px) {
  .cta-band-inner { max-width: 100%; }
}

/* CTA contact details */
.cta-contact-details {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2rem;
  align-items: start;
}

.cta-contact-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-contact-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}

.cta-contact-details a {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-cream);
  border-bottom: 0.5px solid rgba(245, 242, 236, 0.3);
  padding-bottom: 0.125rem;
  transition: border-color 200ms ease;
}

.cta-contact-details a:hover {
  border-bottom-color: var(--color-cream);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-cream);
  border-top: 0.5px solid var(--color-rule);
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(2rem, 3vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

.footer-contact {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-charcoal);
  transition: color 200ms ease;
}

.footer-contact a:hover { color: var(--color-muted); }

.footer-address {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.footer-address strong {
  display: block;
  color: var(--color-charcoal);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.footer-address a {
  display: inline-block;
  margin-top: 0.375rem;
  color: var(--color-muted);
  border-bottom: 0.5px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

.footer-address a:hover {
  color: var(--color-charcoal);
  border-bottom-color: var(--color-charcoal);
}

.footer-sister {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-charcoal);
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--color-rule);
}

.footer-sister a {
  color: var(--color-charcoal);
  border-bottom: 0.5px solid var(--color-charcoal);
  padding-bottom: 1px;
  transition: opacity 200ms ease;
}

.footer-sister a:hover {
  opacity: 0.65;
}

.footer-disclaimer {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 56ch;
}

.footer-legal {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.footer-legal a {
  color: var(--color-muted);
  border-bottom: 0.5px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

.footer-legal a:hover {
  color: var(--color-charcoal);
  border-bottom-color: var(--color-charcoal);
}

.footer-legal .sep { color: var(--color-rule); }

.footer-bottom {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--color-rule);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   Page-load animation
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .reveal-1 { animation-delay: 80ms; }
  .reveal-2 { animation-delay: 200ms; }
  .reveal-3 { animation-delay: 340ms; }
  .reveal-4 { animation-delay: 480ms; }

  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-size: 0.875rem;
}

.skip-link:focus { top: 0; }

/* ============================================================
   Founder portrait — sits in the left column under the heading
   ============================================================ */

.founder-portrait {
  margin-top: 2rem;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  background: var(--color-cream-tint);
  overflow: hidden;
  border-radius: 2px;
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================================
   Practice areas accordion
   Native <details>/<summary>. Restrained, institutional feel.
   ============================================================ */

.practice-accordion {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 0.5px solid var(--color-rule);
}

.practice-item-acc {
  border-bottom: 0.5px solid var(--color-rule);
}

.practice-item-acc > summary {
  list-style: none;          /* hide default disclosure triangle */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 0;
  transition: padding 200ms ease;
}

.practice-item-acc > summary::-webkit-details-marker { display: none; }
.practice-item-acc > summary::marker { display: none; }

.practice-item-acc > summary h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--color-charcoal);
  margin: 0;
  transition: color 200ms ease;
}

.practice-item-acc > summary:hover h3 {
  color: var(--color-muted);
}

/* Plus/minus icon, drawn with CSS for crisp scaling */
.acc-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--color-charcoal);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-icon::before {
  /* horizontal line */
  top: 50%;
  left: 0;
  right: 0;
  height: 0.5px;
  transform: translateY(-50%);
}

.acc-icon::after {
  /* vertical line (becomes invisible when open) */
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0.5px;
  transform: translateX(-50%) scaleY(1);
}

.practice-item-acc[open] > summary .acc-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.acc-body {
  padding: 0 0 1.75rem 0;
  max-width: 64ch;
}

.acc-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: none;
}

/* Subtle reveal animation when opening — uses CSS only via details element */
.practice-item-acc[open] .acc-body {
  animation: acc-reveal 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes acc-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Section divider band — thin photographic letterbox
   Used once between major sections to add visual texture
   ============================================================ */

.section-divider-band {
  width: 100%;
  height: clamp(160px, 22vw, 280px);
  overflow: hidden;
  background: var(--color-cream-tint);
}

.section-divider-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}
