/* Saxon South site styles — built from the official Saxon South Style Kit.
   Responsive system: full-bleed color bands edge-to-edge on every monitor (including ultrawide),
   with all content locked to one shared centered 1200px rail (.rail / .inner / nav).
   Fonts: Cinzel 800 (wordmark only), Besley 700/800 (headlines), Barlow 400/500/600 (body). */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@800&family=Besley:wght@700;800&family=Barlow:wght@400;500;600&display=swap");

:root {
  /* Color tokens */
  --navy: #1b2a4a;
  --navy-deep: #111a30;
  --red: #a3262a;
  --red-dark: #7a1c1f;
  --cream: #ffffff; /* was cream; cream is retired (brand-palette.md) */
  --cream-dim: #e3e8f0; /* on-navy soft */
  --cream-mute: #c3ccd9; /* cool gray on navy */
  --gold: #c9a54c;
  --paper: #ffffff;
  --steel: #eef2f7;
  --ink: #18202e;
  --ink-2: #344054;
  --muted: #546072;
  --line: #d0d6e0;
  --line-soft: #e2e7ef;
  --line-navy: rgba(255, 255, 255, 0.2);
  --tag-bg: #eef2f7;
  --tag-ink: #7a1c1f;

  /* Typography */
  --font-mark: "Cinzel", Georgia, serif;
  --font-head: "Besley", Georgia, serif;
  --font-body: "Barlow", Arial, sans-serif;
  --fs-h1: clamp(2rem, 3.6vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 2.5vw, 2.15rem);
  --fs-h3: 1.15rem;
  --fs-lede: clamp(1.05rem, 1.3vw, 1.18rem);
  --fs-body: 1.03rem;
  --fs-small: 0.875rem;

  /* Layout & shape */
  --radius: 4px;
  --radius-card: 6px;
  --maxw: 1200px;
  --gutter: clamp(18px, 3vw, 32px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red);
}

a:hover {
  color: var(--red-dark);
}

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

h1,
h2 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.52;
  max-width: 36rem;
}

/* Shared container rail: keeps every section aligned from ultrawide to phone */
.rail,
.band > .inner,
.site-head nav,
.site-foot .inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Page shell: full viewport height with no empty white void above footer */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.page > main > .grow-band {
  flex: 1 0 auto;
}

/* Top utility strip */
.strip {
  background: var(--navy-deep);
  color: var(--cream-mute);
  font-size: 13px;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  padding-block: 7px;
}

/* Main header */
.site-head {
  background: var(--navy);
  border-bottom: 6px solid var(--red);
}

.site-head nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}

.wordmark {
  display: block;
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.brand small {
  display: block;
  font-size: 12.5px;
  color: var(--cream-mute);
  margin-top: 3px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-left: auto;
  font-weight: 500;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.nav-links a.btn {
  border: 0;
  padding: 0 18px;
}

/* Buttons — one brick red primary action per screen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--red);
  color: #ffffff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--red-dark);
  color: #ffffff;
}

.btn-quiet {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}

.btn-quiet:hover {
  background: var(--navy);
  color: var(--cream);
}

.on-navy .btn-quiet {
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--cream);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.on-navy .text-link {
  color: var(--cream);
}

/* Band surfaces */
.on-navy {
  background: var(--navy);
  color: var(--cream);
}

.on-navy h1,
.on-navy h2 {
  color: var(--cream);
}

.on-navy .lede,
.on-navy p {
  color: var(--cream-dim);
}

.on-steel {
  background: var(--steel);
}

/* Eyebrow / label */
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.on-navy .label {
  color: var(--gold);
}

/* Split layout: full-bleed background, aligned 2-column grid inside the 1200px rail */
.split {
  padding-block: clamp(36px, 5.5vh, 64px);
}

.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.96fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.split.flip .words {
  order: 2;
}

.words {
  min-width: 0;
}

.visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Framed editorial photo: consistent proportions from ultrawide to phone */
.photo-frame {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(9, 14, 27, 0.34);
}

.on-steel .photo-frame,
.split:not(.on-navy) .photo-frame {
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(24, 32, 46, 0.1);
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cab {
  object-position: 50% 25%;
}

/* Photo credit pill */
.credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  background: rgba(17, 26, 48, 0.82);
  color: #e3e8f0;
  font-size: 12px;
  line-height: 1.35;
  padding: 4px 9px;
  border-radius: 3px;
}

/* Home page doors */
.doors {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  max-width: 34rem;
}

.door {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  background: rgba(17, 26, 48, 0.48);
  border: 1px solid var(--line-navy);
  border-left: 3px solid var(--gold);
  border-radius: 5px;
  color: var(--cream);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.door:hover {
  background: rgba(17, 26, 48, 0.78);
  border-color: rgba(255, 255, 255, 0.36);
  border-left-color: var(--gold);
  color: #ffffff;
}

.door strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.door span {
  display: block;
  color: var(--cream-mute);
  font-size: 0.94rem;
  margin-top: 2px;
}

.arrow {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  flex: none;
}

/* Home page grounding pillars band */
.pillars-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pillars-head h2 {
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.pillars-head p {
  color: var(--muted);
  font-size: 0.96rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 22px;
}

.pillar h3 {
  color: var(--navy);
  margin-bottom: 6px;
}

.pillar p {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.5;
}

.founder-strip {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.founder-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 320px;
}

.founder-patch {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}

.founder-strip p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.45;
}

.founder-strip strong {
  color: var(--navy);
}

/* Standard content bands */
.band {
  padding-block: clamp(40px, 6vh, 72px);
}

.band-border {
  border-top: 1px solid var(--line);
}

/* Section tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.tabs button {
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 14px;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 44px;
}

.tabs button[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--red);
}

.js .tab-panel[hidden] {
  display: none;
}

/* Ruled service list */
.services {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  columns: 2 340px;
  column-gap: 48px;
}

.services li {
  break-inside: avoid;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.services p {
  color: var(--ink-2);
  margin-top: 4px;
}

.services li.later h3::after {
  content: "Coming soon";
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-ink);
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: middle;
  white-space: nowrap;
  display: inline-block;
}

.services li.later {
  color: var(--muted);
}

/* Numbered path */
.path {
  list-style: none;
  counter-reset: s;
  margin: 20px 0 0;
  padding: 0;
  max-width: 44rem;
}

.path li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.path li::before {
  content: counter(s);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--red);
}

/* Daily rundown message box */
.rundown {
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: 14px 14px 14px 4px;
  padding: 20px 22px;
  width: 100%;
  max-width: 460px;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 12px 28px rgba(17, 26, 48, 0.16);
}

.rundown b {
  color: var(--gold);
  font-weight: 600;
}

.rundown p {
  color: var(--cream);
  margin: 0 0 10px;
}

.rundown p:last-child {
  margin-bottom: 0;
}

/* Record card */
.record {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(9, 14, 27, 0.28);
}

.record-head {
  background: var(--navy-deep);
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-head img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.record-sample {
  margin-left: auto;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  font-size: 12px;
  color: var(--cream-mute);
}

.record-body {
  padding: 16px 18px 18px;
}

.record table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.record th,
.record td {
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  font-weight: 500;
}

.record tr:first-child th,
.record tr:first-child td {
  border-top: 0;
}

.record th {
  color: var(--ink-2);
}

.record td {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.record-note {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

.record-note strong {
  color: var(--ink);
}

/* Callout & free signup panel */
.callout {
  border-left: 6px solid var(--red);
  padding: 4px 0 4px 20px;
  max-width: 44rem;
}

.free {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 32px);
  max-width: 46rem;
}

.free h2 {
  color: var(--cream);
}

.free p {
  margin-top: 8px;
  color: var(--cream-dim);
}

.free ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.free li {
  margin: 6px 0;
  color: var(--cream-dim);
}

/* Footer */
.site-foot {
  background: var(--navy-deep);
  color: var(--cream-mute);
  font-size: 13.5px;
}

.site-foot .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  padding-block: 16px;
}

.site-foot a {
  color: var(--cream);
  text-decoration: none;
}

.site-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-foot .right {
  margin-left: auto;
}

/* Layout helpers */
.m0 {
  margin: 0;
}

.mt8 {
  margin-top: 8px;
}

.mt10 {
  margin-top: 10px;
}

.mt12 {
  margin-top: 12px;
}

.mt14 {
  margin-top: 14px;
}

.mt16 {
  margin-top: 16px;
}

.mt18 {
  margin-top: 18px;
}

.mt20 {
  margin-top: 20px;
}

.mt26 {
  margin-top: 26px;
}

.mt28 {
  margin-top: 28px;
}

.pt28 {
  padding-top: 28px;
}

.vcenter {
  align-items: center;
}

.cols2 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
}

.col {
  flex: 1 1 420px;
  min-width: 0;
}

.col-sm {
  flex: 1 1 360px;
  min-width: 0;
}

.one-col {
  columns: 1;
}

.h2-sm {
  font-size: 1.55rem;
}

.mw40 {
  max-width: 40rem;
}

.row-between {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  align-items: center;
  justify-content: space-between;
}

.row-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 64px;
}

.action-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .split-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split.flip .words {
    order: 0;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .record,
  .rundown {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .nav-links {
    margin-left: 0;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line-navy);
    gap: 8px 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav-links a,
  .nav-links .btn {
    white-space: nowrap;
    flex: none;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .tabs button {
    white-space: nowrap;
    flex: none;
  }

  .site-foot .right {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
