/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a5eb5;
    --primary-dark: #073d7a;
    --primary-light: #3a8fd4;
    --accent: #00b4d8;
    --dark: #0c1b2e;
    --text: #2c3e50;
    --text-light: #6b7c93;
    --white: #ffffff;
    --bg: #e8edf4;
    --panel: #f2f5f9;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(10,94,181,0.08);
    --shadow-lg: 0 8px 32px rgba(10,94,181,0.10);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 40px;
}

/* ============================
   LOADING SCREEN
   ============================ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #0c1b2e 0%, #0a3d6b 50%, #0c1b2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #3b9aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: url('../img/bg.png') no-repeat center top;
    background-size: cover;
    background-color: #f0f3f8;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   HEADER - minimal como no layout
   ============================ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-light);
}

.header-logo {
    height: 56px;
    width: auto;
}

.header-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.header-text small {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.7;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10,94,181,0.3);
}

.btn-outline {
    background: var(--white);
    color: var(--dark);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 20vh 0 120px;
    overflow: hidden;
    background: url('../img/hero.png') no-repeat center center;
    background-size: cover;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('../img/bg.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    pointer-events: none;
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        #f2f5f9 0%,
        #f2f5f9 35%,
        rgba(242, 245, 249, 0.7) 45%,
        rgba(242, 245, 249, 0.3) 55%,
        rgba(242, 245, 249, 0) 65%
    );
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    max-width: 100%;
    padding-left: 60px;
    margin: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin-left: 0;
}

.hero-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ============================
   SECTION PANELS (curved bg)
   ============================ */
.section-panel {
    position: relative;
    padding: 90px 0;
    margin: 0 auto;
    background: transparent;
}

/* ============================
   SECTION HEADERS
   ============================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 0.92rem;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================
   NOSSOS SERVIÇOS
   ============================ */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.servico-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
}

.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.servico-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(10,94,181,0.07), rgba(0,180,216,0.07));
}

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

.servico-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================
   POR QUE ESCOLHER
   ============================ */
.porque-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.porque-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border: 1px solid rgba(0,0,0,0.04);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.porque-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent);
}

.porque-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(10,94,181,0.07), rgba(0,180,216,0.07));
}

.porque-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.porque-text p {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Carousel Nav */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.carousel-nav .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-nav .dot.active {
    width: 24px;
    border-radius: 5px;
    background: var(--primary);
}

/* ============================
   DEPOIMENTOS
   ============================ */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.depoimento-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.depoimento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.depoimento-card.destaque {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(10,94,181,0.2);
}

.depoimento-card.destaque .depoimento-texto {
    color: rgba(255,255,255,0.9);
}

.depoimento-card.destaque .depoimento-autor span {
    color: rgba(255,255,255,0.7);
}

.depoimento-card.destaque .depoimento-stars {
    color: #fbbf24;
}

.depoimento-stars {
    color: #fbbf24;
    font-size: 0.8rem;
    margin-bottom: 14px;
    display: flex;
    gap: 2px;
}

.depoimento-texto {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.depoimento-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}

.depoimento-card.destaque .depoimento-avatar {
    background: rgba(255,255,255,0.2);
}

.depoimento-autor strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

.depoimento-autor span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================
   CTA SECTION
   ============================ */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,180,216,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ============================
   MODAL DE CONTATO
   ============================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 27, 46, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: url('../img/bg.png') no-repeat center center;
    background-size: cover;
    background-color: #f2f5f9;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.12);
}

.modal h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group label i {
    display: none;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 0.85rem;
    color: var(--primary-light);
    pointer-events: none;
    z-index: 1;
}

.textarea-wrap .input-icon {
    top: 14px;
    align-self: flex-start;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--dark);
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    outline: none;
}

.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255,255,255,0.6);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(10,94,181,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ba8b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.form-alert.success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-alert.error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-form .btn {
    transition: all 0.3s ease;
}

.modal-form input:disabled,
.modal-form textarea:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================
   FOOTER SIMPLES
   ============================ */
.footer-simple {
    text-align: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ============================
   FOOTER (legado)
   ============================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li i {
    color: var(--primary-light);
    font-size: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .hero {
        background-size: auto 100%;
        background-position: right center;
    }

    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(242, 245, 249, 0.97) 0%,
            rgba(242, 245, 249, 0.92) 50%,
            rgba(242, 245, 249, 0.7) 80%,
            rgba(242, 245, 249, 0.5) 100%
        );
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        padding-top: 40px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

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

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

    .section-header h2 {
        font-size: 1.7rem;
    }

}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }
}
