/*
==================================
    Estilos para Rodoenge Engenharia e Sinalização
==================================
*/

/* --- CSS Variables --- */
:root {
    --primary-color: #0160B0; /* Azul médio */
    --secondary-color: #011128; /* Azul escuro */
    --accent-color: #3498db; /* Azul claro para acentos */

    --text-dark: #1a1a1a; /* Texto escuro */
    --text-medium: #555555; /* Texto médio */
    --text-light: #ffffff; /* Texto claro */
    --text-muted: #777777; /* Texto suave */

    --bg-light: #ffffff;
    --bg-medium: #f5f7fa; /* Cinza muito claro para fundos */
    --bg-dark: #011128; /* Azul escuro para fundos */

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 6px;
    --box-shadow: 0 10px 30px rgba(1, 17, 40, 0.1);
    --transition-speed: 0.3s;
}

/* --- Base & Reset Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--secondary-color);
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5em;}
h3 { font-size: 1.6rem; font-weight: 600;}
h4 { font-size: 1.2rem; font-weight: 600;}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

.section-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.5px;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    height: var(--header-height);
    transition: background-color var(--transition-speed) ease, height var(--transition-speed) ease;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo img {
    max-height: 50px;
    transition: max-height var(--transition-speed) ease;
    filter: brightness(0) invert(1);
}

.site-header.scrolled .logo img {
    max-height: 40px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.header-cta {
    margin-left: 30px;
    padding: 10px 20px;
    font-size: 0.8rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(45deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    display: grid;
    grid-template-columns: 5fr 5fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 650px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-graphic {
    position: absolute;
    top: 30%;
    right: 20%;
    color: var(--accent-color);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
    font-size: 2.5rem;
}

.engineering-graphic {
    position: absolute;
    bottom: 30%;
    left: 20%;
    color: rgba(255,255,255,0.8);
    animation: float 3s ease-in-out infinite alternate;
    z-index: 2;
    font-size: 2.5rem;
}

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

.hero-bg-element {
    position: absolute;
    opacity: 0.08;
    z-index: 1;
}

.hero-bg-1 {
    width: 400px;
    height: 400px;
    border: 40px solid var(--text-light);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: rotate 20s linear infinite;
}

.hero-bg-2 {
    width: 250px;
    height: 250px;
    background-color: var(--primary-color);
    top: 80px;
    right: -125px;
    transform: rotate(45deg);
    animation: rotate 15s linear infinite reverse;
}

.hero-bg-3 {
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    top: 60%;
    left: 10%;
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- About Section --- */
.about-section {
    position: relative;
    background-color: var(--bg-light);
    padding: 120px 0;
    overflow: hidden;
}

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

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-medium);
}

.about-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-stats {
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(1, 96, 176, 0.3);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(1, 96, 176, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-card h3.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-light);
}

.stat-card p {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-bg-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
    z-index: -1;
}

/* --- Services Section --- */
.services-section {
    position: relative;
    background-color: var(--bg-medium);
    padding: 120px 0;
    overflow: hidden;
}

.services-carousel {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.services-carousel-inner {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.services-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 35px 25px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(1, 96, 176, 0.1);
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
    min-height: 280px;
}

.service-icon {
    width: 90px;
    height: 90px;
    background-color: rgba(1, 96, 176, 0.1);
    color: var(--primary-color);
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -25px;
    right: -25px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 3px 10px rgba(1, 96, 176, 0.3);
    pointer-events: auto;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    opacity: 1;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(1, 96, 176, 0.3);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.indicator.active {
    background-color: var(--primary-color);
}

.services-bg-element {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    opacity: 0.03;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 0;
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding: 120px 0;
    background-color: var(--bg-light);
    position: relative;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 30px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 96, 176, 0.85);
    color: var(--text-light);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    padding: 25px;
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease;
    width: 100%;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h5 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.overlay-content span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

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

.cta-text h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--text-light);
    border-color: #25D366;
    padding: 18px 35px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-speed) ease;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, var(--secondary-color) 25%, transparent 25%, transparent 50%, var(--secondary-color) 50%, var(--secondary-color) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    opacity: 0.05;
}

/* --- Location Section --- */
.location-section {
    padding: 120px 0 0 0;
    background-color: var(--bg-light);
    position: relative;
}

.location-section .section-header {
    padding: 0 15px;
}

.map-container {
    position: relative;
    height: 450px;
    margin-top: 60px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(0.3);
}

.contact-card {
    position: absolute;
    top: 50px;
    right: 50px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 350px;
    z-index: 10;
}

.contact-card h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.contact-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.contact-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-card ul li:last-child {
    margin-bottom: 0;
}

.contact-card ul li i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-muted);
    padding: 80px 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.site-footer h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-contact ul li,
.footer-links ul li {
    margin-bottom: 12px;
}

.footer-contact ul li a,
.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}

.footer-contact ul li a:hover,
.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    line-height: 45px;
    font-size: 1.2rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .counter-item h3.counter-number {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    :root { 
        --header-height: 70px; 
    }
    
    .container {
        max-width: 720px;
    }
    
    h1 { 
        font-size: 2.8rem; 
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-card h3.stat-number {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .service-card:first-child {
        grid-column: 1;
        display: block;
        text-align: center;
    }
    
    .service-card:first-child .service-icon {
        margin: 0 auto 30px;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 40px 20px;
        transition: left var(--transition-speed) ease;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 0 0 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta {
        display: none;
    }
    
    .counters-grid {
        flex-wrap: wrap;
    }
    
    .counter-item {
        flex: 0 0 50%;
        margin-bottom: 40px;
    }
    
    .counter-item:nth-child(2)::after {
        display: none;
    }
    
    .contact-card {
        position: relative;
        top: auto;
        right: auto;
        max-width: 100%;
        margin: -50px auto 0;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 { 
        font-size: 2.5rem; 
    }
    
    h2 { 
        font-size: 2rem; 
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .service-card:first-child {
        grid-column: 1;
        display: block;
        text-align: center;
    }
    
    .service-card:first-child .service-icon {
        margin: 0 auto 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .counter-item {
        flex: 0 0 100%;
    }
    
    .counter-item::after {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    h1 { 
        font-size: 2.2rem; 
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
    
    /* About Section - Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-card h3.stat-number {
        font-size: 2rem;
    }
    
    /* Services Section - Mobile */
    .services-carousel {
        padding: 0 20px;
    }
    
    .service-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .carousel-indicators {
        margin-top: 30px;
    }
    
    /* CTA Section - Mobile */
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-text p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn-whatsapp {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
