 /* ==================== RESET & VARIÁVEIS ==================== */
:root {
  /* Core */
  --black: #0f0f12;
  --white: #ffffff;
  --gray-900: #1c1c21;
  --gray-700: #4b4b55;
  --gray-500: #8a8a94;
  --gray-100: #f4f4f7;

  /* Brand accents */
  --primary: #5b3df5;   /* roxo – uso CONTROLADO */
  --secondary: #f5b400; /* amarelo – micro detalhes */

  /* UI */
  --border: #e4e4ea;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.16);
  --transition: all 0.25s ease;
}

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      font-size: 1.15rem;
    }

    @media (max-width: 400px) {
      html {
        font-size: 90%;
      }
    }

    body {
      font-family: "Poppins", sans-serif;
      background: var(--gray-100);
      color: var(--gray-900);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* ==================== HEADER & NAV ==================== */
    .header {
      position: sticky;
      top: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 5%;
      height: 80px;
      background: #3c28a1;
      z-index: 100;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .logo {
      height: 50px;
      width: auto;
      display: flex;
      align-items: center;
      font-weight: 700;
      color: var(--white);
      font-size: 1.2rem;
    }

    .logo img{
      width: 144px;
    }

    /* Hamburger Menu */
    .hamb {
      position: relative;
      width: 28px;
      height: 20px;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 101;
    }

    .hamb-line {
      position: absolute;
      left: 0;
      width: 100%;
      height: 2.5px;
      background: var(--white);
      border-radius: 2px;
      transition: var(--transition);
      transform-origin: center;
    }

    /* posição inicial das 3 linhas */
    .hamb-line:nth-child(1) {
      top: 0;
    }

    .hamb-line:nth-child(2) {
      top: 50%;
      transform: translateY(-50%);
    }

    .hamb-line:nth-child(3) {
      bottom: 0;
    }

    /* estado ativo (X perfeito) */
    .hamb.active .hamb-line:nth-child(1) {
      top: 50%;
      transform: translateY(-50%) rotate(45deg);
    }

    .hamb.active .hamb-line:nth-child(2) {
      opacity: 0;
    }

    .hamb.active .hamb-line:nth-child(3) {
      top: 50%;
      bottom: auto;
      transform: translateY(-50%) rotate(-45deg);
    }

    /* Navigation Menu */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: var(--primary);
      transform: translateX(-100%);
      transition: var(--transition);
      z-index: 99;
      padding-top: 100px;
      overflow-y: auto;
    }

    .nav.active {
      transform: translateX(0);
    }

    .nav ul {
      display: flex;
      flex-direction: column;
      list-style: none;
      gap: 0;
    }

    .nav li {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav a {
      color: rgba(255, 255, 255, 0.85);
      font-weight: 500;
      text-decoration: none;
      font-size: 1.1rem;
      display: block;
      padding: 20px 5%;
      transition: var(--transition);
    }

    .nav a:hover {
      background: rgba(255, 255, 255, 0.1);
      padding-left: 7%;
      color: var(--secondary);
    }

    /* Desktop Nav */
    .nav-desktop {
      display: none;
    }

    @media (min-width: 768px) {
      .hamb {
        display: none;
      }

      .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        transform: translateX(0);
        padding: 0;
        display: flex;
      }

      .nav ul {
        flex-direction: row;
        gap: 40px;
        margin-right: 40px;
      }

      .nav li {
        border: none;
      }

      .nav a {
        padding: 0;
        font-size: 0.95rem;
      }

      .nav a:hover {
        background: transparent;
        padding: 0;
        color: var(--secondary);
      }
    }

    /* ==================== HERO SECTION ==================== */
  .hero-premium {
  background: #f0f0f0;
  padding: 120px 5% 100px;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.75);
}

.hero-stats {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  gap: 40px;
  color: var(--white);
}

.hero-stats strong {
  font-size: 2rem;
  font-weight: 600;
}

.hero-stats span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-text {
  color: var(--black);
}

.hero-eyebrow {
  display: block;
  font-size: 0.85rem;
  color: #ac7e00;
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  color: var(--black);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-solid {
  background: var(--white);
  color: var(--black);
}

.btn-solid:hover {
  background: var(--secondary);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-stats {
    position: static;
    margin-top: 24px;
  }

  .hero-text h1,
  .hero-text p {
    text-align: left;
  }
}




/* ==================== EXPERTISE SECTION ==================== */

.expertise {
  padding: 100px 5%;
  background: var(--white);
  
}

.expertise-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.expertise-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0px;
  color: var(--black);

}

.expertise-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ac7e00; /* cinza moderno */
  margin-bottom: 24px;
}

.expertise-text p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 520px;
}

.expertise-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.expertise-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop */
@media (min-width: 900px) {
  .expertise-container {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

    /* ==================== SOLUTIONS SECTION ==================== */
    .solutions {
      padding: 80px 5%;
      background: var(--light-gray);
      align-items: center;
    }

    .solution img {
      width: 100%;
      max-width: 240px;
      height: auto;
      border-radius: 16px;
    }

    .solutions h2 {
      text-align: center;
      font-size: clamp(1.8rem, 6vw, 2.5rem);
      margin-bottom: 60px;
      color: var(--dark);
    }

    .solutions h2 span {
      color: var(--primary);
      font-size: clamp(2.5rem, 7.2vw, 4rem);
    }

    .solutions-wrapper {
      display: flex;
      gap: 40px;
      align-items: center;
      max-width: 1400px;
      margin: 0 auto;
      justify-content: center;
    }

    @media (max-width: 900px) {

      .solution {
        flex-direction: column;
        text-align: center;
      }
    
      .text {
        flex-direction: column;   /* stack title + text + images */
        align-items: center;
        gap: 16px;
      }
    
      .text .selos {
        align-items: center;
        text-align: center;
      }
    
      .text .selos-img {
        justify-content: center;
        margin-top: 10px;
      }
    
    }

    .solution-cards {
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
      justify-content: flex-start;
    }

    .solution {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 24px;
      border: 2px solid var(--dark);
      border-radius: 12px;
      background: var(--white);
      transition: var(--transition);
      width: 100%;
      max-width: 1200px;
    }

    .solution:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }

    .solution h4 {
      font-size: 1.5rem;
      color: var(--dark);
      margin-bottom: 6px;
    }

    .solution p {
      font-size: 1.2rem;
      color: var(--gray);
      line-height: 1.5;
    }

    .text .selos {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .text {
      display: flex;
      justify-content: flex-start; /* pushes logos to right */
      align-items: center;
      width: 100%;
      gap: 20px;
    }
    


.text .selos-img {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

    .text h4 {
      margin-bottom: 8px;
    }

    .text .selos-img {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .text p {
      margin-bottom: 16px;
    }

    .text #ABFLogo{
      width: 240px;
    }
    
    .text #IFALogo {
      width: 120px;
      height: auto;      /* garante proporção */
      object-fit: contain;
    }

    

    /* ==================== CTA SECTION ==================== */
    .cta-contact {
      padding: 80px 5%;
      background: var(--white);
    }

    .cta-content h2 span {
      color: var(--primary);
    }

    .cta-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
      align-items: center;
      background: var(--light-gray);
      border-radius: 24px;
      padding: 40px;
    }

    @media (min-width: 900px) {
      .cta-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 60px;
      }
    }

    .cta-image {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
    }

    .cta-image img {
      width: 100%;
      height: auto;
      object-fit: cover;
      display: block;
      border-radius: 16px;
    }

    .cta-bubble {
      position: absolute;
      background: var(--white);
      padding: 16px;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      font-size: 13px;
      max-width: 180px;
      display: none;
    }

    @media (min-width: 900px) {
      .cta-bubble {
        display: block;
      }
    }

    .cta-bubble strong {
      color: var(--primary);
      display: block;
      margin-bottom: 4px;
    }

    .cta-bubble.top {
      top: 20px;
      right: 20px;
    }

    .cta-bubble.bottom {
      bottom: 20px;
      left: 20px;
    }

    .cta-content h2 {
      font-size: clamp(1.8rem, 5vw, 2.6rem);
      margin-bottom: 16px;
      color: var(--dark);
      line-height: 1.2;
    }

    .cta-content h2 span {
      color: var(--primary);
    }

    .cta-content p {
      font-size: 1rem;
      color: var(--gray);
      margin-bottom: 32px;
      line-height: 1.6;
    }

    .cta-btn {
      display: inline-block;
      background: var(--primary);
      color: var(--white);
      padding: 16px 40px;
      border-radius: 999px;
      font-weight: 600;
      transition: var(--transition);
      text-decoration: none;
      border: none;
      cursor: pointer;
      font-size: 0.95rem;
    }

    .cta-btn:hover {
      background: var(--secondary);
      transform: translateY(-3px);
      box-shadow: 0 16px 30px rgba(102, 50, 226, 0.3);
    }

    /* ==================== PARTNERS SECTION ==================== */
    .partners {
      padding: 60px 5%;
      background: #f4f4f8;
      text-align: center;
    }

    .partners h2 {
      font-size: clamp(1.5rem, 5vw, 2.2rem);
      margin-bottom: 40px;
      color: var(--dark);
    }

    .marquee {
      overflow: hidden;
      width: 100%;
      position: relative;
      background: var(--white);
      border-radius: 12px;
      padding: 20px;
    }

      .marquee-track {
    display: flex;
    width: max-content;
    animation: scrollLoop 35s linear infinite;

    /* Safari smooth fix */
    transform: translate3d(0,0,0);
  }

  /* Each group */
  .marquee-group {
    display: flex;
    align-items: center;
    gap: 40px;
  }

        @keyframes scroll {
      0% {
        transform: translate3d(0,0,0);
      }
      100% {
        transform: translate3d(-50%,0,0);
      }
    }

      .partner-logo {
    height: 100px;
    width: auto;
    padding: 10px;
    /* Safari fixes */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    opacity: 0.7;
    transition: opacity 0.3s ease;
  }

    .partner-logo:hover {
  opacity: 1;
}

/* Infinite animation */
@keyframes scrollLoop {
  0% {
    transform: translate3d(0,0,0);
  }
  100% {
    transform: translate3d(-50%,0,0);
  }
}
    @media (max-width: 600px) {
      .marquee {
        height: 100px;
        padding: auto;
      }

      .marquee-track {
        gap: 30px;
        animation-duration: 30s;
      }

      .partner-logo {
        height: 80px;
        padding: 0px;
      }
    }

    /* ==================== CONTACT SECTION ==================== */
    .contact {
      padding: 80px 5%;
      text-align: center;
      background: var(--white);
    }

    .contact h2 {
      font-size: clamp(1.8rem, 6vw, 2.5rem);
      margin-bottom: 40px;
      color: var(--dark);
    }

    .contact-wrapper {
      max-width: 800px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }

    @media (min-width: 768px) {
      .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
      }
    }

    .contact form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }

    @media (min-width: 600px) {
      .form-row {
        grid-template-columns: 1fr 1fr;
      }
    }

    .contact input,
    .contact textarea {
      padding: 14px 16px;
      border-radius: 10px;
      border: 1px solid var(--border);
      font-size: 0.95rem;
      font-family: inherit;
      transition: var(--transition);
    }

    .contact input:focus,
    .contact textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(102, 50, 226, 0.1);
    }

    .contact button {
      background: var(--primary);
      color: var(--white);
      border: none;
      padding: 14px;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 600;
      transition: var(--transition);
      font-size: 0.95rem;
    }

    .contact button:hover {
      background: var(--secondary);
      transform: translateY(-2px);
    }

    .contact-info {
      text-align: left;
    }

    .contact-info h3 {
      font-size: 1.5rem;
      margin-bottom: 12px;
      color: var(--dark);
    }

    .contact-info p {
      color: var(--gray);
      margin-bottom: 24px;
      line-height: 1.6;
    }

    .info-item {
      margin-bottom: 24px;
    }

    .info-item strong {
      display: block;
      color: var(--dark);
      margin-bottom: 6px;
      font-weight: 600;
    }

    .info-item span {
      color: var(--gray);
      line-height: 1.6;
    }

    #formStatus {
      margin-top: 16px;
      font-weight: 600;
      min-height: 20px;
    }

    #formStatus.success {
      color: #22c55e;
    }

    #formStatus.error {
      color: #ef4444;
    }

    /* ==================== FOOTER ==================== */
    .footer {
      background: #313132;
      color: var(--white);
      padding: 60px 5%;
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }

    @media (min-width: 768px) {
      .footer-container {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .footer-brand {
      display: flex;
      justify-content: center;  /* horizontal center */
      align-items: center;      /* vertical center (if needed) */
      text-align: center;
    }

    .footer-brand img {
      height: 50px;
      width: auto;
      margin-bottom: 16px;
    }

    .footer-links h4,
    .footer-contact h4 {
      font-size: 1rem;
      margin-bottom: 16px;
    }

    .footer-links ul {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 8px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--white);
    }

    .footer-contact p {
      font-size: 0.9rem;
      margin-bottom: 12px;
      opacity: 0.9;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 40px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      font-size: 0.85rem;
      opacity: 0.8;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* ==================== UTILITY CLASSES ==================== */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 5%;
    }

    /* Smooth scroll offset for sticky header */
    section:target {
      scroll-margin-top: 80px;
    }

    /* Print styles */
    @media print {
      .header,
      .hamb {
        display: none;
      }

      body {
        background: white;
      }
    }

    @media (max-width: 420px) {

  /* Reduce section padding */
  .hero-premium,
  .expertise,
  .solutions,
  .cta-contact,
  .partners,
  .contact,
  .footer {
    padding: 60px 4%;
  }

  /* Reduce big gaps */
  .hero-container,
  .expertise-container,
  .cta-container {
    gap: 30px;
  }

  /* Reduce hero text size slightly */
  .hero-text h1 {
    font-size: 2rem;
  }

  /* Reduce solution card padding */
  .solution {
    padding: 16px;
    gap: 12px;
  }

  .solution h4 {
    font-size: 1.2rem;
  }

  .solution p {
    font-size: 1rem;
  }

  /* Logos smaller */
  .text #ABFLogo {
    width: 160px;
  }

  .text #IFALogo {
    width: 90px;
  }

  /* Partner logos smaller */
  .partner-logo {
    height: 60px;
  }

  /* Reduce footer spacing */
  .footer {
    padding: 40px 4%;
  }

}

@media (max-width: 480px) {

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }
}
