/* Bancroft Law Office — site stylesheet
   Hand-written. No build step, no framework. Edit directly.
   Tokens carried over from the design system in the donor build. */

:root {
  --navy: #0a1128;
  --charcoal: #272932;
  --soft-white: #f9f9f8;
  --gold: #cba153;
  --muted: #5c5e62;
  --border: #e5e7eb;
  --max: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--soft-white);
  color: var(--navy);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--navy); color: var(--soft-white); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; }
p  { margin: 0 0 1.15em; }

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.hairline { height: 1px; background: var(--navy); opacity: 0.08; border: 0; margin: 0; }
.gold-rule { width: 48px; height: 2px; background: var(--gold); margin: 28px 0; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--navy { background: var(--navy); color: var(--soft-white); }
.section--navy .muted, .section--navy .lede { color: rgba(249,249,248,.66); }
.section--navy .hairline { background: var(--soft-white); opacity: .14; }

.grid { display: grid; gap: 1px; background: var(--border); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { background: var(--soft-white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.stack > * + * { margin-top: 20px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 17px 34px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--soft-white);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: transparent; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--soft-white); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: transparent; color: var(--gold); }
.section--navy .btn--ghost { border-color: rgba(249,249,248,.4); color: var(--soft-white); }
.section--navy .btn--ghost:hover { background: var(--soft-white); color: var(--navy); }

.link-arrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
  display: inline-flex; gap: 10px; align-items: center;
}
.link-arrow::after { content: "→"; transition: transform .3s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(249,249,248,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.wordmark {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
}
.wordmark span { color: var(--gold); }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; padding: 8px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .35s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--navy); }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(80px, 12vw, 168px) 0 clamp(64px, 9vw, 120px); }
.hero h1 { max-width: 18ch; }
.hero .lede { margin-top: 28px; }
.hero__actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.page-header { background: var(--navy); color: var(--soft-white); padding: clamp(72px, 10vw, 140px) 0; }
.page-header h1 { max-width: 20ch; }
.page-header .lede { color: rgba(249,249,248,.66); margin-top: 24px; }

/* ---------------------------------------------------------------- cards */
.card { padding: clamp(28px, 3.4vw, 44px); transition: background .4s ease; position: relative; }
.card:hover { background: #fff; }
.card__index { font-size: 11px; letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.card h3 { margin: 18px 0 12px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

.pillar { padding: clamp(24px, 3vw, 40px) 0; }
.pillar h3 { font-size: 1.35rem; }
.pillar p { color: var(--muted); margin: 0; }

.matter { padding: 30px 0; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.6em; }
.prose ul li {
  position: relative; padding-left: 26px; margin-bottom: 13px; color: var(--charcoal);
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 10px; height: 1px; background: var(--gold);
}

.takeaways {
  background: var(--navy); color: var(--soft-white);
  padding: clamp(28px, 4vw, 44px); margin: 48px 0;
}
.takeaways .eyebrow { color: var(--gold); }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li { padding-left: 26px; position: relative; margin-bottom: 14px; }
.takeaways li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 10px; height: 1px; background: var(--gold);
}

blockquote {
  margin: 48px 0; padding-left: 32px; border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 300; line-height: 1.3;
}

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 26px; }
.field label {
  display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 10px; color: var(--charcoal);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--border);
  background: #fff; font-family: inherit; font-size: 15px; color: var(--navy);
  border-radius: 0; transition: border-color .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { min-height: 150px; resize: vertical; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: auto; margin-top: 4px; }
.field--check label { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); margin: 20px 0; }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(249,249,248,.72); padding: clamp(56px, 7vw, 96px) 0 40px; }
.site-footer .wordmark { color: var(--soft-white); display: inline-block; margin-bottom: 32px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-cols h4 {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 20px;
}
.footer-cols a, .footer-cols li { font-size: 14px; line-height: 2; }
.footer-cols a:hover { color: var(--soft-white); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.office { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.office strong { color: var(--soft-white); display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(249,249,248,.14); font-size: 12.5px; line-height: 1.9; }

/* ---------------------------------------------------------------- placeholders */
.ph {
  background: #fff3cd; color: #7a5c00; border-bottom: 1px dashed #c8a02e;
  padding: 1px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em; font-weight: 600;
}
.ph-banner {
  background: #7a5c00; color: #fff; font-size: 13px; padding: 10px 16px;
  text-align: center; font-weight: 600; letter-spacing: .04em;
}

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 26px 0; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { opacity: .5; margin: 0 8px; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav { display: none; }
  .nav--open { display: flex; position: absolute; top: 86px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--soft-white);
    border-bottom: 1px solid var(--border); padding: 8px 20px 24px; }
  .nav--open a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ================================================================
   IMAGERY + MOTION
   ================================================================ */

/* --- images fade in once decoded, so nothing pops --- */
img { opacity: 0; transition: opacity .7s ease; }
img.img-ready { opacity: 1; }

/* --- empty image slot: shows the exact path to drop a file at --- */
.img-slot {
  width: 100%;
  background:
    repeating-linear-gradient(45deg, #f2f1ee 0 12px, #ebe9e4 12px 24px);
  border: 1px dashed #c8c4bb;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px; color: var(--muted);
}
.img-slot__label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
}
.img-slot code {
  font-size: 12px; background: #fff; padding: 5px 10px;
  border: 1px solid var(--border); color: var(--charcoal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.img-slot__hint { font-size: 12px; opacity: .7; max-width: 32ch; line-height: 1.5; }

/* --- home hero: text + portrait image --- */
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img { animation: slow-zoom 22s ease-out both; }
@keyframes slow-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }

/* --- page header with background image + navy scrim --- */
.page-header { position: relative; overflow: hidden; }
.page-header--image { background: var(--charcoal); }
.page-header__bg { position: absolute; inset: -12% 0 -12% 0; z-index: 0; }
.page-header__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0;
  animation: slow-zoom 26s ease-out both;
}
.page-header__bg img.img-ready { opacity: .42; }
.page-header--image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,17,40,.82) 0%, rgba(10,17,40,.68) 100%);
}
.page-header__bg--empty {
  position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(45deg, #1a2340 0 14px, #141c33 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.page-header__bg--empty code {
  font-size: 12px; color: rgba(249,249,248,.6); background: rgba(0,0,0,.35);
  padding: 6px 12px; font-family: ui-monospace, Menlo, monospace;
}
.page-header .wrap { position: relative; z-index: 2; }

/* --- portrait cards --- */
.card--portrait { padding: 0 0 32px; }
.card--portrait > img, .card--portrait > .img-slot { margin-bottom: 24px; }
.card--portrait h3, .card--portrait p,
.card--portrait .card__index { padding: 0 clamp(20px, 2.4vw, 32px); }

/* --- hero entrance --- */
.hero h1, .hero .lede, .hero__actions, .hero__media,
.page-header .eyebrow, .page-header h1, .page-header .lede {
  opacity: 0; transform: translateY(22px);
}
.hero-ready h1, .hero-ready .lede, .hero-ready .hero__actions,
.hero-ready .hero__media, .hero-ready .eyebrow {
  animation: hero-in 1s cubic-bezier(.22,1,.36,1) both;
}
.hero-ready .eyebrow      { animation-delay: 0ms; }
.hero-ready h1            { animation-delay: 90ms; }
.hero-ready .lede         { animation-delay: 220ms; }
.hero-ready .hero__actions{ animation-delay: 340ms; }
.hero-ready .hero__media  { animation-delay: 160ms; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* --- header states --- */
.site-header { transition: transform .45s cubic-bezier(.22,1,.36,1),
                           box-shadow .4s ease, height .4s ease; }
.site-header--stuck { box-shadow: 0 1px 24px rgba(10,17,40,.09); }
.site-header--stuck .site-header__inner { height: 68px; }
.site-header--hidden { transform: translateY(-100%); }
.site-header__inner { transition: height .4s cubic-bezier(.22,1,.36,1); }

/* --- richer card hover --- */
.card { overflow: hidden; }
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--gold);
  transition: width .5s cubic-bezier(.22,1,.36,1);
}
.card:hover::after { width: 100%; }
.card img { transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .7s ease; }
.card:hover img { transform: scale(1.04); }

/* --- form status banner --- */
.form-status { padding: 16px 20px; margin-bottom: 28px; font-size: 14px; font-weight: 600; }
.form-status--ok  { background: #e8f2ec; color: #1c5137; border-left: 3px solid #1c5137; }
.form-status--err { background: #fbeceb; color: #8c1d18; border-left: 3px solid #8c1d18; }
.form-status:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__media img, .page-header__bg img { animation: none; }
  .hero h1, .hero .lede, .hero__actions, .hero__media,
  .page-header .eyebrow, .page-header h1, .page-header .lede {
    opacity: 1; transform: none; animation: none;
  }
  .site-header--hidden { transform: none; }
  img { opacity: 1; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
}
