/* DMC Incorporações - Stylesheet Principal */
/* Importar Poppins como fallback */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 400;
    padding-top: 80px; /* Compensar altura do header fixo */
}

/* Garantir que o body seja visível */
body.loaded {
    opacity: 1 !important;
    visibility: visible !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
}

header.scrolled {
    padding: 6px 0;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    padding: 5px 0;
}

.logo img {
    width: auto !important;
    height: 60px !important;
    object-fit: contain !important;
    max-width: none !important;
    min-width: 100px !important;
    transform: scale(1.1) !important;
    transform-origin: left center !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #e53e3e;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #e53e3e;
    transition: width 0.3s ease;
}

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

.btn-primary {
    background: #e53e3e;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #c62828;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.3);
    text-decoration: none !important;
    outline: none;
}

/* Remove default button styles */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    text-decoration: none;
}

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

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    color: inherit;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.hamburger.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active:nth-child(2) {
    opacity: 0;
}

.hamburger.active:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Banner Section */
.banner-section {
    padding: 8px 0 15px;
    background-color: #f8f9fa;
    margin-top: 0;
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    min-height: 82.5vh;
    display: flex;
    align-items: center;
}

/* Fundo borrado cobrindo completamente o espaço */
.banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../Src/imagens/bannerOF.jpg') center/cover no-repeat;
    filter: blur(15px) brightness(0.8);
    transform: scale(1.1);
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82.5vh;
}

.banner-image {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: block;
    object-fit: cover;
}



/* Hero Section */
.hero {
    background: url('../Src/imagens/FOTO 01.jpg') no-repeat center center/cover;
    color: white;
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
    margin-bottom: 0;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5; /* Garante que todo o conteúdo hero fique acima do fundo */
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-align: left;
}

.hero-text .highlight {
    color: #e53e3e;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
    text-align: left;
}

.hero-text {
    text-align: left;
    display: grid;          /* permite usar justify-self no botão */
    align-content: start;   /* mantém os textos no topo da área */
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-self: center;
    position: relative;
    z-index: 10; /* Garante que os botões fiquem acima de outros elementos */
}

/* Desktop: manter botões alinhados à esquerda com gap horizontal */
@media (min-width: 993px) {
    .hero-text {
        display: block;
        text-align: left;
    }
    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
        justify-self: flex-start;
    }
    .hero-buttons .btn-hero,
    .hero-buttons .btn-primary {
        display: inline-flex;
        width: auto;
        max-width: max-content;
    }
}

/* Mobile: botões empilhados verticalmente */
@media (max-width: 992px) {
    .hero-buttons {
        align-items: center;
        width: 100%;
    }
    .hero-buttons .btn-hero,
    .hero-buttons .btn-primary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

.btn-hero {
    background: #e53e3e;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.btn-hero img {
    width: 15px;
    height: 15px;
}

.hero-image {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Section Separator */
.section-separator {
    /* Remove espaçamento extra entre seções no desktop */
    height: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    clear: both;
    display: none;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

/* About Section */
.about {
    padding: 80px 0;
    position: relative;
    overflow: visible;
    z-index: 1;
    margin-top: 0;
    /* Reduz padding-top para remover o espaço entre seções */
    padding-top: 40px;
    background-color: #fff;
    border-top: 1px solid #eaeaea;
    clear: both;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: #f8f9fa;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    position: relative;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #e53e3e;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.3);
    z-index: 2;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.about-image:hover .experience-badge {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(229, 62, 62, 0.4);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 0.95rem;
    margin-top: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-text {
    padding: 20px 0;
}

.about .section-label {
    color: #e53e3e;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.about .section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #e53e3e;
    border-radius: 50%;
}

.about-text h2 {
    font-size: 2.5rem;
    margin: 15px 0 25px;
    color: #1a1a1a;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #e53e3e;
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
    font-weight: 400;
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 35px 0 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 8px 0;
}

.feature-icon {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e53e3e;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #e53e3e;
}

.btn-secondary:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
}

.btn-secondary:active,
.btn-secondary:focus {
    background: #e53e3e;
    color: white;
    outline: none;
}

.btn-secondary img {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.btn-secondary:hover img {
    transform: translateX(3px);
}

.feature-icon {
    color: #e53e3e;
    font-weight: bold;
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}



.btn-clients {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 30px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-clients:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Clients Section */
.clients {
    padding: 120px 0;
    text-align: center;
    background: white;
}

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

/* Client Carousel */
.client-carousel {
    margin: 60px auto;
    max-width: 1000px;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: #e53e3e;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #e53e3e;
    transform: scale(1.2);
}

.clients h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 700;
}

.clients .section-label {
    color: #e53e3e;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients p {
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.clients-projects {
    margin-top: 60px;
}

.clients-projects .project-image {
    height: 250px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
    justify-items: center;
    align-items: start;
}

.client-item {
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.client-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #e53e3e;
}

.client-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #e53e3e, #d32f2f);
}

.client-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.client-item h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: #f8f9fa;
    text-align: center;
}

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

.projects h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: #333;
    font-weight: 700;
}

.projects .section-label {
    color: #e53e3e;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects p {
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    align-items: start;
}

/* Cards com altura uniforme - Updated */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    min-height: 400px !important;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Padronização específica para os 3 cards de clientes */
.clients-projects {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.clients-projects .project-card {
    flex: 0 0 280px;
    max-width: 280px;
}

.clients-projects .project-card .project-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.project-content {
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.project-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.project-status {
    color: #e53e3e;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 4px;
    display: inline-block;
    margin: 0 auto;
}

/* Project Categories Section */
.project-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.category-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.8), rgba(229, 62, 62, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-label {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-content {
    padding: 25px 20px;
    text-align: center;
}

.category-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.category-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact {
    background: url('../Src/imagens/FOTO 06.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 42px;
    margin-bottom: 24px;
    font-weight: 700;
    text-align: left;
}

.contact .section-label {
    opacity: 0.9;
    margin-bottom: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: left;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    color: white;
}

.contact-info img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.contact-info span {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #fff;
    box-sizing: border-box;
}

/* Form validation styles */
input:invalid, textarea:invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 1px #e53e3e;
}

input:focus:invalid, textarea:focus:invalid {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.25);
}

/* Phone input specific styles */
#telefone {
    padding-left: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 18px;
}

/* Form messages */
.form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

button .loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Form group with icon */
.form-group.has-icon {
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.btn-submit {
    background: #e53e3e;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 0;
    max-width: 300px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.btn-submit img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* About Section - Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 30px;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
        height: 400px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
        text-align: center; /* centraliza o título no mobile/tablet */
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .features-grid {
        max-width: 500px;
        margin: 35px auto 40px;
    }
    
    .experience-badge {
        padding: 12px 20px;
    }
    
    .experience-badge .number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Clients: container padding fix */
    .clients .container {
        padding: 0 20px;
    }

    .clients {
        overflow: hidden;
        padding: 80px 0;
    }
    /* Header mais compacto no mobile */
    header {
        padding: 6px 0;
    }
    .logo img {
        height: 44px !important;
    }
    .mobile-menu-toggle {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }
    .banner-section {
        padding: 15px 0 10px;
        margin-top: 64px;
        /* Corrige sobra/offset à esquerda no mobile: remove hack de full-bleed */
        width: 100%;
        position: relative;
        left: 0;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    /* Remover padding da container somente no banner para full-bleed */
    .banner-section .container { padding: 0; }

    /* Overlay sutil no topo do banner para contraste sob o header */
    .banner-section::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0) 60%);
        z-index: 1; /* acima do blur (::before), abaixo da imagem (.banner-content) */
        pointer-events: none;
    }
    
    .banner-image {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        /* Mostrar a imagem inteira no mobile, sem cortes */
        object-fit: contain;
        display: block;
        margin: 0;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-content {
        padding: 25px 20px;
    }
    
    .about-image {
        height: 350px;
    }
    
    .about-text h2 {
        font-size: 2rem;
        margin: 10px 0 20px;
    }
    
    .about-text p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .feature {
        justify-content: center; /* centro horizontal */
        align-items: center;     /* centro vertical do ícone com o texto */
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .about-image {
        height: 280px;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about .section-label {
        font-size: 0.9rem;
    }
    
    .experience-badge {
        padding: 10px 15px;
        bottom: 15px;
        right: 15px;
    }
    
    .experience-badge .number {
        font-size: 1.8rem;
    }
    
    .experience-badge .text {
        font-size: 0.85rem;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 20px;
    }
    
    .btn-primary {
        display: none;
    }
    
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero {
        padding: 80px 0 60px;
        text-align: center;
        margin-top: 0;
    }
    
    .hero-text h1,
    .hero-text p {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
      .hero-text p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .btn-hero {
        padding: 14px 28px;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto; /* centraliza o botão no mobile */
    }
    
    .hero-image {
        height: 300px;
        order: -1;
    }
    
    .about-text h2,
    .clients h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .about-image {
        height: 350px;
        order: -1;
    }
    
    .experience-badge {
        bottom: 20px;
        left: 20px;
        padding: 15px 20px;
    }
    
    .experience-badge .number {
        font-size: 1.5rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Projects grid - horizontal scroll carousel */
    .projects-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px 20px;
        margin: 0 -20px;
        scrollbar-width: none;
    }

    .projects-grid .project-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: start;
        box-sizing: border-box;
        height: 400px;
    }

    .projects-grid .project-card:first-child {
        margin-left: 0;
        scroll-margin-left: 20px;
    }

    .projects-grid .project-card:last-child {
        margin-right: 20px;
    }
    
    /* Clients projects - vertical stacking on mobile */
    .clients-projects {
        display: block;
        overflow: visible;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .clients-projects .project-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 0 20px 0;
        flex: none;
        box-sizing: border-box;
        height: 400px;
    }

    .clients-projects .project-card:last-child {
        margin-bottom: 0;
    }

    /* Mobile text alignment */
    .project-card .project-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .project-card h3,
    .project-card p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Evitar quebras indevidas em parágrafos no mobile */
    .hero-text p,
    .about-text p,
    .projects p,
    .clients p,
    .contact p {
        word-break: normal;
        overflow-wrap: break-word; /* evita estouro e quebras no meio da palavra */
        hyphens: auto;
        white-space: normal;
        line-height: 1.6;
    }

    .btn-hero,
    .btn-secondary,
    .btn-clients {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Garantir que imagens dos cards não estourem o container no mobile */
    .project-card img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    /* Evita que a página inteira ganhe scroll horizontal */
    html, body { 
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Garante que todas as seções respeitem a largura da tela */
    .hero,
    .about,
    .clients,
    .projects,
    .contact {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* WebKit: oculta barras de rolagem nos carrosséis */
    .projects-grid::-webkit-scrollbar {
        display: none;
        height: 0;
    }
    
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 400px;
        margin: 20px auto;
    }
    
    .feature {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        text-align: left;
        padding: 8px 0;
    }
    
    .contact-form {
        padding: 25px 20px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* revert: sem posicionamento especial do botão no desktop */

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .banner-section {
        padding: 10px 0 8px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .btn-hero {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .clients {
        padding: 60px 0;
    }
    
    .projects {
        padding: 60px 0;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 20px 15px;
        margin: 0;
    }
    
    .projects-grid {
        padding: 0 15px 20px;
        margin: 0 -15px;
    }
    
    .projects-grid .project-card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: auto;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    pointer-events: none; /* Impede interação com slides inativos */
    z-index: 1;
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto; /* Permite interação apenas com o slide ativo */
    z-index: 2; /* Garante que o slide ativo fique acima dos inativos */
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 0;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: none;
}

.carousel-btn:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

.carousel-btn:hover {
    background: transparent;
    transform: translateY(-50%) scale(1.2);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active,
.dot:hover {
    background: #e53e3e;
    border-color: #e53e3e;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-btn {
        width: 50px;
        height: 50px;
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Additional Mobile Layout Fixes */
@media (max-width: 768px) {
    /* Fix banner spacing issues */
    .banner-section {
        margin-bottom: 0;
    }
    
    .banner-section + .hero {
        margin-top: 0;
        padding-top: 60px;
    }
    
    /* Better mobile typography */
    .clients h2,
    .projects h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .clients .section-label,
    .projects .section-label {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    /* Better mobile button styling */
    .btn-hero {
        width: auto;
        max-width: max-content;
        padding: 12px 24px;
        margin: 0 auto;
        display: inline-flex;
    }
    
    /* Ensure hero content is properly centered */
    .hero-text {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-text h1,
    .hero-text p {
        text-align: center;
        width: 100%;
    }
}
