@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --ink: #111010;
  --ink2: #3a3836;
  --ink3: #7a7572;
  --bg: #faf9f7;
  --bg2: #f2f0ec;
  --bg3: #e8e5de;
  --line: rgba(17,16,16,0.1);
  --line2: rgba(17,16,16,0.06);
  --gold: #b89a6a;
  --gold2: #9a7f52;
  --gold-light: rgba(184,154,106,0.12);
  --r: 2px;
  --r2: 6px;
  --sans: 'DM Sans', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line2);
}

.navInner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.7; }

.navLinks {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navLinks a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  transition: color 0.2s;
  position: relative;
}
.navLinks a:hover, .navLinks a.active { color: var(--ink); }
.navLinks a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

.navLang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.navLang a {
  padding: 4px 8px;
  border-radius: var(--r);
  color: var(--ink3);
  transition: all 0.15s;
}
.navLang a.active, .navLang a:hover {
  color: var(--ink);
  background: var(--bg3);
}

/* ─── LAYOUT ─── */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  flex: 1;
}

.pageHead {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 64px;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

.lead {
  font-size: 1.0625rem;
  color: var(--ink2);
  line-height: 1.75;
  max-width: 560px;
}

.muted { color: var(--ink3); }
.tiny { font-size: 0.8125rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: var(--ink2);
  border-color: var(--ink2);
}
.btn.gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn.gold:hover {
  background: var(--gold2);
  border-color: var(--gold2);
  color: #fff;
}

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  padding: 100px 0 80px;
  align-items: start;
}

.heroLeft { padding-top: 8px; }

.heroTitle {
  margin-bottom: 28px;
}

.heroTitle em {
  font-style: italic;
  color: var(--gold);
}

.heroCta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.sessionsCard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.sessionsCardHead {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sessionsCardHead h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.sessionList { list-style: none; }

.sessionItem {
  padding: 18px 28px;
  border-bottom: 1px solid var(--line2);
  transition: background 0.15s;
}
.sessionItem:last-child { border-bottom: none; }
.sessionItem:hover { background: var(--bg2); }

.sessionItemTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.sessionItemTop b { font-size: 0.9rem; font-weight: 500; flex: 1; }
.sessionDate {
  font-size: 0.75rem;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.sessionMeta { font-size: 0.78rem; color: var(--ink3); margin-bottom: 8px; }
.sessionLink {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.sessionLink:hover { color: var(--gold2); }

/* ─── FEATURE GRID ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin: 80px 0;
}

.feature {
  padding: 44px 40px 44px 0;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; padding-right: 0; padding-left: 40px; }
.feature:first-child { padding-left: 0; }
.feature:nth-child(2) { padding-left: 40px; }

.featureNum {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--bg3);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature p {
  font-size: 0.9125rem;
  color: var(--ink2);
  line-height: 1.7;
}

/* ─── COURSES SECTION ─── */
.section { margin: 80px 0; }

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line2);
}

.sectionHead h2 { margin: 0; }

.textLink {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.textLink:hover { color: var(--gold2); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
  color: var(--ink);
}
.card:hover { background: var(--bg2); color: var(--ink); }

.cardTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  align-self: flex-start;
}

.cardTag.online { border-color: var(--gold); color: var(--gold); }

.cardTitle {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
}

.cardDesc {
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.65;
}

.cardFoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line2);
  font-size: 0.875rem;
}

.price {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

/* ─── COURSE DETAIL ─── */
.detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  padding: 0 0 80px;
  align-items: start;
}

.detailMeta {
  display: flex;
  gap: 0;
  margin: 36px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metaBox {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metaBox .label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 6px;
  display: block;
}

.metaBox .value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  display: block;
}

.stickyBox {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r2);
  overflow: hidden;
}

.stickyBoxHead {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--line2);
}

.stickyBoxBody { padding: 24px 28px; }
.stickyBoxFoot {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sessionRow {
  padding: 14px 0;
  border-bottom: 1px solid var(--line2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sessionRow:last-child { border-bottom: none; }

/* ─── PROSE ─── */
.prose {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.8;
}
.prose h3 { margin: 36px 0 12px; font-size: 1.3rem; }
.prose h4 { margin: 28px 0 10px; font-size: 1.1rem; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 6px; color: var(--ink2); }
.prose p { color: var(--ink2); }

/* ─── LOGIN ─── */
.centeredPage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.loginBox {
  width: 100%;
  max-width: 440px;
}

.loginBox h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.formGroup {
  margin-bottom: 16px;
}

.formGroup label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
}

.formGroup input,
.formGroup textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}
.formGroup input:focus,
.formGroup textarea:focus {
  border-color: var(--gold);
}
.formGroup textarea { resize: vertical; min-height: 120px; }

/* ─── ALERTS ─── */
.note {
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: 0.9rem;
  line-height: 1.5;
}
.note.warn {
  background: #fdf8f0;
  border: 1px solid #e8cfa0;
  color: #7a5c28;
}
.note.success {
  background: #f0f7f4;
  border: 1px solid #a0c8b8;
  color: #2a6650;
}
.note.info {
  background: var(--gold-light);
  border: 1px solid rgba(184,154,106,0.3);
  color: var(--gold2);
}

/* ─── MEMBER AREA ─── */
.memberLayout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 68px);
  border-top: 1px solid var(--line2);
}

.memberSidebar {
  border-right: 1px solid var(--line2);
  padding: 40px 32px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

.sidebarTitle {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 20px;
  display: block;
}

.lessonNav { list-style: none; }

.lessonNavItem a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 0.875rem;
  color: var(--ink2);
  transition: all 0.15s;
  line-height: 1.35;
}

.lessonNavItem a:hover {
  background: var(--bg2);
  color: var(--ink);
}

.lessonNavItem a.active {
  background: var(--bg3);
  color: var(--ink);
}

.lessonDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.lessonDot.done { background: var(--gold); }
.lessonDot.active { background: var(--ink); }

.memberContent {
  padding: 48px 56px;
  max-width: 900px;
}

/* ─── VIDEO ─── */
.videoWrap {
  width: 100%;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  margin-bottom: 40px;
}
.videoWrap video {
  width: 100%;
  display: block;
}

/* ─── Q&A ─── */
.qaSection { margin-top: 48px; }

.qaTitle {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line2);
}

.qaForm {
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.qaForm textarea {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  min-height: 80px;
}
.qaForm textarea:focus { border-color: var(--gold); }

.qaList { list-style: none; }

.qaItem {
  padding: 20px 0;
  border-bottom: 1px solid var(--line2);
}
.qaItem:last-child { border-bottom: none; }

.qaQ {
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.qaA {
  font-size: 0.9rem;
  color: var(--ink2);
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  margin-top: 10px;
}

.qaDate {
  font-size: 0.75rem;
  color: var(--ink3);
  margin-top: 6px;
}

/* ─── PROGRESS ─── */
.progressBar {
  height: 3px;
  background: var(--bg3);
  border-radius: 100px;
  margin: 6px 0 16px;
  overflow: hidden;
}
.progressFill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* ─── FOOTER ─── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line2);
  background: var(--bg);
}

.footInner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 48px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footBrand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footDesc {
  font-size: 0.875rem;
  color: var(--ink3);
  line-height: 1.7;
  max-width: 300px;
}

.footColTitle {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 18px;
  display: block;
}

.footCol ul { list-style: none; }
.footCol li { margin-bottom: 10px; }
.footCol a {
  font-size: 0.875rem;
  color: var(--ink2);
  transition: color 0.2s;
}
.footCol a:hover { color: var(--gold); }

.footBottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 48px;
  border-top: 1px solid var(--line2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink3);
}

/* ─── DIVIDERS / DECORATIVE ─── */
.goldRule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .heroRight { order: -1; }
  .sessionsCard { position: static; }
  .detail { grid-template-columns: 1fr; gap: 48px; }
  .detailRight { order: -1; }
  .stickyBox { position: static; }
  .footInner { grid-template-columns: 1fr 1fr; }
  .memberLayout { grid-template-columns: 220px 1fr; }
  .memberContent { padding: 40px 40px; }
}

@media (max-width: 768px) {
  .navInner { padding: 0 24px; }
  .wrap { padding: 0 24px; }
  .navLinks { gap: 20px; }
  .navLinks li.hideOnMobile { display: none; }
  .hero { padding: 56px 0 48px; }
  .features { grid-template-columns: 1fr; border-top: none; }
  .feature { border-right: none; border-top: 1px solid var(--line); padding: 36px 0; }
  .feature:first-child { border-top: 1px solid var(--line); }
  .feature:nth-child(2) { padding-left: 0; }
  .feature:last-child { padding-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .footInner { grid-template-columns: 1fr; gap: 32px; }
  .footBottom { flex-direction: column; gap: 8px; text-align: center; }
  .memberLayout { grid-template-columns: 1fr; }
  .memberSidebar { display: none; }
  .memberContent { padding: 32px 24px; }
  h1 { font-size: 2.6rem; }
  .heroCta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .sectionHead { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .detailMeta { flex-direction: column; }
  .metaBox { border-right: none; }
}

.navLogoutBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 0;
  transition: color 0.2s;
}
.navLogoutBtn:hover { color: var(--ink); }
.langSep { color: var(--line); font-size: 0.7rem; }

.logoImg {
  height: 36px;
  width: auto;
  display: block;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobileMenu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
}
.mobileMenu.open { display: flex; }

.mobileMenu a,
.mobileMenu button {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line2);
  font-size: 1rem;
  color: var(--ink2);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  font-family: var(--sans);
  cursor: pointer;
  transition: color 0.2s;
  width: 100%;
}
.mobileMenu a:last-child,
.mobileMenu button:last-child { border-bottom: none; }
.mobileMenu a:hover,
.mobileMenu button:hover { color: var(--gold); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navLinks { display: none; }
  .navLang { display: none; }
}

/* ─── COOKIE BANNER ─── */
.cookieBanner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r2);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  flex-wrap: wrap;
}
.cookieBannerText {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(250,249,247,0.8);
  flex: 1;
  min-width: 200px;
  margin: 0;
}
.cookieBannerBtns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookieBanner .btn {
  color: var(--bg);
  border-color: rgba(255,255,255,0.2);
}
.cookieBanner .btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--bg);
}
.cookieBanner .btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.cookieBanner .btn.primary:hover {
  background: var(--gold2);
  border-color: var(--gold2);
}

@media (max-width: 480px) {
  .cookieBanner {
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: var(--r6) var(--r6) 0 0;
    border-radius: 12px 12px 0 0;
  }
}
