/* CounselWall — editorial studio site
   Pairing: Fraunces (display) + DM Sans (body)
   Palette from niches/B-law/BRAND.md */

:root {
  --paper: #F3EDE3;
  --paper-deep: #ebe3d6;
  --ink: #1B2A41;
  --ink-soft: #6B7380;
  --gold: #C4A574;
  --gold-deep: #9a7a4a;
  --mist: #E8EBEE;
  --sand: #E8EBEE;
  --navy: #1B2A41;
  --charcoal: #2F3640;
  --line: rgba(27, 42, 65, 0.12);
  --line-strong: rgba(27, 42, 65, 0.22);
  --shadow: 0 18px 40px -24px rgba(15, 20, 25, 0.35);
  --radius: 2px;
  --wrap: 1180px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  font-optical-sizing: auto;
}
h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.btn-primary {
  background: var(--navy);
  color: #F3EDE3;
}
.btn-primary:hover { background: #0F1419; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.45); }
.btn-on-dark {
  background: #F3EDE3;
  color: var(--navy);
}
.btn-on-dark:hover { background: #fff; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}
.logo svg, .logo img { height: 32px; width: auto; }
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-quote { display: none; }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  width: 44px;
  height: 44px;
  border-radius: 2px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: 28px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 18.5px;
  line-height: 1.55;
  max-width: 36em;
  margin: 18px 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.hero-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  border-radius: 2px;
}
.hero-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: 70%;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.band { background: var(--paper-deep); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head p { max-width: 38em; }

/* Insight */
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.insight-quote {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.insight-quote span {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.insight-body p { font-size: 17.5px; }
.insight-photo {
  margin-top: 36px;
}
.insight-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Collection */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}
.card {
  background: transparent;
}
.card-art {
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 16px;
}
.card-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-art img { transform: scale(1.03); }
.card .badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.card h3 { margin: 6px 0 6px; font-size: 22px; }
.card .meta { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.card .price {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}
.card .price small {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.trio-callout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 36px;
  background: color-mix(in srgb, var(--gold) 18%, var(--paper));
  border-radius: 2px;
}
.trio-callout h3 { font-size: 28px; margin-bottom: 10px; }
.trio-chip {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.steps { display: grid; gap: 22px; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-n {
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold-deep);
  line-height: 1.2;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { font-size: 15px; margin: 0; }
.process-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* Shipping */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ship-card {
  padding: 8px 0;
}
.ship-card h3 { margin-bottom: 8px; font-size: 20px; }

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: #fff;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.case .place {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.case h3 { font-size: 20px; margin-bottom: 10px; }
.case p { font-size: 15.5px; }
.case .stat {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.about-grid img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p {
  margin: 8px 0 6px;
  max-width: 58em;
}

/* Quote */
.quote-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.quote-copy ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.quote-copy li {
  padding: 8px 0 8px 18px;
  position: relative;
  color: var(--ink-soft);
}
.quote-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 1.5px;
  background: var(--gold-deep);
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
label .opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: #fff;
}
.full { grid-column: 1 / -1; }
.form-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.form-error {
  color: #8a3b32;
  font-size: 13.5px;
  margin: 0 0 8px;
}
.thanks {
  margin-top: 14px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--gold) 28%, white);
  color: var(--ink);
  font-size: 14.5px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.site-footer .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer a:hover { color: var(--ink); }
.legal { font-size: 12px; margin-top: 8px; max-width: 42em; }


/* Sticky quote control — phones lose nav @~920px and header CTA @~640px */
.mobile-quote {
  display: none;
}
@media (max-width: 960px) {
  .nav-quote {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    color: var(--navy);
  }
  .mobile-quote {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 20px;
    background: var(--navy);
    color: #F3EDE3;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 -8px 24px -12px rgba(42, 50, 58, 0.45);
  }
  .mobile-quote:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -3px;
  }
  body { padding-bottom: 52px; }
}

@media (max-width: 960px) {
  .hero-grid,
  .insight-grid,
  .process,
  .about-grid,
  .quote-panel,
  .section-head,
  .trio-callout {
    grid-template-columns: 1fr;
  }
  .product-grid,
  .cases,
  .ship-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .site-header { position: sticky; }
  .site-header .inner { position: relative; }
  .hero-photo img { height: 52vh; }
  .process-photo img, .about-grid img { height: 320px; }
  .site-footer { padding-bottom: 72px; }
  .site-footer .inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .product-grid, .cases, .ship-grid, .form-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding-bottom: 40px; }
}
