/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    @apply overflow-x-hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Container principal */
.container {
    @apply px-4 mx-auto;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    @apply fixed top-0 left-0 w-full bg-white/95 backdrop-blur-sm shadow-md z-50;
    width: 100%;
    max-width: 100vw;
}

/* Estilos para o menu mobile */
.mobile-menu {
    @apply fixed top-0 right-0 h-full bg-white shadow-lg transform transition-transform duration-300 ease-in-out z-50;
    width: 80%;
    max-width: 300px;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.translate-x-full {
    transform: translateX(100%);
}

/* Overlay para quando o menu estiver aberto */
.mobile-menu-overlay {
    @apply fixed inset-0 bg-black bg-opacity-50 z-40 transition-opacity duration-300;
    width: 100vw;
    height: 100vh;
    transition: opacity 0.3s ease-in-out;
}

/* Ajustes para links do menu mobile */
.mobile-menu a {
    @apply block w-full text-left px-4 py-2 text-gray-700 hover:text-orange-500 transition-colors;
    white-space: normal;
    word-wrap: break-word;
}

.mobile-menu a:last-child {
    @apply mt-4 bg-green-500 text-white text-center rounded-full hover:bg-green-600;
}

/* Ajustes para o logo */
.logo a {
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* Ajustes para o botão do WhatsApp */
.whatsapp-button {
    @apply fixed bottom-8 right-8 bg-green-500 text-white w-16 h-16 rounded-full shadow-lg hover:bg-green-600 transition-all hover:scale-110 flex items-center justify-center group z-[9999];
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
    position: fixed !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-button i {
    transition: transform 0.3s ease;
    font-size: 2rem;
    color: white !important;
}

.whatsapp-button:hover i {
    transform: scale(1.1);
}

.whatsapp-button span {
    transition: all 0.3s ease;
    transform: translateX(10px);
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    pointer-events: none;
}

.whatsapp-button:hover span {
    transform: translateX(0);
    opacity: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .whatsapp-button {
        @apply bottom-6 right-6;
        width: 3.5rem;
        height: 3.5rem;
    }

    .whatsapp-button i {
        font-size: 1.75rem;
    }
}

/* Ajustes para seções */
section {
    @apply w-full;
    width: 100%;
    max-width: 100vw;
    padding: 2rem 0;
    overflow: hidden;
}

/* Ajustes para imagens */
img {
    @apply max-w-full h-auto;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ajustes para o carrossel */
.carousel {
    @apply w-full;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.carousel-inner {
    @apply w-full;
    width: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    @apply w-full;
    flex: 0 0 100%;
    width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        @apply px-4;
        width: 100%;
        max-width: 100%;
    }
    
    .grid {
        display: grid;
        gap: 1rem;
        width: 100%;
    }

    .grid-cols-1 {
        grid-template-columns: 1fr;
    }

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

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        @apply px-4;
        width: 100%;
        max-width: 100%;
    }
    
    h1 {
        @apply text-3xl;
    }
    
    .service-card {
        @apply mb-4;
    }

    .flex.flex-col.md\:flex-row {
        @apply flex-col;
        width: 100%;
    }

    .w-2\/3, .w-1\/3 {
        @apply w-full;
        max-width: 100%;
    }

    .carousel {
        @apply mt-8;
        width: 100%;
    }

    .carousel-item img {
        @apply h-64;
        width: 100%;
    }

    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Ajustes específicos para iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }

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

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-item img {
        height: 300px;
    }

    .grid.md\:grid-cols-2 video, .grid.md\:grid-cols-2 .relative.w-full video {
        min-height: 260px !important;
        max-height: 350px !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 1rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
        margin: 0 auto !important;
        display: block !important;
    }

    #localizacao, #localizacao iframe {
        min-height: 350px !important;
        width: 100% !important;
        display: block !important;
    }
}

/* Estilos personalizados */
.service-card {
    @apply bg-white p-6 rounded-lg shadow-lg transition-all duration-300 hover:transform hover:scale-105 hover:shadow-xl;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Animações */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Estilos para o FAQ */
.faq-item {
    @apply border-b border-gray-200 py-4;
}

.faq-question {
    @apply flex justify-between items-center cursor-pointer;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-answer {
    @apply mt-2 text-gray-600 hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    @apply block;
}

/* Estilos para o header fixo */
.header-scrolled {
    @apply bg-white/90 backdrop-blur-sm shadow-md;
}

/* Estilos para os botões CTA */
.cta-button {
    @apply bg-green-500 text-white px-8 py-3 rounded-full text-lg hover:bg-green-600 transition-colors transform hover:scale-105;
}

/* Estilos para os ícones */
.icon {
    @apply text-orange-500 transition-colors hover:text-orange-600;
}

/* Estilos para o footer */
footer a {
    @apply transition-colors hover:text-orange-500;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Estilos do Menu Mobile */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Estilos dos Cards de Serviço */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Estilos do Carrossel */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
}

.carousel-control {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0,0,0,0.7);
}

/* Estilos do FAQ */
.faq-question {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-answer {
    transition: all 0.3s ease;
}

/* Estilos do Catálogo */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Estilos do Modal */
.modal-overlay {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Utilitários */
.hidden {
    display: none !important;
}

.transition {
    transition: all 0.3s ease;
}

/* Estilos específicos para o Tailwind */
.bg-purple-200 {
    background-color: #e9d5ff;
}

.bg-purple-300 {
    background-color: #d8b4fe;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-green-500 {
    background-color: #22c55e;
}

.text-orange-500 {
    color: #f97316;
}

.text-green-500 {
    color: #22c55e;
}

/* Estilos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilos de acessibilidade */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilos de loading */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos gerais */
:root {
    --primary-color: #f97316;
    --secondary-color: #9333ea;
    --accent-color: #22c55e;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Header mais compacto no iPad */
  header {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  .logo img, .logo a img {
    height: 32px !important;
    max-width: 120px !important;
  }
  .logo {
    margin-right: 1rem !important;
  }
  nav.hidden.md\:flex, .hidden.md\:flex {
    gap: 1.5rem !important;
  }
  .container nav {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  /* Hero Section */
  .grid.md\:grid-cols-2 {
    gap: 2rem !important;
    align-items: center !important;
  }
  .grid.md\:grid-cols-2 > div:first-child {
    max-width: 420px !important;
  }
  .grid.md\:grid-cols-2 h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  .grid.md\:grid-cols-2 p {
    font-size: 1.1rem !important;
  }
  .grid.md\:grid-cols-2 button, .grid.md\:grid-cols-2 a.bg-green-500 {
    font-size: 1rem !important;
    padding: 0.7rem 2rem !important;
    border-radius: 2rem !important;
  }
  /*
  .grid.md\:grid-cols-2 video, .grid.md\:grid-cols-2 .relative.w-full video {
    max-width: 220px !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
    margin: 0 auto !important;
    display: block !important;
  }
  */
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .hidden.md\:flex {
    display: flex !important;
  }
  .lg\:hidden, .md\:hidden, .hidden.lg\:flex {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .grid.md\:grid-cols-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .grid.md\:grid-cols-2 > div {
    width: 100% !important;
    max-width: 100% !important;
  }
  .grid.md\:grid-cols-2 video,
  .grid.md\:grid-cols-2 .relative.w-full video {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    margin: 0 auto !important;
    display: block !important;
    background: #000 !important;
  }
}

@media (min-width: 1025px) {
  .grid.md\:grid-cols-2 video, .grid.md\:grid-cols-2 .relative.w-full video {
    object-fit: contain !important;
    width: 80% !important;
    max-width: 80% !important;
    height: 100% !important;
    max-height: 350px !important;
    min-height: 220px !important;
    margin: 0 auto !important;
    display: block !important;
  }
} 