*,
*::before,
*::after {
    box-sizing: border-box;
}
body { font-family: 'Montserrat', sans-serif; }
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}
@supports (overflow: clip) {
    html, body {
        overflow-x: clip;
    }
}
img,
svg,
video,
iframe,
canvas {
    max-width: 100%;
}

.nav-link-active {
    color: #E10600;
}
.nav-link-active::after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    background: #E10600;
    margin-top: 6px;
    border-radius: 999px;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(225, 6, 0, 0.6); /* semi-transparente, vermelho visível */
    box-shadow: 0 0 28px rgba(225, 6, 0, 0.45);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.12s linear;
    backdrop-filter: blur(0.4px);
}
.cursor-dot.is-visible {
    opacity: 0.85; /* mais translúcida, ainda visível */
    transition: opacity 0.18s ease;
}

.service-tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}
.service-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 27, 43, 0.2), rgba(11, 27, 43, 0.85));
}
.service-tile:hover img {
    transform: scale(1.05);
}
.service-tile-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.nav-parent {
    position: relative;
}
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 60;
}
.nav-menu {
    width: 360px;
    max-width: 85vw;
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #E10600 0%, #B80A06 100%);
    box-shadow: 0 16px 30px rgba(8, 18, 28, 0.35);
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide webkit scrollbars but keep scroll behavior */
.nav-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Subtle bottom fade to hint that the menu is scrollable without showing a scrollbar */
.nav-menu::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(0,0,0,0.06));
    pointer-events: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.nav-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.nav-parent:hover .nav-menu,
.nav-parent:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
.nav-menu a {
    white-space: normal;
    line-height: 1.2;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.82rem;
}
.nav-menu a:hover,
.nav-menu a:focus {
    background: rgba(255, 255, 255, 0.14) !important;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    z-index: 9998;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float i {
    font-size: 20px;
}
.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
}
.whatsapp-float span {
    display: none;
}
@media (min-width: 768px) {
    .whatsapp-float span {
        display: inline;
    }
}

/* Inputs with icons */
.input-with-icon {
    position: relative;
}
.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #E10600 !important;
    font-size: 14px;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}
.input-with-icon .has-icon {
    padding-left: 42px;
}

/* Footer email wrapping on mobile */
.footer-contact a,
.footer-contact span {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer-contact li {
    min-width: 0;
    flex-wrap: wrap;
}
.footer-contact span {
    display: block;
    max-width: 100%;
    flex: 1 1 0%;
    min-width: 0;
}
.footer-contact a {
    word-break: break-all;
}
.footer-email {
    word-break: break-all;
}
.footer-contact a {
    display: inline-block;
    max-width: 100%;
}

/* Logo slider (auto-scroll) */
.logo-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    background: #f4f5f7;
    border: none;
    border-radius: 12px;
    padding: 0;
    min-height: 128px;
    box-shadow: none;
    contain: layout paint;
}
.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.logo-slider::before {
    left: 0;
    background: linear-gradient(90deg, rgba(244, 245, 247, 1), rgba(244, 245, 247, 0));
}
.logo-slider::after {
    right: 0;
    background: linear-gradient(270deg, rgba(244, 245, 247, 1), rgba(244, 245, 247, 0));
}
.logo-track {
    display: flex;
    gap: 24px;
    align-items: center;
    width: max-content;
    position: absolute;
    left: 0;
    top: 50%;
    translate: 0 -50%;
    animation: logo-scroll 40s linear infinite;
    will-change: transform;
}
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}
.logo-track .client-logo {
    flex: 0 0 auto;
    height: 80px;
    min-width: 190px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.logo-track .client-logo img {
    max-height: 54px;
    width: auto;
    filter: grayscale(100%) brightness(0.9) contrast(1.05);
    opacity: 0.85;
    transition: filter 0.3s, opacity 0.3s;
}
.logo-track .client-logo:hover img {
    filter: grayscale(0%) brightness(1.05) contrast(1.1);
    opacity: 1;
}
.logo-slider .client-logo img,
.logo-slider .client-logo:hover img {
    filter: none;
    opacity: 1;
}
@media (min-width: 768px) {
    .logo-track .client-logo {
        height: 92px;
        min-width: 210px;
    }
    .logo-track .client-logo img {
        max-height: 64px;
    }
}
@keyframes logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Mobile tune-ups */
@media (max-width: 767px) {
    /* Hard stop horizontal scroll on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative;
    }
    /* Home hero height and typography */
    #home.hero-bg {
        height: 100svh;
        min-height: 100svh;
        padding-top: 88px;
        padding-bottom: 96px;
    }
    .hero-bg h1 {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
    }
    .hero-bg p {
        font-size: 1rem !important;
    }

    /* Logo slider cards smaller on mobile */
    .logo-track .client-logo {
        height: 68px;
        min-width: 160px;
        padding: 10px 16px;
    }
    .logo-track .client-logo img {
        max-height: 44px;
    }
    .logo-slider {
        min-height: 104px;
    }

    /* WhatsApp floating button */
    .whatsapp-float {
        right: 14px;
        bottom: 16px;
        padding: 10px 14px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
        display: flex !important;
        z-index: 99999;
        opacity: 1;
        visibility: visible;
        transform: translateZ(0);
    }

    /* Ensure hero images always cover on mobile */
    .hero-slider {
        transform: none !important;
        background-position: center center !important;
    }
    .hero-bg {
        overflow: hidden;
    }

    .services-page header {
        min-height: 22rem;
    }
    .services-page header .service-hero-image-wrapper img.service-hero-image {
        height: 100%;
        object-fit: cover;
    }

    /* Clamp wide elements on mobile to avoid horizontal overflow */
    .logo-slider,
    .logo-track,
    .service-tile,
    .service-card,
    .hero-bg,
    .hero-slider,
    .hero-overlay,
    .container,
    .max-w-3xl,
    .max-w-4xl,
    .grid,
    .text-center,
    .whatsapp-float {
        max-width: 100%;
    }

    /* Cards aligned to header width on mobile */
    .service-card,
    .service-tile,
    .logo-slider,
    .wa-modal-content {
        width: calc(100% - 48px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Prevent decorative elements from causing horizontal overflow */
#sobre,
#sobre .container {
    overflow-x: clip;
}
@media (min-width: 768px) {
    #sobre .md\:w-1\/2 {
        width: auto !important;
        flex: 1 1 0%;
        min-width: 0;
    }
}

.wa-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.wa-modal.is-open {
    display: flex;
}
.wa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 18, 0.75);
}
.wa-modal-content {
    position: relative;
    z-index: 1;
    width: min(520px, 92vw);
    background: #0F2236;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 24px 40px rgba(2, 6, 10, 0.5);
}
.wa-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.wa-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.wa-modal-subtitle {
    color: #C9CED6;
    font-size: 14px;
    margin-bottom: 18px;
}

        .bg-brand-grid {
            background-image:
                radial-gradient(circle at 15% 15%, rgba(225, 6, 0, 0.08), transparent 35%),
                radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.05), transparent 40%),
                linear-gradient(180deg, rgba(11, 27, 43, 0.98), rgba(6, 14, 22, 0.98));
        }
        
        /* Efeito Parallax no Hero */
.hero-bg {
    position: relative;
    overflow: hidden;
    perspective: 1000px; /* melhora sensação de profundidade */
}

/* Light theme overrides */
body.light-theme {
    background: #f5f7fb;
    color: #0f2236;
}
body.light-theme [class*="bg-[#0A0F16]"] { background-color: #f5f7fb !important; }
body.light-theme [class*="bg-[#0B1B2B]"] { background-color: #eef2f7 !important; }
body.light-theme [class*="bg-[#0E1C2A]"] { background-color: #ffffff !important; }
body.light-theme [class*="bg-[#0F2236]"] { background-color: #ffffff !important; }
body.light-theme [class*="bg-blue-900"] { background-color: #eef2f7 !important; }
body.light-theme [class*="bg-blue-800"] { background-color: #f4f6fb !important; }
body.light-theme .bg-brand-grid {
    background-image:
        radial-gradient(circle at 15% 15%, rgba(225, 6, 0, 0.08), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(11, 27, 43, 0.06), transparent 40%),
        linear-gradient(180deg, rgba(245, 247, 251, 0.98), rgba(255, 255, 255, 0.98));
}
body.light-theme [class*="text-white"] { color: #0f2236 !important; }
body.light-theme [class*="text-gray-200"],
body.light-theme [class*="text-gray-300"],
body.light-theme [class*="text-gray-400"] { color: #0f2236 !important; }
body.light-theme .text-compact-gray { color: #6b7280 !important; }
body.light-theme [class*="border-blue-900"],
body.light-theme [class*="border-blue-900/60"],
body.light-theme [class*="border-blue-800"] { border-color: rgba(15, 34, 54, 0.2) !important; }
body.light-theme .nav-link-active { color: #E10600; }
body.light-theme nav { background: #ffffff !important; }
body.light-theme nav a { color: #0f2236 !important; }
body.light-theme nav .nav-link-active { color: #E10600 !important; }
body.light-theme nav .nav-link-active::after { background: #E10600; }
body.light-theme #theme-toggle,
body.light-theme #theme-toggle-mobile {
    color: #0f2236 !important;
    border-color: rgba(15, 34, 54, 0.3) !important;
}
body.light-theme .nav-menu { background: #ffffff; }
body.light-theme .nav-menu a { color: #0f2236 !important; }
body.light-theme .nav-menu a:hover,
body.light-theme .nav-menu a:focus { background: rgba(15, 34, 54, 0.08) !important; }
body.light-theme .bg-[#07121C] {
    background-color: #0f2236 !important;
}
body.light-theme .bg-[#07121C] * {
    color: #ffffff !important;
}
body.light-theme [class*="bg-[#07121C]"] * {
    color: #ffffff !important;
}
body.light-theme .service-card,
body.light-theme .service-tile,
body.light-theme .client-logo { background: #ffffff !important; }
body.light-theme .service-card { border-color: rgba(15, 34, 54, 0.12) !important; }
body.light-theme .service-card:hover { box-shadow: 0 20px 35px rgba(15, 34, 54, 0.12); }
body.light-theme .logo-slider { background: #f4f5f7; border-color: transparent; }
body.light-theme .service-slide::after {
    background: linear-gradient(180deg, rgba(8, 18, 28, 0.1), rgba(8, 18, 28, 0.75));
}
body.light-theme .wa-modal-content { background: #ffffff; color: #0f2236; }
body.light-theme .wa-modal-title,
body.light-theme .wa-modal-subtitle { color: #0f2236; }
body.light-theme input,
body.light-theme textarea {
    background: #f4f6fb !important;
    border-color: rgba(15, 34, 54, 0.2) !important;
    color: #0f2236 !important;
}
body.light-theme input::placeholder,
body.light-theme textarea::placeholder { color: #6b7280 !important; }
body.light-theme .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 18, 28, 0.68) 0%, rgba(8, 18, 28, 0) 100%);
    backdrop-filter: none;
}
body.light-theme .hero-bg .text-transparent {
    background-image: linear-gradient(90deg, #fca5a5, #ffffff);
}
body.light-theme footer,
body.light-theme footer.bg-[#0F2236],
body.light-theme [class*="bg-[#0F2236]"] {
    background-color: #0a0a0a !important;
}
body.light-theme footer#contato {
    background-color: #0a0a0a !important;
}
body.light-theme footer#contato,
body.light-theme footer#contato * {
    color: #ffffff !important;
}
body.light-theme footer#contato .input-with-icon i {
    color: #E10600 !important;
}
body.light-theme footer#contato a.bg-blue-800,
body.light-theme footer#contato a.bg-blue-800 i {
    background-color: #E10600 !important;
    color: #ffffff !important;
}
body.light-theme .input-with-icon i {
    color: #E10600 !important;
}
body.light-theme [class*="bg-[#14273B]"] {
    background-color: #ffffff !important;
    border-color: rgba(15, 34, 54, 0.12) !important;
}
body.light-theme [class*="bg-[#14273B]"] .text-white,
body.light-theme [class*="bg-[#14273B]"] .text-gray-300 {
    color: #1f2937 !important;
}
body.light-theme [class*="bg-[#14273B]"] .text-compact-accent {
    color: #E10600 !important;
}
/* Keep white text on red buttons in light theme */
body.light-theme .bg-compact-accent,
body.light-theme [class*="bg-red-"],
body.light-theme [class*="bg-[#E10600]"] {
    color: #ffffff !important;
}
body.light-theme .bg-compact-accent *,
body.light-theme [class*="bg-red-"] *,
body.light-theme [class*="bg-[#E10600]"] * {
    color: #ffffff !important;
}
body.light-theme #numeros {
    background: #f1f4f9 !important;
}
body.light-theme #numeros .text-gray-300 {
    color: #6b7280 !important;
}
body.light-theme #sobre .bg-compact-blue,
body.light-theme #sobre .bg-compact-blue * {
    color: #ffffff !important;
}
body.light-theme #home [class*="text-white"] {
    color: #ffffff !important;
}
body.light-theme #home [class*="text-gray-300"],
body.light-theme #home [class*="text-gray-200"] {
    color: #c9ced6 !important;
}
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    background-size: cover;
    background-position: 50% 50%; /* central default, calc-based offsets will be applied */
    transition: opacity 0.8s ease, transform 0.18s linear;
    z-index: 0;
    pointer-events: none; /* não interferir com cliques/content */
    will-change: background-position, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    filter: saturate(1.25) contrast(1.08) brightness(1.05);
}
        .hero-slider.is-fading {
            opacity: 0;
        }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 28, 0.68) 0%, rgba(8, 18, 28, 0) 100%);
    backdrop-filter: none;
    z-index: 1;
}
        .type-cursor::after {
            content: '|';
            margin-left: 6px;
            color: #E10600;
            animation: blink 1s steps(2, start) infinite;
        }
        @keyframes blink {
            50% { opacity: 0; }
        }

        /* Hover Cards refinado */
        .service-card {
            transition: all 0.4s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%; /* stretch to match row height */
        }
        /* Ensure the CTA stays at the bottom of the card */
        .service-card > a {
            margin-top: auto;
        }
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
.service-card:hover .service-icon i {
    color: #FFFFFF;
}

/* Services slider (home) */
.service-slider-wrap {
    position: relative;
}
.service-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 22px;
    overflow-x: auto;
    padding: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.service-slider::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.service-slide {
    position: relative;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: none;
    display: block;
}
.service-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}
.service-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 28, 0.1), rgba(8, 18, 28, 0.75));
}
.service-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: #fff;
}
.service-slide-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: none;
    color: #ffffff !important;
}
.service-slide-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 10px;
    background: #E10600;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}
.service-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #E10600;
    border: none;
    box-shadow: none;
    z-index: 2;
}

.service-slider-btn.prev { left: -10px; }
.service-slider-btn.next { right: -10px; }

@media (min-width: 1024px) {
    .service-slider {
        grid-auto-columns: minmax(280px, 1fr);
    }
    .service-slide {
        height: 360px;
    }
}
@media (max-width: 767px) {
    .service-slider {
        grid-auto-columns: 78%;
        padding-left: 4px;
        padding-right: 4px;
    }
    .service-slider-btn {
        display: none;
    }
}

        /* Cliente Logo Grayscale para Colorido */
        .client-logo {
            transition: all 0.3s;
            box-shadow: 0 10px 22px rgba(2, 10, 20, 0.35);
        }
        .client-logo img {
            filter: grayscale(100%) brightness(0.85) contrast(1.05);
            opacity: 0.75;
            transition: all 0.3s;
        }
        .client-logo img.logo-boost {
            filter: grayscale(100%) brightness(1.15) contrast(1.15);
            opacity: 0.9;
        }
        .client-logo:hover img {
            filter: grayscale(0%) brightness(1) contrast(1.1);
            opacity: 1;
        }
        .client-logo:hover img.logo-boost {
            filter: grayscale(0%) brightness(1.05) contrast(1.15);
            opacity: 1;
        }
        .client-logo img.logo-strong {
            filter: grayscale(100%) brightness(1.2) contrast(1.2);
            opacity: 0.9;
        }
        .client-logo:hover img.logo-strong {
            filter: grayscale(0%) brightness(1.15) contrast(1.2);
            opacity: 1;
        }

        /* ----------------------- */
        /* Service pages layout improvements 🔧 */
        /* ----------------------- */
        /* Improve readability and visual rhythm for service pages */
        /* Center and constrain header content to match service content width */
        header > .container {
            max-width: auto; /* page max for header content */
            margin-left: auto;
            margin-right: auto;
            padding-left: 24px; /* match Tailwind px-6 */
            padding-right: 24px;
            box-sizing: border-box;
        }
        header > .container > h1 {
            max-width: 924px; /* matches service content width */
            margin-left: auto;
            margin-right: auto;
            text-align: left;
            line-height: 1.06;
            margin-bottom: 0.75rem;
        }
        header > .container > p {
            max-width: 924px; /* same width so the paragraph aligns */
            margin-left: auto;
            margin-right: auto;
            text-align: left;
            line-height: 1.9;
            font-size: 1.05rem;
            color: #c9ced6;
            margin-top: 0.75rem;
        }

        /* Service badge shown above H1 on service pages */
        .services-page .service-badge {
            /* container to align with content column */
            display: block;
            max-width: 924px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 14px;
            box-sizing: border-box;
        }
        .services-page .service-badge .badge-pill {
            display: inline-flex;
            gap: 0.6rem;
            align-items: center;
            padding: 8px 14px;
            border-radius: 9999px;
            background: #E10600;
            color: #fff;
            font-weight: 700;
            font-size: 0.95rem;
            box-shadow: 0 6px 18px rgba(225,6,0,0.12);
            border: 1px solid rgba(0,0,0,0.06);
            width: fit-content;
        }
        .services-page .service-badge .badge-pill i { font-size: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }


        /* Service content: ocupar toda a coluna à esquerda (sem recentralizar) */
        .service-content {
            max-width: 100%;
            margin-left: 0;
            margin-right: 0;
            padding-left: 0;
            padding-right: 0;
            font-size: 1rem;
            line-height: 1.9;
        }

        /* Coluna de conteúdo principal com largura controlada dentro do grid */
        .service-hero-main > * {
            max-width: 800px;
        }



        /* Full-bleed hero for service pages */
        /* Hero layout when used *inside* the page header to mimic home page */
        .services-page header { position: relative; overflow: hidden; min-height: 18rem; }
        @media (min-width: 768px) { .services-page header { min-height: 28rem; } }
        .services-page header > .container { position: relative; z-index: 2; }
        .services-page header .service-hero-image-wrapper {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            padding-left: 0;
            padding-right: 0;
            margin: 0;
        }
        .services-page header .service-hero-image-wrapper img.service-hero-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0; /* full bleed shouldn't have rounded corners */
            box-shadow: none;
            display: block;
        }
        /* Dark overlay so header text remains readable */
        .services-page header::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient(180deg, rgba(2,6,12,0.45) 0%, rgba(2,6,12,0.6) 100%);
            pointer-events: none;
        }

        /* Body images aligned with the content column */
        .services-page section .service-hero-image-wrapper {
            width: 100%;
            max-width: 100%;
            margin: 0 0 0.75rem;
            border-radius: 0.75rem; /* visually similar to Tailwind's rounded-xl */
            box-shadow: 0 14px 28px rgba(2,6,23,0.08);
        }
        @media (min-width: 768px) {
            .services-page section .service-hero-image-wrapper { padding-left: 0; padding-right: 0; }
        }
        .services-page section .service-hero-image-wrapper img.service-hero-image {
            width: 100%;
            height: auto !important; /* override utility heights to preserve aspect ratio */
            object-fit: cover;
            border-radius: inherit;
            display: block;
        }

        /* Keep smaller inline hero variant for other usages */
        .services-page .service-hero-image {
            width: 100%;
            height: 18rem; /* mobile default */
            object-fit: cover;
            display: block;
        }
        @media (min-width: 768px) {
            .services-page .service-hero-image { height: 28rem; }
        }

        /* Increase line-height and spacing for blocks inside grid containers */
        .container > .grid .text-gray-300,
        .container > .grid ul,
        .container > .grid p {
            line-height: 1.9;
            font-size: 1rem;
        }
        .container > .grid ul {
            margin-top: 0.5rem;
            padding-left: 1.25rem;
        }
        .container > .grid li {
            margin-bottom: 0.6rem;
        }

        /* Make primary CTA more prominent and consistent */
        .service-cta {
            padding: 0.95rem 2.2rem;
            font-size: 1rem;
            box-shadow: 0 14px 30px rgba(2,10,20,0.45);
            border-radius: 10px;
        }

        /* Subtle visual separators for long sections */
        .service-section-divider {
            border-top: 1px solid rgba(255,255,255,0.04);
            padding-top: 1.25rem;
            margin-top: 1.25rem;
        }

        /* Constrain direct content blocks inside header/section containers to create consistent gutters (only for service pages) */
        .services-page header > .container > h1,
        .services-page header > .container > p,
        .services-page section > .container > h2,
        .services-page section > .container > p,
        .services-page section > .container > ul,
        .services-page section > .container > .grid,
        .services-page section > .container > .text-center {
            max-width: 924px; /* consistent content column */
            margin-left: auto;
            margin-right: auto;
            padding-left: 20px;
            padding-right: 20px;
        }

        /* Remover re-centalizações herdadas para manter alinhamento à esquerda */

        /* Center the intro copy on services.php */
        body header .services-hero-intro,
        body header .services-hero-intro > * {
            text-align: center;
        }
        body header .services-hero-intro > h1,
        body header .services-hero-intro > p,
body header .services-hero-intro > div {
    margin-left: auto;
    margin-right: auto;
}

/* Engineer Responsible section layout */
.engineer-section .engineer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
    justify-items: center;
}
.engineer-section .engineer-media {
    display: flex;
    justify-content: center;
}
.engineer-section .engineer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.engineer-section .engineer-card {
    background: transparent;
    padding: 0;
    border-radius: 18px;
    box-shadow: none;
    height: 100%;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.engineer-section .engineer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px !important;
    display: block;
}

/* Hero de serviço com imagem de fundo */
.service-hero-banner {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.service-hero-banner .hero-electric {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.55) 60%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.45) 60%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.5) 60%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.4) 60%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.35) 60%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.6) 60%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 1px 220px, 1px 250px, 1px 200px, 1px 260px, 1px 230px, 1px 240px;
    background-position: 15% -260px, 35% -320px, 55% -280px, 72% -330px, 86% -300px, 94% -310px;
    animation: electric-rain 4.8s linear infinite;
    mix-blend-mode: screen;
    opacity: 0.85;
}
@keyframes electric-rain {
    0%   { background-position: 15% -260px, 35% -320px, 55% -280px, 72% -330px, 86% -300px, 94% -310px; }
    20%  { background-position: 15% 10%,    35% -320px, 55% -280px, 72% -330px, 86% -300px, 94% -310px; }
    40%  { background-position: 15% 50%,    35% 10%,    55% -280px, 72% -330px, 86% -300px, 94% -310px; }
    60%  { background-position: 15% 90%,    35% 50%,    55% 10%,    72% -330px, 86% -300px, 94% -310px; }
    80%  { background-position: 15% 130%,   35% 90%,    55% 50%,    72% 10%,    86% -300px, 94% -310px; }
    100% { background-position: 15% 170%,   35% 130%,   55% 90%,    72% 50%,    86% 10%,    94% -50px; }
}
.service-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 16, 26, 0.35) 0%, rgba(7, 16, 26, 0.85) 100%);
    pointer-events: none;
}
.service-hero-banner > * {
    position: relative;
    z-index: 1;
}

/* CTA parallax section */
.cta-parallax {
    position: relative;
    min-height: 260px;
    background-image: url('../img/cabine-primarias.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
@media (max-width: 767px) {
    .cta-parallax {
        background-attachment: scroll;
        min-height: 220px;
    }
    .cta-parallax__overlay {
        padding: 36px 18px;
    }
    .cta-parallax__content h2 {
        font-size: 1.75rem !important;
    }
}
.cta-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,16,26,0.75), rgba(7,16,26,0.82));
}
.cta-parallax__overlay {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}
.cta-parallax__content {
    text-align: center !important;
    max-width: 760px;
    margin: 0 auto;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.cta-parallax__content h2 {
    width: 100%;
    text-align: center !important;
}
.cta-parallax__content p {
    width: 100%;
    text-align: center !important;
}
.cta-parallax__content h2,
.cta-parallax__content p {
    color: #ffffff !important;
}
.cta-parallax__content a {
    text-align: center !important;
    color: #ffffff !important;
}
body.light-theme .cta-parallax__content,
body.light-theme .cta-parallax__content h2,
body.light-theme .cta-parallax__content p,
body.light-theme .cta-parallax__content a {
    color: #ffffff !important;
    text-align: center !important;
}

/* Force headings in services slider section to white in dark mode */
.services-page .text-white,
.services-page h2 {
    color: #ffffff !important;
}
@media (min-width: 768px) {
    .engineer-section .engineer-grid {
        grid-template-columns: repeat(2, auto);
        gap: 1.25rem;
        justify-content: center;
    }
    .engineer-section .engineer-media {
        justify-content: center;
    }
    .engineer-section .engineer-card {
        max-width: 250px;
    }
}

@media (max-width: 767px) {
    .engineer-section .engineer-card {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: auto;
    }
    .engineer-section .engineer-photo {
        height: auto;
    }
}

/* Service intro grid (image + texto + formulário) */
.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(620px, 1fr) 360px;
    gap: 32px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
}
.service-hero-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 800px;
    width: 100%;
}
.service-cta-card {
    position: relative;
    background: #0F2236;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 18px 32px rgba(3, 7, 12, 0.4);
}
.service-cta-card::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(225, 6, 0, 0.22);
}
.service-cta-card__badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e10600;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(225, 6, 0, 0.2);
}
.service-cta-card h3 {
    color: #ffffff !important;
}
.service-cta-card p {
    color: #f1f5f9 !important;
}
.service-input,
.service-textarea {
    width: 100%;
    background: #0B1B2B;
    border: 1px solid #1c3651;
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-input:focus,
.service-textarea:focus {
    border-color: #E10600;
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}
.service-submit-btn {
    width: 100%;
    background: linear-gradient(90deg, #e7342b, #ff5248);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.service-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(231, 52, 43, 0.32);
}
.service-cta-card__foot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #C9CED6;
    font-size: 0.85rem;
}
.service-cta-card__foot .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #14d88d;
    box-shadow: 0 0 0 6px rgba(20, 216, 141, 0.12);
}
@media (max-width: 1023px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .service-cta-card {
        order: -1;
    }
}

/* Alinhamento e contraste das páginas de serviço */
.services-page section h2,
.services-page section h3,
.services-page section h4,
.services-page section p,
.services-page section ul,
.services-page section li {
    text-align: left;
    color: #0f2236;
}
.service-hero-banner h1,
.service-hero-banner h2,
.service-hero-banner h3,
.service-hero-banner p {
    text-align: center !important;
    color: #ffffff !important;
}
.services-page section.bg-white *,
.services-page section:not([class*="bg-"]) * {
    color: #0f2236;
}

/* Conteúdo claro (como a referência) para seções de serviço */
.services-page section.bg-[#0E1C2A],
.services-page section.bg-[#0B1B2B] {
    background-color: #f6f7fb !important;
    color: #0f2236 !important;
}
.services-page section.bg-[#0E1C2A] * ,
.services-page section.bg-[#0B1B2B] * {
    color: #0f2236 !important;
}

/* Light theme: garantir contraste */
body.light-theme .service-cta-card {
    background: #0f2236;
    border-color: rgba(15,34,54,0.18);
}
body.light-theme .service-cta-card__badge { background: #e10600; color: #ffffff; }
body.light-theme .service-cta-card h3,
body.light-theme .service-cta-card p { color: #ffffff !important; }
body.light-theme .service-submit-btn { background: #e10600; color: #fff; }
body.light-theme .service-input,
body.light-theme .service-textarea {
    background: #eef2f7;
    border-color: rgba(15,34,54,0.2);
    color: #0f2236;
}
body.light-theme .service-hero-banner h1,
body.light-theme .service-hero-banner p { color: #ffffff !important; }
