/* ========================================
   Give 'Em the Pickle — Online Course
   ======================================== */

:root {
  --green: #2d6a4f;
  --green-dark: #1b4332;
  --green-light: #52b788;
  --gold: #e9c46a;
  --gold-dark: #d4a843;
  --cream: #fefae0;
  --charcoal: #1b1b1b;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --sidebar-width: 280px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p + p { margin-top: 1rem; }

/* ---- Utility ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-dark); color: var(--charcoal); }
.btn-secondary { background: var(--green); color: var(--white); }
.btn-secondary:hover { background: var(--green-dark); color: var(--white); }
.tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--white);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========================================
   LANDING PAGE
   ======================================== */

/* ---- Navbar ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.navbar .logo {
  display: inline-flex;
  align-items: center;
}
.logo-pickle { flex-shrink: 0; height: 42px; width: auto; }
.navbar nav a {
  margin-left: 1.75rem;
  font-weight: 500;
  color: var(--charcoal);
}
.navbar nav a:hover { color: var(--green); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero .price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.hero .price-note {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 2rem;
}
.hero .btn { font-size: 1.15rem; padding: 1rem 2.5rem; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--gray); max-width: 560px; margin: 0 auto; }

/* ---- Benefits grid ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow-lg); }
.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.benefit-card h3 { margin-bottom: 0.5rem; }
.benefit-card p { color: var(--gray); font-size: 0.95rem; }

/* ---- Modules list ---- */
.modules-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
}
.module-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.module-item:last-child { border-bottom: none; }
.module-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.module-info h3 { margin-bottom: 0.25rem; }
.module-info p { color: var(--gray); font-size: 0.95rem; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.testimonial blockquote {
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.testimonial .author { font-weight: 600; font-size: 0.9rem; color: var(--gray); }

/* ---- Instructor ---- */
.instructor {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.instructor-avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}
.instructor-bio h3 { margin-bottom: 0.5rem; }
.instructor-bio p { color: var(--gray); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.85; margin-bottom: 2rem; }

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: var(--gray);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}
.footer a { color: var(--gold); }

/* ========================================
   COURSE LAYOUT  (course.html + modules)
   ======================================== */

.course-page {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--green-dark);
  color: var(--white);
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  transition: transform var(--transition);
  z-index: 100;
}
.sidebar-header {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1rem;
}
.sidebar-header .logo {
  display: inline-flex;
  align-items: center;
}
.sidebar-header .logo .logo-pickle { height: 34px; width: auto; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-left-color: var(--gold);
}
.sidebar-nav li a .check {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: background var(--transition), border-color var(--transition);
}
.sidebar-nav li a .check.completed {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}
.sidebar-nav .module-group-title {
  padding: 1rem 1.25rem 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.sidebar-progress {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: auto;
}
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ---- Sidebar toggle (mobile) ---- */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--green);
  color: var(--white);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* ---- Main content ---- */
.course-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 3rem 3.5rem 4rem;
  max-width: 860px;
}
.course-main .breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.course-main .breadcrumb a { color: var(--green); }
.lesson-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}
.lesson-header .tag { margin-bottom: 0.75rem; }
.lesson-header h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.lesson-header .meta { color: var(--gray); font-size: 0.9rem; }

/* ---- Lesson content prose ---- */
.lesson-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}
.lesson-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.lesson-content p {
  margin-bottom: 1rem;
  color: #333;
}
.lesson-content ul, .lesson-content ol {
  margin: 1rem 0 1rem 1.5rem;
}
.lesson-content li { margin-bottom: 0.4rem; }
.lesson-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--charcoal);
}
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.callout-tip {
  background: #ecfdf5;
  border-left: 4px solid var(--green-light);
}
.callout-example {
  background: #fef9ec;
  border-left: 4px solid var(--gold);
}
.callout strong { display: block; margin-bottom: 0.25rem; }

/* ---- Lesson nav (prev/next) ---- */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
  gap: 1rem;
}
.lesson-nav a {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  max-width: 48%;
}
.lesson-nav a:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.lesson-nav a .label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.15rem;
}
.lesson-nav a .title {
  font-weight: 600;
  color: var(--charcoal);
}
.lesson-nav a.next { margin-left: auto; text-align: right; }

/* ---- Complete button ---- */
.complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: transparent;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.complete-btn:hover { background: var(--green); color: var(--white); }
.complete-btn.is-complete { background: var(--green); color: var(--white); }

/* ---- Course dashboard cards ---- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.dash-card:hover { box-shadow: var(--shadow-lg); border-color: var(--green-light); }
.dash-card .module-tag { margin-bottom: 0.75rem; }
.dash-card h3 { margin-bottom: 0.5rem; }
.dash-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 1rem; }
.dash-card .lessons-count { font-size: 0.82rem; color: var(--gray); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero .price { font-size: 2.25rem; }
  .instructor { flex-direction: column; text-align: center; }

  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle { display: block; }
  .course-main {
    margin-left: 0;
    padding: 2rem 1.25rem 3rem;
  }
  .lesson-nav { flex-direction: column; }
  .lesson-nav a { max-width: 100%; }
}

@media print {
  .sidebar, .sidebar-toggle, .lesson-nav, .complete-btn { display: none; }
  .course-main { margin-left: 0; padding: 1rem; }
}
