/* ============================================================
   HUVA Academy — homepage (index.html) section styles
   Depends on tokens + hm- utilities from site.css.
   ============================================================ */

/* ============ HERO ============ */
.hm-hero { background: linear-gradient(180deg, #ffffff 0%, #f4f4f1 100%); position: relative; overflow: hidden; padding: clamp(120px, 13vw, 180px) 0 clamp(72px, 8vw, 110px); }
.hm-hero-inner { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 30px; align-items: center; text-align: center; }
.hm-hero .hm-eyebrow { color: var(--huva-blue); letter-spacing: 0.24em; }
.hm-hero h1 { font-family: var(--font-ui); font-weight: 800; font-size: clamp(40px, 7vw, 92px); letter-spacing: -0.04em; line-height: 0.98; margin: 0; color: var(--huva-black); text-wrap: balance; }
.hm-hero-highlight { background: var(--huva-yellow); border-radius: 12px; padding: 16px 24px; max-width: 620px; }
.hm-hero-highlight p { font-family: var(--font-ui); font-weight: 700; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: 0; line-height: 1.35; text-transform: uppercase; color: var(--huva-black); margin: 0; }
.hm-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ============ RESULTS / PROOF BAR ============ */
/* Matches the course-page stats block design (.stats-block) on every page. */
.hm-results { background: #000; padding: 22px 16px; display: flex; justify-content: center; }
.hm-results-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; max-width: 1440px; width: 100%; margin: 0 auto; }
.hm-stat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 10px 28px; width: 218px; }
.hm-stat + .hm-stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 84px; background: rgba(255, 255, 255, 0.25); }
.hm-stat-num { font-family: 'Noto Sans Armenian', sans-serif; font-stretch: expanded; font-weight: 700; font-size: 64px; letter-spacing: -4px; line-height: 1.1; color: #fff; }
.hm-stat-label { font-family: 'Noto Sans Armenian', sans-serif; font-weight: 400; font-size: 20px; line-height: 1.35; color: #fff; }

/* ============ COURSES ============ */
.hm-courses { background: var(--section-grey); padding: clamp(64px, 9vw, 100px) 0; }
.hm-courses .hm-container { display: flex; flex-direction: column; gap: 48px; }
.hm-courses .hm-eyebrow { color: var(--huva-blue); }
.hm-card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.hm-course-card { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 18px; padding: 32px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 20px; box-shadow: 0 12px 32px rgba(138, 129, 141, 0.14); }
.hm-course-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-course-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; line-height: 1; text-transform: uppercase; margin: 0; }
.hm-course-card p { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 0; flex: 1; }
/* Inline "Notify me" waitlist on upcoming-course cards */
.hm-notify { display: flex; flex-direction: column; gap: 8px; }
.hm-notify-form { display: flex; gap: 8px; }
.hm-notify-form input { flex: 1 1 auto; min-width: 0; font-family: var(--font-body); font-size: 14px; color: var(--huva-black); background: var(--huva-white); border: 1px solid var(--huva-grey); border-radius: 999px; padding: 11px 18px; outline: none; }
.hm-notify-form input:focus { border-color: var(--huva-blue); }
.hm-notify-form button { flex: 0 0 auto; padding: 0 18px; }
.hm-notify-done { font-family: var(--font-ui); font-weight: 700; font-size: 13px; line-height: 1.4; color: var(--huva-blue); }

/* ============ COURSE-FINDER TEASER (yellow) ============ */
.hm-quiz { background: var(--huva-yellow); position: relative; overflow: hidden; padding: clamp(64px, 9vw, 100px) 0; }
.hm-quiz-pattern { position: absolute; inset: 0; background-image: url('/resources/brand/huva-icon-black.svg'); background-size: 130px; background-repeat: repeat; opacity: 0.045; pointer-events: none; }
.hm-quiz-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.hm-quiz .hm-eyebrow { color: var(--huva-black); }
.hm-quiz .hm-section-title { color: var(--huva-black); }
.hm-quiz p { font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: rgba(0, 0, 0, 0.72); margin: 0; max-width: 540px; }
.hm-quiz-note { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0, 0, 0, 0.55); }

/* ============ SERVICES ============ */
.hm-services { background: var(--section-grey); padding: clamp(56px, 8vw, 88px) 0; }
.hm-services .hm-container { display: flex; flex-direction: column; gap: 36px; }
.hm-services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hm-services .hm-eyebrow { color: var(--text-muted); }
.hm-services-title { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.hm-services-title h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.04em; line-height: 1.05; text-transform: uppercase; margin: 0; }
.hm-services-title p { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.hm-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-service-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 20px; box-shadow: 0 10px 28px rgba(138, 129, 141, 0.12); }
.hm-service-card .ico { color: var(--huva-blue); display: inline-flex; }
.hm-service-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1.05; margin: 0; }
.hm-service-card p { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* ============ INSTRUCTOR ============ */
.hm-instructor { background: var(--huva-black); padding: clamp(64px, 9vw, 100px) 0; }
.hm-instructor .hm-container { display: flex; flex-direction: column; gap: 44px; }
.hm-instructor .hm-eyebrow { color: var(--huva-yellow); }
.hm-instructor .hm-section-title { color: var(--huva-white); }
.hm-instructor-card { display: flex; gap: clamp(28px, 4vw, 56px); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--white-a10); border-radius: 24px; padding: clamp(24px, 3vw, 40px); align-items: center; flex-wrap: wrap; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.hm-instructor-photo { flex: 0 0 auto; width: clamp(240px, 32vw, 380px); max-width: 100%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: var(--neutral-100); }
.hm-instructor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-instructor-body { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.hm-instructor-body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; line-height: 1.02; margin: 0; color: var(--huva-white); }
.hm-instructor-role { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--huva-yellow); }
.hm-instructor-body p { font-family: var(--font-body); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, 0.72); margin: 0; }
.hm-socials { display: flex; gap: 12px; margin-top: 4px; }
.hm-social { width: 48px; height: 48px; border-radius: 50%; background: var(--huva-white); display: inline-flex; align-items: center; justify-content: center; color: var(--huva-black); transition: transform .15s var(--ease-out); }
.hm-social:hover { transform: translateY(-2px); }

/* ============ REVIEWS ============ */
.hm-reviews { background: var(--section-grey); padding: clamp(64px, 9vw, 100px) 0; }
.hm-reviews .hm-container { display: flex; flex-direction: column; gap: 48px; }
.hm-reviews .hm-eyebrow { color: var(--huva-blue); }
.hm-reviews .hm-section-title { color: var(--huva-black); }
.hm-reviews-track { overflow-x: auto; overflow-y: hidden; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; scrollbar-width: none; -ms-overflow-style: none; }
.hm-reviews-track::-webkit-scrollbar { display: none; height: 0; width: 0; }
.hm-review-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; padding: 32px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 20px; box-shadow: 0 12px 32px rgba(138, 129, 141, 0.14); }
.hm-review-head { display: flex; align-items: center; gap: 14px; }
.hm-avatar { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--huva-white); background: var(--huva-blue); box-shadow: 0 0 0 2px var(--huva-yellow); overflow: hidden; }
.hm-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-course-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: var(--neutral-100); }
.hm-course-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-review-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; line-height: 1.1; color: var(--huva-black); }
.hm-review-role { font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--huva-blue); }
.hm-review-card p { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--neutral-600); margin: 0; flex: 1; }
.hm-reviews-controls { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 4px; }
.hm-rev-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--huva-black); background: transparent; color: var(--huva-black); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s var(--ease-out); }
.hm-rev-arrow:hover { background: var(--huva-black); color: var(--huva-white); }
.hm-rev-arrow:disabled { opacity: 0.3; cursor: default; }
.hm-rev-arrow:disabled:hover { background: transparent; color: var(--huva-black); }
.hm-rev-dots { display: flex; align-items: center; gap: 9px; }
.hm-rev-dot { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: rgba(0, 0, 0, 0.22); transition: all .25s var(--ease-out); }
.hm-rev-dot.active { width: 26px; background: var(--huva-black); }

/* ============ MARQUEE ============ */
.hm-marquee { background: var(--huva-yellow); color: var(--huva-black); overflow: hidden; padding: 16px 0; white-space: nowrap; }
.hm-marquee-track { display: inline-flex; gap: 0; animation: hmMarquee 28s linear infinite; }
.hm-marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; text-transform: uppercase; padding: 0 24px; display: inline-block; }
@keyframes hmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ FINAL CTA / NEWSLETTER ============ */
.hm-cta { background: var(--huva-blue); position: relative; overflow: hidden; padding: clamp(64px, 9vw, 116px) 0; }
.hm-cta-pattern { position: absolute; inset: 0; background-image: url('/resources/brand/huva-icon-white.svg'); background-size: 140px; background-repeat: repeat; opacity: 0.05; pointer-events: none; }
.hm-cta-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.hm-cta .hm-eyebrow { color: var(--huva-yellow); letter-spacing: 0.24em; }
.hm-cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1; text-transform: uppercase; margin: 0; color: var(--huva-white); max-width: 16ch; text-wrap: balance; }
.hm-cta p { font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 44ch; }
.hm-cta-form { display: flex; gap: 10px; width: 100%; max-width: 520px; flex-wrap: wrap; margin-top: 8px; }
.hm-cta-form input { flex: 1 1 240px; min-width: 0; font-family: var(--font-body); font-size: 16px; color: var(--huva-black); background: var(--huva-white); border: none; border-radius: 999px; padding: 17px 26px; outline: none; }
.hm-cta-form button { flex: 0 0 auto; font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--huva-blue); background: var(--huva-yellow); border: none; border-radius: 999px; padding: 0 30px; cursor: pointer; transition: all .15s var(--ease-out); }
.hm-cta-form button:hover { background: var(--huva-white); transform: translateY(-2px); }
.hm-cta-success { display: inline-flex; align-items: center; gap: 10px; background: var(--huva-yellow); color: var(--huva-black); border-radius: 999px; padding: 16px 28px; font-family: var(--font-ui); font-weight: 700; font-size: 15px; margin-top: 8px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hm-course-card { flex-basis: 100%; max-width: 100%; }
  .hm-services-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-reviews-track { grid-auto-columns: calc((100% - 22px) / 2); }
  /* Stats stack vertically with a horizontal divider, like the course page. */
  .hm-results-row { flex-direction: column; }
  .hm-stat { width: 240px; }
  .hm-stat + .hm-stat::before { width: 140px; height: 1px; left: 50%; top: 0; transform: translateX(-50%); }
  .hm-stat-num { font-size: 52px; }
}
@media (max-width: 600px) {
  .hm-hero-inner, .hm-quiz-inner, .hm-cta-inner, .hm-results-row { padding-left: 22px; padding-right: 22px; }
  .hm-services-grid { grid-template-columns: 1fr; }
  .hm-reviews-track { grid-auto-columns: 100%; }
  /* Newsletter form: stack input + button, full-width button (no tiny pill). */
  .hm-cta-form { flex-direction: column; flex-wrap: nowrap; }
  .hm-cta-form input { width: 100%; flex: 0 0 auto; }
  .hm-cta-form button { width: 100%; padding: 17px 30px; }
}
