/* From the Floor Press — Brand-compliant stylesheet
   Palette and typography per official Brand Identity Guide */

:root {
  /* Master palette */
  --teal-deep: #068985;
  --teal-bright: #08B7B2;
  --rust: #B8644E;
  --gold: #D4A94C;
  --white: #F9FEFE;
  --charcoal: #2D2D2D;
  --ink-soft: #4a4a4a;
  --line: #e3e8e8;
  --bg-cream: #f6f4ee;

  /* WES extended palette */
  --steel: #4A7C94;
  --safety: #E8C840;
  --gray-light: #F0F0F0;

  /* Typography */
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Open Sans", system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(6,137,133,0.06);
  --shadow-md: 0 6px 24px rgba(6,137,133,0.10), 0 2px 6px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--charcoal);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 5vw, 60px); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-deep); }

p { margin: 0 0 1em; }

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

/* ---------- HEADER & NAV TABS ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 254, 254, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-lockup img {
  height: 44px;
  width: auto;
}

.tablist {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tab {
  appearance: none;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.tab:hover { color: var(--teal-deep); background: rgba(6,137,133,0.06); }
.tab[aria-selected="true"] {
  color: var(--teal-deep);
}
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
}

/* ---------- TAB PANELS ---------- */
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- SECTIONS ---------- */
section { padding: 64px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--bg-cream); }
section.dark {
  background: var(--teal-deep);
  color: var(--white);
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--white); }
section.dark h4 { color: var(--gold); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
section.dark .eyebrow { color: var(--gold); }

.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
section.dark .lead { color: rgba(249,254,254,0.92); }

/* ---------- HOME HERO ---------- */
.home-hero {
  background:
    radial-gradient(ellipse at 80% -10%, rgba(8,183,178,0.16), transparent 60%),
    radial-gradient(ellipse at -10% 110%, rgba(212,169,76,0.12), transparent 55%),
    var(--white);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.home-hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.home-hero h1 { max-width: 14ch; }
.home-hero h1 { margin-bottom: 16px; }
.home-hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--rust);
  margin: 0 0 24px;
  font-weight: 500;
}
.home-hero .lockup-figure {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  text-align: center;
}
.home-hero .lockup-figure img {
  max-width: 380px;
  margin: 0 auto;
}
.home-hero .lockup-figure figcaption {
  margin-top: 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* ---------- IMPRINT BLURB ---------- */
.imprint-blurb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.imprint-blurb h2 { margin-bottom: 16px; }

/* ---------- TITLE CARDS (home, list of works) ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.work-card .cover-wrap {
  background: var(--bg-cream);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.work-card .cover-wrap img {
  max-height: 280px;
  width: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border-radius: 2px;
}
.work-card .body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-card h3 { margin-bottom: 8px; }
.work-card .meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.work-card.wes .meta { color: var(--steel); }
.work-card p { color: var(--ink-soft); }
.work-card .card-cta {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
}
.btn-primary:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}
.btn-secondary:hover { background: var(--teal-deep); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--charcoal); color: var(--gold); border-color: var(--charcoal); }

.btn-steel {
  background: var(--steel);
  color: var(--white);
  border-color: var(--steel);
}
.btn-steel:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- FAILURE TO COMMUNICATE TAB ---------- */
.book-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.book-hero .cover-display {
  text-align: center;
}
.book-hero .cover-display img {
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  border-radius: 2px;
}
.book-hero h1 {
  font-size: clamp(34px, 4.8vw, 56px);
}
.book-hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: none;
  letter-spacing: normal;
}
.author-credit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.author-credit .creds {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Walk-away cards */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-deep);
  border-radius: var(--radius);
  padding: 28px;
}
.feat-card h3 { color: var(--teal-deep); margin-bottom: 10px; }
.feat-card p { margin: 0; color: var(--ink-soft); }

/* Spiral comparison */
.spiral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.spiral-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.spiral-card.problem { border-top: 6px solid var(--rust); }
.spiral-card.solution { border-top: 6px solid var(--teal-bright); }
.spiral-card h3 { font-family: var(--font-display); }
.spiral-card.problem h3 { color: var(--rust); }
.spiral-card.solution h3 { color: var(--teal-bright); }
.stage-list { list-style: none; padding: 0; margin: 0; }
.stage-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 16px;
}
.stage-list li:last-child { border-bottom: none; }
.stage-list .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
  min-width: 22px;
  display: inline-block;
}
.spiral-card.problem .num { color: var(--rust); }
.spiral-card.solution .num { color: var(--teal-deep); }

/* Sample chapter */
.sample-chapter {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px clamp(24px, 5vw, 64px);
  box-shadow: var(--shadow-sm);
}
.sample-chapter .chap-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.sample-chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 28px;
  color: var(--charcoal);
}
.sample-chapter h3 {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-deep);
  margin-top: 32px;
  margin-bottom: 12px;
}
.sample-chapter p { font-size: 17px; line-height: 1.75; color: #333; }
.sample-chapter .pull-quote {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--teal-deep);
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 22px;
  margin: 24px 0;
  line-height: 1.4;
  font-weight: 500;
}
.sample-chapter ul { padding-left: 22px; }
.sample-chapter ul li { margin-bottom: 8px; }
.continue-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-cream);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}

/* Launch / purchase */
.launch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--gold);
  text-align: center;
}
.launch-date {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
  line-height: 1;
}
.launch-meta {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 12px 0 24px;
}
.placeholder-note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 16px;
}

/* ---------- WAREHOUSE EXCELLENCE TAB ---------- */
.wes-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.wes-hero .cover-display img {
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  border-radius: 2px;
}
.wes-hero h1 { color: var(--steel); }
.wes-hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--charcoal);
  margin-bottom: 20px;
  font-weight: 500;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--steel);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--steel);
  line-height: 1;
}
.stat .label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.module-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
}
.module-list .mod-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--steel);
  font-size: 13px;
  letter-spacing: 0.1em;
  min-width: 36px;
}
.module-list li.featured {
  border-left: 4px solid var(--safety);
  background: linear-gradient(135deg, rgba(232,200,64,0.08) 0%, var(--white) 100%);
}

.toolkit-callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--safety);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}
.toolkit-callout h3 { color: var(--steel); }

/* ---------- INQUIRY FORM ---------- */
.inquiry-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.inquiry-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.inquiry-form .row-2 > .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-family: var(--font-body);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(6,137,133,0.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.about-card {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.about-card .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.about-card .name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.about-card .creds {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(249,254,254,0.85);
  padding: 48px 0 32px;
  font-size: 14px;
}
.site-footer .footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.site-footer img { max-width: 240px; opacity: 0.92; }
.site-footer a { color: var(--gold); }
.site-footer .small {
  font-size: 12px;
  color: rgba(249,254,254,0.55);
  margin-top: 16px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .home-hero .container,
  .imprint-blurb,
  .book-hero,
  .wes-hero,
  .about-grid,
  .site-footer .footer-row { grid-template-columns: 1fr; gap: 32px; }
  .works-grid { grid-template-columns: 1fr; }
  .three-up { grid-template-columns: 1fr; }
  .spiral-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .module-list { grid-template-columns: 1fr; }
  .inquiry-form .row-2 { grid-template-columns: 1fr; }
  .nav-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tablist { width: 100%; justify-content: flex-start; }
  .home-hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
}

/* ---------- 56% STAT STRIP (home tab) ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 5vw, 48px);
  border-left: 4px solid var(--teal-deep);
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}
.stat-strip .stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 11vw, 132px);
  line-height: 0.9;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}
.stat-strip .stat-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 8px;
}
.stat-strip .stat-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 640px) {
  .stat-strip {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 28px 24px;
  }
}

/* Print niceties */
@media print {
  .site-header, .inquiry-form, .btn { display: none; }
}
