/* ==========================================================
   Palo Santo Consulting — Cohort Programmes Stylesheet
   Matches existing palosantoconsulting.com aesthetic
   ========================================================== */

/* ---------- TOKENS ---------- */
:root {
  --forest: #2F5233;
  --moss: #97BC62;
  --terra: #8B4513;
  --cream: #F4F1EC;
  --paper: #FBF8F2;
  --ink: #1A1A1A;
  --grey: #5F5F5F;
  --light-grey: #B0B0B0;
  --border: #E5E1D8;

  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  --max-width: 1240px;
  --content-width: 920px;
  --gutter: 24px;
  --radius: 2px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terra); }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.content {
  max-width: var(--content-width);
  margin: 0 auto;
}
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 48px 0; } }

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--forest);
  color: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
}
.brand-name { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.brand-tag { font-size: 11px; color: var(--grey); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.main-nav a:hover, .main-nav a.active { color: var(--terra); }
.main-nav .nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--forest);
  color: var(--forest);
}
.main-nav .nav-cta:hover { background: var(--forest); color: white; }

@media (max-width: 768px) {
  .main-nav { gap: 16px; font-size: 13px; flex-wrap: wrap; }
  .main-nav .nav-cta { padding: 6px 14px; }
}

/* ---------- SUB-NAV (sibling pages) ---------- */
.sub-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
}
.sub-nav .container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.sub-nav .label {
  color: var(--terra);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.sub-nav a {
  color: var(--grey);
  letter-spacing: 0.02em;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--forest); }
.sub-nav a.active { border-bottom: 2px solid var(--terra); padding-bottom: 4px; }

/* ---------- HERO ---------- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--paper);
}
.hero .eyebrow {
  color: var(--terra);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--terra); }
.hero .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--grey);
  max-width: 720px;
  margin-bottom: 36px;
  font-family: var(--font-serif);
  font-style: italic;
}
.hero .sub-line {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-image {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--cream);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .hero-image { aspect-ratio: 16/9; }
}

/* ---------- BUTTONS ---------- */
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.btn-primary:hover { background: var(--terra); border-color: var(--terra); color: white; }
.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--forest); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: none;
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--terra); }

/* ---------- NUMBERED SECTION HEADER ---------- */
.section-header {
  margin-bottom: 48px;
}
.section-num {
  color: var(--terra);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 800px;
}

/* ---------- BODY PROSE ---------- */
.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 720px;
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- PLATE CAPTION ---------- */
.plate-caption {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--grey);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--terra);
}

/* ---------- PROGRAMME CARDS GRID ---------- */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .programme-grid { grid-template-columns: 1fr; } }

.programme-card {
  background: white;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
  display: block;
  color: var(--ink);
  position: relative;
}
.programme-card:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 16px rgba(47, 82, 51, 0.08);
}
.programme-card .card-tag {
  color: var(--terra);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.programme-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--forest);
  margin-bottom: 12px;
  font-weight: 700;
}
.programme-card .card-tagline {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.programme-card .card-meta {
  color: var(--grey);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.programme-card .card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--terra);
  font-size: 18px;
}

.programme-card.bundle {
  background: var(--forest);
  border-color: var(--forest);
}
.programme-card.bundle h3, .programme-card.bundle .card-tagline { color: white; }
.programme-card.bundle .card-tag, .programme-card.bundle .card-arrow { color: var(--moss); }
.programme-card.bundle .card-meta { color: var(--cream); }

/* ---------- 4-ARC GRID (programme detail page) ---------- */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .arc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .arc-grid { grid-template-columns: 1fr; } }

.arc-card {
  background: var(--cream);
  padding: 24px;
  border-radius: var(--radius);
  min-height: 280px;
}
.arc-card:nth-child(even) { background: var(--forest); color: var(--cream); }
.arc-card:nth-child(even) .arc-num, .arc-card:nth-child(even) .arc-subtitle { color: var(--moss); }
.arc-card:nth-child(even) .arc-title { color: white; }

.arc-num {
  font-size: 28px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 8px;
}
.arc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.arc-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--forest);
  margin-bottom: 14px;
}
.arc-modules {
  list-style: none;
}
.arc-modules li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
  padding-left: 4px;
}

/* ---------- TIMELINE (How it works) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .timeline { grid-template-columns: 1fr; } }

.timeline-step {
  padding: 24px;
  border-top: 2px solid var(--terra);
}
.timeline-when {
  color: var(--terra);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey);
}

/* ---------- TABLES ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--forest);
  color: white;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
}
.data-table tr:nth-child(even) td { background: var(--cream); }
.data-table td:first-child { font-weight: 600; color: var(--forest); }
@media (max-width: 700px) {
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

/* ---------- TWO-COL BLOCK ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
.two-col-block h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--terra);
  margin-bottom: 16px;
  font-style: italic;
}
.two-col-block ul { list-style: none; }
.two-col-block li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.55;
}
.two-col-block li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--terra);
  font-weight: 700;
  font-size: 18px;
}

/* ---------- CAPSTONE GRID ---------- */
.capstone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .capstone-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .capstone-grid { grid-template-columns: 1fr; } }

.capstone-card {
  background: white;
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
}
.capstone-card .capstone-num {
  font-size: 11px;
  color: var(--terra);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.capstone-card h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--forest);
  margin-bottom: 8px;
  font-weight: 700;
}
.capstone-card p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.55;
}

/* ---------- COHORT DATES TABLE ---------- */
.cohort-dates {
  display: grid;
  gap: 20px;
}
.cohort-row {
  background: var(--cream);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--terra);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
@media (max-width: 700px) { .cohort-row { grid-template-columns: 1fr; } }
.cohort-row .cohort-label {
  font-size: 11px;
  color: var(--terra);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.cohort-row .cohort-when {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 4px;
}
.cohort-row .cohort-detail {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 2px;
}
.calendar-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--grey);
  text-align: center;
}

/* Calendar embed wrapper */
.calendar-embed {
  margin: 24px 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-embed iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}
@media (max-width: 700px) { .calendar-embed iframe { height: 480px; } }

/* ---------- PRICING CARDS ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  padding: 32px 26px;
  border-radius: var(--radius);
  position: relative;
}
.pricing-card.featured {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.pricing-card .pricing-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 10px;
}
.pricing-card.featured .pricing-label { color: var(--moss); }
.pricing-card .pricing-amount {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 24px;
  line-height: 1;
}
.pricing-card.featured .pricing-amount { color: white; }
.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-card li {
  font-size: 14px;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.pricing-card.featured li {
  color: var(--cream);
  border-color: rgba(255,255,255,0.1);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card .btn {
  width: 100%;
  justify-content: center;
}
.pricing-card.featured .btn-primary {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--forest);
}
.pricing-card.featured .btn-primary:hover { background: white; border-color: white; }

.pricing-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--grey);
  text-align: center;
  line-height: 1.6;
}

/* ---------- WHO IT'S FOR GRID ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  background: var(--cream);
  padding: 22px;
  border-radius: var(--radius);
}
.audience-card h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 10px;
}
.audience-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 20px;
  max-width: 820px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 10px;
}
.faq-answer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

/* ---------- DOWNLOAD BLOCK ---------- */
.download-block {
  background: var(--cream);
  padding: 32px;
  border-radius: var(--radius);
  border-left: 4px solid var(--terra);
}
.download-block h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 12px;
}
.download-block p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 600px;
}
.download-block .small {
  font-size: 12px;
  color: var(--grey);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- PULL QUOTE ---------- */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--forest);
  line-height: 1.45;
  padding-left: 20px;
  border-left: 3px solid var(--terra);
  margin: 32px 0;
  max-width: 720px;
}

/* ---------- BEGIN CTA ---------- */
.begin-cta {
  background: var(--forest);
  color: white;
  padding: 80px 0;
  margin-top: 40px;
}
.begin-cta .label {
  color: var(--moss);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.begin-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  max-width: 720px;
}
.begin-cta .btn-primary {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--forest);
}
.begin-cta .btn-primary:hover { background: white; border-color: white; }
.begin-cta .btn-secondary {
  background: transparent;
  border-color: var(--moss);
  color: var(--moss);
}
.begin-cta .btn-secondary:hover { background: var(--moss); color: var(--forest); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--cream);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-mark { width: 48px; height: 48px; font-size: 22px; }
.footer-brand .brand-name { font-size: 16px; margin-top: 14px; }
.footer-brand .footer-tagline { font-size: 12px; color: var(--grey); margin-top: 4px; letter-spacing: 0.08em; }
.footer-brand .footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--forest);
  margin-top: 16px;
  font-size: 14px;
}
.footer-brand .footer-method {
  margin-top: 12px;
  font-size: 12px;
  color: var(--terra);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink); font-size: 14px; }
.footer-col a:hover { color: var(--terra); }
.footer-col address { font-style: normal; font-size: 13px; line-height: 1.6; color: var(--grey); margin-top: 8px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--grey);
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--grey); }
.footer-bottom-links a:hover { color: var(--terra); }

/* ---------- UTILITY ---------- */
.bg-cream { background: var(--cream); }
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
