/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - VETORIAL ENGENHARIA
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary: #E31A22;
    --color-primary-hover: #C51219;
    --color-primary-light: rgba(227, 26, 34, 0.1);
    
    --color-dark-100: #0D0D0E;
    --color-dark-200: #141416;
    --color-dark-300: #1B1B1E;
    --color-dark-400: #2B2B30;
    
    --color-light-100: #FFFFFF;
    --color-light-200: #F7F8FA;
    --color-light-300: #EEEEF2;
    
    --color-text-primary: #141416;
    --color-text-secondary: #585860;
    --color-text-light: #FFFFFF;
    --color-text-muted: #8E8E9A;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light-100);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark-100);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 26, 34, 0.35);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-light-100);
    color: var(--color-light-100);
}

.btn-outline:hover {
    background-color: var(--color-light-100);
    color: var(--color-dark-100);
    transform: translateY(-2px);
}

/* Indicadores dos carrosséis (só aparecem no mobile, ver media query) */
.carousel-dots {
    display: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: rgba(20, 20, 22, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo img {
    height: 38px;
}

/* Desktop Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.03em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-light-100);
}

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

.nav-link.active {
    color: var(--color-light-100);
}

.nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-light-100);
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { top: 22px; }

/* Open State Mobile Toggle */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ==========================================================================
   SEÇÃO 1 - HERO
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://i.imgur.com/wd1LiDi.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-light-100);
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(13, 13, 14, 0.9) 0%, 
        rgba(20, 20, 22, 0.75) 50%,
        rgba(13, 13, 14, 0.9) 100%
    );
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.hero-pretitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 24px;
    display: inline-block;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 4px;
}

.hero-title {
    color: var(--color-light-100);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-light-300);
    margin-bottom: 40px;
    font-weight: 350;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Keyframes for Hero Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SEÇÃO 2 - SOBRE NÓS
   ========================================================================== */

.section-padding {
    padding: 100px 0;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-dark-100);
    margin-bottom: 32px;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-dark-100);
}

.value-info p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

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

.experience-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: var(--color-dark-100);
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-light-100);
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   SEÇÃO 3 - NOSSOS SERVIÇOS
   ========================================================================== */

.services-section {
    background-color: var(--color-light-200);
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header-center .section-title {
    margin-bottom: 16px;
}

.section-description {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Flexbox (em vez de grid) para que a última linha incompleta fique centralizada */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    flex: 0 1 calc((100% - 60px) / 3);
    background-color: var(--color-light-100);
    border-radius: 6px;
    padding: 40px 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-dark-100);
    transition: var(--transition-fast);
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Hover premium no card */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 26, 34, 0.15);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: var(--color-light-100);
    transform: scale(1.05);
}

/* ==========================================================================
   SEÇÃO 4 - PORTFÓLIO DE OBRAS
   ========================================================================== */

.portfolio-section {
    background-color: var(--color-light-100);
}

/* Mosaico uniforme: todas as fotos no mesmo formato (4:3), sem distorção */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Efeito scroll-scale controlado por JS (com fallback para sem JS) */
.js-enabled .portfolio-item.scroll-scale {
    /* opacity: 0; */
    /* transform: scale(0.92); */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.js-enabled .portfolio-item.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover discreto: apenas zoom na foto, sem legenda */
.portfolio-item:hover img {
    transform: scale(1.06);
}

/* ==========================================================================
   SEÇÃO 5 - CLIENTES
   ========================================================================== */

.clients-section {
    background-color: var(--color-light-200);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.clients-title {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    /* Efeito de fade nas laterais (premium) */
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 80px;
    padding-right: 80px;
    animation: marqueeContinuous 25s linear infinite;
    width: max-content;
    align-items: center;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--color-dark-400);
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0.45;
    transition: var(--transition-fast);
    cursor: default;
}

.marquee-item:hover {
    opacity: 0.9;
    color: var(--color-primary);
}

/* Pause marquee on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marqueeContinuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.3333%);
    }
}

/* ==========================================================================
   SEÇÃO 6 - LOCALIZAÇÃO
   ========================================================================== */

.location-section {
    background-color: var(--color-light-100);
}

.location-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.location-intro {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.address-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.address-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-icon svg {
    width: 22px;
    height: 22px;
}

.address-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-dark-100);
}

.address-text p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.map-wrapper {
    position: relative;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   SEÇÃO 7 - CONTATO
   ========================================================================== */

.contact-section {
    background-color: var(--color-light-200);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background-color: var(--color-light-100);
    border-radius: 6px;
    padding: 28px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(227, 26, 34, 0.15);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-dark-100);
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.contact-action {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 6px;
    transition: var(--transition-fast);
}

.contact-card:hover .contact-action {
    transform: translateX(4px);
}

/* Form Styles */
.contact-form-wrapper {
    background-color: var(--color-light-100);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0 8px 0;
    border: none;
    border-bottom: 2px solid var(--color-light-300);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark-100);
    transition: var(--transition-fast);
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Floating Label Animation */
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-primary);
    outline: none;
}

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   SEÇÃO 8 - FAQ (PERGUNTAS FREQUENTES)
   ========================================================================== */

.faq-section {
    background-color: var(--color-light-100);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--color-light-300);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-light-300);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-dark-100);
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-trigger span:first-child {
    padding-right: 20px;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon svg {
    width: 24px;
    height: 24px;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
    padding: 0 8px 24px 8px;
}

.faq-content-inner p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.faq-content-inner p a {
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.faq-content-inner p a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Active State Accordion */
.faq-item.active .faq-trigger {
    color: var(--color-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* ==========================================================================
   GLOBAL WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: var(--transition-smooth);
}

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

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    background-color: #20BA5A;
}

/* Pulse animation on the WhatsApp button */
.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
    opacity: 0;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ==========================================================================
   SEÇÃO 9 - RODAPÉ (FOOTER)
   ========================================================================== */

.site-footer {
    background-color: #0F0F10;
    color: #A3A3A8;
    padding: 80px 0 40px 0;
    font-size: 0.95rem;
    border-top: 1px solid #1F1F23;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo {
    max-height: 55px;
    width: auto;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #1F1F23;
    color: #FFFFFF;
    transition: var(--transition-smooth);
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-title {
    color: #FFFFFF;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #A3A3A8;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}

.footer-contact-info svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-info a {
    color: #A3A3A8;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-separator {
    border: 0;
    height: 1px;
    background-color: #1F1F23;
    margin: 50px 0 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-copyright {
    margin: 0;
}

.footer-legal {
    color: #A3A3A8;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-content {
        margin-top: -20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-dark-200);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        padding: 40px;
    }
    
    .nav-menu.mobile-active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid {
        gap: 24px;
    }

    .service-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-wrapper {
        height: 380px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

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

@media (max-width: 768px) {
    .hero-content {
        margin-top: -60px;
    }

    :root {
        --header-height: 70px;
    }

    .section-padding {
        padding: 60px 0;
    }
    
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .btn {
        width: 100%;
    }
    
    .experience-badge {
        bottom: 16px;
        left: 16px;
        padding: 12px 20px;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    /* Serviços em carrossel horizontal: evita uma coluna longa demais */
    .services-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 24px;
        /* sangra até as bordas da tela, mantendo o alinhamento no gutter de 24px */
        margin-inline: -24px;
        padding: 10px 24px 14px 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    /* Centralizar Tudo no Mobile (max-width: 768px) */
    .about-content {
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }

    .about-values {
        align-items: center;
    }

    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .service-card {
        align-items: center;
        text-align: center;
    }

    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .location-info-card {
        text-align: center;
    }

    .address-details {
        align-items: center;
    }

    .address-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .contact-channels {
        align-items: center;
    }

    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        width: 100%;
        max-width: 400px;
    }

    /* Portfólio em carrossel horizontal no Mobile */
    .portfolio-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 24px;
        margin-inline: -24px;
        padding: 4px 24px 10px 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio-item {
        scroll-snap-align: start;
    }

    /* Indicadores de posição dos carrosséis */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }

    .carousel-dot {
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .carousel-dot.active {
        width: 22px;
        border-radius: 4px;
        background-color: var(--color-primary);
    }

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

    .footer-separator {
        margin: 35px 0 25px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
