/* =============================================
   SECTIONS — IEEJ Site
   ============================================= */

/* ══════════════════════════════════════
   HEADER / NAVIGATION
   ══════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  transition: all var(--transition-base);
}

.header--scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--text-primary);
  z-index: var(--z-header);
}

.header__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

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

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.header__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.header__link:hover {
  color: var(--text-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: var(--z-header);
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-back);
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: drift linear infinite;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: var(--z-normal);
}

.hero__content {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
  animation: pulseGlowBorder 3s ease infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-xl);
}

.hero__title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-primary);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero image / visual side */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
}

.hero__image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Floating elements around hero image */
.hero__floating {
  position: absolute;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  animation: floatSlow 6s ease infinite;
  z-index: 2;
}

.hero__floating--top-right {
  top: -10px;
  right: -20px;
  animation-delay: 0s;
}

.hero__floating--bottom-left {
  bottom: 20px;
  left: -30px;
  animation-delay: 2s;
}

.hero__floating-icon {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.hero__floating-text {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.hero__floating-sub {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════
   METRICS / DIFERENCIAIS
   ══════════════════════════════════════ */

.metrics {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.metrics__item {
  text-align: center;
  padding: var(--space-2xl);
  position: relative;
}

.metrics__item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border-subtle);
}

.metrics__item:last-child::after {
  display: none;
}

.metrics__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
}

.metrics__number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.metrics__label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ══════════════════════════════════════
   COURSES
   ══════════════════════════════════════ */

.courses {
  position: relative;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* ══════════════════════════════════════
   EAD SECTION
   ══════════════════════════════════════ */

.ead {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ead__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.ead__content {
  max-width: 500px;
}

.ead__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.ead__card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-align: center;
}

.ead__card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--accent-secondary-glow);
}

.ead__card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.ead__card-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.ead__card-text {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════
   ABOUT
   ══════════════════════════════════════ */

.about {
  position: relative;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.about__image {
  width: 100%;
  height: 560px;
  object-fit: contain;
  object-position: center bottom;
}

.about__content h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}

.about__text {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.about__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(230, 57, 70, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   CONTACT / CTA
   ══════════════════════════════════════ */

.contact {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact__content h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}

.contact__text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact__info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.contact__info-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.contact__info-text strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

/* Form container */
.contact__form-wrapper {
  background:
    linear-gradient(180deg, rgba(230, 25, 25, 0.16) 0%, rgba(140, 0, 0, 0.18) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(230, 25, 25, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(140, 0, 0, 0.18);
  padding: var(--space-2xl);
}

.contact__form-title {
  font-size: var(--fs-2xl);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-xl);
}

.contact__form-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2xl);
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact__form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.contact__form-success.active {
  display: block;
}

.contact__form-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

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

.footer__description {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__column-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-light);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.footer__credits {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.footer__credits a {
  color: var(--accent-light);
}

/* ══════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ══════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  animation: float 4s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .ead__inner {
    grid-template-columns: 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__image-wrapper {
    min-height: 480px;
    max-height: none;
  }

  .about__image {
    height: 480px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .metrics__grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics__item::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .header__links {
    display: none;
  }

  .header__cta .btn {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  /* Mobile menu */
  .header__links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    z-index: calc(var(--z-header) - 1);
  }

  .header__links.active .header__link {
    font-size: var(--fs-xl);
    color: var(--text-primary);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    width: 100%;
    justify-items: center;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
  }

  .hero__badge {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
  }

  .hero__actions {
    margin-bottom: var(--space-lg);
    width: 100%;
    justify-content: center;
  }

  .hero__visual {
    display: flex;
    margin-top: 0;
  }

  .hero__image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__floating {
    display: none;
  }

  .hero__stats {
    display: none;
  }

  .hero__stat {
    text-align: center;
  }

  .courses__grid {
    grid-template-columns: 1fr;
  }

  .ead__cards {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .contact__form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .metrics__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .metrics__item {
    padding: var(--space-lg) var(--space-md);
  }

  .metrics__icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-sm);
  }

  .metrics__number {
    font-size: var(--fs-2xl);
  }

  .metrics__label {
    font-size: var(--fs-xs);
  }
}
