/* ===========================================
   Mecanicasa - Stylesheet
   =========================================== */

/* CSS Variables */
:root {
    --primary: #673de6;
    --primary-dark: #5025d1;
    --primary-light: #8b6ce8;
    --whatsapp: #25d366;
    --whatsapp-dark: #1da851;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #ffffff;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 16px 32px;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   Header
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
}

.logo-img-footer {
    filter: brightness(0) invert(1);
    height: 60px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.05'%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");
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ===========================================
   Serviços
   =========================================== */
.servicos {
    padding: 100px 0;
    background: var(--bg-white);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servico-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.servico-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 2rem;
}

.servico-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.servico-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Serviços - Grid Dinâmico */
.servicos-grid-compact {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.servico-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 12px 22px;
    text-align: center;
    transition: var(--transition);
}

.servico-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.servico-item-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
}

.servico-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Credenciamento - com fundo destaque */
.credenciamento-styled {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 60px 50px;
    color: var(--text-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.credenciamento-styled .section-title {
    color: var(--text-light);
    text-align: left;
    margin-left: 0;
}

.credenciamento-styled .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    margin-left: 0;
}

.credenciamento-styled .beneficios-list li {
    color: var(--text-light);
}

.credenciamento-styled .beneficios-list i {
    color: var(--whatsapp);
}

.credenciamento-styled .btn-primary {
    background: var(--text-light);
    color: var(--primary);
    font-weight: 700;
}

.credenciamento-styled .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.credenciamento-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ===========================================
   Como Funciona
   =========================================== */
.como-funciona {
    padding: 100px 0;
    background: var(--bg-light);
}

.passos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.passo {
    text-align: center;
    position: relative;
}

.passo-numero {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--whatsapp);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.passo-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 3rem;
    box-shadow: var(--shadow);
}

.passo h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.passo p {
    color: var(--text-medium);
    max-width: 280px;
    margin: 0 auto;
}

.cta-center {
    text-align: center;
}

/* ===========================================
   Credenciamento
   =========================================== */
.credenciamento {
    padding: 100px 0;
    background: var(--bg-white);
}

.credenciamento-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.credenciamento-text .section-title,
.credenciamento-text .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.beneficios-list {
    margin-bottom: 35px;
}

.beneficios-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.beneficios-list i {
    color: var(--whatsapp);
    font-size: 1.2rem;
}

.credenciamento-image {
    display: flex;
    justify-content: center;
}

.credenciamento-image img {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ===========================================
   FAQ
   =========================================== */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-header i {
    color: var(--primary);
    transition: var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 0 25px 25px;
    color: var(--text-medium);
    line-height: 1.7;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.logo-footer {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-contact h4,
.footer-qrcode h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-contact ul li {
    margin-bottom: 15px;
}

.footer-contact a,
.footer-contact span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--whatsapp);
}

.footer-contact i {
    font-size: 1.2rem;
    width: 24px;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-white);
    padding: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===========================================
   WhatsApp Float Button
   =========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    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);
    }
}

/* ===========================================
   Animations
   =========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .servicos-grid-compact {
        grid-template-columns: repeat(4, 1fr);
    }

    .credenciamento-styled {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 30px;
    }

    .credenciamento-styled .section-title,
    .credenciamento-styled .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .credenciamento-styled .beneficios-list li {
        justify-content: center;
    }

    .credenciamento-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .credenciamento-text .section-title,
    .credenciamento-text .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .beneficios-list li {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .nav-link {
        display: block;
        padding: 10px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 140px 20px 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-whatsapp {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .servicos-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .servico-item {
        padding: 20px 10px 16px;
    }

    .credenciamento-styled {
        padding: 40px 20px;
    }

    .passos-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-contact a,
    .footer-contact span {
        justify-content: center;
    }

    .qrcode-placeholder {
        margin: 0 auto;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .servico-card {
        padding: 30px 20px;
    }

    .servico-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .passo-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .accordion-header {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .accordion-content p {
        padding: 0 20px 20px;
    }
}
