/* ================================================
   DEDETIZADORA MS - Custom Styles
   Paleta: Azul Marinho + Laranja
   ================================================ */

/* ================================================
   CSS Variables & Base
   ================================================ */
:root {
    --navy-700: #1E3A5F;
    --navy-800: #152A45;
    --navy-900: #0D1A2B;
    --accent-500: #F97316;
    --accent-600: #EA580C;
}

* {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--accent-500);
    color: white;
}

/* ================================================
   Hero Section
   ================================================ */
.hero-section {
    min-height: 100vh;
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(30, 58, 95, 0.2) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ================================================
   Header & Navigation
   ================================================ */
#header {
    background: transparent;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(13, 26, 43, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-500);
    transition: width 0.3s ease;
}

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

/* ================================================
   Buttons
   ================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ================================================
   WhatsApp Floating Button
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ================================================
   Stats Cards
   ================================================ */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

/* ================================================
   Service Cards
   ================================================ */
.service-card {
    height: 100%;
}

.service-card .w-14 {
    transition: transform 0.3s ease;
}

.service-card:hover .w-14 {
    transform: scale(1.1) rotate(-5deg);
}

/* ================================================
   Testimonials
   ================================================ */
.testimonial-card {
    transition: all 0.3s ease;
}

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

/* ================================================
   Segmentos
   ================================================ */
.segmento-card i {
    transition: transform 0.3s ease;
}

.segmento-card:hover i {
    transform: scale(1.2);
}

/* ================================================
   Diferenciais
   ================================================ */
.diferencial-card {
    transition: all 0.3s ease;
}

.diferencial-card:hover {
    transform: translateY(-8px);
}

.diferencial-card:hover .w-16 {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* ================================================
   Form Styles
   ================================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom Select Arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Phone Input Mask Effect */
input[type="tel"] {
    font-variant-numeric: tabular-nums;
}

/* ================================================
   Scroll Animations
   ================================================ */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   Mobile Menu Animation
   ================================================ */
#mobileMenu {
    transform-origin: top;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================================
   Responsive Adjustments
   ================================================ */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 16px;
        right: 16px;
    }

    .hero-section {
        min-height: calc(100vh - 80px);
    }

    .font-display {
        letter-spacing: 0.02em;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================
   Loading State
   ================================================ */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   Map Container
   ================================================ */
#area-atuacao iframe {
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

#area-atuacao iframe:hover {
    filter: grayscale(0%);
}

/* ================================================
   Footer
   ================================================ */
footer a {
    transition: color 0.2s ease;
}

/* ================================================
   Scrollbar Styling
   ================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-500);
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    .whatsapp-float,
    #header,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ================================================
   Accessibility
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .whatsapp-pulse {
        display: none;
    }
}

/* Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}

/* ================================================
   High Contrast Mode
   ================================================ */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }

    .btn-secondary {
        border: 2px solid white;
    }
}
