/* =====================================================================
   OnlineTyari Pro — home.css
   Hero, popular exams, featured courses, features grid, CTA band.
   Enqueued only on the front page.
   ===================================================================== */

/* ---- Section rhythm ---- */
.ot-section { padding-block: var(--ot-space-16); }
.ot-section-heading { max-width: 640px; margin-bottom: var(--ot-space-10); }
.ot-section-heading p { color: var(--ot-muted); }
.ot-section-heading-row {
  display: flex;
  flex-direction: column;
  gap: var(--ot-space-4);
  margin-bottom: var(--ot-space-8);
}
@media (min-width: 768px) {
  .ot-section-heading-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .ot-section-heading-row .ot-section-heading { margin-bottom: 0; }
}

/* ---- Hero ---- */
.ot-hero {
  padding-block: var(--ot-space-12) var(--ot-space-16);
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--ot-primary-rgb), 0.08), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(var(--ot-secondary-rgb), 0.08), transparent 40%),
    var(--ot-bg);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .ot-hero { padding-block: var(--ot-space-20) var(--ot-space-24); }
}

.ot-hero-inner {
  display: grid;
  gap: var(--ot-space-12);
  align-items: center;
}
@media (min-width: 1024px) {
  .ot-hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--ot-space-16); }
}

.ot-hero-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--ot-radius-full);
  background: rgba(var(--ot-primary-rgb), 0.1);
  color: var(--ot-primary);
  font-size: var(--ot-fs-xs);
  font-weight: var(--ot-fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--ot-space-5);
}

.ot-hero-title {
  font-size: var(--ot-fs-4xl);
  line-height: 1.08;
  margin-bottom: var(--ot-space-5);
}
@media (min-width: 768px) {
  .ot-hero-title { font-size: 3.4rem; }
}
.ot-hero-title-line { display: block; }
.ot-hero-title-line.is-accent {
  background: var(--ot-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ot-hero-description {
  font-size: var(--ot-fs-lg);
  color: var(--ot-muted);
  max-width: 46ch;
  margin-bottom: var(--ot-space-6);
}

.ot-hero-search { max-width: 480px; margin-bottom: var(--ot-space-6); }
.ot-hero-search .ot-search-form-input { padding-left: 2.75rem; }

.ot-hero-actions { display: flex; flex-wrap: wrap; gap: var(--ot-space-3); margin-bottom: var(--ot-space-10); }

.ot-hero-trust { display: flex; gap: var(--ot-space-8); flex-wrap: wrap; }
.ot-hero-trust-item { display: flex; flex-direction: column; }
.ot-hero-trust-item strong { font-family: var(--ot-font-heading); font-size: var(--ot-fs-2xl); color: var(--ot-dark); font-weight: var(--ot-fw-extrabold); }
.ot-hero-trust-item span { font-size: var(--ot-fs-xs); color: var(--ot-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Hero signature visual: floating result card ---- */
.ot-hero-visual { position: relative; display: flex; justify-content: center; }
.ot-result-card {
  background: var(--ot-white);
  border-radius: var(--ot-radius-xl);
  box-shadow: var(--ot-shadow-lg);
  padding: var(--ot-space-6);
  width: min(320px, 100%);
  animation: ot-float 6s ease-in-out infinite;
}
.ot-result-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--ot-space-5); }
.ot-result-card-tag {
  font-size: var(--ot-fs-xs);
  font-weight: var(--ot-fw-semibold);
  color: var(--ot-primary);
  background: rgba(var(--ot-primary-rgb), 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--ot-radius-full);
}
.ot-result-card-exam { font-size: var(--ot-fs-xs); color: var(--ot-muted); }

.ot-result-card-ring { position: relative; display: flex; justify-content: center; margin-bottom: var(--ot-space-5); }
.ot-ring-progress { transform: rotate(-90deg); transform-origin: 60px 60px; }
.ot-result-card-score {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.ot-result-card-score strong { display: block; font-family: var(--ot-font-heading); font-size: var(--ot-fs-2xl); color: var(--ot-dark); }
.ot-result-card-score span { font-size: var(--ot-fs-xs); color: var(--ot-muted); }

.ot-result-card-stats { display: flex; justify-content: space-between; border-top: 1px solid var(--ot-border); padding-top: var(--ot-space-4); }
.ot-result-card-stats div { text-align: center; }
.ot-result-card-stats span { display: block; font-size: var(--ot-fs-xs); color: var(--ot-muted); margin-bottom: 2px; }
.ot-result-card-stats strong { font-size: var(--ot-fs-sm); color: var(--ot-dark); }

.ot-hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--ot-space-2);
  background: var(--ot-white);
  box-shadow: var(--ot-shadow-md);
  border-radius: var(--ot-radius-full);
  padding: 0.5rem 0.9rem;
  font-size: var(--ot-fs-xs);
  font-weight: var(--ot-fw-medium);
  color: var(--ot-text);
  animation: ot-float 7s ease-in-out infinite;
}
.ot-hero-floating-badge-1 { top: 6%; left: -6%; display: none; }
.ot-hero-floating-badge-2 { bottom: 8%; right: -4%; display: none; animation-delay: 1.2s; }
@media (min-width: 640px) {
  .ot-hero-floating-badge-1, .ot-hero-floating-badge-2 { display: flex; }
}
.ot-floating-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ot-success);
  box-shadow: 0 0 0 4px var(--ot-success-bg);
}

@keyframes ot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .ot-result-card, .ot-hero-floating-badge { animation: none; }
}

/* ---- Popular Exams ---- */
.ot-exam-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ot-space-4);
}
@media (min-width: 640px) { .ot-exam-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .ot-exam-grid { grid-template-columns: repeat(4, 1fr); } }
.ot-exam-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--ot-space-2);
  padding: var(--ot-space-6) var(--ot-space-4);
  color: var(--ot-text);
}
.ot-exam-tile-icon { font-size: 2rem; }
.ot-exam-tile-name { font-weight: var(--ot-fw-semibold); color: var(--ot-dark); }
.ot-exam-tile-count { font-size: var(--ot-fs-xs); color: var(--ot-muted); }

/* ---- Course grid: shared card/grid styles now live in courses.css
   (loaded alongside this file on the homepage — see inc/assets.php) ---- */
.ot-why-section { background: var(--ot-white); }
.ot-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ot-space-6);
}
@media (min-width: 640px) { .ot-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ot-features-grid { grid-template-columns: repeat(4, 1fr); } }
.ot-feature-card { padding: var(--ot-space-6); }
.ot-feature-icon { font-size: 1.75rem; display: inline-block; margin-bottom: var(--ot-space-3); }
.ot-feature-card h3 { font-size: var(--ot-fs-lg); margin-bottom: var(--ot-space-2); }
.ot-feature-card p { color: var(--ot-muted); font-size: var(--ot-fs-sm); margin: 0; }

/* ---- CTA band ---- */
.ot-cta-band { padding-block: var(--ot-space-16); }
.ot-cta-band-inner {
  background: var(--ot-gradient);
  border-radius: var(--ot-radius-xl);
  padding: var(--ot-space-10);
  display: flex;
  flex-direction: column;
  gap: var(--ot-space-6);
  align-items: flex-start;
  color: var(--ot-white);
}
@media (min-width: 768px) {
  .ot-cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--ot-space-12); }
}
.ot-cta-band-inner h2 { color: var(--ot-white); margin-bottom: var(--ot-space-2); }
.ot-cta-band-inner p { color: rgba(255,255,255,0.85); margin: 0; }
.ot-cta-band-btn { background: var(--ot-white); color: var(--ot-primary); flex-shrink: 0; }
.ot-cta-band-btn:hover { background: var(--ot-bg); color: var(--ot-primary-hover); }
