/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* VARIABLES */

:root {
    --color-primary: #007EA3;
    --color-primary-dark: #005a73;
    --color-primary-light: #e0f4f9;
    --color-bg-dark: #00384a;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --radius-lg: 18px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* LAYOUT HELPERS */

.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-light {
    background: #ffffff;
}

.section-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-header p {
    color: rgba(26, 26, 26, 0.75);
}

.section-primary .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.section-header-center {
    text-align: center;
}

.section-logos {
    padding-bottom: 4rem;
}

.logo-row {
    margin-top: 2rem;
}

.logo-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1.5rem 0;
    background: white;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: logos-scroll 35s linear infinite;
}

/* Segunda linha anda no sentido contrário e um pouco mais devagar */
.logo-track-reverse {
    animation: logos-scroll-reverse 40s linear infinite;
}

.logo-item img {
    display: block;
    max-height: 60px;   /* padrão para horizontais */
    width: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Quadrados um pouco maiores */
.logo-row-square .logo-item img {
    max-height: 80px;
}

/* Pausar ao passar o mouse */
.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

/* Animações */
@keyframes logos-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes logos-scroll-reverse {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Responsivo: diminuir tamanho em telas pequenas */
@media (max-width: 768px) {
    .logo-item img {
        max-height: 40px;
    }

    .logo-row-square .logo-item img {
        max-height: 60px;
    }

    .logo-track,
    .logo-track-reverse {
        gap: 1.8rem;
    }
}


.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 126, 163, 0.96);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo-desktop {
    height: 44px;
}

.logo-mobile {
    height: 40px;
    display: none;
}

.nav {
    display: flex;
    gap: 18px;
    margin-left: 32px;
}

.nav-link {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #ffdd55;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* BOTÕES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: #ffdd55;
    color: #1f2933;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.22);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-full {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
}

.section-primary .btn-full {
    background: #ffffff;
    color: var(--color-primary-dark);
}

.btn-full:hover {
    filter: brightness(0.95);
}

.btn-secondary-light {
    background: #ffffff;
    color: var(--color-primary);
}

.btn-secondary-light:hover {
    filter: brightness(0.95);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: #ffffff;
}

.btn-whats-header {
    background: #22c55e;
    color: #ffffff;
    padding: 8px 18px;
}

/* MENU MOBILE */

.menu-toggle {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
}

/* HERO */

.hero {
    position: relative;
    min-height: 90vh;
    padding-top: 100px;
    color: var(--color-white);
    background: var(--color-primary);
    overflow: hidden;
}

.hero-parallax {
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.12) 0, transparent 55%),
                      radial-gradient(circle at 80% 10%, rgba(255,255,255,0.16) 0, transparent 60%),
                      linear-gradient(135deg, #007EA3, #004561);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 0;
}

.hero-watermark {
    position: absolute;
    inset: 0;
    background: url("../img/logoMKS_horizontal_white.png") center center/contain no-repeat;
    opacity: 0.14;
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}
/* No mobile usa a versão 500x500 branca como marca d'água */
@media (max-width: 768px) {
    .hero-watermark {
        background-image: url("../img/logoMKS_500x500_white.png");
        background-size: 85%;
        background-position: center 45%;
    }
}


.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    z-index: 2;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.02rem;
    margin-bottom: 16px;
    max-width: 520px;
}

.hero-list {
    list-style: none;
    margin-bottom: 24px;
}

.hero-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.hero-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    color: #ffdd55;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* HERO DEVICES */

.hero-media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
}

.device {
    border-radius: 24px;
    background: rgba(255,255,255,0.08);
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.device-laptop {
    width: 320px;
    height: 210px;
}

.device-phone {
    width: 140px;
    height: 220px;
}

.device-screen {
    background: #ffffff;
    border-radius: 16px;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.device-illustration {
    flex: 1;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    margin-top: 8px;
}

/* Ajuste os nomes dos arquivos como você preferir */
.device-illustration-site {
    background-image: url("../img/hero_site_demo.png");
}

.device-illustration-chatbot {
    background-image: url("../img/hero_chatbot_demo.png");
}


.device-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.device-lines span {
    display: block;
    height: 7px;
    border-radius: 6px;
    background: #e5e7eb;
    margin-bottom: 5px;
}

.device-lines span:nth-child(1) {
    width: 80%;
}
.device-lines span:nth-child(2) {
    width: 70%;
}
.device-lines span:nth-child(3) {
    width: 90%;
}
.device-lines span:nth-child(4) {
    width: 55%;
}

.device-bubbles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-bubbles span {
    display: inline-block;
    border-radius: 16px;
    padding: 6px 8px;
    font-size: 0.72rem;
    background: #e5f7ff;
    align-self: flex-start;
}

.device-bubbles span:nth-child(2) {
    align-self: flex-end;
    background: #dcfce7;
}

/* EQUIPE */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.team-card {
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.team-card h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.team-card p {
    font-size: 0.85rem;
    color: #4b5563;
}

/* CARDS DESTAQUE */

.cards-highlight .card {
    background: #ffffff;
    color: #111827;
    border-radius: var(--radius-lg);
    padding: 20px 20px 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cards-highlight .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.25);
}

/* Ícone redondo no topo do card */
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

/* Faixa de preço destacada */
.card-price-highlight {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(90deg, #ffdd55, #ffc93b);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 6px;
}

.card-price-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-price-value {
    font-weight: 700;
}


.card-price {
    font-size: 0.95rem;
    color: #374151;
}

.card-price span {
    font-weight: 400;
}

.cards-highlight ul {
    list-style: none;
    margin-bottom: 14px;
}

.cards-highlight li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.cards-highlight li::before {
    content: "✔";
    position: absolute;
    left: 0;
    font-size: 0.82rem;
    color: var(--color-primary);
}

.cards-highlight small {
    font-size: 0.78rem;
    color: #6b7280;
}

/* OUTROS SERVIÇOS */

.section-services-extra {
    position: relative;
    overflow: hidden;
}

.services-grid .service-item {
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.services-grid .service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    background: #ffffff;
}

.services-grid h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.services-grid p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Ícone redondo em cada solução */
.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

@media (min-width: 961px) {
    .section-services-extra::before {
        content: "";
        position: absolute;
        right: -120px;
        top: 10%;
        width: 480px;
        height: 480px;
        background: url("../img/logoMKS_horizontal_color.png") center/contain no-repeat;
        opacity: 0.06;
        pointer-events: none;
    }
}


/* CARROSSEL SISTEMAS */

.section-systems {
    position: relative;
}

.carousel {
    position: relative;
    margin-top: 24px;
}

.carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 999px;
}

.carousel-item {
    min-width: 260px;
    max-width: 260px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.carousel-item h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.carousel-item p {
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    border: none;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.25);
    color: #ffffff;
    cursor: pointer;
    display: none; /* mobile-first */
}

.carousel-btn.prev {
    left: -4px;
}

.carousel-btn.next {
    right: -4px;
}

/* DEPOIMENTOS */

.testimonials .testimonial {
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    padding: 18px 18px;
    background: #f9fafb;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonial-name {
    font-weight: 600;
    color: #4b5563;
}

/* CONTATO */

.section-contact {
    background: linear-gradient(135deg, #007EA3, #00384a);
    color: #ffffff;
}

.contact-list {
    list-style: none;
    margin: 16px 0 20px;
}

.contact-list li {
    margin-bottom: 6px;
}

.contact-form {
    background: #ffffff;
    color: #111827;
    padding: 20px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
}

.checkbox-group input {
    flex-shrink: 0;
    width: auto;
}

.form-message {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* RODAPÉ */

.footer {
    background: #002532;
    color: #cbd5f5;
    padding: 16px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
}

.footer-logo {
    height: 36px;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    color: #e5e7eb;
}

/* WHATSAPP FLOAT */

.whats-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #22c55e;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    font-size: 0.9rem;
    z-index: 40;
}

/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 92%;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 20px 18px;
    box-shadow: var(--shadow-soft);
}

.modal-content h2 {
    margin-bottom: 6px;
}

.modal-content p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 10px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* RESPONSIVO */

@media (max-width: 960px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .hero p,
    .hero-list {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-media {
        margin-top: 24px;
    }

    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .carousel-btn {
        display: none;
    }
}

/* Mobile / header */

@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .nav {
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0, 60, 80, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 18px;
        gap: 10px;
        min-width: 180px;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .btn-whats-header {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-parallax {
        background-attachment: scroll; /* evita bug em mobile */
    }
}

/* Tablets - mostrar botões do carrossel */

@media (min-width: 961px) {
    .carousel {
        overflow: hidden;
    }

    .carousel-track {
        overflow: hidden;
    }

    .carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.about-grid {
    align-items: center;
}

.about-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    max-width: 320px;
    width: 100%;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
}

.about-stat {
    min-width: 90px;
}

.about-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.about-stat-label {
    font-size: 0.85rem;
    color: #4b5563;
}

.section-team {
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
    color: #ffffff;
}

/* cards da equipe já estão configurados, só estilizar um pouco mais se quiser */
.team-grid-cards .team-card {
    background: #ffffff;
    color: #111827;
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

/* logo central embaixo dos cards */
.section-team-logo {
    margin-top: 30px;
    display: flex;
    justify-content: center; /* centraliza horizontal */
    align-items: center;     /* garante alinhamento vertical */
    width: 100%;
}

.section-team-logo img {
    max-width: 260px;
    opacity: 0.9;
    margin: 0 auto;          /* reforço pra manter no centro */
    display: block;
}

.team-grid-cards .team-card {
    background: #ffffff;
    color: #111827;
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.section-team .team-card h3 {
    margin-bottom: 6px;
}

.section-team .team-card p {
    font-size: 0.9rem;
    color: #4b5563;
}

.section-cta-final {
    background: #007EA3;
    color: #ffffff;
    text-align: center;
}

.section-cta-final h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-cta-final p {
    max-width: 560px;
    margin: 0 auto;
}


.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    flex-wrap: wrap; /* para responsivo */
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.footer-counter {
    font-weight: 600;
}

/* =========================
   FUNIL REGISTRO DE MARCAS
   ========================= */


/* Se quiser ainda mais privacidade, pode aplicar um leve blur:
.team-avatar img {
    filter: blur(1.2px);
}
*/


