/* =========================================================================
   STYLE.CSS - HiperAldo Brasil Landing Page
   Aesthetics: Premium, Modern, Dark Theme Base, Vibrant Accents.
   ========================================================================= */

:root {
  /* Color Palette */
  --color-bg-dark: #000000;
  --color-bg-alt: #0a0a0a;
  --color-bg-card: rgba(22, 27, 51, 0.65); /* Dark Purple/Blue Tint */
  --color-card-border: rgba(146, 161, 207, 0.2);

  --color-text-main: #ffffff;
  --color-text-muted: #acb2b8;

  --color-accent-gold: #f8b831; /* Kidney/Adrenal Highlight */
  --color-accent-lavender: #92a1cf; /* Soft Blue/Purple Accent */
  --color-accent-brand: #4a5dc2; /* Brand deep blue */

  /* Typography */
  --font-main: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-max-width: 1200px;
  --section-padding: 100px 20px;

  /* Effects */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glow-shadow: 0 0 40px rgba(248, 184, 49, 0.15);
  --glow-shadow-blue: 0 0 50px rgba(146, 161, 207, 0.15);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-lavender);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent-gold);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Scroll Animation Elements */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fade Up animation variant */
.reveal-fade-up {
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.active {
  transform: translateY(0);
}

/* Scale animation variant */
.reveal-scale {
  transform: scale(0.92);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  transform: scale(1);
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.active > *:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger-children.active > *:nth-child(2) {
  transition-delay: 0.25s;
}
.stagger-children.active > *:nth-child(3) {
  transition-delay: 0.4s;
}
.stagger-children.active > *:nth-child(4) {
  transition-delay: 0.55s;
}

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle float animation for cards */
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.glass-card:hover {
  animation: floatCard 2s ease-in-out infinite;
}

/* Fade in animation for stat numbers */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-section.active .stats-text {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stats-section.active .secondary-stat {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.main-header {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 12px;
  background-color: var(--color-bg-dark);
}

.main-header .container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.main-header .logo {
  text-align: left;
}

.logo img {
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* =========================================================================
   1. HERO SECTION
   ========================================================================= */
.hero-section {
  position: relative;
  height: 80vh;
  max-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 15%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* For better contrast on mobile */
@media (max-width: 992px) {
  .hero-bg::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 20%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 70vh;
    padding: 40px 0;
  }
  .hero-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 15px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .hero-scroll-indicator {
    font-size: 0.75rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-box {
  max-width: 700px;
}

.hero-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  letter-spacing: -0.01em;
}

.text-highlight {
  color: var(--color-accent-gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 50px;
  line-height: 1.5;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  color: var(--color-accent-lavender);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.chevron-down {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* =========================================================================
   2. STATS SECTION
   ========================================================================= */
.stats-section {
  padding: var(--section-padding);
  background: linear-gradient(to bottom, transparent, var(--color-bg-alt));
  text-align: justify;
}

.stats-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.stats-text-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.stats-text {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--color-text-muted);
}

.stats-text strong {
  font-weight: 600;
  color: var(--color-text-main);
}

.secondary-stat {
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

/* =========================================================================
   3. PURPOSE & MISSION
   ========================================================================= */
.purpose-section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.purpose-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../SEÇÃO 02/IMAGEM 01.png");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

.purpose-container {
  position: relative;
  z-index: 2;
}

.purpose-intro {
  text-align: left;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.section-title span {
  color: var(--color-accent-gold);
  font-weight: 700;
  font-style: normal;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.purpose-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 700px;
  margin: 0 auto;
}

/* Cards */
.glass-card {
  border-radius: 16px;
  padding: 35px;
  transition: var(--transition-smooth);
  border: none;
}

.glass-card:hover {
  transform: translateY(-3px);
}

.purpose-card {
  background-color: #292a6d;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.mission-card {
  background-color: #14163c;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 18px;
  font-weight: 700;
}

.card-list {
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-list li::before {
  content: "•";
  color: var(--color-text-main);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.card-text {
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .purpose-cards {
    margin-left: 0;
    max-width: 100%;
  }
  .glass-card {
    padding: 25px 20px;
  }
  .section-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
}

@media (max-width: 480px) {
  .purpose-section {
    padding: 60px 15px;
  }
  .section-desc {
    font-size: 0.95rem;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-list li,
  .card-text {
    font-size: 0.9rem;
  }
}

/* =========================================================================
   4. SUPPORT & PARTNERS
   ========================================================================= */
.support-section {
  background: #ffffff;
  color: var(--color-bg-dark);
  padding: 50px 20px;
}

.support-container {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  align-items: center;
  gap: 5px;
  max-width: 900px;
  margin: 0 auto;
}

.support-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.support-logos {
  display: contents;
}

/* Sponsor Logos formatting */
.sponsor-img {
  height: 200px;
  object-fit: contain;
  justify-self: center;
  transition: var(--transition-smooth);
}

.sponsor-img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .support-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }
  .support-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  .sponsor-img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .support-section {
    padding: 40px 15px;
  }
  .support-text {
    font-size: 0.95rem;
  }
  .sponsor-img {
    height: 110px;
  }
}

/* =========================================================================
   5. TEAM SECTION
   ========================================================================= */
.team-section {
  padding: var(--section-padding);
}

.center-text {
  text-align: center;
  margin-bottom: 10px;
}

.team-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member-card {
  background: #14163c;
  border-radius: 16px;
  padding: 25px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(146, 161, 207, 0.3);
}

.member-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-member-card:hover .member-photo img {
  transform: scale(1.05);
}

.member-info {
  text-align: left;
}

.member-name {
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 8px;
  font-weight: 700;
}

.member-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
  .team-section {
    padding: 60px 15px;
  }
  .team-subtitle {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .team-member-card {
    padding: 18px;
  }
  .member-name {
    font-size: 1rem;
  }
  .member-role {
    font-size: 0.8rem;
  }
}

/* =========================================================================
   6. CENTERS OBJECTIVES
   ========================================================================= */
.centers-section {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.centers-intro {
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.centers-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 15px;
}

.centers-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.centers-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.center-box {
  padding: 30px 35px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  border-left: 4px solid rgba(146, 161, 207, 0.6);
}

.center-box p {
  margin: 0;
}

.center-box-1 {
  background-color: #292a6d;
}

.center-box-2 {
  background-color: #14163c;
}

@media (max-width: 768px) {
  .centers-boxes {
    margin-left: 0;
    max-width: 100%;
  }
  .centers-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .centers-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .center-box {
    padding: 20px 22px;
    font-size: 0.9rem;
  }
}

/* =========================================================================
   7. AMBASSADORS TABLE
   ========================================================================= */
.ambassadors-table-section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.ambassadors-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../SEÇÃO 06/Agrupar 5.png");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.table-container {
  position: relative;
  z-index: 2;
}

.ambassadors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.amb-col-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.amb-col p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  padding: 4px 0;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 768px) {
  .ambassadors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .ambassadors-table-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .ambassadors-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .amb-col-header {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }
  .amb-col p {
    font-size: 0.68rem;
    padding: 3px 0;
  }
}

/* =========================================================================
   8. REFERENCES
   ========================================================================= */
.references-section {
  padding: 80px 20px;
  background: var(--color-bg-alt);
}

.references-container {
  max-width: 900px;
}

.references-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

.reference-item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* =========================================================================
   9. FOOTER CTA
   ========================================================================= */
.footer-cta {
  position: relative;
  color: var(--color-bg-dark);
  padding: 80px 20px;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../SEÇÃO 07/FINAL.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  color: #1a1a3e;
}

.footer-desc {
  font-size: 1rem;
  margin-bottom: 35px;
  color: #2a2a4a;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 35px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a2a6d;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid #2a2a6d;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: #1a1a3e;
}

.form-input::placeholder {
  color: #888;
}

.btn-primary {
  align-self: flex-start;
  background: #2a2a6d;
  color: #fff;
  border: 2px solid #2a2a6d;
  padding: 10px 30px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.btn-primary:hover {
  background: #1a1a4e;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .subscribe-form {
    flex-direction: column;
  }
  .footer-cta {
    padding: 50px 15px;
  }
  .footer-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .footer-desc {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .references-section {
    padding: 50px 15px;
  }
  .references-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .reference-item {
    font-size: 0.78rem;
  }
}

.contact-email {
  font-weight: 500;
  color: #2a2a6d;
  font-size: 0.95rem;
}

.contact-email a {
  color: #2a2a6d;
  text-decoration: underline;
  font-weight: 600;
}

.footer-logo {
  margin-top: 40px;
}

.footer-logo img {
  height: 50px;
  object-fit: contain;
}

/* =========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  animation: pulseWhatsapp 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.05) translateY(-2px);
  background: #20bd5a;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-icon svg {
  width: 24px;
  height: 24px;
}

.whatsapp-text {
  white-space: nowrap;
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 18px;
    right: 18px;
    padding: 12px 18px;
    font-size: 0.8rem;
    gap: 8px;
  }
  .whatsapp-icon,
  .whatsapp-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================================
   MODAL DE SUCESSO
   ========================================================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-bg-card);
  padding: 40px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-card-border);
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #fff;
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: #4caf50;
  color: white;
  font-size: 35px;
  line-height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: white;
  font-size: 1.8rem;
}

.modal-content p {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1rem;
}

.close-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-accent-gold) !important;
  color: var(--color-bg-dark) !important;
  border: none !important;
}
