/* 
   Jazz Guitar Marketing Site Styles
   Derived from /frontend design tokens, optimized for high impact
*/

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  /* Core Colors */
  --c-bg: #fdfbfb;
  --c-bg-surface: #ffffff;
  --c-bg-elevated: #f5f3f0;
  --c-border: #e6e2dd;

  /* Brand Accent */
  --c-primary: #3d0d12;
  --c-primary-hover: #5a1218;
  --c-primary-subtle: rgba(61, 13, 18, 0.05);
  --c-primary-light: #832a32;

  /* Text Colors */
  --c-text: #171615;
  --c-text-muted: #5e5954;
  --c-text-inverse: #ffffff;

  /* Typography */
  --font-heading: "Merriweather", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-unit: 1rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows (Premium feel) */
  --shadow-sm: 0 2px 8px rgba(30, 20, 15, 0.04), 0 1px 2px rgba(30, 20, 15, 0.02);
  --shadow-md: 0 8px 24px rgba(30, 20, 15, 0.06), 0 2px 6px rgba(30, 20, 15, 0.03);
  --shadow-lg: 0 16px 40px rgba(30, 20, 15, 0.08), 0 6px 12px rgba(30, 20, 15, 0.04);
  
  /* Layout */
  --container-width: 1140px;
  --header-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-text);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout Utils & Grid
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 800px;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 768px) {
  .grid { gap: var(--space-md); }
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--lg {
  padding: var(--space-2xl) 0;
}

.section--muted {
  background-color: var(--c-bg-elevated);
}

.section--dark {
  background-color: var(--c-text);
  color: var(--c-text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--c-text-inverse);
}

.section--dark .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.section--cta {
  background-color: var(--c-primary);
  color: var(--c-text-inverse);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative radial gradient */
.section--cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.section--cta h1,
.section--cta h2,
.section--cta h3,
.section--cta h4,
.section--cta .cta-title {
  color: var(--c-text-inverse);
}

.section--cta p,
.section--cta .cta-text {
  color: rgba(255, 255, 255, 0.85);
}

.section--cta p a {
  color: #ffffff !important;
  font-weight: 600;
}

.section--cta .btn--primary {
  background-color: var(--c-text-inverse) !important;
  color: var(--c-primary) !important;
}

.section--cta .btn--primary:hover {
  background-color: var(--c-bg-elevated);
  color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.section--cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--c-text-inverse);
}

.section--cta .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--c-text-inverse);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-header__kicker {
  display: inline-block;
  color: var(--c-primary);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.section--dark .section-header__kicker {
  color: #ffb5bc; /* Lighter primary for dark mode */
}

.section-header__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.section-header__text {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--c-text-muted);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  line-height: 1.2;
}

.btn--primary {
  background-color: var(--c-primary);
  color: var(--c-text-inverse);
  box-shadow: 0 4px 12px rgba(61, 13, 18, 0.2);
}

.btn--primary:hover {
  background-color: var(--c-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 13, 18, 0.3);
  color: var(--c-text-inverse);
}

.btn--outline {
  border-color: var(--c-border);
  color: var(--c-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--c-text);
  background-color: var(--c-bg-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section--dark .btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--c-text-inverse);
}

.section--dark .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-group--center {
  justify-content: center;
}

/* Cards */
.card {
  background: var(--c-bg-surface);
  padding: 2.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--c-primary-subtle);
  color: var(--c-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .card__icon {
  transform: scale(1.05);
  background: var(--c-primary);
  color: var(--c-text-inverse);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5px;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card__text {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Course Card variant (App Style) */
.card--course {
  padding: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-color: var(--c-border);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.card--course:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--course__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.card--course__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0;
  font-family: var(--font-body); /* Override default heading */
}

.card--course__desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  flex: 1;
}

.card--course__features {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.card--course__features li {
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card--course__features li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--c-primary);
  border-radius: 50%;
}

.card--course__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-border);
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  background: var(--c-primary-subtle);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card--course__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

/* ==========================================================================
   Course Modules List (Curriculum Subpages)
   ========================================================================== */
.course-modules {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.course-module {
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.course-module:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.course-module__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--c-primary-subtle);
  color: var(--c-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

.course-module__content {
  flex: 1;
}

.course-module__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.course-module__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--c-text);
  font-family: var(--font-body);
}

.course-module__desc {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .course-module {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(253, 251, 251, 0.85); /* Matches --c-bg */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 226, 221, 0.5);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}

.logo__img {
  height: 32px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__item--mobile-only {
  display: none;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-muted);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--c-primary);
  transition: width 0.2s ease;
}

.nav__link:hover {
  color: var(--c-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  
  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: var(--c-bg-surface);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav__list.is-active {
    right: 0;
  }
  
  .nav__item--mobile-only {
    display: block;
  }
  
  .nav__list .btn {
    width: 100%;
    margin-top: 1rem;
  }
  
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: calc(var(--space-2xl) + var(--header-height)) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decor gradient in hero */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(61,13,18,0.04) 0%, rgba(253,251,251,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero__kicker {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.03em;
}

.hero__title span {
  color: var(--c-primary);
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  color: var(--c-text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero__meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.hero__meta strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ==========================================================================
   Specific Sections
   ========================================================================== */

/* Roadmap (Phase Visual) */
.roadmap__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  max-width: 700px;
  margin: 0 auto;
}

.roadmap__line {
  width: 2px;
  height: 40px;
  background: var(--c-primary-subtle);
  margin: 0 auto;
}

.roadmap__stage--active {
  background: var(--c-primary);
  color: var(--c-text-inverse);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lg);
}

.roadmap__stage--active .roadmap__title,
.roadmap__stage--active .roadmap__desc {
  color: var(--c-text-inverse);
}

.roadmap__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.roadmap__desc {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Image/Content Split Layouts */
.split-layout {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.split-layout--reverse {
  flex-direction: row-reverse;
}

.split-layout__content {
  flex: 1;
}

.split-layout__visual {
  flex: 1;
  position: relative;
}

.split-layout__img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); /* Need to define or use lg */
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .split-layout, .split-layout--reverse {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* List with checkmarks */
.feature-list {
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.feature-list li svg {
  color: var(--c-success, #166534); /* Fallback to success green or primary */
  color: var(--c-primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

/* Footer */
.footer {
  background: var(--c-bg-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.footer__desc {
  color: var(--c-text-muted);
  max-width: 360px;
  margin-top: 1rem;
}

.footer__title {
  font-size: 0.875rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text);
  margin-bottom: 1.25rem;
}

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

.footer__link {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--c-primary);
}

.footer__bottom {
  border-top: 1px solid var(--c-bg-elevated);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Utilities / Animations
   ========================================================================== */
.text-center { text-align: center; }

/* Micro-animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
