/* Layout CSS - Estrutura geral e grid */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
  /* Mantém o reset global */
  * {
    position: unset !important;
  }

  /* Exceções: devolvemos position aos itens críticos */
  .navigation,
  .nav-menu,
  .menu-toggle {
    position: relative !important;
  }

  .nav-menu.show {
    position: absolute !important;
  }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.logo-img {
    height: 80px;
    width: auto;
}

.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a.btn-primary{
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 70px; /* logo abaixo do header */
    right: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-menu.show {
    display: flex;
  }
}

.btn-menu{
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Menu sanduíche */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-green-dark);
  font-weight: bolder;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hero Section Layout */
.hero-section {
    margin-top: 80px;
    padding: 4rem 0;
    min-height: 53vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Sections Layout */
section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Business Section Layout */
.business-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.business-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
}

/* Browser Connection Layout */
.browser-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.steps-list {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.steps-list li {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.browser-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.qr-code-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

/* Contact Section Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.contact-item a {
    text-decoration: none;
}

/* Form Layout */
.form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #38ad11;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer Layout */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Cookie Banner Layout */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 0;
}

.cookie-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cookie-text h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cookie-text ul {
    list-style: none;
    margin: 0.5rem 0;
}

.cookie-text li {
    font-size: 0.875rem;
}

.cookie-text a {
    text-decoration: none;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content,
    .business-content,
    .browser-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .cookie-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cookie-actions {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    top: 64px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 1001;
  }

  .only-desktop{
    display: none;
  }

  .menu-toggle-container{
    display: block;
    width:  100% !important;
    display: flex;
    justify-content: flex-end;
    align-items: self-end;
  }

  .nav-menu.show {
    display: flex !important;
  }
}