/* =============================================================================
   HERO.CSS — Full-width Homepage Hero Section
   Ilahia Polytechnic College
============================================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

/* Gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 71, 161, 0.92) 0%,
    rgba(21, 101, 192, 0.78) 50%,
    rgba(25, 118, 210, 0.70) 100%
  );
  z-index: var(--z-raised);
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: var(--z-base);
}

/* SVG pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
  z-index: calc(var(--z-raised) + 1);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: calc(var(--z-raised) + 2);
  color: var(--color-white);
  max-width: 760px;
  padding: var(--space-20) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--color-accent-light);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  animation: fadeDown 0.6s ease 0.2s both;
}

.hero__eyebrow svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent-light);
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  animation: fadeUp 0.7s ease 0.35s both;
}

.hero__title span {
  color: var(--color-accent-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-8);
  max-width: 580px;
  animation: fadeUp 0.7s ease 0.5s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.65s both;
}

/* Accreditation badges row */
.hero__badges {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.8s both;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.9);
}

.hero__badge svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent-light);
}

/* Decorative floating card */
.hero__side {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--z-raised) + 2);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-right: var(--space-8);
  animation: fadeLeft 0.8s ease 0.9s both;
}

.hero__stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  min-width: 140px;
}

.hero__stat-card .number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1;
}

.hero__stat-card .label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-1);
  font-weight: var(--fw-medium);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-raised) + 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-fast);
  animation: fadeIn 1s ease 1.2s both;
}

.hero__scroll:hover { color: var(--color-white); }

.hero__scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  border-radius: var(--radius-full);
  animation: float 2s ease-in-out infinite;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

/* Mobile base: full-width, centered, no side panel */
.hero {
  min-height: 88svh; /* svh = small viewport height accounts for mobile browser chrome */
  min-height: 88vh;  /* fallback */
}

.hero__content {
  text-align: center;
  padding: var(--space-8) 0;
  max-width: 100%;
}

.hero__subtitle  { margin-left: auto; margin-right: auto; }
.hero__actions   { justify-content: center; }
.hero__badges    { justify-content: center; }
.hero__side      { display: none; }
.hero__scroll    { display: none; }

.hero__actions .btn {
  min-width: 140px;
}

/* Tablet (≥768px): more breathing room */
@media (min-width: 768px) {
  .hero {
    min-height: calc(100vh - var(--header-height));
  }

  .hero__content {
    text-align: left;
    padding: var(--space-16) 0;
    max-width: 680px;
  }

  .hero__subtitle  { margin-left: 0; margin-right: 0; }
  .hero__actions   { justify-content: flex-start; }
  .hero__badges    { justify-content: flex-start; }
  .hero__scroll    { display: flex; }
}

/* Desktop (≥1024px): show floating stat cards */
@media (min-width: 1024px) {
  .hero__side    { display: flex; }
  .hero__content { max-width: 760px; }
}
