/* 
 * NudifyerBR CSS Styles
 * Brazilian-themed design with optimized performance
 */

:root {
  --green: #009c3b; /* Brazilian green */
  --yellow: #ffdf00; /* Brazilian yellow */
  --blue: #002776; /* Brazilian blue */
  --light-green: #64c36f;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --light-gray: #E0E0E0;
  --gray: #757575;
  --dark: #212121;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--light-green);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--light-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--yellow);
  color: var(--blue);
}

.btn-secondary:hover {
  background: #ffea4f;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
}

.logo-text {
  color: var(--white);
  transition: var(--transition);
}

.header.scrolled .logo-text {
  color: var(--green);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--yellow);
}

.nav-link:hover::after {
  width: 100%;
}

.header.scrolled .nav-link {
  color: var(--dark);
}

.header.scrolled .nav-link:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.header.scrolled .menu-toggle span {
  background: var(--dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--green), var(--blue));
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,10h20v20h20v20H50v20H30V50H10V30h20V10z' fill='%23ffdf00' fill-opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C59.71,118.11,130.83,141.14,213.2,56.44Z' fill='%23F5F5F5'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.hero-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--yellow);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 20px;
}

.section-description {
  color: var(--gray);
  font-size: 1.1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--green);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.card:hover::after {
  transform: scaleX(1);
}

.card-body {
  padding: 30px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  background: rgba(0, 156, 59, 0.1);
  border-radius: 50%;
  color: var(--green);
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--green);
  color: var(--white);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-description {
  color: var(--gray);
}

/* Process Section */
.process {
  padding: 100px 0;
  background: var(--white);
}

.steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--light-gray);
  z-index: 0;
}

.step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
}

.step-content {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.step:hover .step-content {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--green);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue), #005299);
  color: var(--white);
  position: relative;
}

.testimonial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-content {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  opacity: 0.2;
}

.testimonial-content::before {
  top: -20px;
  left: -20px;
}

.testimonial-content::after {
  bottom: -40px;
  right: -20px;
  transform: rotate(180deg);
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-role {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: var(--green);
  color: var(--white);
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-description {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-button {
  background: var(--yellow);
  color: var(--blue);
  font-size: 1.1rem;
  padding: 16px 40px;
  font-weight: 700;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: #fff0a0;
  color: var(--blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: var(--off-white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  list-style: none;
  margin: 30px 0 0;
}

.accordion-item {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  transition: var(--transition);
}

.accordion-header:hover {
  background: rgba(0, 156, 59, 0.03);
}

.accordion-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.accordion-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--green);
  transition: var(--transition);
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-item.active .accordion-icon::after {
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

.accordion-body {
  padding: 0 20px 20px;
  color: var(--gray);
}

/* Footer */
.footer {
  background: var(--blue);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-description {
  opacity: 0.8;
  margin-bottom: 24px;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--yellow);
}

.footer-links {
  list-style: none;
}

.footer-link-item:not(:last-child) {
  margin-bottom: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-left: 20px;
}

.footer-link::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 700;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.footer-link:hover::before {
  left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* Media Queries */
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--green);
    flex-direction: column;
    padding: 80px 30px;
    transition: var(--transition);
    z-index: 900;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .nav-link {
    color: var(--white) !important;
    display: block;
    padding: 8px 0;
    font-size: 1.1rem;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .steps::before {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .step {
    grid-template-columns: 40px 1fr;
    gap: 20px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-content {
    padding: 20px;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .section-header {
    margin-bottom: 40px;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .footer-grid {
    gap: 30px;
  }
}
