/* =========================================
   Grupo Machado - Core Styles (Conversion Focused)
   ========================================= */

:root {
    /* Colors */
    --color-primary: #0056b3; /* Dark Blue */
    --color-primary-light: #007bff; /* Bright Blue */
    --color-secondary: #0099ff; /* Light Accent Blue */
    --color-whatsapp: #25D366; /* WhatsApp Green */
    --color-whatsapp-hover: #1aa04b;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-heading: #1a1a1a;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Shadows & Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.text-upper { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.color-primary { color: var(--color-primary-light); }
.font-bold { font-weight: 700; }
.bg-light { background-color: var(--color-bg-light); }
.mt-4 { margin-top: var(--space-md); }
.section-padding { padding: var(--space-xl) 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-family: var(--font-heading);
    border: none;
}

.btn-primary {
    background-color: var(--color-whatsapp);
    color: white;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-phones {
    display: flex;
    gap: 16px;
}
.top-bar-phones a:hover {
    color: var(--color-secondary);
}

/* Header */
.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px;
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 40, 85, 0.9) 0%, rgba(0, 40, 85, 0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0; /* Align left */
}
.badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.6);
}
.highlight {
    color: var(--color-secondary);
    text-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.6);
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.trust-text {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Grids */
.grid-2, .grid-3 {
    display: grid;
    gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.align-center { align-items: center; }

/* Services Section */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}
.section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}
.service-card {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}
.icon-box {
    width: 64px; height: 64px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-md);
}
.service-card h3 {
    margin-bottom: var(--space-xs);
}
.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Trust Section */
.trust-images {
    position: relative;
}
.img-main {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 6px solid white;
}
.trust-content h2 {
    font-size: 2.25rem;
    margin: var(--space-xs) 0 var(--space-md);
}
.trust-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}
.benefit-list {
    list-style: none;
    margin-top: var(--space-md);
}
.benefit-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.check-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}
.benefit-list strong {
    display: block;
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: 1.125rem;
}
.benefit-list span {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    background-color: var(--color-bg);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}
.faq-item p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
}
.cta-banner h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}
.cta-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-md);
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #0a1128;
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 24px;
}
.footer-logo {
    max-width: 150px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-sm);
    filter: brightness(0.9);
}
.footer-info p {
    margin-bottom: 8px;
}
.footer-info strong {
    color: white;
}
.social-links {
    margin: var(--space-md) 0;
}
.social-links a {
    color: var(--color-secondary);
    font-weight: 600;
}
.social-links a:hover {
    color: white;
}
.copyright {
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .img-secondary { display: none; }
    .trust-content { margin-top: var(--space-lg); }
    .hero-title { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 12px; text-align: center; }
    .grid-3 { grid-template-columns: 1fr; }
    .top-bar { display: none; } /* Hide top bar on mobile */
    .hero { padding: 5rem 0; text-align: center; }
    .hero-content { margin: 0 auto; }
    .btn-lg { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; }
    .section-padding { padding: 4rem 0; }
}
