/*
Theme Name:  The Compassionate Table
Theme URI:   https://compassionatetable.com
Author:      G M Greene
Author URI:  https://compassionatetable.com
Description: Bespoke theme for The Compassionate Table — a Buddhist guide to plant-based living. Parallax homepage, chapter pages, Stripe-powered PDF and Kindle downloads.
Version:     5.1.0
License:     GNU General Public License v2 or later
Text Domain: compassionate-table
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand palette — gold is primary, green is accent */
  --ct-gold:        #C8920A;  /* PRIMARY — hero, headers, CTAs */
  --ct-gold-light:  #F0B429;  /* Hover states, highlights */
  --ct-gold-pale:   #FBE9B0;  /* Subtle backgrounds */
  --ct-forest:      #2D5016;  /* ACCENT — buttons on gold, emphasis */
  --ct-sage:        #4A7A22;  /* Secondary accent */
  --ct-sage-light:  #7AAF3A;  /* Tertiary accent */
  --ct-cream:       #FDF6E3;  /* Page background */
  --ct-cream-dark:  #F5E9C8;  /* Section backgrounds */
  --ct-deep:        #1A1A0F;  /* Text, dark sections */
  --ct-text:        #2C2C18;  /* Body text */
  --ct-text-muted:  #6B6B50;  /* Secondary text */
  --ct-border:      rgba(44, 44, 24, 0.15);

  /* Typography */
  --ct-serif:       'Playfair Display', Georgia, 'Times New Roman', serif;
  --ct-sans:        'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --ct-section-py:  5rem;
  --ct-container:   1140px;
  --ct-radius:      4px;
  --ct-radius-lg:   8px;
  --ct-nav-height:  90px; /* logo height + padding — adjust if logo changes */
  --ct-page-top:    150px; /* nav height + breathing room — single value for all page headers */

  /* Transitions */
  --ct-ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ct-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ct-text);
  background-color: var(--ct-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ct-gold);
  text-decoration: none;
  transition: color 0.2s var(--ct-ease);
}

a:hover {
  color: var(--ct-forest);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ct-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ct-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ct-text-muted);
}

blockquote {
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ct-forest);
  border-left: 3px solid var(--ct-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.ct-container {
  width: 100%;
  max-width: var(--ct-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ct-section {
  padding: var(--ct-section-py) 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.ct-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 227, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--ct-border);
}

.ct-nav.scrolled {
  background: rgba(253, 246, 227, 0.98);
  box-shadow: 0 2px 12px rgba(44, 44, 24, 0.08);
}

.ct-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.75rem 1.5rem;
  max-width: var(--ct-container);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Logo */
.ct-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* WordPress custom logo output */
.ct-nav-logo .custom-logo-link {
  display: block;
  line-height: 0;
}

.ct-nav-logo .custom-logo {
  height: 90px;
  width: auto;
  display: block;
  max-height: 150px;
}

.ct-nav-logo-text {
  font-family: var(--ct-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ct-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ct-nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-gold);
}

/* Nav menu */
.ct-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.ct-nav-menu > li {
  position: relative;
}

.ct-nav-menu > li > a {
  font-family: var(--ct-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--ct-radius);
  display: block;
  transition: color 0.2s, background 0.2s;
}

.ct-nav-menu > li > a:hover {
  color: var(--ct-gold);
  background: rgba(200, 146, 10, 0.08);
}

/* Dropdown */
.ct-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ct-cream);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ct-ease), transform 0.2s var(--ct-ease), visibility 0s 0.2s;
  transform: translateX(-50%) translateY(-6px);
  list-style: none;
  padding: 0.5rem;
  z-index: 100;
}

@media (min-width: 769px) {
  .ct-nav-menu > li:hover .ct-dropdown,
  .ct-nav-menu > li:focus-within .ct-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s var(--ct-ease), transform 0.2s var(--ct-ease);
  }
}

.ct-dropdown li a {
  display: block;
  font-family: var(--ct-serif);
  font-size: 0.95rem;
  color: var(--ct-text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--ct-radius);
  transition: color 0.15s, background 0.15s;
}

.ct-dropdown li a:hover {
  color: var(--ct-gold);
  background: rgba(200, 146, 10, 0.06);
}

/* Dropdown chevron */
.ct-nav-menu > li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
}

/* CTA button in nav */
.ct-nav-cta {
  background: var(--ct-gold) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 2px !important;
  margin-left: 0.5rem;
  letter-spacing: 0.04em !important;
}

.ct-nav-cta:hover {
  background: var(--ct-forest) !important;
  color: #fff !important;
}

/* Mobile hamburger */
/* Hide mobile close button on desktop */
.ct-nav-close {
  display: none;
}

.ct-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.ct-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ct-deep);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ct-btn {
  display: inline-block;
  font-family: var(--ct-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ct-ease);
  line-height: 1;
}

.ct-btn-primary {
  background: var(--ct-gold);
  color: #fff;
  border-color: var(--ct-gold);
}

.ct-btn-primary:hover {
  background: var(--ct-forest);
  border-color: var(--ct-forest);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 80, 22, 0.25);
}

.ct-btn-outline {
  background: transparent;
  color: var(--ct-gold);
  border-color: var(--ct-gold);
}

.ct-btn-outline:hover {
  background: var(--ct-gold);
  color: #fff;
  transform: translateY(-1px);
}

.ct-btn-white {
  background: #fff;
  color: var(--ct-forest);
  border-color: #fff;
}

.ct-btn-white:hover {
  background: var(--ct-cream);
  color: var(--ct-forest);
  border-color: var(--ct-cream);
  transform: translateY(-1px);
}

/* Hero-specific button overrides for gold background */
.ct-hero .ct-btn-primary {
  background: var(--ct-forest);
  border-color: var(--ct-forest);
  color: #fff;
}

.ct-hero .ct-btn-primary:hover {
  background: var(--ct-deep);
  border-color: var(--ct-deep);
  color: #fff;
}

.ct-hero .ct-btn-white {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
  color: var(--ct-forest);
}

.ct-hero .ct-btn-white:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ct-forest);
}

.ct-btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.9rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.ct-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  background: linear-gradient(160deg, #D4980E 0%, #C8920A 50%, #A87208 100%);
}

.ct-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(45, 80, 22, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.ct-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
  padding: var(--ct-page-top) 1.5rem 6rem;
  max-width: var(--ct-container);
  margin: 0 auto;
  width: 100%;
}

.ct-hero-text { padding-right: 2rem; }

.ct-hero-eyebrow {
  font-family: var(--ct-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ct-forest);
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.75;
}

.ct-hero-title {
  font-family: var(--ct-serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ct-deep);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.ct-hero-title em {
  color: var(--ct-forest);
  font-style: italic;
}

.ct-hero-subtitle {
  font-family: var(--ct-serif);
  font-size: 1.1rem;
  color: rgba(26, 26, 15, 0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.ct-hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(26, 26, 15, 0.8);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.ct-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.ct-hero-price {
  font-family: var(--ct-sans);
  font-size: 0.85rem;
  color: rgba(26, 26, 15, 0.55);
  letter-spacing: 0.04em;
}

.ct-hero-cover {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: flex-start;
}
 
.ct-hero-cover img,
.ct-hero-cover .ct-book-cover {
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  display: block;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  transform: none;
  transition: none;
  object-fit: contain;
  overflow: visible;
  clip-path: none;
}
 
/* Remove any background or shadow WordPress adds to wrappers */
.ct-hero-cover figure,
.ct-hero-cover .wp-block-image,
.ct-hero-cover a {
  background: transparent;
  display: block;
  box-shadow: none;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.ct-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: ct-bounce 2s infinite;
  z-index: 2;
}

.ct-scroll-hint span {
  font-family: var(--ct-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 15, 0.4);
}

.ct-scroll-hint-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(26,26,15,0.35), transparent);
}

@keyframes ct-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   PARALLAX SECTIONS
   ============================================================ */
.ct-parallax-section {
  position: relative;
  overflow: hidden;
}

.ct-parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.ct-about {
  background: var(--ct-cream);
  padding: 6rem 0;
}

.ct-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ct-about-eyebrow {
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-gold);
  margin-bottom: 1rem;
  display: block;
}

.ct-about-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--ct-deep);
}

.ct-decorative-line {
  width: 60px;
  height: 2px;
  background: var(--ct-gold);
  margin: 1.5rem 0;
}

.ct-themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.ct-theme-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ct-theme-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ct-gold);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.ct-theme-item span {
  font-size: 0.95rem;
  color: var(--ct-text-muted);
}

/* ============================================================
   CHAPTER TASTERS STRIP
   ============================================================ */
.ct-chapters-strip {
  background: var(--ct-deep);
  padding: 5rem 0;
}

.ct-chapters-strip .ct-section-eyebrow {
  color: var(--ct-gold-light);
}

.ct-chapters-strip .ct-section-title {
  color: var(--ct-cream);
}

.ct-chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.ct-chapter-card {
  background: rgba(253, 246, 227, 0.06);
  border: 1px solid rgba(253, 246, 227, 0.12);
  border-radius: var(--ct-radius-lg);
  padding: 2rem;
  transition: all 0.25s var(--ct-ease);
  text-decoration: none;
  display: block;
}

.ct-chapter-card:hover {
  background: rgba(253, 246, 227, 0.1);
  border-color: rgba(200, 146, 10, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.ct-chapter-num {
  font-family: var(--ct-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(200, 146, 10, 0.35);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.ct-chapter-card h3 {
  font-size: 1.1rem;
  color: var(--ct-cream);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.ct-chapter-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(253, 246, 227, 0.6);
  margin: 0;
}

.ct-chapter-card .ct-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-gold-light);
  margin-top: 1.25rem;
}

/* ============================================================
   BUY SECTION
   ============================================================ */
.ct-buy {
  background: var(--ct-cream-dark);
  padding: 6rem 0;
}

.ct-buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 760px;
  margin: 3rem auto 0;
}

.ct-price-card {
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.25s var(--ct-ease);
  position: relative;
}

.ct-price-card:hover {
  box-shadow: 0 8px 40px rgba(45, 80, 22, 0.15);
  transform: translateY(-3px);
}

.ct-price-card.featured {
  border-color: var(--ct-gold);
  box-shadow: 0 4px 20px rgba(200, 146, 10, 0.2);
}

.ct-price-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ct-gold);
  color: #fff;
  font-family: var(--ct-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
}

.ct-price-format {
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-text-muted);
  margin-bottom: 1rem;
  display: block;
}

.ct-price-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ct-price-amount {
  font-family: var(--ct-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ct-deep);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ct-price-amount sup {
  font-size: 1.5rem;
  vertical-align: super;
}

.ct-price-note {
  font-size: 0.85rem;
  color: var(--ct-text-muted);
  margin-bottom: 1.5rem;
}

.ct-price-features {
  list-style: none;
  text-align: left;
  margin: 0 0 2rem;
  padding: 0;
}

.ct-price-features li {
  font-size: 0.9rem;
  padding: 0.4rem 0;
  color: var(--ct-text);
  border-bottom: 1px solid rgba(44, 44, 24, 0.08);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.ct-price-features li::before {
  content: '✓';
  color: var(--ct-sage);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.ct-quote-section {
  background: var(--ct-deep);
  padding: 5rem 0;
  text-align: center;
}

.ct-quote-section blockquote {
  border: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--ct-cream);
  line-height: 1.55;
}

.ct-quote-section cite {
  display: block;
  font-family: var(--ct-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-gold);
  margin-top: 1.5rem;
  font-style: normal;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.ct-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ct-section-eyebrow {
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.ct-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ct-deep);
  margin-bottom: 0;
}

.ct-section-desc {
  font-size: 1.05rem;
  color: var(--ct-text-muted);
  max-width: 560px;
  margin: 1rem auto 0;
}

/* ============================================================
   CHAPTER PAGE TEMPLATE
   ============================================================ */
.ct-chapter-header {
  background: var(--ct-forest);
  padding: var(--ct-page-top) 0 4rem;
  text-align: center;
}

.ct-chapter-header-num {
  font-family: var(--ct-serif);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(200, 146, 10, 0.25);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ct-chapter-header h1 {
  color: var(--ct-cream);
  margin-bottom: 0.5rem;
}

.ct-chapter-header-sub {
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(253, 246, 227, 0.65);
  margin: 0;
}

.ct-chapter-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.ct-chapter-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ct-text);
}

.ct-chapter-cta-strip {
  background: var(--ct-cream-dark);
  border-top: 1px solid var(--ct-border);
  border-bottom: 1px solid var(--ct-border);
  padding: 3rem;
  text-align: center;
  margin: 2rem 0;
  border-radius: var(--ct-radius-lg);
}

.ct-chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--ct-border);
  margin-top: 3rem;
}

.ct-chapter-nav a {
  font-family: var(--ct-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   DOWNLOAD / ACCOUNT PAGE
   ============================================================ */
.ct-download-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ct-page-top) 1.5rem 4rem;
  background: var(--ct-cream);
}

.ct-download-card {
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}

.ct-download-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.ct-download-card p {
  font-size: 0.95rem;
  color: var(--ct-text-muted);
  margin-bottom: 2rem;
}

.ct-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: var(--ct-forest);
  color: var(--ct-cream) !important;
  border-radius: var(--ct-radius);
  font-family: var(--ct-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.ct-download-btn:hover {
  background: var(--ct-gold);
  color: #fff !important;
  transform: translateY(-1px);
}

.ct-download-btn-icon {
  font-size: 1.2rem;
}

/* ============================================================
   WORDPRESS LOGIN FORM — styled to match the theme
   ============================================================ */
.ct-download-card #loginform,
.ct-download-card .login-form {
  text-align: left;
  margin: 0 0 1.5rem;
}

.ct-download-card #loginform p {
  margin-bottom: 1rem;
  color: var(--ct-text);
}

.ct-download-card #loginform label {
  display: block;
  font-family: var(--ct-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-text-muted);
  margin-bottom: 0.4rem;
}

.ct-download-card #loginform input[type="text"],
.ct-download-card #loginform input[type="password"],
.ct-download-card #loginform input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--ct-serif);
  font-size: 1rem;
  color: var(--ct-text);
  background: var(--ct-cream);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.ct-download-card #loginform input[type="text"]:focus,
.ct-download-card #loginform input[type="password"]:focus,
.ct-download-card #loginform input[type="email"]:focus {
  border-color: var(--ct-gold);
  box-shadow: 0 0 0 3px rgba(200, 146, 10, 0.12);
  background: #fff;
}

.ct-download-card #loginform input[type="submit"],
.ct-download-card #loginform .button-primary {
  width: 100%;
  padding: 0.9rem 2rem;
  background: var(--ct-gold);
  color: #fff;
  border: none;
  border-radius: var(--ct-radius);
  font-family: var(--ct-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}

.ct-download-card #loginform input[type="submit"]:hover,
.ct-download-card #loginform .button-primary:hover {
  background: var(--ct-forest);
  transform: translateY(-1px);
}

.ct-download-card #loginform .login-remember {
  display: none;
}

.ct-download-card #loginform .login-submit {
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ct-footer {
  background: var(--ct-deep);
  color: rgba(253, 246, 227, 0.65);
  padding: 3rem 0 1.5rem;
}

.ct-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.ct-footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  color: rgba(253, 246, 227, 0.5);
}

.ct-footer-logo {
  font-family: var(--ct-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ct-cream);
}

.ct-footer-col h4 {
  font-family: var(--ct-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-gold);
  margin-bottom: 1rem;
}

.ct-footer-col ul {
  list-style: none;
}

.ct-footer-col ul li {
  margin-bottom: 0.5rem;
}

.ct-footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(253, 246, 227, 0.55);
  transition: color 0.15s;
}

.ct-footer-col ul li a:hover {
  color: var(--ct-gold-light);
}

.ct-footer-bottom {
  border-top: 1px solid rgba(253, 246, 227, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(253, 246, 227, 0.35);
}

.ct-social-links {
  display: flex;
  gap: 1rem;
}

.ct-social-links a {
  color: rgba(253, 246, 227, 0.4);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.ct-social-links a:hover {
  color: var(--ct-gold-light);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.ct-text-center { text-align: center; }
.ct-mt-1 { margin-top: 0.5rem; }
.ct-mt-2 { margin-top: 1rem; }
.ct-mt-3 { margin-top: 1.5rem; }
.ct-mb-2 { margin-bottom: 1rem; }
.ct-gold { color: var(--ct-gold); }
.ct-forest { color: var(--ct-forest); }
.ct-muted { color: var(--ct-text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes ct-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ct-fade-up {
  animation: ct-fade-up 0.7s var(--ct-ease) both;
}

.ct-fade-up-delay-1 { animation-delay: 0.1s; }
.ct-fade-up-delay-2 { animation-delay: 0.2s; }
.ct-fade-up-delay-3 { animation-delay: 0.3s; }
.ct-fade-up-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ct-hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
  }
  .ct-chapters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --ct-section-py: 3.5rem;
    --ct-nav-height: 90px;  /* shorter nav on mobile */
    --ct-page-top:   130px; /* nav + breathing room on mobile */
  }

  /* Constrain logo height on mobile */
  .ct-nav-logo .custom-logo {
    height: 60px !important;
    width: auto;
    max-height: 60px !important;
  }

  .ct-nav-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ct-cream);
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    list-style: none;
  }

  .ct-nav-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    display: flex;
  }

  .ct-dropdown {
    position: static;
    transform: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    background: var(--ct-cream-dark);
    margin-top: 0.25rem;
    border-radius: var(--ct-radius);
    transition: opacity 0.2s, max-height 0.3s;
  }

  .ct-dropdown.open {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
  }

  .ct-nav-toggle { display: flex; }

  /* Hide desktop menu on mobile */
  .ct-nav-desktop {
    display: none !important;
  }

  /* Hide logo on mobile */
  .ct-nav-logo {
    display: none;
  }

  .ct-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }

  .ct-hero-cover { order: -1; }
  .ct-hero-cover img { max-width: 240px; margin: 0 auto; }
  .ct-hero-text { padding-right: 0; }
  .ct-hero-ctas { justify-content: center; }
  .ct-hero-desc { margin-left: auto; margin-right: auto; }

  .ct-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ct-chapters-grid { grid-template-columns: 1fr; }
  .ct-buy-grid { grid-template-columns: 1fr; max-width: 400px; }
  .ct-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ct-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .ct-chapter-header { padding: 6rem 1.5rem 3rem; }
}

@media (max-width: 480px) {
  .ct-hero-title { font-size: 2.25rem; }
  .ct-btn-lg { padding: 0.9rem 1.75rem; }
}

/* ============================================================
   PRINT
   ============================================================ */

/* ============================================================
   JOURNEY BLOG POST — single.php
   ============================================================ */

/* Gold header band — mirrors chapter header but in gold */
.ct-post-header {
  background: linear-gradient(160deg, var(--ct-gold) 0%, #A87208 100%);
  padding: var(--ct-page-top) 0 3.5rem;
  text-align: center;
}

.ct-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--ct-cream);
  margin-bottom: 1rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

/* Breadcrumb */
.ct-post-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ct-post-breadcrumb a {
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253, 246, 227, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.ct-post-breadcrumb a:hover {
  color: var(--ct-cream);
}

.ct-post-breadcrumb span {
  color: rgba(253, 246, 227, 0.4);
  font-size: 0.85rem;
}

/* Post meta — date, read time, category */
.ct-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--ct-sans);
  font-size: 0.82rem;
  color: rgba(253, 246, 227, 0.7);
  margin-top: 1rem;
}

.ct-post-meta-divider {
  color: rgba(253, 246, 227, 0.35);
}

.ct-post-category {
  background: rgba(253, 246, 227, 0.15);
  color: var(--ct-cream) !important;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s;
}

.ct-post-category:hover {
  background: rgba(253, 246, 227, 0.25);
}

/* Post body */
.ct-post-body {
  background: var(--ct-cream);
  padding: 0 0 3rem;
}

.ct-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

/* Post typography */
.ct-post-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ct-text);
  margin-bottom: 1.4rem;
}

.ct-post-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--ct-deep);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ct-border);
}

.ct-post-content h3 {
  font-size: 1.2rem;
  color: var(--ct-forest);
  margin: 2rem 0 0.75rem;
}

.ct-post-content blockquote {
  border-left: 3px solid var(--ct-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ct-forest);
  background: rgba(200, 146, 10, 0.05);
  border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
}

.ct-post-content em {
  color: var(--ct-forest);
  font-style: italic;
}

.ct-post-content a {
  color: var(--ct-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-post-content a:hover {
  color: var(--ct-forest);
}

.ct-post-content ul,
.ct-post-content ol {
  margin: 0 0 1.4rem 1.5rem;
  line-height: 1.85;
}

.ct-post-content li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--ct-text);
}

/* Post footer */
.ct-post-footer {
  border-top: 1px solid var(--ct-border);
  margin-top: 3rem;
  padding-top: 2rem;
}

.ct-post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--ct-sans);
  font-size: 0.8rem;
}

.ct-post-share span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-text-muted);
}

.ct-post-share a {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-gold);
  text-decoration: none;
  border: 1px solid var(--ct-gold);
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  transition: all 0.2s;
  font-size: 0.75rem;
}

.ct-post-share a:hover {
  background: var(--ct-gold);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .ct-post-header {
    padding: 6rem 1.5rem 2.5rem;
  }
  .ct-post-content {
    padding: 2.5rem 1.25rem 2rem;
  }
}


/* ============================================================
   JOURNEY INDEX — home.php
   ============================================================ */
.ct-journey-index {
  background: var(--ct-cream);
  padding: 4rem 0 5rem;
}

.ct-journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.ct-journey-card {
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ct-ease), box-shadow 0.25s var(--ct-ease);
  display: flex;
  flex-direction: column;
}

.ct-journey-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45, 80, 22, 0.12);
}

.ct-journey-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.ct-journey-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ct-ease);
}

.ct-journey-card:hover .ct-journey-card-image img {
  transform: scale(1.03);
}

.ct-journey-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ct-journey-card-cat {
  font-family: var(--ct-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-gold);
  text-decoration: none;
  margin-bottom: 0.6rem;
  display: block;
  transition: color 0.2s;
}

.ct-journey-card-cat:hover {
  color: var(--ct-forest);
}

.ct-journey-card-title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.ct-journey-card-title a {
  color: var(--ct-deep);
  text-decoration: none;
  transition: color 0.2s;
}

.ct-journey-card-title a:hover {
  color: var(--ct-gold);
}

.ct-journey-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ct-text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.ct-journey-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ct-sans);
  font-size: 0.78rem;
  color: var(--ct-text-muted);
  margin-bottom: 1.1rem;
}

.ct-journey-card-link {
  font-family: var(--ct-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-gold);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ct-journey-card-link:hover {
  color: var(--ct-forest);
}

/* Pagination */
.ct-journey-pagination {
  text-align: center;
  margin-top: 1rem;
}

.ct-journey-pagination .page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.ct-journey-pagination .page-numbers li a,
.ct-journey-pagination .page-numbers li span {
  font-family: var(--ct-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ct-gold);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}

.ct-journey-pagination .page-numbers li a:hover {
  background: var(--ct-gold);
  border-color: var(--ct-gold);
  color: #fff;
}

.ct-journey-pagination .page-numbers li span.current {
  background: var(--ct-forest);
  border-color: var(--ct-forest);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .ct-journey-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   MOBILE OVERLAY MENU — separate from nav, no height constraint
   ============================================================ */

/* Desktop menu shown inline */
.ct-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

/* Mobile overlay — hidden by default */
.ct-nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ct-cream);
  z-index: 9998;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ct-nav-mobile-overlay.open {
  display: block;
}

.ct-nav-mobile-inner {
  padding: 1.5rem;
  min-height: 100%;
}

.ct-nav-mobile-close {
  display: flex;
  margin-left: auto;
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ct-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.ct-nav-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ct-nav-mobile-menu > li {
  border-bottom: 1px solid var(--ct-border);
}

.ct-nav-mobile-menu > li > a,
.ct-mobile-dropdown-toggle {
  display: block;
  width: 100%;
  padding: 1rem 0;
  font-family: var(--ct-serif);
  font-size: 1.15rem;
  color: var(--ct-text);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.ct-mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ct-mobile-chevron {
  font-size: 1.25rem;
  color: var(--ct-gold);
  transition: transform 0.2s;
}

.ct-mobile-dropdown-toggle.open .ct-mobile-chevron {
  transform: rotate(90deg);
}

.ct-mobile-dropdown {
  list-style: none;
  padding: 0 0 0.5rem 1rem;
  margin: 0;
  display: none;
}

.ct-mobile-dropdown.open {
  display: block;
}

.ct-mobile-dropdown li a {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--ct-serif);
  font-size: 0.95rem;
  color: var(--ct-text-muted);
  text-decoration: none;
}

.ct-mobile-dropdown li a:hover {
  color: var(--ct-gold);
}



/* ============================================================
   ABOUT PAGE
   ============================================================ */
.ct-about-page-body {
  background: var(--ct-cream);
  padding: 0 0 5rem;
}

.ct-about-page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.ct-about-page-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ct-text);
  margin-bottom: 1.4rem;
}

.ct-about-page-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--ct-deep);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ct-border);
}

.ct-about-page-content blockquote {
  border-left: 3px solid var(--ct-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ct-forest);
  background: rgba(200, 146, 10, 0.05);
  border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
}

.ct-about-page-content a {
  color: var(--ct-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-about-page-content a:hover {
  color: var(--ct-forest);
}

.ct-about-page-content .ct-btn {
  text-decoration: none;
}


/* ============================================================
   HERO LEAF SHAPES — abstract bodhi leaf from logo
   ============================================================ */
.ct-hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ct-leaf {
  position: absolute;
  color: var(--ct-cream);
}

/* Large leaf — far right, partially cropped, very subtle */
.ct-leaf-1 {
  width: 420px;
  height: auto;
  right: -80px;
  top: -60px;
  opacity: 1.8;
  transform: rotate(18deg);
}

/* Medium leaf — bottom left, partially cropped */
.ct-leaf-2 {
  width: 280px;
  height: auto;
  left: -60px;
  bottom: -40px;
  opacity: 0.7;
  transform: rotate(-25deg);
}

/* Small leaf — upper left area, ghost */
.ct-leaf-3 {
  width: 180px;
  height: auto;
  left: 18%;
  top: 8%;
  opacity: 0.4;
  transform: rotate(8deg);
}

/* Ensure hero text sits above leaves */
.ct-hero-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .ct-leaf-1 { width: 280px; right: -60px; }
  .ct-leaf-2 { width: 180px; left: -40px; }
  .ct-leaf-3 { display: none; }
}

@media print {
  .ct-nav, .ct-scroll-hint, .ct-hero { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}