/*
Theme Name: Lymphoma CAR-T Journey
Theme URI: https://lymphomacartjourney.com
Author: CAR-T Journey
Description: A calming, nature-inspired theme for the Lymphoma CAR-T Journey blog - providing information and hope for CAR-T therapy patients and caregivers.
Version: 1.0
License: GNU General Public License v2 or later
Tags: blog, medical, health, nature, calming
*/

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ============================================
   CSS VARIABLES - CALMING BAMBOO/NATURE PALETTE
   ============================================ */
:root {
  --color-bamboo:        #C8B99A;
  --color-bamboo-light:  #EDE4D8;
  --color-bamboo-pale:   #F7F3EE;
  --color-sage:          #7A9E7E;
  --color-sage-dark:     #4E7553;
  --color-sage-light:    #BDD5BE;
  --color-sage-pale:     #EBF3EB;
  --color-stone:         #6B6560;
  --color-stone-light:   #9B9490;
  --color-stone-pale:    #F0EDEA;
  --color-cream:         #FDFAF6;
  --color-white:         #FFFFFF;
  --color-text-dark:     #2C2825;
  --color-text-mid:      #4A4540;
  --color-text-muted:    #7A7470;
  --color-accent:        #7A9E7E;
  --color-accent-warm:   #B87D4B;
  --font-heading:        'Lora', Georgia, serif;
  --font-body:           'Source Sans 3', 'Helvetica Neue', sans-serif;
  --max-width:           1100px;
  --radius-sm:           4px;
  --radius-md:           8px;
  --radius-lg:           16px;
  --shadow-soft:         0 2px 20px rgba(100, 90, 80, 0.08);
  --shadow-card:         0 4px 30px rgba(100, 90, 80, 0.12);
  --transition:          all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-mid);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-sage-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-warm); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.3;
  font-weight: 500;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

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

blockquote {
  border-left: 3px solid var(--color-sage);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-sage-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-text-dark);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-bamboo-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-branding { display: flex; align-items: center; gap: 0.75rem; }

.site-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo-icon svg { width: 22px; height: 22px; fill: white; }

.site-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.site-title span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-mid);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.current-menu-item {
  background: var(--color-sage-pale);
  color: var(--color-sage-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-mid);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bamboo-pale);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.squarespace-cdn.com/content/v1/63fe8f823a6e4f294e8f42d8/1677627517530-MYOX4SNDX6CMPQ1B66S9/unsplash-image-tWKEpvL0a2Y.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 40, 37, 0.65) 0%, rgba(74, 110, 77, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  color: white;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-sage);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--color-sage-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 117, 83, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.8);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   INTRO STRIP
   ============================================ */
.intro-strip {
  background: var(--color-sage);
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
}

.intro-strip p {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}

.intro-strip strong { font-weight: 600; color: white; }

/* ============================================
   SECTION: STORY SECTIONS (like current site)
   ============================================ */
.story-section {
  padding: 5rem 0;
}

.story-section:nth-child(even) {
  background: var(--color-stone-pale);
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-image:hover img { transform: scale(1.03); }

.story-text { }

.story-tag {
  display: inline-block;
  background: var(--color-sage-pale);
  color: var(--color-sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.story-text h2 {
  margin-bottom: 1.25rem;
  color: var(--color-text-dark);
}

.story-text p { color: var(--color-text-mid); }

/* ============================================
   SECTION: NAVIGATION CARDS
   ============================================ */
.nav-cards-section {
  padding: 5rem 0;
  background: var(--color-bamboo-pale);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--color-sage-pale);
  color: var(--color-sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--color-text-muted); max-width: 500px; margin: 0 auto; }

.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-bamboo-light);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-sage-light);
  color: inherit;
}

.nav-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-sage-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-card-icon svg { width: 24px; height: 24px; stroke: var(--color-sage-dark); fill: none; stroke-width: 1.5; }

.nav-card h3 {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin: 0;
}

.nav-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.nav-card-arrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  margin-top: 0.5rem;
}

/* ============================================
   DISCLAIMER BANNER
   ============================================ */
.disclaimer-banner {
  background: var(--color-bamboo-light);
  border-left: 4px solid var(--color-accent-warm);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.disclaimer-banner p {
  font-size: 0.85rem;
  color: var(--color-text-mid);
  margin: 0;
  line-height: 1.6;
}

.disclaimer-banner strong { color: var(--color-text-dark); }

/* ============================================
   BLOG / POSTS
   ============================================ */
.posts-section {
  padding: 5rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-bamboo-light);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-body { padding: 1.5rem; }

.post-category {
  display: inline-block;
  background: var(--color-sage-pale);
  color: var(--color-sage-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.post-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.post-card h3 a { color: var(--color-text-dark); }
.post-card h3 a:hover { color: var(--color-sage-dark); }

.post-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   SINGLE POST / PAGE CONTENT
   ============================================ */
.page-hero {
  background: var(--color-bamboo-pale);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-bamboo-light);
}

.page-hero .section-tag { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.content-area {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.content-area h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bamboo-light);
}

.content-area h3 { margin-top: 2rem; margin-bottom: 0.75rem; }

.content-area ul,
.content-area ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.content-area li { margin-bottom: 0.5rem; }

/* ============================================
   JOURNAL TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-sage-light);
}

.timeline-entry {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-sage);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-sage-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  z-index: 1;
}

.timeline-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-bamboo-light);
  flex: 1;
}

.timeline-content h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.timeline-content p { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }

/* ============================================
   THINGS I WISH I KNEW - TIPS GRID
   ============================================ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tip-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-bamboo-light);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--color-sage);
}

.tip-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-sage-light);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tip-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.tip-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* ============================================
   SIDEBAR
   ============================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  align-items: start;
}

.sidebar { }

.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-bamboo-light);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-bamboo-light);
}

.sidebar-nav { list-style: none; }
.sidebar-nav li { border-bottom: 1px solid var(--color-stone-pale); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--color-text-mid);
}
.sidebar-nav a:hover { color: var(--color-sage-dark); padding-left: 4px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-text-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-title { color: white; }
.footer-brand .site-title span { color: rgba(255,255,255,0.5); }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-sage-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.footer-disclaimer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .story-block { grid-template-columns: 1fr; gap: 2rem; }
  .story-block.reverse { direction: ltr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 1rem; box-shadow: var(--shadow-card); border-top: 1px solid var(--color-bamboo-light); }
  .nav-toggle { display: flex; }
  .nav-cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
