/* ============================================
   MERX SERVICES - STYLESHEET COMPLETO
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER / NAVEGAÇÃO
   ============================================ */

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary);
}

.nav__link--admin {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.nav__link--admin:hover {
    background: var(--secondary);
    color: white;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero__content {
    animation: slideInUp 0.8s ease-out;
}

.hero__title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn--secondary {
    background: white;
    color: var(--primary);
}

.btn--secondary:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn--success {
    background: var(--success);
    color: white;
}

.btn--danger {
    background: var(--danger);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

.form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

textarea.input {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   COBERTURA / POSTCODE
   ============================================ */

.cobertura {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.cobertura h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark);
}

.cobertura__texto {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.cobertura__form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.cobertura__form .input {
    flex: 1;
    text-transform: uppercase;
}

.cobertura__form .btn {
    flex: 0 0 auto;
}

.cobertura__result {
    margin-top: 20px;
    min-height: 20px;
}

.cobertura__result.success {
    color: var(--success);
    font-weight: 600;
}

.cobertura__result.error {
    color: var(--danger);
    font-weight: 600;
}

/* ============================================
   SEÇÕES
   ============================================ */

section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

/* ============================================
   CARDS DE SERVIÇOS
   ============================================ */

.servicos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.servico-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.servico-card__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.servico-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 20px;
}

.servico-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   DIFERENCIAIS / CARDS
   ============================================ */

.diferenciais {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
}

.diferenciais .section-title {
    color: white;
}

.diferenciais__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.card__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card__title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.card__text {
    opacity: 0.9;
}

/* ============================================
   SEÇÃO ORÇAMENTO
   ============================================ */

.orcamento {
    background: #f8f9fa;
}

.orcamento .form {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SOBRE
   ============================================ */

.sobre-historia {
    background: white;
}

.sobre-historia__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.sobre-historia__content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    background: white;
}

.faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq__item {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq__question:hover {
    background: #efefef;
}

.faq__toggle {
    font-size: 20px;
    transition: var(--transition);
}

.faq__question.active .faq__toggle {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 20px;
    background: white;
    color: #555;
    line-height: 1.8;
}

/* ============================================
   CONTATO
   ============================================ */

.contato {
    background: #f8f9fa;
}

.contato__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contato__form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contato__form h2 {
    margin-bottom: 30px;
    color: var(--dark);
}

.contato__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contato__info h2 {
    color: var(--dark);
    margin-bottom: 20px;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-box--highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.info-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.info-box p {
    margin-bottom: 5px;
}

.info-box .small {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================
   CTA
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer__section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer__section a,
.footer__section p {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer__section a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.social-link {
    display: inline-block;
    margin-right: 15px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contato__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cobertura__form {
        flex-direction: column;
    }
    
    .cobertura__form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }
    
    .hero__title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .servicos__grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}