/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #151515;
  color: #f1eef1;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

.highlight {
  color: #e8925e;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.navbar-container {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(61, 37, 87, 0);
  border: 1px solid rgba(143, 104, 205, 0.3);
  border-radius: 9999px;
  padding: 1rem 2rem;
  gap: 1rem;
}

.navbar-logo img {
  height: 4rem;
  width: auto;
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #f1eef1;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #e8925e;
}
.nav-button a {
  text-decoration: none;
  color: white;
}
.nav-button {
  padding: 0.625rem 1.5rem;
  background-color: #7342c1;
  color: #f1eef1;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-button:hover {
  background-color: #8353d1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle.active {
  transform: rotate(180deg);
}

.fox-icon {
  width: 90%;
  height: 90%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.fox-ear {
  transition: transform 0.3s ease;
  transform-origin: 50% 50%;
}

.mobile-menu-toggle.active .fox-ear:first-of-type {
  transform: rotate(-15deg) translateX(-3px);
}

.mobile-menu-toggle.active .fox-ear:last-of-type {
  transform: rotate(15deg) translateX(3px);
}

.fox-head {
  transition: fill 0.3s ease;
}

.mobile-menu-toggle:hover .fox-head {
  fill: #e8925e;
}

.mobile-menu-toggle.active .fox-head {
  fill: #e8925e;
}

.fox-eye {
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .fox-eye,
.mobile-menu-toggle.active .fox-eye {
  r: 3.5px;
  fill: #e8925e;
}

.fox-snout {
  transition: fill 0.3s ease;
}

.mobile-menu-toggle:hover .fox-snout,
.mobile-menu-toggle.active .fox-snout {
  fill: #e8925e;
}

.icon-arrow {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

/* ==================== HERO SECTION ==================== */
.hero {
  margin-top: 0rem;
  min-height: 1200px;
  background: url("/img/back\ home.png") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1.5rem;
  position: relative;
  padding-left: 15rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 5rem;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #f1eef1;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #f1eef1;
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary a {
  color: white;
  text-decoration: none;
}
.btn-primary {
  padding: 0.75rem 1.5rem;
  background-color: #7342c1;
  color: #f1eef1;
}

.btn-primary:hover {
  background-color: #8353d1;
  transform: translateY(-2px);
}

.btn-secondary a {
  color: white;
  text-decoration: none;
}
.btn-secondary {
  padding: 0.5rem 1rem;
  background-color: #7342c1;
  color: #f1eef1;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background-color: #8353d1;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 5rem 1.5rem;
  background: url("");
}

.section-content {
  max-width: 1181px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 121px;
}

.section-content.reverse {
  flex-direction: row-reverse;
}

.content-text {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
}

.header-label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem;
}

.dot {
  width: 18px;
  height: 18px;
  background-color: #7342c1;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-label span:last-child {
  color: #f1eef1;
  font-size: 1.25rem;
  font-weight: 500;
}

.section-title {
  color: #e8925e;
  font-size: 1.5rem;
  font-weight: 700;
}

.section-description {
  color: #f1eef1;
  font-size: 1rem;
  font-weight: 500;
}

.section-image {
  width: 100%;
  max-width: 580px;
  height: 430px;
  border-radius: 10px;
  object-fit: cover;
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
  padding: 5rem 1.5rem;
  background-color: #151515;
}

.section-header-center {
  width: 507px;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.services-title {
  color: #e47d3e;
  font-size: 1.5rem;
  font-weight: 700;
}

.services-subtitle {
  color: #f1eef1;
  font-size: 1rem;
  font-weight: 500;
}

.services-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 21px;
}

.processes-grid {
  max-width: 1168px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 21px;
}

.service-card {
  height: 340px;
  padding: 2.5rem;
  background-color: transparent;
  border: 1px solid #8f68cd;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

.card-title {
  color: #dbd9db;
  font-size: 1.25rem;
  font-weight: 700;
}

.card-description {
  color: #dbd9db;
  font-size: 1rem;
  font-weight: 500;
}

/* ==================== TECHNOLOGIES SECTION ==================== */
.carrossel {
  margin: 100px auto;
  width: 90%;
  display: flex;
  overflow-x: auto;
}
.carrossel::-webkit-scrollbar {
  display: none;
}
.tech-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11em;
  animation: spin 10s infinite linear;
  padding-right: 11em;
}
.tech-grid img {
  flex: 0 0 5em;
  height: 5em;
  padding: 1em;
  border-radius: 0.2em;
  text-align: center;
}
@keyframes spin {
  from {
    translate: 0;
  }
  to {
    translate: -100%;
  }
}

/* ==================== PORTFOLIO SECTION ==================== */
.institutional {
  padding: 80px 20px;
}

.plans {
  background-color: var(--white);
}

.traycommerce {
  background-color: var(--light-bg);
}

.institutional {
  background-color: var(--white);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: #e47d3e;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 16px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card { 
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(211, 95, 1, 0.363);
}

.plan-header {
  padding: 30px 20px;
  color: var(--white);
  text-align: center;
}

.plan-header-orange {
  background: linear-gradient(135deg, var(--plan-orange) 0%, #ea580c 100%);
}

.plan-header-blue {
  background: linear-gradient(135deg, var(--plan-blue) 0%, #1d4ed8 100%);
}

.plan-header-green {
  background: linear-gradient(135deg, var(--plan-green) 0%, #16a34a 100%);
}

.plan-header-purple {
  background: linear-gradient(135deg, var(--plan-purple) 0%, #9333ea 100%);
}

.plan-icon {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}

.plan-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.plan-body {
  padding: 25px 20px;
}
.plan-body h3 {
  color: #e47d3e;
  font-weight: 700;
  margin-bottom: 15px;
}
.plan-description {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  min-height: 40px;
}

.plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.plan-price span {
  color: orange;
}
.plan-features {
  list-style: none;
  margin-bottom: 25px;
}

.plan-features li {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features i {
  color: var(--accent-color);
  font-size: 12px;
}

.plan-card {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  list-style: none;
}
.plan-card a { 
  list-style: none;
  color: white;
  text-decoration: none;
}
.btn-outline {
  background-color: #7342c1;
  margin-left: 50px;
  color: white;
  justify-content: center;

}
.btn-outline1 {
  background-color: #7342c1;
  margin-right: 50px;
  color: white;
}

/* ==================== FAQ SECTION ==================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: transparent;
  border: none;
}

.faq-question {
  padding: 1rem 1.5rem;
  background-color: #7342c1;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #8353d1;
}

.faq-question span {
  color: #f1eef1;
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
  text-align: left;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #f1eef1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(115, 66, 193, 0.1);
  border-left: 2px solid #7342c1;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 1rem 1.5rem;
  color: #f1eef1;
  font-size: 0.95rem;
  font-weight: 400;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group:nth-child(4) {
  grid-column: 1 / -1;
}

.form-group label {
  color: #f1eef1;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background-color: #1f1f1f;
  border: 1px solid #8f68cd;
  border-radius: 0.5rem;
  color: #f1eef1;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7342c1;
  background-color: #252525;
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: #0a0a0a;
  border-top: 1px solid rgba(143, 104, 205, 0.2);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
  max-width: 1512px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 8rem;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-description {
  color: #f1eef1;
  font-size: 0.875rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #7342c1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.social-link:hover {
  background-color: #8353d1;
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #f1eef1;
}

.footer-title {
  color: #e47d3e;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #f1eef1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #e8925e;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(143, 104, 205, 0.2);
  color: rgba(241, 238, 241, 0.6);
  font-size: 0.875rem;
}

/* ==================== RESPONSIVE - LARGE SCREENS (1200px+) ==================== */
@media (max-width: 1200px) {
  .navbar-container {
    padding: 0 4rem;
  }

  .hero {
    padding: 0 4rem;
  }

  .section {
    padding: 4rem 4rem;
  }

  .services-section {
    padding: 4rem 4rem;
  }

  .footer {
    padding: 2rem 4rem 1rem;
  }

  .section-content {
    gap: 60px;
  }

  .services-grid,
  .processes-grid {
    gap: 15px;
  }

  .service-card {
    height: auto;
    min-height: 300px;
    padding: 1.5rem;
  }
}

/* ==================== RESPONSIVE - TABLETS (768px - 1024px) ==================== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .navbar-container {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #151515;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .navbar-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .nav-button {
    display: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero {
    margin-top: 8rem;
    padding: 0 2rem;
    min-height: 700px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 2rem;
  }

  .services-section {
    padding: 3rem 2rem;
  }

  .section-content {
    gap: 40px;
    flex-direction: column;
  }

  .section-content.reverse {
    flex-direction: column;
  }

  .content-text {
    width: 100%;
  }

  .section-image {
    width: 100%;
    height: auto;
    max-height: 400px;
  }

  .services-grid,
  .processes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .service-card {
    height: auto;
    min-height: 280px;
    padding: 1.5rem;
  }

  .section-header-center {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .portfolio-grid img {
    height: 200px;
  }

  .contact-form {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer {
    padding: 2rem;
  }
}

/* ==================== RESPONSIVE - MOBILE LANDSCAPE (480px - 768px) ==================== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-container {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .navbar-logo img {
    height: 2.5rem;
  }

  .navbar-menu {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(241, 238, 241, 0.1);
  }

  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero {
    margin-top: 6rem;
    padding: 0 1rem;
    min-height: 600px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .services-section {
    padding: 2rem 1rem;
  }

  .section-content {
    gap: 30px;
  }

  .services-grid,
  .processes-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    height: auto;
    min-height: 250px;
    padding: 1.25rem;
  }

  .portfolio-grid img {
    height: 180px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer {
    padding: 1.5rem 1rem;
  }
}

/* ==================== RESPONSIVE - MOBILE PORTRAIT (320px - 480px) ==================== */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .navbar-container {
    padding: 0.5rem 0.75rem;
  }

  .navbar-logo img {
    height: 2rem;
  }

  .hero {
    margin-top: 5rem;
    padding: 0 0.75rem;
    min-height: 500px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .section,
  .services-section {
    padding: 1.5rem 0.75rem;
  }

  .footer {
    padding: 1.5rem 0.75rem;
  }

  .service-card {
    padding: 1rem;
    min-height: 220px;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}
/* Estilos para o menu mobile (apenas o essencial para a funcionalidade) */

/* Oculta o menu principal e o botão de contato em telas pequenas por padrão */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 80px; /* Ajustar conforme a altura do header */
    left: 0;
    background-color: #151515; /* Cor de fundo do site */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    z-index: 999;
  }

  /* Exibe o menu principal quando a classe 'active' é adicionada */
  .navbar-menu.active {
    display: flex;
  }

  /* Oculta o botão de contato em telas pequenas por padrão */
  .nav-button {
    display: none;
  }

  /* Exibe o botão de contato quando a classe 'active' é adicionada (dentro do menu mobile) */
  .nav-button.active {
    display: block;
    margin: 10px 20px;
    text-align: center;
  }

  /* Exibe o botão de toggle do menu mobile */
  .mobile-menu-toggle {
    display: flex; /* Garante que o botão de toggle seja visível */
  }

  /* Estilos para os links do menu mobile */
  .navbar-menu .nav-link {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
  }

  /* Remove a borda do último link */
  .navbar-menu .nav-link:last-child {
    border-bottom: none;
  }
}

/* Garante que o menu principal e o botão de contato estejam visíveis em telas grandes */
@media (min-width: 769px) {
  .navbar-menu {
    display: flex !important;
  }
  .nav-button {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
