/* ========================================
   AUTOBOT IA - Design System & Styles
   ======================================== */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
    /* Colors */
    --color-primary: #1E40AF;
    --color-primary-dark: #1e3a8a;
    --color-accent: #06B6D4;
    --color-accent-dark: #0891b2;
    --color-text: #0F172A;
    --color-text-light: #475569;
    --color-background: #F8FAFC;
    --color-white: #FFFFFF;
    --color-success: #16A34A;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Layout */
    --max-width: 1100px;
    --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--space-5);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-5);
    text-align: center;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-light);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

section {
    padding: var(--space-8) 0;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo svg {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.logo-text span {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--color-accent);
    vertical-align: super;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    min-height: 48px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1.125rem;
    min-height: 56px;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Hero Section with Banner ---------- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    background-color: var(--color-text);
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-6);
}

.hero h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-5);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
}

.hero-feature svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.hero-cta {
    margin-bottom: var(--space-4);
}

.hero .btn-primary {
    background: var(--color-accent);
    font-size: 1.125rem;
    padding: var(--space-4) var(--space-7);
}

.hero .btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.hero-microcopy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.city-highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* ---------- Services Section ---------- */
.services {
    background: var(--color-white);
    padding: var(--space-8) 0;
}

.services h2 {
    margin-bottom: var(--space-3);
}

.services-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-7);
    color: var(--color-text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.service-card {
    position: relative;
    padding: var(--space-6);
    background: var(--color-background);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
    border-color: var(--color-border);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    color: var(--color-white);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: var(--space-4);
    color: var(--color-text-light);
}

.service-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap 0.2s ease;
}

.service-card .btn-link:hover {
    gap: var(--space-2);
    color: var(--color-accent);
}

.service-card .btn-link svg {
    width: 16px;
    height: 16px;
}

/* Services grid responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Benefits Section ---------- */
.benefits {
    background: var(--color-background);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.benefit-card {
    padding: var(--space-6);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid var(--color-border);
}

.benefit-card:hover {
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.benefit-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- How It Works Section ---------- */
.steps {
    background: var(--color-white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
    margin-bottom: var(--space-7);
}

.step {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: var(--space-1);
}

.step-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Trust Signals ---------- */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    margin-bottom: var(--space-6);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

/* ---------- Final CTA ---------- */
.final-cta {
    text-align: center;
    padding: var(--space-7) 0;
    background: var(--color-primary);
    color: var(--color-white);
}

.final-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto var(--space-5);
}

.final-cta .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.final-cta .btn-primary:hover {
    background: var(--color-background);
}

/* ---------- FAQ Section ---------- */
.faq {
    background: var(--color-background);
}

.faq-list {
    max-width: 700px;
    margin: var(--space-6) auto 0;
}

.faq-item {
    padding: var(--space-5);
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    border: 1px solid var(--color-border);
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.faq-answer {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-7) 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--space-4);
}

.footer-logo svg {
    height: 32px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    font-size: 0.9rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

.footer-info a:hover {
    color: var(--color-accent);
}

.footer-legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

/* ---------- Floating WhatsApp Button (Right Bottom) ---------- */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-5);
    right: var(--space-5);
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Pulse animation */
.whatsapp-float a::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Remove old sticky CTA */
.sticky-cta {
    display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero-content {
        padding: var(--space-4);
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .header .btn {
        display: none;
    }

    section {
        padding: var(--space-7) 0;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .trust-bar {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }

    .footer-info {
        flex-direction: column;
        gap: var(--space-2);
    }

    .whatsapp-float {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .whatsapp-float a {
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Add padding at bottom for floating button */
    .footer {
        padding-bottom: calc(var(--space-7) + 80px);
    }
}

/* ---------- Accessibility ---------- */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-5);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: var(--space-3);
}