/* Importando fontes personalizadas */
@font-face {
    font-family: 'Konexy';
    src: url('../fonts/KonexyPersonalUse.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Zero Hour';
    src: url('../fonts/zero hour.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Variáveis de cores */
:root {
    --primary-red: #C90000;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --secondary-gray: #6c757d;
    --light-gray: #f8f9fa;
}

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-black);
    background-color: var(--primary-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Topbar behavior - esconde no scroll */
.topbar {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 10px 0;
    font-size: 14px;
    transition: all 0.3s ease;
    height: auto;
    overflow: hidden;
}

/* Quando o header ficar sticky, esconde o topbar */
.header.scrolled .topbar {
    height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

/* Ajusta o branding quando o topbar some */
.header.scrolled .branding {
    padding: 5px 0;
}

/* Header scroll behavior */
.header {
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: var(--primary-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.topbar {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 10px 0;
    font-size: 14px;
}

.topbar .contact-info i {
    margin-right: 5px;
}

.topbar .contact-info a,
.topbar .contact-info span {
    color: var(--primary-white);
    text-decoration: none;
}

.topbar .social-links a {
    color: var(--primary-white);
    margin-left: 15px;
    font-size: 16px;
    transition: 0.3s;
}

.topbar .social-links a:hover {
    color: var(--primary-red);
}

/* Remove ajustes anteriores e usa apenas isto */
section[id] {
    scroll-margin-top: 80px; /* Espaço para o navmenu */
}

/* Header comportamento */
.header.sticky-top {
    z-index: 1020;
    background: var(--primary-white);
}

.branding {
    padding: 15px 0;
}

/* Topbar escondido no scroll - mantém esta parte */
.topbar {
    transition: all 0.3s ease;
}

.header.scrolled .topbar {
    height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

/* Logo AKSEL */
.sitename {
    font-family: 'Konexy', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navegação */
.navmenu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navmenu ul li {
    position: relative;
}

.navmenu ul li a {
    color: var(--primary-black);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: 0.3s;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
    color: var(--primary-red);
}

.cta-btn {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #a80000;
    color: var(--primary-white);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-white) 0%, #f8f9fa 100%);
    position: relative;
}

.hero .welcome h2 {
    font-family: 'Zero Hour', sans-serif;
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 20px;
}

.hero .welcome p {
    font-size: 1.2rem;
    color: var(--secondary-gray);
}

/* Why Box */
.why-box {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.why-box h3 {
    color: var(--primary-black);
    margin-bottom: 20px;
}

.more-btn {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.more-btn:hover {
    color: #a80000;
}

/* Icon Boxes */
.icon-box {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: 0.3s;
}

.icon-box:hover {
    transform: translateY(-5px);
}

.icon-box i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.icon-box h4 {
    color: var(--primary-black);
    margin-bottom: 15px;
}

.icon-box p {
    color: var(--secondary-gray);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-black);
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.section-title p {
    color: var(--secondary-gray);
    font-size: 1.1rem;
}

/* Seção Sobre */
.about .content h3 {
    color: var(--primary-black);
    margin-bottom: 20px;
}

.about .content ul {
    list-style: none;
    padding: 0;
}

.about .content ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.about .content ul li i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
    margin-top: 5px;
}

/* About Section Image Styles */
.about-image {
    max-height: 500px; /* Altura máxima */
    width: 100%;
    object-fit: cover; /* Mantém a proporção e cobre o espaço */
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* Alternativa com altura menor */
.about-image.medium {
    max-height: 400px;
}

.about-image.small {
    max-height: 350px;
}

/* Garante que a imagem não ultrapasse o container */
.about .position-relative {
    overflow: hidden;
    border-radius: 10px;
}

/* Seção  */
.stats {
    background: var(--light-gray);
}

.stats-item {
    text-align: center;
}

.stats i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.stats-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    display: block;
}

.stats-item p {
    color: var(--secondary-gray);
    font-size: 1.1rem;
    margin: 0;
}

/* Seção Produtos */
.service-item {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item .icon {
    margin-bottom: 20px;
}

.service-item .icon i {
    font-size: 3rem;
    color: var(--primary-red);
}

.service-item h3 {
    color: var(--primary-black);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--secondary-gray);
}

/* Seção Contato */
.info-item {
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
}

.contact form {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact form .form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact form button {
    background: var(--primary-red);
    color: var(--primary-white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: 0.3s;
}

.contact form button:hover {
    background: #a80000;
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
}

.footer .sitename {
    color: var(--primary-white);
}

.footer-links h4 {
    color: var(--primary-white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-white);
}

.footer-contact p {
    color: #adb5bd;
    margin-bottom: 5px;
}

.footer .social-links a {
    color: var(--primary-white);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: var(--primary-red);
}

.copyright {
    border-top: 1px solid #343a40;
    padding-top: 30px;
    color: #adb5bd;
}

.credits a {
    color: var(--primary-red);
    text-decoration: none;
}

/* Logo Styles - VERSÃO AINDA MAIOR */
.logo-img {
    height: 90px; /* Versão extra grande */
    width: auto;
    transition: all 0.3s ease;
}

/* Header logo específico - EXTRA GRANDE */
.header .logo-img {
    height: 80px; /* Bem maior */
}

/* Footer logo específico - EXTRA GRANDE */
.footer .logo-img {
    height: 70px; /* Bem maior */
}

/* Ajustes responsivos para o logo */
@media (max-width: 768px) {
    .header .logo-img {
        height: 65px;
    }
    
    .footer .logo-img {
        height: 55px;
    }
}

@media (max-width: 576px) {
    .header .logo-img {
        height: 55px;
    }
    
    .footer .logo-img {
        height: 45px;
    }
}

/* Retail Badge no Hero */
.retail-badge {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.retail-badge span {
    background: rgba(201, 0, 0, 0.1);
    color: var(--primary-black);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.retail-tagline {
    font-size: 1.1rem;
    color: var(--primary-black);
    font-weight: 500;
}

.retail-tagline strong {
    color: var(--primary-red);
}

/* ===== CORREÇÕES PARA NAVEGAÇÃO MOBILE ===== */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-black);
        z-index: 1001;
        background: none;
        border: none;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navmenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    .navmenu.navmenu-mobile {
        right: 0;
    }
    
    .navmenu ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .navmenu ul li {
        margin-bottom: 0;
    }
    
    .navmenu ul li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem;
    }
    
    .navmenu ul li:last-child a {
        border-bottom: none;
    }
}

/* Correção para sobreposição de conteúdo quando menu mobile está aberto */
body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ===== MELHORIAS DE RESPONSIVIDADE ===== */

/* Ajustes gerais para telas menores */
@media (max-width: 1200px) {
  .hero .welcome h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .hero .welcome h2 {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .logo-img {
    height: 65px;
  }
  
  .navmenu ul li a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .price-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Header e Navegação */
  .header .logo-img {
    height: 55px;
  }
  
  .topbar .contact-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .topbar .contact-info i {
    margin-bottom: 5px;
    margin-right: 0;
  }
  
  .topbar .contact-info i.ms-4 {
    margin-left: 0 !important;
  }
  
  /* Hero Section */
  .hero {
    padding: 60px 0;
  }
  
  .hero .welcome h2 {
    font-size: 1.8rem;
  }
  
  .hero .welcome p {
    font-size: 1rem;
  }
  
  .retail-badge {
    flex-direction: column;
    align-items: center;
  }
  
  .retail-badge span {
    margin-bottom: 8px;
    width: fit-content;
  }
  
  /* Sections */
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  /* About Section */
  .about .content ul li {
    flex-direction: column;
    text-align: center;
  }
  
  .about .content ul li i {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  /* Contato - Layout responsivo */
  .contact-info-row {
    gap: 20px;
  }
  
  .info-item {
    text-align: center;
    justify-content: center;
    margin-bottom: 25px;
  }
  
  .info-item.d-flex {
    flex-direction: column;
  }
  
  .info-item i {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 2rem;
  }
  
  /* Galeria */
  .gallery-item-b {
    height: 200px;
  }
  
  /* Preços */
  .price-categories {
    flex-direction: column;
    align-items: center;
  }
  
  .category-btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }
  
  .price-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer .logo-img {
    height: 50px;
  }
  
  .footer-top .row {
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  /* Ajustes para telas muito pequenas */
  .hero .welcome h2 {
    font-size: 1.5rem;
  }
  
  .hero .welcome p {
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .header .logo-img {
    height: 45px;
  }
  
  .footer .logo-img {
    height: 40px;
  }
  
  .gallery-item-b {
    height: 150px;
  }
  
  .price-card-header {
    height: 160px;
  }
  
  .icon-box, .service-item, .why-box {
    padding: 20px;
  }
  
  .cta-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .copyright {
    font-size: 0.9rem;
  }
}

/* ===== MELHORIAS ESPECÍFICAS PARA A SEÇÃO DE CONTATO ===== */
.contact-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.info-item {
  background: var(--primary-white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  min-height: 150px;
  display: flex;
  align-items: center;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-item i {
  font-size: 2rem;
  color: var(--primary-red);
  margin-right: 20px;
  flex-shrink: 0;
}

.info-item h3 {
  color: var(--primary-black);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.info-item p {
  color: var(--secondary-gray);
  margin: 0;
  line-height: 1.5;
}

/* Ajustes para telas médias */
@media (max-width: 992px) and (min-width: 769px) {
  .contact-info-row .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .contact-info-row .col-lg-4:last-child {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;
  }
}

/* Melhorias de legibilidade em telas pequenas */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Garantir que textos não quebrem layout */
  .retail-tagline, .hero .welcome p {
    word-wrap: break-word;
  }
}

/* Melhorias de acessibilidade e usabilidade */
@media (max-width: 768px) {
  /* Aumentar área de toque para botões */
  .navmenu ul li a, 
  .category-btn, 
  .buy-btn, 
  .more-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Garantir que inputs sejam legíveis */
  .form-control {
    font-size: 16px; /* Prevenir zoom no iOS */
  }
}

/* Correção para itens de contato em telas muito pequenas */
@media (max-width: 480px) {
  .contact-info-row .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .info-item {
    min-height: auto;
    padding: 20px 15px;
  }
  
  .info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
  }
}

/* Correção para galeria em telas muito pequenas */
@media (max-width: 400px) {
  .gallery-item-b {
    height: 120px;
  }
}

/* Correção para preços em telas muito pequenas */
@media (max-width: 380px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
  
  .price-card {
    margin: 0 10px;
  }
}

/* Garantir que as animações funcionem corretamente */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Correção para o topbar em mobile */
@media (max-width: 768px) {
  .topbar .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .topbar .contact-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
  }
  
  .topbar .contact-info i {
    justify-content: center;
  }
}

/* Melhorias de performance para animações */
@media (prefers-reduced-motion: reduce) {
  * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
  }
}

/* Otimização para orientação paisagem em dispositivos móveis */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 40px 0;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .gallery-item-b {
    height: 120px;
  }
}