/* ============================================================================
   METIQ CLONE - CSS PRINCIPAL
   Design: Modernismo Corporativo com Dinamismo
   Cores: Azul Primário #003DA5 | Laranja Destaque #E67E22
   ============================================================================ */

/* ============================================================================
   RESET E VARIÁVEIS
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #003DA5;
    --primary-dark: #002570;
    --accent: #E67E22;
    --accent-dark: #D35400;
    --text-dark: #1a1a2e;
    --text-light: #555;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================================================
   TIPOGRAFIA
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ============================================================================
   CONTAINER E LAYOUT
   ============================================================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================================================
   HEADER E NAVEGAÇÃO
   ============================================================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

nav {
    display: none;
}

@media (min-width: 768px) {
    nav {
        display: flex;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-dark);
        text-decoration: none;
        border-radius: 0.375rem;
        transition: var(--transition);
    }

    nav a:hover {
        color: var(--primary);
        background-color: #f0f5ff;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.4);
    transform: translateY(-2px);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background-color: #f0f5ff;
    color: var(--primary);
}

.mobile-menu .cta-button {
    display: block;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    position: relative;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 0.8rem 0;
        min-height: 500px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-image-float {
    flex: 1;
    display: none;
    position: relative;
    height: 500px;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-image-float {
        display: flex;
    }
}

.floating-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));

}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ============================================================================
   SEÇÕES PRINCIPAIS
   ============================================================================ */

section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================================
   CARDS
   ============================================================================ */

/* Container para 2 Colunas */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna no mobile */
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 600px) {
    .cards-grid {
        /* Divide em 2 colunas iguais */
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Container para 3 Colunas */
.cards-grid-3 {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna no mobile */
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 992px) { 
    /* Aumentei o breakpoint para 992px para os cards não ficarem muito apertados */
    .cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
.card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #f0f5ff 0%, #e6eeff 100%);
}

.card-body {
    padding: 2rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    gap: 0.75rem;
}

/* ============================================================================
   FEATURES LIST
   ============================================================================ */

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-top: 0.25rem;
}

.feature-text {
    flex: 1;
}

.feature-text p {
    margin: 0;
    font-size: 1.125rem;
}

/* ============================================================================
   GRID LAYOUTS
   ============================================================================ */

.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .two-column {
        grid-template-columns: 1fr 1fr;
    }
}

.placeholder-box {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6eeff 100%);
    border-radius: 0.5rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-light);
}

.placeholder-box .emoji {
    font-size: 3rem;
}

/* ============================================================================
   PROCESSO STEPS
   ============================================================================ */

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================================================
   CLIENTES GRID
   ============================================================================ */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.client-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.client-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 286px;
    max-height: 160px;    
}

.client-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.client-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #003DA5 0%, #0052CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.client-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.client-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================================================
   DEPOIMENTOS
   ============================================================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition);
}

.testimonial:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.star {
    color: var(--accent);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================================================
   ESTATÍSTICAS
   ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ============================================================================
   FORMULÁRIO
   ============================================================================ */

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-group.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================================================
   BOTÕES
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 61, 165, 0.3);
}

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

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

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

.btn-block {
    width: 100%;
}

/* ============================================================================
   SEÇÕES COM FUNDO COLORIDO
   ============================================================================ */

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

.bg-primary h2,
.bg-primary h3 {
    color: var(--white);
}

.bg-primary p {
    color: rgba(255, 255, 255, 0.9);
}

.bg-light {
    background-color: var(--bg-light);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section p {
    color: #999;
    font-size: 0.875rem;
    margin: 0;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-contact a {
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ============================================================================
   MENSAGEM DE SUCESSO
   ============================================================================ */

.success-message {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.success-message .emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #4b7c5c;
    margin: 0;
}

/* ============================================================================
   ANIMAÇÕES
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none;
    }
}

/* ============================================================================
   BOTAO FLUTUANTE WHATSAPP
   ============================================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    z-index: 999;
}

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

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================================================
   ACESSIBILIDADE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para acessibilidade */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
