/* =========================================================
   whitecollaracademy.com — main stylesheet
   Mobile-first. Calm, credible, generous spacing.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #f4f1ea; /* Warm premium parchment cream */
  --bg-alt:    #eae6dd; /* Deeper card-stock block bg */
  --text:      #1a1a18;
  --text-soft: #555550;
  --accent:    #2c4a7c;
  --accent-lt: #e2e8f0; /* Soft accent blue */
  --border:    #ded9cf; /* Soft warm border */
  --max-w:     720px;
  --max-w-wide: 960px;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 480px) {
  html { font-size: 16px; }
}

@media (min-width: 768px) {
  html { font-size: 18px; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: var(--max-w-wide);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 4vw, 1.85rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { opacity: 0.75; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }

/* ── Header / Nav ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container,
.site-footer .container {
  max-width: 1100px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0 !important;
  }
  .site-header .container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
  }
  .site-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0.25rem 0.5rem 0.5rem;
    gap: 0.75rem;
    justify-content: flex-start;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    text-decoration: none;
  }
  .site-nav a:hover {
    opacity: 0.8;
  }
  .site-nav a[aria-current="page"] {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
  }
  .site-logo {
    text-align: center;
  }
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero__layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__text .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.hero__text h1 {
  margin-bottom: 1.25rem;
}

.hero__text .lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}

.hero__portrait {
  flex-shrink: 0;
}

.portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: block;
}

.portrait--placeholder {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-soft);
  text-align: center;
  padding: 0.5rem;
}

@media (min-width: 600px) {
  .hero__layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .hero__portrait { order: 2; }
  .hero__text { order: 1; flex: 1; }
}

/* ── Sections ── */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

/* ── Video embed ── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: 4px;
  margin: 1.25rem 0;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: 4px;
}

.video-placeholder__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

/* ── Video library ── */
.video-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #FAF8F5;
}

.video-card__embed { /* contains the video-wrap */ }

.video-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.video-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.video-card__desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Email capture form ── */
.email-section {
  background: var(--accent-lt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.email-box {
  max-width: 540px;
}

.email-box h2 { margin-bottom: 0.5rem; }

.email-box .offer {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-row { flex-direction: row; }
}

.form-row input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

.form-row input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover { background: var(--accent-lt); opacity: 1; }

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.form-status--ok   { color: #2a6e3f; }
.form-status--err  { color: #8b2020; }

.form-fine-print {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.75rem;
}

/* ── Writing / links page ── */
.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.link-list li:first-child { border-top: 1px solid var(--border); }

.link-list .link-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.link-list .link-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.link-list li.featured {
  background: var(--accent-lt);
  border-radius: 4px;
  padding: 1rem 0.85rem;
  margin: 0 -0.85rem;
  border-bottom: 1px solid var(--border);
}

.link-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: #FAF8F5;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Author / about ── */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 600px) {
  .about-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .about-layout .portrait-col { flex-shrink: 0; }
  .about-layout .bio-col { flex: 1; }
}

/* ── Draft banner (visible only inside _draft/ pages) ── */
.draft-banner {
  background: #fef3cd;
  border-bottom: 2px solid #f0c040;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5c4a00;
}

/* ── Curriculum list ── */
.curriculum {
  list-style: none;
  padding: 0;
  counter-reset: chapter;
}

.curriculum li {
  counter-increment: chapter;
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.curriculum li::before {
  content: counter(chapter, decimal-leading-zero);
  font-size: 0.8rem;
  color: var(--text-soft);
  flex-shrink: 0;
  width: 2rem;
  font-variant-numeric: tabular-nums;
}

/* ── Chapter library ── */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.chapter-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  background: #FAF8F5;
}

.chapter-card__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.chapter-card__num {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  flex-shrink: 0;
}

.chapter-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.chapter-card__desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.chapter-card__audio {
  width: 100%;
  margin-bottom: 0.75rem;
}

.chapter-card__audio-placeholder {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.chapter-card__text-link {
  display: inline-block;
  font-size: 0.875rem;
}

/* ── Pricing (hidden by default until flag enabled) ── */
.pricing-section {
  display: none; /* FEATURE FLAG: change to display:block when ready to go live */
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer a {
  color: var(--text-soft);
  margin: 0 0.5rem; /* Spread out links slightly */
  display: inline-block;
}
.site-footer a:hover { color: var(--text); }

/* ── Utility ── */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.text-soft { color: var(--text-soft); }

/* ── Press and Hold Human-Only Button ── */
.btn-hold {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  border-radius: 50px !important; /* Force a pill/capsule shape */
  background: var(--bg-alt) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  transition: background 0.3s, border-color 0.3s;
}

.btn-hold__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent); /* Solid theme blue */
  opacity: 0.25; /* Opaque enough to see clearly, translucent to keep text readable */
  transition: width 1.5s linear;
  pointer-events: none;
}

.btn-hold.holding .btn-hold__progress {
  width: 100%;
}

.btn-hold.success {
  background: #2a6e3f !important;
  color: #ffffff !important;
  border-color: #2a6e3f !important;
  cursor: default;
}

.btn-hold.success .btn-hold__progress {
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ── Google Translate Premium Customization ── */
#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}
.goog-logo-link, .goog-te-gadget span {
  display: none !important;
}
.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-te-combo {
  background: var(--bg-alt) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  padding: 0.3rem 0.6rem !important;
  font-size: 0.85rem !important;
  font-family: var(--font-sans) !important;
  outline: none !important;
  cursor: pointer !important;
  margin: 0 !important;
}

/* ── Print Watermark ── */
@media print {
  body::after {
    content: "Compiled securely on White Collar Academy (https://whitecollaracademy.com) | Case Organiser Dossier";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 8pt;
    color: #777;
    font-family: 'Times New Roman', Georgia, serif;
    border-top: 1px solid #ccc;
    padding-top: 5px;
    background: #fff;
  }
}

/* ── Landscape / Short height fixes ── */
@media (max-height: 480px) and (max-width: 900px) {
  .site-header {
    position: relative !important;
    padding: 0.5rem 0 !important;
  }
  .org-sidebar {
    position: relative !important;
    top: 0 !important;
    padding: 0.25rem 0 !important;
  }
  .org-main {
    padding: 1rem 0.75rem !important;
  }
  .site-nav {
    gap: 1rem !important;
  }
}

/* ── Blue Collar Diner Theme Overrides ── */
html.theme-bluecollar,
body.theme-bluecollar {
  --bg:        #ebedf0; /* Light industrial steel gray */
  --bg-alt:    #d9dee4; /* Deeper steel block bg */
  --text:      #0f172a; /* Slate dark text */
  --text-soft: #475569; /* Muted slate gray */
  --accent:    #b45309; /* Retro Diner Amber/Rust */
  --accent-lt: #ffedd5; /* Soft amber tint */
  --border:    #cbd5e1; /* Clear slate border */
}

/* Swap SVG logo fill for Blue Collar theme */
html.theme-bluecollar svg rect,
body.theme-bluecollar svg rect {
  fill: #b45309 !important;
}

/* Custom print watermark for Blue Collar Diner theme */
@media print {
  html.theme-bluecollar body::after,
  body.theme-bluecollar body::after {
    content: "Compiled securely on Blue Collar Diner (https://bluecollardiner.com) | Case Organiser Dossier" !important;
  }
}

