/* ═══════════════════════════════════════════════════════════════════
   SpeakLab — sections.css
   Homepage section layouts ONLY
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--c-primary);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
      rgba(14, 11, 7, 0.92) 0%,
      rgba(23, 18, 16, 0.70) 55%,
      rgba(255, 140, 0, 0.08) 100%);
}

/* Orange decorative ring in place of a background image */
.hero__circle {
  position: absolute;
  top: 50%;
  right: -160px;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  border: 2px solid var(--c-secondary);
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

.hero__circle::after {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid var(--c-secondary);
  border-radius: 50%;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-16);
}

.hero__headline {
  color: var(--c-text);
  max-width: 900px;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.hero__headline em {
  font-style: normal;
  color: var(--c-secondary);
}

.hero__subtitle {
  max-width: 580px;
  margin-bottom: var(--sp-10);
  color: var(--c-off);
}

.hero__cta-group {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}

/* Stats bar */
.hero__stats {
  position: relative;
  z-index: 2;
  background: rgba(23, 18, 16, 0.7);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 700px) {
  .hero__content { padding-top: calc(var(--nav-h) + var(--sp-10)); }

  .hero__headline { max-width: 100%; }

  .hero__circle {
    width: 360px;
    height: 360px;
    right: -160px;
    opacity: 0.12;
  }
}

@media (max-width: 560px) {
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--c-border);
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: var(--sp-16);
  }
}

/* ── Sector / Languages strip ───────────────────────────────────── */
.sector-strip {
  position: relative;
  z-index: 6;
  background: var(--c-secondary);
  overflow: hidden;
  padding-block: var(--sp-3);
}

.sector-strip__track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: ticker 32s linear infinite;
}

.sector-strip__track:hover { animation-play-state: paused; }

.sector-strip__item {
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.sector-strip__item::after {
  content: '·';
  color: rgba(14, 11, 7, 0.5);
}

/* ── About section ──────────────────────────────────────────────── */
.about { background: var(--c-surface); }

/* ── Shared split-section utilities ─────────────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: stretch;
}

.split-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
}

.split-heading {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}

@media (max-width: 1100px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .split-image-wrap--decorative {
    min-height: 280px;
  }

  .split-content { padding-top: 0; }
}

/* ── About ── */
.about__principles {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

/* ── Courses section ────────────────────────────────────────────── */
.courses { background: var(--c-surface-2); }

.courses__header {
  max-width: 680px;
  margin-bottom: var(--sp-12);
}

.courses__header .section-heading {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
}

/* ── Shared 3-column card grid ──────────────────────────────────── */
.section-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 1024px) {
  .section-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section-grid--3col { grid-template-columns: 1fr; }
}

/* ── Contact section ────────────────────────────────────────────── */
.contact {
  position: relative;
  background: var(--c-primary);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.contact__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg,
      rgba(14, 11, 7, 0.98) 0%,
      rgba(23, 18, 16, 0.92) 55%,
      rgba(255, 140, 0, 0.10) 100%);
}

/* Decorative ring (mirrors the hero) */
.contact__circle {
  position: absolute;
  top: 50%;
  left: -180px;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  border: 2px solid var(--c-secondary);
  border-radius: 50%;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

.contact__form-wrap {
  background: rgba(32, 28, 23, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--sp-12) var(--sp-10);
}

.contact__heading {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
  color: var(--c-text);
}

.contact .section-body--light {
  color: var(--c-off);
  margin-bottom: var(--sp-8);
}

@media (max-width: 560px) {
  .contact__form-wrap {
    padding: var(--sp-8) var(--sp-6);
  }
}
