﻿/* ========================================
   GLOBAL STYLES & TYPOGRAPHY
   ======================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    font-weight: 400;
    background: white;
    color: #111827;
    transition: background-color 300ms ease, color 300ms ease;
}

:root {
    --primary-600: #1e40af;
    --primary-500: #2563eb;
    --primary-400: #60a5fa;
    --success-600: #059669;
    --success-500: #10b981;
    --warning-600: #d97706;
    --warning-500: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.2);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #111827;
    margin: 0;
}

h1 {
    font-size: clamp(28px, 5vw, 56px);
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(24px, 4.5vw, 42px);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(20px, 4vw, 32px);
    margin-bottom: 12px;
}

h4 {
    font-size: 22px;
    margin-bottom: 12px;
}

h5 {
    font-size: 18px;
    margin-bottom: 8px;
}

h6 {
    font-size: 16px;
    margin-bottom: 8px;
}

p {
    line-height: 1.7;
    letter-spacing: 0.4px;
    color: #4b5563;
    margin: 0 0 16px 0;
}

a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all var(--transition-base);
}

a:hover {
    color: #1e40af;
    text-decoration-thickness: 3px;
}

a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   SERVICE AREA BANNER
   ======================================== */

.area-banner {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 14px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 40;
    line-height: 1.5;
}

.area-banner i {
    margin-right: 8px;
    display: inline-block;
}

.area-banner strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .area-banner {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.nav-link-active {
    color: #2563eb;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    border-bottom: 3px solid #2563eb;
}

.nav-link-mobile {
    display: block;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link-mobile:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.nav-link-mobile-active {
    color: #2563eb;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}

.menu-ativo {
    color: #2563eb;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    border-bottom: 3px solid #2563eb;
}

/* ========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

button,
a[role="button"],
[role="button"] {
    min-height: 44px;
    min-width: 44px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:focus,
a[role="button"]:focus,
[role="button"]:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-base), height var(--transition-base);
    z-index: 0;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-elevated {
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.btn-elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-elevated:active {
    transform: translateY(0px);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    background: white;
    color: #111827;
    transition: all var(--transition-base);
    width: 100%;
    line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */

.card-hover {
    transition: all var(--transition-base);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: white;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left var(--transition-slow);
    z-index: 1;
}

.card-hover:hover::before {
    left: 100%;
}

/* ========================================
   ALERT & HIGHLIGHT BOXES
   ======================================== */

.area-destaque {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}

.area-destaque::before {
    content: 'âš¡';
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    opacity: 0.2;
}

.area-destaque h3 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
}

.area-destaque p {
    color: #78350f;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3), 0 8px 24px rgba(37, 211, 102, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-base);
    animation: slideInUp 0.5s ease-out 0.3s both, float-pulse 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 12px 32px rgba(37, 211, 102, 0.3);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: ripple-whatsapp 2s infinite;
    z-index: -1;
}

.whatsapp-float::before {
    content: 'Chame o Flávio!';
    position: absolute;
    right: 85px;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    letter-spacing: 0.3px;
}

.whatsapp-float:hover::before {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float::before {
        display: none;
    }

    .whatsapp-float::after {
        display: none;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes float-pulse {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes ripple-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-padding {
    padding: 60px 24px;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 16px;
    }
}

.gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e40af, #2563eb);
    background-clip: content-box;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 12px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    p {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
}


