/* CSS Específico para Mobile - Lar Doce Jasmim */

/* Reset e configurações básicas para mobile */
* {
    box-sizing: border-box;
}

body {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container principal responsivo */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
}

/* Header mobile */
header {
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform: translateY(0);
}

/* Header mobile - esconder no scroll para baixo, mostrar no scroll para cima */
header.hidden-mobile {
    transform: translateY(-100%);
}

/* Header mobile - mostrar apenas quando necessário */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    header .container {
        padding: 0 1rem;
    }
    
    /* Reduzir altura do logo no mobile */
    header img {
        height: 2rem;
        max-height: 2rem;
    }
}

/* Efeito de transparência no scroll mobile */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Logo mobile */
.logo {
    height: 2.5rem;
    max-width: 200px;
}

/* Navegação mobile */
nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

nav li {
    width: 100%;
}

nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    margin: 0;
}

/* Hero section mobile */
.hero {
    padding: 2rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-buttons button {
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Seções mobile */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Grid responsivo mobile */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: 1fr;
}

/* Cards mobile */
.card {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Galeria mobile */
.gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carrossel mobile */
.carousel-container {
    padding: 0 1rem;
}

.carousel-track {
    height: 250px;
}

.card {
    width: 280px;
    height: 200px;
    margin: 0 0.5rem;
}

/* Depoimentos mobile */
.depoimentos-carousel-container {
    padding: 0 1rem;
}

.depoimento-slide {
    padding: 0 0.5rem;
}



/* Dots de Instagram mobile */
.instagram-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.2rem;
}

/* Todos os dots mobile - tamanho padrão */
.dot {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.2rem;
}

/* FAQ mobile */
.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1rem;
    font-size: 1rem;
}

.faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Instagram mobile */
.instagram-section {
    padding: 2rem 0;
}

.instagram-info {
    order: 2;
    margin-top: 2rem;
}

.instagram-preview {
    order: 1;
    margin-bottom: 2rem;
}

.instagram-carousel-track {
    height: 200px;
}

.instagram-slide img {
    height: 200px;
}

/* Botões mobile */
button {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

button:active {
    transform: scale(0.98);
}

/* Formulários mobile */
input, textarea, select {
    font-size: 16px;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

/* Footer mobile */
footer {
    padding: 2rem 0;
    text-align: center;
}

footer .grid {
    gap: 1.5rem;
}

/* Espaçamentos mobile */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Textos mobile */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* Utilitários mobile */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Cores mobile */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-primary { background-color: #3b82f6; }
.bg-secondary { background-color: #f1f5f9; }

.text-white { color: #ffffff; }
.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }

.border { border-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

/* Transições mobile */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Hover states mobile */
.hover\:bg-primary:hover { background-color: #3b82f6; }
.hover\:text-white:hover { color: #ffffff; }

/* Focus states mobile */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

/* Media queries específicas para mobile */
@media (max-width: 640px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .carousel-track {
        height: 200px;
    }
    
    .card {
        width: 250px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .card {
        width: 220px;
        height: 160px;
    }
    
    .instagram-carousel-track {
        height: 180px;
    }
    
    .instagram-slide img {
        height: 180px;
    }
}

/* Otimizações de performance para mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Prevenção de zoom em inputs no iOS */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    font-size: 16px;
}

/* Melhorias de acessibilidade para mobile */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Suporte a dark mode mobile */
@media (prefers-color-scheme: dark) {
    .bg-white {
        background-color: #1f2937;
    }
    
    .text-gray-900 {
        color: #f9fafb;
    }
    
    .text-gray-700 {
        color: #d1d5db;
    }
    
    .text-gray-600 {
        color: #9ca3af;
    }
    
    .border-gray-200 {
        border-color: #374151;
    }
}

/* Botão flutuante WhatsApp mobile */
#whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

#whatsapp-float a {
    display: flex;
    align-items: center;
    background-color: #10b981;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

#whatsapp-float a:hover {
    background-color: #059669;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

#whatsapp-float svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

#whatsapp-float span {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Animação de pulso para chamar atenção */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

#whatsapp-float a {
    animation: whatsapp-pulse 2s infinite;
}

/* Responsividade do botão */
@media (max-width: 480px) {
    #whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    #whatsapp-float a {
        padding: 0.625rem 0.875rem;
        min-width: 120px;
    }
    
    #whatsapp-float span {
        font-size: 0.75rem;
    }
    
    #whatsapp-float svg {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.375rem;
    }
}

