/*
Theme Name: Cahaba Resolution
Author: Barron AI Solutions
Text Domain: cahaba
*/

/* DESIGN_IDENTITY
   Cahaba — a split courtroom of type, river as architecture
   1. canvas: stone wool, paper sides, a living river down the middle
   2. type: Ibarra Real Nova huge + Public Sans
   3. hero: 100vh triptych, river is a column not a thumbnail
   4. rhythm: four numbered chapters, sticky numerals
   5. motion: river drift, type that holds, no bounce
   6. accent: oxblood hairline, not a brown button
*/

:root {
  --stone: #cfd6cf;
  --paper: #f6f1e6;
  --ink: #161c18;
  --mute: #5a635c;
  --ox: #7a2e2a;
  --river: #3d5a52;
  --rule: #b7c0b6;
  --well: min(1120px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--stone);
  background-image: url("textures/light-wool.png");
  color: var(--ink);
  font-family: "Public Sans", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ox); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ox);
  outline-offset: 3px;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px; }

.top {
  width: var(--well);
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--paper);
}
.brand {
  font-family: "Ibarra Real Nova", Georgia, serif;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  font-style: italic;
}
.brand span { font-style: normal; font-weight: 600; }
.river-mark {
  width: 1px;
  height: 36px;
  background: var(--river);
  justify-self: center;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.top nav a { color: var(--ink); text-decoration: none; }

.split {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr min(18vw, 220px) 1fr;
}
.split-side {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22vh 8% 10vh;
  min-height: 100vh;
}
.split-west { box-shadow: inset -40px 0 60px rgba(61,90,82,0.04); }
.split-east { box-shadow: inset 40px 0 60px rgba(122,46,42,0.04); }
.who {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
}
.split h1 {
  font-family: "Ibarra Real Nova", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
}
.drop {
  font-family: "Ibarra Real Nova", serif;
  font-style: italic;
  font-size: 1.2rem;
  max-width: 22ch;
  margin: 0 0 28px;
  color: var(--mute);
}
.text-cta {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ox);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ox);
  padding-bottom: 4px;
  width: max-content;
}
.text-cta span { transition: transform 240ms ease; }
.text-cta:hover span { transform: translateX(6px); }
.split-river {
  display: grid;
  overflow: hidden;
  min-height: 100vh;
}
.split-river img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1);
}

.stills {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(56px, 7.5vw);
  gap: 12px;
  width: min(1280px, calc(100% - 28px));
  margin: -10vh auto 6vh;
  position: relative;
  z-index: 3;
}
.still { margin: 0; overflow: hidden; box-shadow: 0 24px 50px rgba(22,28,24,0.22); }
.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.92);
  transition: transform 700ms ease, filter 700ms ease;
}
.still:hover img { transform: scale(1.08); filter: contrast(1.14) saturate(1); }
.still-a { grid-column: 1 / 6; grid-row: 1 / 8; }
.still-b { grid-column: 6 / 13; grid-row: 1 / 5; }
.still-c { grid-column: 6 / 10; grid-row: 5 / 9; }
.still-d { grid-column: 10 / 13; grid-row: 5 / 9; }
.still-e { grid-column: 1 / 5; grid-row: 8 / 12; }
.still-f { grid-column: 5 / 13; grid-row: 9 / 13; }
.closer { margin: 0; }
.closer img { width: 100%; height: 72vh; object-fit: cover; filter: contrast(1.08); }
.story img {
  width: 100%;
  max-height: 42vh;
  object-fit: cover;
  margin-top: 22px;
  box-shadow: 0 18px 36px rgba(22,28,24,0.14);
}
.story {
  background: var(--paper);
  padding: 10vh 0 14vh;
}
.story ol {
  width: var(--well);
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.story li {
  display: grid;
  grid-template-columns: min(18vw, 160px) 1fr;
  gap: 24px;
  padding: 8vh 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.story b {
  font-family: "Ibarra Real Nova", serif;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.8;
  color: var(--river);
  position: sticky;
  top: 18vh;
}
.story h2 {
  font-family: "Ibarra Real Nova", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 10px;
}
.story p { margin: 0; max-width: 38rem; color: var(--mute); font-size: 1.05rem; }

.folio {
  width: var(--well);
  margin: 48px auto 80px;
  background: var(--paper);
  padding: 48px 52px 64px;
  box-shadow: 0 30px 60px rgba(22,28,24,0.1);
  border-left: 3px solid var(--ox);
}
.folio h1, .folio h2 {
  font-family: "Ibarra Real Nova", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
}
.btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--ox);
  color: var(--paper);
  text-decoration: none;
  padding: 10px 16px;
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
}
.portrait { float: right; width: min(40%, 240px); margin: 0 0 16px 20px; }
.fees { width: 100%; border-collapse: collapse; }
.fees th, .fees td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--rule); }
.field { margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 8px;
  border: 1px solid var(--rule);
  background: #fff;
}
.hp { position: absolute; left: -9999px; }
.ok { background: var(--river); color: var(--paper); padding: 10px 12px; }
.err { color: var(--ox); }
.slot-list { display: grid; gap: 8px; }
@media (min-width: 700px) { .slot-list { grid-template-columns: 1fr 1fr; } }
.slot {
  border: 1px solid var(--rule);
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  display: block;
}
.slot:hover, .slot:has(input:checked) { border-color: var(--river); }
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.steps b { font-family: "Ibarra Real Nova", serif; font-style: italic; font-size: 1.4rem; color: var(--river); }

.disclaimer {
  width: var(--well);
  margin: 24px auto 0;
  font-size: 0.78rem;
  color: var(--mute);
}
.bottom {
  background: var(--ink);
  color: var(--paper);
  margin-top: 48px;
  padding: 40px 0;
  font-size: 0.9rem;
}
.bottom a { color: #d7c7b4; }
.bottom-inner {
  width: var(--well);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) { .bottom-inner { grid-template-columns: 2fr 1fr 1fr; } }
.bas-credit { padding: 14px; text-align: center; opacity: 0.6; }
.bas-credit a { color: inherit; text-decoration: none; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-river { min-height: 36vh; order: -1; }
  .split-side { min-height: auto; padding: 48px 8% 40px; }
  .top { grid-template-columns: 1fr; }
  .river-mark { display: none; }
  .top nav { justify-content: flex-start; }
  .story li { grid-template-columns: 1fr; }
  .story b { position: static; }
  .folio { padding: 28px 20px 40px; }
  .portrait { float: none; width: 100%; }
  .stills { grid-auto-rows: 18vw; margin-top: 24px; }
  .still-a, .still-b, .still-c, .still-d, .still-e, .still-f {
    grid-column: auto;
    grid-row: auto;
  }
  .stills { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
