/* ===================================
   COMPONENT: Hero Section
   BEM Block: hero
   Purpose: Above-the-fold hero section with CTA
   Dependencies: main.css for CSS variables
   =================================== */

/* Adjust hero padding when announcement is visible */
body:not(.announcement-hidden) .hero {
  padding-top: var(--space-35) !important;
}

@media (max-width: 768px) {
  body:not(.announcement-hidden) .hero {
    padding-top: var(--space-30) !important;
  }
}

/* ===================================
   HERO SECTION - CONVERSION FOCUSED
   =================================== */

.hero {
  padding: var(--space-20) 0 var(--space-20) 0;
  background: linear-gradient(135deg, rgba(169, 204, 233, 0.25) 0%, rgba(252, 175, 42, 0.25) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(28, 47, 64, 0.8) 0%, rgba(52, 124, 191, 0.3) 100%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(-10px) rotate(240deg); }
}

.hero__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-self: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-orange);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--space-4);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  animation: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__badge-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.hero__badge:hover {
  transform: none;
  box-shadow: none;
  color: var(--color-white) !important;
}

.hero__badge:focus,
.hero__badge:active,
.hero__badge:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  color: var(--color-white) !important;
}

[data-theme="dark"] .hero__badge {
  color: var(--color-white) !important;
}

[data-theme="dark"] .hero__badge:hover {
  color: var(--color-white) !important;
}

[data-theme="dark"] .hero__badge:focus,
[data-theme="dark"] .hero__badge:active,
[data-theme="dark"] .hero__badge:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  color: var(--color-white) !important;
}

.hero__badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(244, 243, 243, 0.3), transparent);
  transform: rotate(45deg);
  animation: none;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 20px rgba(252, 175, 42, 0.3); }
  50% { box-shadow: var(--shadow-md), 0 0 30px rgba(252, 175, 42, 0.6); }
}

@keyframes badgeShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.hero__title {
  font-size: clamp(1.5rem, 6.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--color-black);
  letter-spacing: -0.04em;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

[data-theme="dark"] .hero__title {
}

.hero__title-accent {
  color: var(--color-orange);
}

.hero__description {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-black);
  margin-bottom: var(--space-8);
  font-weight: 500;
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

[data-theme="dark"] .hero__description {
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  align-items: center;
  animation: fadeInUp 1.2s ease-out 0.9s both;
}

.hero__actions .btn,
.hero__btn {
  font-size: var(--text-lg);
  font-weight: 700;
  padding: var(--space-5) var(--space-10);
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: none;
  transition: width var(--transition-normal);
  width: 100%;
  max-width: 300px;
  min-height: 56px;
  min-width: 56px;
}

.hero__actions .btn:hover,
.hero__btn:hover {
  box-shadow: none;
}

.hero__trust {
  margin-top: var(--space-12);
}

.hero__trust-text {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[data-theme="dark"] .hero__trust-text {
  color: var(--color-gray-600);
}

.hero__logos {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero__logo {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gray-600);
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.hero__logo:hover {
  color: var(--color-blue);
  opacity: 1;
  transform: scale(1.05);
}

[data-theme="dark"] .hero__logo {
  color: var(--color-gray-600);
}

[data-theme="dark"] .hero__logo:hover {
  color: var(--color-blue-light);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero container particles */
.hero__container {
  position: relative;
}

/* Hero elements with relative positioning for particle effects */
.hero__badge {
  position: relative;
}

.hero__subtitle {
  position: relative;
}

.hero__actions {
  position: relative;
}

.hero {
  position: relative;
}

.hero__mascot {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: 180px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

[data-theme="dark"] .hero__mascot {
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablets & Narrow Laptops (768px+) */
/* Single-column, centred layout. Desktop (1100px+) overrides to two-column.
   No max-width here — mobile-first cascade, no single-pixel gaps. */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-20) 0 var(--space-20) 0;
    min-height: 100vh;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
    padding: var(--space-8) var(--space-5);
  }

  .hero__badge {
    justify-self: center;
    padding: var(--space-2) var(--space-5);
    margin-bottom: var(--space-6);
  }

  .hero__badge::before {
    animation: badgeShine 4s linear infinite;
  }

  .hero__badge:hover {
    transform: translateY(-2px);
  }

  .hero__badge-icon {
    width: 14px;
    height: 14px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.05;
  }

  .hero__description {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--space-8);
  }

  .hero__actions {
    flex-direction: row;
    gap: var(--space-6);
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
  }

  .hero__actions .btn,
  .hero__btn {
    flex: none;
    width: auto;
    max-width: none;
    min-height: 52px;
  }

  .hero__visual {
    justify-content: center;
  }

  .hero__visual .hero__mascot {
    max-height: clamp(200px, 28vw, 260px) !important;
    width: auto !important;
    aspect-ratio: auto !important;
  }
}

/* Laptops & Desktops (1100px+) */
/* Single breakpoint for all two-column layouts. clamp() handles fluid scaling
   across the full range from 1100px to wide displays — no hard mid-range boundary. */
@media (min-width: 1100px) {
  .hero {
    padding: var(--space-20) 0 clamp(0px, 5vw, var(--space-20)) 0;
    min-height: 100vh;
  }

  .hero__container {
    max-width: 1100px;
    grid-template-columns: 1.2fr 1fr;
    column-gap: clamp(var(--space-12), 4vw, var(--space-16));
    row-gap: 0;
    padding: clamp(var(--space-8), 2vw, var(--space-10)) clamp(var(--space-12), 4vw, var(--space-16));
    text-align: left;
  }

  .hero__badge {
    justify-self: start;
  }

  .hero__title {
    grid-column: 1 / -1;
    font-size: clamp(2.8rem, 4.5vw, 4rem) !important;
    margin-bottom: var(--space-8);
  }

  .hero__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(var(--space-6), 3vw, var(--space-12));
  }

  .hero__body .hero__description {
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .hero__body .hero__actions {
    margin-bottom: 0;
    margin-top: 0;
    justify-content: flex-start;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero__visual .hero__mascot {
    max-height: clamp(160px, 20vw, 340px) !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
  }

  .hero__trust-text {
    text-align: left;
  }

  .hero__logos {
    justify-content: flex-start;
  }
}

