/* ==========================================================================
   TURNER LAW — Site stylesheet
   Palette: navy / gold / ivory. Type: Cormorant Garamond (display) + Jost (body).
   All brand values live in the :root tokens below.
   ========================================================================== */

:root {
  /* Color — navy */
  --navy-900: #071120;   /* footer, contact band */
  --navy-800: #0B1B2E;   /* primary navy: header, hero, dark sections */
  --navy-700: #0E2138;   /* raised panel on navy */

  /* Color — gold */
  --gold: #C3A05C;       /* primary gold: rules, buttons, accents on navy */
  --gold-deep: #85672C;  /* gold for text/labels on light backgrounds (AA) */
  --gold-soft: rgba(197, 163, 99, 0.45);  /* inner logo ring, subtle borders */
  --gold-faint: rgba(197, 163, 99, 0.25); /* hairlines on navy */

  /* Color — neutrals */
  --ivory: #F7F4ED;      /* light page ground */
  --white: #FFFFFF;      /* cards, alternating sections */
  --ink: #14233A;        /* headings on light */
  --text-muted: #5C6572; /* body on light */
  --text-soft: #43506B;  /* list items on light */
  --caption: #8A8676;    /* fine print on light */
  --on-navy: #B9C5D6;    /* body on navy */
  --on-navy-strong: #F1EDE3; /* headings on navy */
  --on-navy-nav: #C9D2DD;    /* nav links */
  --on-navy-caption: #8C9CB0;
  --on-navy-fine: #6E7F95;
  --line-light: #E9E4D8; /* hairlines on light */
  --line-sand: #D8D2C2;
  --line-navy: #2C3E56;  /* input underlines on navy */
  --line-input: #C9C2B0; /* input underlines on light */

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1280px;
  --pad-x: 80px;
  --section-y: 100px;
}

/* Base ------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-muted);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: #6B531F; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

p { margin: 0; line-height: 1.8; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Shared atoms ------------------------------------------------------------ */

.kicker {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--gold);
}

.label {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
}

.rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0;
}

.rule--short { width: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 17px 34px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--gold { background: var(--gold); color: var(--navy-800); }
.btn--gold:hover { background: #B08D45; color: var(--navy-800); }

.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--navy-800); }

.btn--navy { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold); }
.btn--navy:hover { background: var(--navy-900); color: var(--gold); }

.btn--outline-light { background: transparent; border-color: var(--gold-deep); color: var(--navy-800); }
.btn--outline-light:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold); }
.btn--outline-light:focus-visible { outline-color: var(--gold-deep); }

.link-underline {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--on-navy-nav);
  border-bottom: 1px solid rgba(197, 163, 99, 0.5);
  padding: 6px 2px;
}
.link-underline:hover { color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Logo -------------------------------------------------------------------- */

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.monogram__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-soft);
  width: 38px;
  height: 38px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--on-navy-strong);
}

.brand__tag {
  font-size: 8px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-top: 3px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  background: var(--navy-800);
  border-bottom: 1px solid var(--gold-faint);
}

.site-header .container {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-nav { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--on-navy-nav);
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); }

.site-nav .btn { padding: 13px 26px; }

/* Hero -------------------------------------------------------------------- */

.hero {
  background: var(--navy-800);
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 130px;
  padding-bottom: 140px;
}

.hero--page .container { padding-top: 88px; padding-bottom: 96px; gap: 22px; }

.hero h1 {
  color: var(--on-navy-strong);
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.12;
  max-width: 1020px;
}

.hero--page h1 { font-size: clamp(38px, 4.3vw, 62px); }

.hero p {
  color: var(--on-navy);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 700px;
}

.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* Sections ---------------------------------------------------------------- */

.section { padding: var(--section-y) 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.section--navy { background: var(--navy-800); }
.section--navy h2 { color: var(--on-navy-strong); }
.section--navy p { color: var(--on-navy); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 { font-size: clamp(32px, 3vw, 44px); }

/* Split layout: fixed label column + content ------------------------------ */

.split { display: flex; gap: 96px; }

.split__side {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split__side h2 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.25; }

.split__side .numeral {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  color: var(--gold-deep);
}

.split__body { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.split__body p { font-size: 16px; line-height: 1.85; }

/* Bullet list -------------------------------------------------------------- */

.bullets { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-soft);
}

.bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
}

.section--navy .bullets li { color: var(--on-navy-nav); }

/* Practice cards ----------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-top: 2px solid var(--gold);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card .numeral { font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--gold-deep); }
.card h3 { font-size: 26px; }
.card p { font-size: 14px; line-height: 1.75; }
.card a { font-size: 11px; letter-spacing: 0.22em; margin-top: auto; }

/* Commitments / credentials columns ---------------------------------------- */

.col-grid { display: grid; gap: 48px; }
.col-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; }
.col-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.col {
  border-top: 1px solid var(--line-sand);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.col h3 { font-size: 26px; }
.col p, .col li { font-size: 15px; line-height: 1.8; }
.col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

/* Founder portrait ------------------------------------------------------ */

.portrait {
  width: 420px;
  height: 540px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

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

.portrait--light { background: var(--white); border: 1px solid #C9BE9E; }
.portrait--headshot img { object-position: center; }
.portrait--navy { background: var(--navy-700); border: 1px solid rgba(197, 163, 99, 0.5); }

.portrait .caption { font-size: 11px; letter-spacing: 0.3em; color: var(--caption); }
.portrait--navy .caption { color: #9FB0C4; }

/* Docket rows (Matters page) ------------------------------------------------ */

.docket { border-bottom: 1px solid var(--line-light); }

.docket-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 34px 0;
  border-top: 1px solid var(--line-light);
}

.docket-row__year {
  width: 90px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-deep);
}

.docket-row__matter { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }

.docket-row__matter h3 {
  font-size: 26px;
  font-style: italic;
}

.docket-row__matter p { font-size: 14px; line-height: 1.7; max-width: 760px; }

.docket-row__meta {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

.docket-tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  border: 1px solid #D8CBA8;
  padding: 7px 14px;
}

.docket-row__meta .court { font-size: 12px; color: var(--caption); }

.fine-print { font-size: 12px; color: var(--caption); line-height: 1.6; padding-top: 26px; }

/* Contact / forms ------------------------------------------------------------ */

.contact-grid { display: flex; gap: 100px; }

.contact-info { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 26px; }

.contact-line { display: flex; align-items: center; gap: 16px; font-size: 15px; letter-spacing: 0.06em; color: var(--text-soft); }
.contact-line svg { flex-shrink: 0; stroke: var(--gold-deep); }
.section--navy .contact-line, .band--navy .contact-line { color: var(--on-navy-nav); }
.section--navy .contact-line svg { stroke: var(--gold); }

.form-card {
  flex-grow: 1;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-top: 2px solid var(--gold);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.field-row { display: flex; gap: 32px; }

.field { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }

.field label {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #7A7462;
}

.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-input);
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--gold-deep); }

.field textarea { resize: vertical; min-height: 130px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 4px; }
.form-foot .note { font-size: 11px; color: var(--caption); max-width: 320px; line-height: 1.6; }

/* Dark-form variant (home page contact band) */
.section--navy .field label { color: #9FB0C4; }
.section--navy .field input,
.section--navy .field textarea { border-bottom-color: var(--line-navy); color: var(--on-navy-strong); }
.section--navy .form-foot .note { color: var(--on-navy-fine); }

/* CTA band -------------------------------------------------------------------- */

.cta-band { background: var(--navy-800); }

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 76px;
  padding-bottom: 76px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--on-navy-strong); font-size: clamp(30px, 3vw, 40px); }

.cta-band--light { background: var(--white); }
.cta-band--light h2 { color: var(--ink); }

/* Pull quote -------------------------------------------------------------------- */

.pull-quote { background: var(--navy-800); text-align: center; }

.pull-quote .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-top: 92px;
  padding-bottom: 92px;
}

.pull-quote .mark { font-family: var(--font-display); font-size: 64px; color: var(--gold); line-height: 0.6; }

.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-style: italic;
  line-height: 1.45;
  color: var(--on-navy-strong);
  max-width: 880px;
}

/* Footer ------------------------------------------------------------------------ */

.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(197, 163, 99, 0.2);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.site-footer .brand-mini { display: flex; align-items: center; gap: 14px; }

.site-footer .monogram { width: 34px; height: 34px; border-color: rgba(197, 163, 99, 0.6); }
.site-footer .monogram__inner { border: 0; width: auto; height: auto; font-size: 19px; }

.site-footer .copyright { font-size: 12px; letter-spacing: 0.1em; color: var(--on-navy-caption); }
.site-footer .disclaimer { font-size: 11px; letter-spacing: 0.06em; color: var(--on-navy-fine); }

/* Responsive --------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --pad-x: 40px; --section-y: 72px; }
  .split { gap: 56px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { gap: 56px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; }
  .site-header .container { justify-content: center; }
  .site-nav { justify-content: center; gap: 22px; }
  .split { flex-direction: column; gap: 32px; }
  .split__side { width: auto; }
  .contact-grid { flex-direction: column; }
  .contact-info { width: auto; }
  .portrait { width: 100%; max-width: 420px; height: 440px; }
  .docket-row { flex-direction: column; gap: 14px; }
  .docket-row__meta { width: auto; align-items: flex-start; text-align: left; }
  .form-card { padding: 32px 24px; }
  .field-row { flex-direction: column; gap: 30px; }
  .form-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .card-grid, .col-grid--3, .col-grid--4 { grid-template-columns: 1fr; }
  .hero .container { padding-top: 84px; padding-bottom: 92px; }
}

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

/* Contact and keyboard navigation */
.email-card { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.email-card h2 { font-size: 36px; }
.email-card .note { color: var(--text-muted); }
.email-card--navy { background: transparent; border: 1px solid var(--line-navy); }
.email-card--navy h2 { color: var(--on-navy-strong); }
.email-card--navy .note { color: var(--on-navy); }
.section--navy .contact-line a { color: var(--gold); }
.contact-line a { overflow-wrap: anywhere; min-width: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 16px; }

/* Email alternatives, available when a visitor has no default mail application. */
.email-dialog:not([open]) { display: none; }
.email-dialog {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  margin: auto;
  padding: 32px;
  border: 1px solid var(--gold-deep);
  border-top: 2px solid var(--gold-deep);
  background: var(--white);
  color: var(--text-muted);
  font: inherit;
  z-index: 100;
}
.email-dialog::backdrop { background: rgba(7, 17, 32, 0.65); }
.email-dialog h2 { margin: 18px 0 12px; font-size: 36px; }
.email-dialog__close, .email-dialog__copy {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--navy-800);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.email-dialog__close { display: block; margin: 0 0 20px auto; }
.email-dialog__address { margin-top: 18px; color: var(--ink); overflow-wrap: anywhere; user-select: text; }
.email-dialog__subject { font-size: 14px; }
.email-dialog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.email-dialog__actions .btn { padding: 14px 20px; }
.email-dialog__note, .email-dialog__status { margin-top: 12px; font-size: 14px; }
.email-dialog__copy { margin-top: 14px; }
.email-dialog :focus-visible { outline-color: var(--gold-deep); }
.email-noscript { padding-top: 24px; padding-bottom: 24px; }

@media (max-width: 560px) {
  .email-dialog { padding: 24px; }
  .email-dialog__actions { flex-direction: column; }
}
