/* ============================================================
   STYLES.CSS — The Complete SketchUp & Vray Course
   ============================================================ */

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

:root {
  --accent:       #C17F3E;
  --accent-dark:  #A06A2C;
  --accent-light: #F5E8D6;
  --text:         #1A1A1A;
  --text-muted:   #6B6B6B;
  --text-light:   #9A9A9A;
  --bg:           #FAFAF8;
  --surface:      #FFFFFF;
  --border:       #E8E4DF;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.10);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --nav-h:        68px;
  --max-w:        1120px;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:   'Georgia', 'Times New Roman', serif;
  --transition:   .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(193,127,62,.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(193,127,62,.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 17px 36px; font-size: 1rem; }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
#nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  max-width: 220px;
  line-height: 1.2;
  color: var(--text);
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* ── HERO ── */
#hero {
  padding: calc(var(--nav-h) + 72px) 0 80px;
  background: linear-gradient(160deg, #FAFAF8 0%, #F4EDE4 100%);
  overflow: hidden;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 75% 40%, rgba(193,127,62,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title { margin-bottom: 20px; }
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: var(--text-muted);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust span::before {
  content: '▪';
  color: var(--accent);
  font-size: .6rem;
}
.hero-trust span:first-child::before { display: none; }

/* Hero card */
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-card-thumb {
  width: 100%;
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.hero-card-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Dark overlay so text/icon remain legible */
.hero-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.32);
  pointer-events: none;
}
.hero-card-thumb .play-btn {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  position: relative;
  z-index: 2;
  cursor: default;
}
.hero-card-thumb-label {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  position: relative;
  z-index: 2;
  letter-spacing: .04em;
}

.hero-card-body { padding: 24px; }

.hero-card-price {
  text-align: center;
  margin-bottom: 18px;
}
.price-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}
.price-note {
  font-size: .82rem;
  color: var(--text-light);
  display: block;
}

.hero-card-body .btn { width: 100%; justify-content: center; margin-bottom: 16px; }

.card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
}
.card-feature-icon {
  width: 20px;
  text-align: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.card-feature-label { font-size: .78rem; color: var(--text-light); margin-left: auto; }

/* ── STATS BAR ── */
#stats {
  background: var(--text);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  margin-top: 2px;
}

/* ── SECTIONS ── */
section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header p { margin-top: 14px; font-size: 1.05rem; }

/* ── OUTCOMES ── */
#outcomes { background: var(--surface); }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.outcome-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.outcome-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.outcome-check {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.outcome-check::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.outcome-text { font-size: .92rem; color: var(--text-muted); line-height: 1.55; }

/* ── INCLUDED ── */
#included { background: var(--bg); }

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: box-shadow var(--transition);
}
.included-item:hover { box-shadow: var(--shadow-md); }

.included-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.included-text strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.included-text span { font-size: .82rem; color: var(--text-light); }

/* ── HIGHLIGHTS ── */
#highlights { background: var(--surface); }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.highlight-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.highlight-card h3 { font-size: .95rem; margin-bottom: 8px; }
.highlight-card p { font-size: .84rem; }

/* ── CURRICULUM ── */
#curriculum { background: var(--bg); }

.curriculum-search-wrap {
  position: relative;
  max-width: 440px;
  margin: 0 auto 36px;
}
.curriculum-search {
  width: 100%;
  padding: 13px 44px 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.curriculum-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193,127,62,.12);
}
.curriculum-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
}

.curriculum-list { display: flex; flex-direction: column; gap: 8px; }

.accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.accordion:hover { box-shadow: var(--shadow-sm); }
.accordion.hidden-by-search { display: none; }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--bg); }
.accordion.open .accordion-header { background: var(--accent-light); }

.accordion-title {
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.accordion-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accordion-count {
  font-size: .8rem;
  color: var(--text-light);
  white-space: nowrap;
}
.accordion-chevron {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: var(--text-muted);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.accordion.open .accordion-chevron {
  transform: rotate(180deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.accordion-body {
  display: none;
  padding: 0 22px 18px;
}
.accordion.open .accordion-body { display: block; }

.lecture-list { display: flex; flex-direction: column; }
.lecture-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  color: var(--text-muted);
}
.lecture-item:last-child { border-bottom: none; }
.lecture-num {
  width: 20px;
  font-size: .72rem;
  color: var(--text-light);
  flex-shrink: 0;
  text-align: right;
}
.lecture-dot {
  width: 6px; height: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px 0 0;
  font-family: var(--font-sans);
  transition: opacity var(--transition);
}
.expand-toggle:hover { opacity: .75; }

/* ── WHO IS IT FOR ── */
#who { background: var(--surface); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.who-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  transition: box-shadow var(--transition);
}
.who-card:hover { box-shadow: var(--shadow-md); }

.who-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.who-card h3 { font-size: .95rem; margin-bottom: 6px; }
.who-card p { font-size: .84rem; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--bg); }

.testimonials-slider-wrap { position: relative; overflow: hidden; }

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }

.stars {
  color: #F5A623;
  font-size: .9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-quote {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-note {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ── FAQ ── */
#faq { background: var(--surface); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Reuse accordion styles for FAQ */
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition);
}
.faq-header:hover { background: var(--accent-light); }
.faq-item.open .faq-header { background: var(--accent-light); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-light);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-body {
  display: none;
  padding: 0 22px 20px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item.open .faq-body { display: block; }

/* ── FINAL CTA ── */
#cta-final {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C1F0E 50%, #3A2410 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(193,127,62,.15) 0%, transparent 65%);
  pointer-events: none;
}

.cta-final-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

#cta-final .section-label { color: var(--accent); }

#cta-final h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

#cta-final p {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-final-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-white {
  background: #fff;
  color: var(--accent-dark);
}
.btn-white:hover { background: var(--accent-light); }

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
.footer-brand span { color: var(--accent); }
.footer-note {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item { border-right: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  section { padding: 64px 0; }

  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }

  .hero-grid { gap: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-trust { gap: 10px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .outcomes-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: 1fr; }

  .testimonials-track { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .cta-final-actions { flex-direction: column; }
  .cta-final-actions .btn { justify-content: center; }
}

@media (max-width: 400px) {
  .highlights-grid { grid-template-columns: 1fr; }
}
