/* =============================================
   Cruzeiro Engenharia — CSS Completo
   Mobile-first | BEM naming
   ============================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ----- CSS Variables ----- */
:root {
    /* Colors */
    --primary: #0A2540;
    --primary-light: #0D3158;
    --primary-dark: #061B2E;
    --accent: #E8611A;
    --accent-hover: #D05516;
    --accent-light: #FFF3ED;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --text: #1A1A2E;
    --text-light: #4A5568;
    --text-muted: #718096;
    --success: #38A169;
    --error: #E53E3E;
    --warning: #D69E2E;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Sizes */
    --container: 1200px;
    --header-height: 72px;
    --top-bar-height: 40px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-header: 0 2px 10px rgba(0,0,0,0.1);

    /* Transitions */
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
}

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

h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

p:last-child {
    margin-bottom: 0;
}

a:hover {
    color: var(--accent);
}

strong {
    font-weight: 600;
}

/* ----- Layout ----- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--gray {
    background-color: var(--gray-50);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

/* Flex & Grid utilities */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

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

.btn--primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--primary:active {
    transform: translateY(0);
}

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

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

.btn--secondary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--gray-300);
}

.btn--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--full {
    width: 100%;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ----- Top Bar ----- */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.8125rem;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
}

.top-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar__right {
    display: flex;
    align-items: center;
}

.top-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition-fast);
}

.top-bar__link:hover {
    color: var(--white);
}

.top-bar__whatsapp {
    color: #25D366;
}

.top-bar__whatsapp:hover {
    color: #20BD5A;
}

/* Hide email on small screens */
@media (max-width: 767px) {
    .top-bar__left a:nth-child(2) {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }
}

/* ----- Header ----- */
.header {
    background-color: var(--white);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
    padding: 8px 0;
}

.header--scrolled {
    box-shadow: var(--shadow-header);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    min-width: 0;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header__cta {
    display: none !important;
}

/* ----- Navigation ----- */
.nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    z-index: 998;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav--open {
    display: block;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--gray-200);
    transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--accent);
}

.nav__arrow {
    transition: transform var(--transition);
}

.nav__item--mega.open .nav__arrow {
    transform: rotate(180deg);
}

/* Mega menu - mobile */
.mega-menu {
    display: none;
    padding: var(--space-sm) 0 var(--space-md);
}

.nav__item--mega.open .mega-menu {
    display: block;
}

.mega-menu__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Mega Menu simplificado — mobile (só categorias) */
.mega-menu__container--categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-sm) 0;
}

.mega-menu__category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.mega-menu__category:hover,
.mega-menu__category:active {
    background-color: var(--accent-light);
    color: var(--accent);
}

.mega-menu__category svg {
    flex-shrink: 0;
    color: var(--accent);
}

.mega-menu__category--all {
    background-color: var(--accent);
    color: var(--white);
    justify-content: center;
    border-bottom: none;
    border-radius: 6px;
    margin-top: var(--space-sm);
}

.mega-menu__category--all svg {
    color: var(--white);
}

.mega-menu__category--all:hover,
.mega-menu__category--all:active {
    background-color: var(--accent-hover);
    color: var(--white);
}

.mega-menu__category--all:hover svg,
.mega-menu__category--all:active svg {
    color: var(--white);
}

.mega-menu__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.mega-menu__title a {
    color: var(--accent);
    transition: color var(--transition-fast);
}

.mega-menu__title a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.mega-menu__list a {
    display: block;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.mega-menu__list a:hover {
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    z-index: 1001;
    position: relative;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* ----- Hero ----- */
.hero {
    position: relative;
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-3xl) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__title {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 100px;
}

.hero__badge svg {
    flex-shrink: 0;
}

/* ----- Service Cards ----- */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.card__icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--accent);
}

.card__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.card__list {
    margin-bottom: var(--space-lg);
}

.card__list li {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
}

.card__link:hover {
    gap: 10px;
    color: var(--accent-hover);
}

/* Card-núcleo: o card INTEIRO é clicável (home — 6 núcleos) */
.card--nucleo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: 100%;
}
.card--nucleo .card__link {
    margin-top: auto;
    padding-top: var(--space-sm);
}
.card--nucleo:hover {
    border-color: var(--accent);
}
.card--nucleo:hover .card__link {
    gap: 10px;
    color: var(--accent-hover);
}
.card--nucleo:hover .card__icon {
    background: var(--accent);
    color: var(--white);
}
.card--nucleo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Small service cards (3x3 grid) */
.service-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.service-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.service-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.service-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 6px;
    display: inline-block;
}

/* Variante em destaque usada nos Principais Serviços da home */
.service-card--featured {
    border-color: var(--gray-300);
    border-top: 3px solid var(--accent);
}
.service-card--featured .service-card__title {
    font-size: 1.0625rem;
    margin-bottom: 6px;
}
.service-card--featured .service-card__desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* ----- Counters ----- */
.counters {
    padding: var(--space-3xl) 0;
    background-color: var(--primary);
    color: var(--white);
}

.counters__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.counter__number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.counter__label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}

/* ----- CTA Section ----- */
.cta-section {
    background-color: var(--primary);
    padding: var(--space-2xl) 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-section p {
    color: #FFFFFF;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-section .btn--outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn--outline:hover {
    background-color: var(--white);
    color: var(--accent);
}

/* ----- Testimonials Carousel ----- */
.testimonials {
    overflow: hidden;
}

.carousel {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Mobile: 1 card por vez */
.carousel__slide {
    min-width: 100%;
    padding: 0 var(--space-sm);
    box-sizing: border-box;
}

/* Tablet: 2 cards */
@media (min-width: 768px) {
    .carousel__slide {
        min-width: 50%;
    }
}

/* Desktop: 4 cards (menores, mais compactos) */
@media (min-width: 1024px) {
    .carousel__slide {
        min-width: 25%;
    }
}

.testimonial {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial__stars {
    color: var(--warning);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.testimonial__text {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial__author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.testimonial__role {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.carousel__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.carousel__btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}

.carousel__btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.carousel__dots {
    display: flex;
    gap: 8px;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
    transition: background-color var(--transition);
    cursor: pointer;
    border: none;
}

.carousel__dot--active {
    background-color: var(--accent);
}

/* ----- FAQ Accordion (mobile-first, otimizado para compliance/desktop) ----- */
.faq__list {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .faq__list {
        max-width: 1000px;
    }
}

.faq__item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}

@media (min-width: 768px) {
    .faq__item {
        margin-bottom: 1rem;
    }
}

.faq__item:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq__item--open {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    background: var(--white);
    transition: background-color var(--transition-fast);
    min-height: 56px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .faq__question {
        padding: 1.25rem 1.75rem;
        font-size: 1.0625rem;
        gap: 1.5rem;
        min-height: 64px;
    }
}

.faq__question:hover {
    background-color: var(--gray-50);
}

/* Estica APENAS o wrapper de texto (se existir), nunca o ícone. */
.faq__question > span:not(.faq__icon) {
    flex: 1;
}

.faq__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .faq__icon {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

.faq__item--open .faq__icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    line-height: 1.75;
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .faq__answer-inner {
        padding: 0 1.75rem 1.5rem;
        font-size: 1rem;
        line-height: 1.8;
    }
}

.faq__answer-inner p {
    margin: 0;
}

.faq__answer-inner p + p {
    margin-top: 0.875rem;
}

/* FAQ inside .content article — remove constraint herdada e dá respiro */
.content .faq__list {
    max-width: 100%;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: var(--space-md) 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb__sep {
    color: var(--gray-400);
}

.breadcrumb__current {
    color: var(--primary);
    font-weight: 500;
}

/* ----- Form ----- */
.form {
    max-width: 700px;
    margin: 0 auto;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form__group {
    margin-bottom: var(--space-md);
}

.form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-color: var(--white);
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.15);
}

.form__input:invalid:not(:placeholder-shown),
.form__select:invalid:not([value=""]) {
    border-color: var(--error);
}

.form__input:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

.form__select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23495057' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.form__note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-md);
}

.form__message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-top: var(--space-lg);
}

.form__message[hidden] {
    display: none;
}

.form__message--success {
    background-color: #F0FFF4;
    border: 1px solid #C6F6D5;
    color: var(--success);
}

.form__message--error {
    background-color: #FFF5F5;
    border: 1px solid #FED7D7;
    color: var(--error);
}

.form__message svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.form__message strong {
    display: block;
    margin-bottom: 4px;
}

.form__message p {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.85;
}

/* Spinner */
.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn--loading .btn__text {
    opacity: 0;
}

.btn--loading .btn__spinner {
    display: block;
    position: absolute;
}

.btn--loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    cursor: wait;
}

.btn--loading .btn__text::after {
    content: 'Enviando...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9375rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- Footer ----- */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: var(--space-3xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.footer__logo img {
    height: 38px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer__about {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer__crea {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.footer__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

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

.footer__links li {
    margin-bottom: 8px;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.footer__contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.footer__contact a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer__contact a:hover {
    color: var(--accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

/* ----- WhatsApp Float ----- */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

/* ----- Back to Top ----- */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 86px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ----- Mobile CTA Bar ----- */
.mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--gray-200);
}

.mobile-cta-bar__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-fast);
}

.mobile-cta-bar__phone {
    color: var(--primary);
}

.mobile-cta-bar__phone:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.mobile-cta-bar__whatsapp {
    color: #25D366;
}

.mobile-cta-bar__whatsapp:hover {
    background-color: #F0FFF4;
    color: #25D366;
}

.mobile-cta-bar__orcamento {
    background-color: var(--accent);
    color: var(--white);
}

.mobile-cta-bar__orcamento:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

/* ----- Timeline / Como Funciona ----- */
.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-200);
}

.timeline__item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline__marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 1;
}

.timeline__content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.timeline__content p {
    font-size: 0.875rem;
}

/* ----- Trust Badges ----- */
.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.badge__icon {
    width: 48px;
    height: 48px;
    background-color: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.badge__text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ----- Area de Atuação ----- */
.area-atuacao__cities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.area-atuacao__city {
    background: var(--gray-50);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-light);
    border: 1px solid var(--gray-200);
}

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

/* 480px+ */
@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
    }

    .form__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px+ (Tablet) */
@media (min-width: 768px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }

    .counters__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: var(--space-4xl) 0;
        min-height: 550px;
    }

    .section {
        padding: var(--space-4xl) 0;
    }
}

/* 1024px+ (Desktop) */
@media (min-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(3, 1fr); }

    /* Desktop nav */
    .hamburger {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        overflow: visible;
    }

    .nav__list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-xs);
    }

    .nav__link {
        padding: 8px 14px;
        font-size: 0.9375rem;
        border-bottom: none;
        border-radius: var(--border-radius);
    }

    .nav__link:hover {
        background-color: var(--gray-50);
    }

    .nav__link.active {
        color: var(--accent);
    }

    /* Mega menu - desktop */
    .mega-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-xl);
        padding: var(--space-xl);
        min-width: 960px;
        z-index: 100;
    }

    .nav__item--mega {
        position: relative;
    }

    .nav__item--mega:hover .mega-menu {
        display: block;
    }

    .nav__item--mega.open .mega-menu {
        display: block;
    }

    .mega-menu__container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-md);
    }

    /* Mega Menu simplificado — só categorias (desktop) */
    .mega-menu__container--categories {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .mega-menu__category {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 8px;
        text-decoration: none;
        color: var(--primary);
        font-weight: 600;
        font-size: 0.9375rem;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

    .mega-menu__category:hover {
        background-color: var(--accent-light);
        color: var(--accent);
        border-color: var(--accent);
        transform: translateX(4px);
    }

    .mega-menu__category svg {
        flex-shrink: 0;
        color: var(--accent);
    }

    .mega-menu__category--all {
        background-color: var(--primary);
        color: var(--white);
        justify-content: center;
        grid-column: span 3;
        margin-top: var(--space-sm);
    }

    .mega-menu__category--all svg {
        color: var(--accent);
    }

    .mega-menu__category--all:hover {
        background-color: var(--accent);
        color: var(--white);
        border-color: var(--accent);
    }

    .mega-menu__category--all:hover svg {
        color: var(--white);
    }

    .header__logo img {
        height: 44px;
    }

    .header__cta {
        display: inline-flex !important;
    }

    .header__content {
        gap: var(--space-xl);
    }

    /* Hide mobile CTA bar on desktop */
    .mobile-cta-bar {
        display: none;
    }

    .whatsapp-float {
        bottom: 30px;
    }

    .back-to-top {
        bottom: 30px;
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .hero {
        min-height: 600px;
    }
}

/* 1280px+ (Large Desktop) */
@media (min-width: 1280px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }

    .container {
        padding: 0 var(--space-xl);
    }
}

/* ----- Print Styles ----- */
@media print {
    .top-bar,
    .header,
    .whatsapp-float,
    .back-to-top,
    .mobile-cta-bar,
    .hero__actions,
    .cta-section,
    .carousel__controls,
    .form,
    footer .footer__links,
    footer .footer__contact {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .section {
        padding: 1rem 0;
    }
}

/* =============================================
   LOTE 2 — PÁGINAS INSTITUCIONAIS
   ============================================= */

/* ----- Contato Page ----- */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.contato-form h2,
.contato-info h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.contato-form .form {
    max-width: 100%;
}

.contato-info__item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contato-info__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contato-info__item h3 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.contato-info__item p,
.contato-info__item a {
    font-size: 0.875rem;
    color: var(--text-light);
}

.contato-info__item a:hover {
    color: var(--accent);
}

.contato-info__map {
    margin-top: var(--space-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

/* ----- Equipe Page ----- */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.equipe-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition);
}

.equipe-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.equipe-card__foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-100);
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    overflow: hidden;
}

.equipe-card__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipe-card__nome {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.equipe-card__cargo {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.equipe-card__crea {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

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

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

/* ----- Area de Atuação ----- */
.area-section {
    margin-bottom: var(--space-2xl);
}

.area-section h3 {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.area-section__percentage {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    margin-left: 8px;
}

/* ----- Trabalhe Conosco ----- */
.vagas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.vaga-card {
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
}

.vaga-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.vaga-card__icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    color: var(--accent);
}

.vaga-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.vaga-card p {
    font-size: 0.8125rem;
}

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

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

/* =============================================
   UX IMPROVEMENTS + CROSS-BROWSER COMPAT
   ============================================= */

/* ----- iOS Safe Areas ----- */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-cta-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .whatsapp-float {
        bottom: calc(90px + env(safe-area-inset-bottom));
    }
}

/* ----- Touch Target Sizes (min 44px para acessibilidade mobile) ----- */
.nav__link,
.btn,
.faq__question,
.carousel__btn,
.hamburger,
.mobile-cta-bar__link,
.top-bar__link,
.top-bar__whatsapp,
.footer__links a,
.footer__contact a,
.breadcrumb__item a,
.breadcrumb a,
.mega-menu__list a,
.service-card,
.whatsapp-float,
.back-to-top,
.sticky-cta__phone,
.error-sitelinks__list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Exceções que já têm display block ou flex definido */
.service-card {
    display: flex;
}

.whatsapp-float,
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer links: garantir touch target sem quebrar layout */
.footer__links a,
.footer__contact a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
}

.carousel__dot {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.carousel__dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
    transition: background-color var(--transition);
}

.carousel__dot--active::after {
    background-color: var(--accent);
}

/* ----- Improved Focus Styles (Accessibility) ----- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ----- Reduced Motion (Accessibility) ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .carousel__track {
        transition: none;
    }
}

/* ----- Hero CSS Gradient Fallback (no image needed) ----- */
.hero__bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0F3D6B 100%);
    opacity: 1;
}

.hero__bg[style*="background-image"] {
    opacity: 0.2;
}

/* ----- Sobre Stats Grid ----- */
.sobre-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.sobre-stats__item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
}

.sobre-stats__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin: var(--space-sm) 0 4px;
}

.sobre-stats__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ----- CREA Badge ----- */
.crea-badge {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-xl);
}

/* ----- Mobile body padding for bottom bar ----- */
body {
    padding-bottom: 60px;
}

@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
}

/* ----- Samsung Internet / Firefox fixes ----- */
select {
    background-color: var(--white);
}

input[type="tel"],
input[type="email"],
input[type="text"],
input[type="url"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fix iOS input zoom on focus (font-size < 16px) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form__input,
    .form__select,
    .form__textarea {
        font-size: 16px;
    }
}

/* ----- Smooth scrollbar for WebKit ----- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ----- Selection color ----- */
::selection {
    background-color: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary);
    color: var(--white);
}

.cta-section ::selection,
.section--cta ::selection,
.hero ::selection,
[style*="background:var(--primary)"] ::selection,
[style*="background-color:var(--primary)"] ::selection {
    background-color: var(--white);
    color: var(--primary);
}

.cta-section ::-moz-selection,
.section--cta ::-moz-selection,
.hero ::-moz-selection {
    background-color: var(--white);
    color: var(--primary);
}

/* ----- Equipe card icon fallback ----- */
.equipe-card__foto {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-500);
}

.equipe-card__foto svg {
    opacity: 0.6;
}

/* ----- Improved hamburger touch area ----- */
.hamburger {
    width: 44px;
    height: 44px;
    padding: 8px;
}

/* ----- Better text rendering ----- */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
}

/* ----- Image broken state fallback ----- */
img {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ----- Opera Mini fallback ----- */
@media all and (-o-min-device-pixel-ratio: 0/1) {
    .hero__bg {
        background: var(--primary);
    }
}

/* =============================================
   FAQ PAGES — Estilos Completos
   ============================================= */

/* ----- Hero FAQ (menor que o hero padrão) ----- */
.hero--faq {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.hero--faq h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    max-width: 900px;
}

.hero--faq .hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.7;
}

/* ----- Hero Serviço (páginas de serviço alternativas) ----- */
.hero--servico {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.hero--servico h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    max-width: 900px;
}

.hero--servico .hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.7;
}

.hero--servico .hero__buttons,
.hero--faq .hero__buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

/* ----- Container Narrow (para conteúdo de texto longo) ----- */
.container--narrow {
    max-width: 800px;
    margin: 0 auto;
}

.container--sm {
    max-width: 700px;
    margin: 0 auto;
}

/* ----- Content Blocks (FAQ articles) ----- */
/* Suporta tanto .content quanto article.section com .container--narrow */
.content,
article.section .container--narrow {
    margin-bottom: var(--space-2xl);
}

.content h2,
article.section .container--narrow > h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 2px solid var(--gray-200);
}

.content h2:first-child,
article.section .container--narrow > h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.content h3,
article.section .container--narrow h3 {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content p,
article.section .container--narrow p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.content ul,
.content ol,
article.section .container--narrow ul,
article.section .container--narrow ol {
    margin-bottom: var(--space-lg);
    padding-left: 1.5rem;
}

.content ul,
article.section .container--narrow ul {
    list-style: none;
}

.content ol,
article.section .container--narrow ol {
    list-style: none;
    counter-reset: item-counter;
}

.content ol > li,
article.section .container--narrow ol > li {
    counter-increment: item-counter;
    position: relative;
    padding-left: 2rem;
}

.content ol > li::before,
article.section .container--narrow ol > li::before {
    content: counter(item-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}

.content ul > li,
article.section .container--narrow ul > li {
    position: relative;
    padding-left: 1.5rem;
}

.content ul > li::before,
article.section .container--narrow ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.content li,
article.section .container--narrow li {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--gray-100, #eee);
}

.content li:last-child,
article.section .container--narrow li:last-child {
    border-bottom: none;
}

.content strong,
article.section .container--narrow strong {
    color: var(--text);
    font-weight: 600;
}

/* ----- Table of Contents / Sumário (suporta .toc e .content__toc) ----- */
.toc,
.content__toc {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--accent);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0 var(--space-2xl);
}

.toc__title,
.toc h2,
.content__toc h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc__list,
.toc ol,
.content__toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding-left: 0;
    margin-bottom: 0;
}

.toc__list > li,
.toc ol > li,
.content__toc ol > li,
.content__toc li,
article.section .container--narrow .toc__list > li,
article.section .container--narrow .toc ul > li {
    counter-increment: toc-counter;
    margin-bottom: var(--space-xs);
    padding-left: 2rem;
    padding-bottom: 0;
    position: relative;
    border-bottom: none;
}

.toc__list > li::before,
.toc ol > li::before,
.content__toc ol > li::before,
.content__toc li::before,
article.section .container--narrow .toc__list > li::before,
article.section .container--narrow .toc ul > li::before {
    content: counter(toc-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.875rem;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.toc__list a,
.toc a,
.content__toc a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.toc__list a:hover,
.toc a:hover,
.content__toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ----- CTA inline dentro do artigo FAQ ----- */
/* Faz o CTA escapar do container--narrow e ocupar toda a largura
   da viewport, mantendo padding interno para o conteúdo respirar. */
article.section .cta-section,
.container--narrow .cta-section,
.container--sm .cta-section {
    border-radius: 0;
    padding: var(--space-2xl) var(--space-lg);
    margin: var(--space-2xl) calc(50% - 50vw);
    width: 100vw;
    max-width: none;
    text-align: center;
    box-sizing: border-box;
}

article.section .cta-section h2 {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    color: #FFFFFF;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

article.section .cta-section p {
    color: #FFFFFF;
}

article.section .cta-section .btn--outline {
    border-color: var(--white);
    color: var(--white);
}

article.section .cta-section .btn--outline:hover {
    background: var(--white);
    color: var(--accent);
}

/* ----- Accordion (FAQ pages alternative) ----- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion__item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.accordion__item.active {
    border-color: var(--accent);
}

.accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    background: var(--white);
    transition: background-color var(--transition-fast);
}

.accordion__header:hover {
    background-color: var(--gray-50);
}

.accordion__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.accordion__item.active .accordion__icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(180deg);
}

.accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion__item.active .accordion__body {
    max-height: 2000px;
}

.accordion__body p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-light);
    line-height: 1.7;
}

/* ----- Check List (serviços) ----- */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li,
.check-list__item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--space-md);
    color: var(--text-light);
    line-height: 1.7;
}

.check-list li::before,
.check-list__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 18px;
    height: 18px;
    background-color: var(--accent);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.check-list li strong,
.check-list__item strong {
    color: var(--text);
}

/* ----- Section CTA (alternativo ao cta-section) ----- */
.section--cta {
    background-color: var(--primary);
    padding: var(--space-2xl) 0;
    text-align: center;
    color: var(--white);
}

.section__title--white {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.section__subtitle--white {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn--white {
    background: var(--white);
    color: var(--accent);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition);
}

.btn--white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.btn--outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition);
    background: transparent;
}

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

/* ----- WhatsApp Button (serviço pages) ----- */
.btn--whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition);
}

.btn--whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* ----- Section Title (serviço pages alternativo) ----- */
.section__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ----- Section Content (serviço pages) ----- */
.section__content {
    max-width: 800px;
    margin: 0 auto;
}

.section__content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* ----- Cards grid (serviço pages alternativo) ----- */
.cards {
    display: grid;
    gap: var(--space-lg);
}

.cards--3 {
    grid-template-columns: 1fr;
}

.card--link {
    display: block;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card--link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover, 0 8px 30px rgba(0,0,0,0.12));
}

.card__text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

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

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

/* ----- Breadcrumb List (FAQ pages) ----- */
.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumb__item a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
    color: var(--accent);
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    color: var(--gray-400);
}

.breadcrumb__item--active {
    color: var(--primary);
    font-weight: 500;
}

/* =============================================
   HAMBURGER FIX — Mobile
   ============================================= */

/* Garantir que o hamburger fique acima do nav overlay */
.hamburger {
    z-index: 9999;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    pointer-events: auto;
}

/* Quando o nav abre, o hamburger precisa de z-index maior */
.hamburger--active {
    z-index: 10001;
}

/* Garantir que o nav overlay não bloqueie o hamburger */
.nav--open {
    z-index: 9998;
}

/* =============================================
   UX — Barra de Progresso de Leitura
   ============================================= */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 10002;
    transition: width 0.1s linear;
}

/* =============================================
   UX — Sticky CTA Desktop
   ============================================= */
.sticky-cta {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 0.625rem 0;
    z-index: 9990;
    transition: top 0.3s ease;
}

.sticky-cta--visible {
    top: 0;
}

.sticky-cta__text {
    font-size: 0.875rem;
    color: var(--text);
}

.sticky-cta__phone {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.sticky-cta__phone:hover {
    color: var(--accent);
}

/* Esconder sticky CTA no mobile (já tem a barra fixa mobile) */
@media (max-width: 1023px) {
    .sticky-cta {
        display: none;
    }
}

/* =============================================
   UX — Exit Intent Popup
   ============================================= */
.exit-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10003;
}

.exit-popup__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 90%;
    z-index: 10004;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.exit-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.75rem;
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.exit-popup__close:hover {
    color: var(--text);
}

.exit-popup__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.exit-popup__text {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    line-height: 1.6;
}

.exit-popup__form .form__input {
    font-size: 16px;
}

.exit-popup__whatsapp {
    display: inline-block;
    margin-top: var(--space-md);
    color: #25D366;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.exit-popup__whatsapp:hover {
    text-decoration: underline;
}

/* =============================================
   UX — WhatsApp Tooltip
   ============================================= */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9997;
}

.whatsapp-float__tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--white);
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    white-space: nowrap;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.whatsapp-float__tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: var(--white);
}

/* Reposicionar o float dentro do wrapper */
.whatsapp-float-wrapper .whatsapp-float {
    position: relative;
    bottom: auto;
    right: auto;
}

@media (max-width: 1023px) {
    .whatsapp-float-wrapper {
        bottom: 80px;
    }
}

/* =============================================
   PÁGINAS DE ERRO — 404, 403, 410, 500, 503, etc.
   ============================================= */

/* ----- Seção principal do erro ----- */
.error-page {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.error-page .container {
    max-width: 700px;
}

.error-page__icon {
    margin-bottom: var(--space-lg);
}

.error-page__icon svg {
    display: inline-block;
}

.error-page__code {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.error-page__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.error-page__text {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.error-page__text:last-of-type {
    margin-bottom: var(--space-xl);
}

/* ----- Botões de ação do erro ----- */
.error-page__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    margin-top: var(--space-lg);
}

.error-page__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 220px;
    justify-content: center;
}

.error-page__actions .btn svg {
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .error-page__actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .error-page__actions .btn {
        min-width: auto;
    }
}

/* ----- Info de contato (usado na 503) ----- */
.error-page__contact-info {
    margin-top: var(--space-2xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    display: inline-block;
    text-align: left;
}

.error-page__contact-info p {
    color: var(--text-light);
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
}

.error-page__contact-info p:last-child {
    margin-bottom: 0;
}

.error-page__contact-info strong {
    color: var(--primary);
}

/* ----- Sitelinks (navegação por categorias) ----- */
.error-sitelinks {
    padding: var(--space-2xl) 0;
    background: var(--gray-50);
}

.error-sitelinks__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.error-sitelinks__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
}

.error-sitelinks__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 480px) {
    .error-sitelinks__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.error-sitelinks__card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.error-sitelinks__card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.error-sitelinks__card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-100);
}

.error-sitelinks__card-title svg {
    flex-shrink: 0;
}

.error-sitelinks__list {
    list-style: none;
    padding: 0;
}

.error-sitelinks__list li {
    margin-bottom: var(--space-xs);
}

.error-sitelinks__list a {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.error-sitelinks__list a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 0.375rem;
}

.error-sitelinks__list a:hover {
    color: var(--accent);
}

/* ----- Formulário na página de erro ----- */
.error-form {
    padding: var(--space-2xl) 0;
}

.error-form__wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.error-form__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.error-form__text {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
    line-height: 1.7;
}

.error-form .form {
    text-align: left;
}

/* =============================================
   Orçamento Rápido — grid responsivo (home)
   ============================================= */
@media (max-width: 767px) {
    #orcamento-rapido > .container > div {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   Checklist Preview (Lead Magnet)
   ============================================= */
.checklist-preview {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.checklist-preview__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: box-shadow 0.2s ease;
}

.checklist-preview__item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.checklist-preview__item svg {
    flex-shrink: 0;
}

/* =============================================
   HERO THEMATIC VARIANTS — Padrões visuais por categoria
   Cada variante adiciona gradient único + padrão SVG sutil
   Aplicar junto com a classe base: class="hero hero--servico hero--VARIANT"
   ============================================= */

/* Base reutilizável para todas as variantes */
.hero--predial,
.hero--eletrico,
.hero--hidraulico,
.hero--avcb,
.hero--licenciamento,
.hero--sanitario,
.hero--ambiental,
.hero--projetos,
.hero--alvara,
.hero--regularizacao,
.hero--pericia,
.hero--industrial,
.hero--seguranca,
.hero--treinamento,
.hero--comofazer,
.hero--passoapasso {
    position: relative;
    overflow: hidden;
}

.hero--predial .hero__bg,
.hero--eletrico .hero__bg,
.hero--hidraulico .hero__bg,
.hero--avcb .hero__bg,
.hero--licenciamento .hero__bg,
.hero--sanitario .hero__bg,
.hero--ambiental .hero__bg,
.hero--projetos .hero__bg,
.hero--alvara .hero__bg,
.hero--regularizacao .hero__bg,
.hero--pericia .hero__bg,
.hero--industrial .hero__bg,
.hero--seguranca .hero__bg,
.hero--treinamento .hero__bg,
.hero--comofazer .hero__bg,
.hero--passoapasso .hero__bg {
    opacity: 1;
}

/* 1. PREDIAL — azul profissional com grid de construção */
.hero--predial .hero__bg {
    background:
        radial-gradient(circle at 15% 30%, rgba(61, 127, 175, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(232, 97, 26, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #061B2E 0%, #0A2540 45%, #0D3158 100%);
}
.hero--predial::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M0 20h80M0 40h80M0 60h80M20 0v80M40 0v80M60 0v80'/%3E%3C/g%3E%3C/svg%3E");
}

/* 2. ELÉTRICO — azul+violeta com circuito */
.hero--eletrico .hero__bg {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(121, 80, 242, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(255, 196, 0, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #1a1f3a 50%, #2d1b4e 100%);
}
.hero--eletrico::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffc400' stroke-opacity='0.08' stroke-width='1.5'%3E%3Cpath d='M0 50h40l5-10 5 20 5-15 5 5h40'/%3E%3Ccircle cx='45' cy='40' r='2'/%3E%3Ccircle cx='60' cy='55' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* 3. HIDRÁULICO — azul+ciano ondas */
.hero--hidraulico .hero__bg {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(14, 165, 233, 0.32) 0%, transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #052238 0%, #0A2540 50%, #0c4a6e 100%);
}
.hero--hidraulico::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q30 5, 60 20 T120 20' fill='none' stroke='%2306b6d4' stroke-opacity='0.1' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 240px 80px;
}

/* 4. AVCB / BOMBEIROS — azul+vermelho flames */
.hero--avcb .hero__bg {
    background:
        radial-gradient(ellipse at 70% 100%, rgba(220, 38, 38, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 30% 30%, rgba(251, 146, 60, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #18192e 50%, #3f1115 100%);
}
.hero--avcb::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23dc2626' fill-opacity='0.08'%3E%3Cpath d='M30 10 Q35 25 30 35 Q25 25 30 10z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
}

/* 5. LICENCIAMENTO (urbano/atividade) — azul corporativo */
.hero--licenciamento .hero__bg {
    background:
        radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 25%, rgba(232, 97, 26, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #0D3158 50%, #1e3a5f 100%);
}
.hero--licenciamento::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'%3E%3Crect x='5' y='5' width='30' height='30' rx='2'/%3E%3Cpath d='M5 15h30M5 25h30'/%3E%3C/g%3E%3C/svg%3E");
}

/* 6. SANITÁRIO / VISA — verde-azulado limpo */
.hero--sanitario .hero__bg {
    background:
        radial-gradient(circle at 30% 50%, rgba(20, 184, 166, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #0f3d4e 50%, #134e4a 100%);
}
.hero--sanitario::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%2314b8a6' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='60' cy='20' r='2'/%3E%3Ccircle cx='20' cy='60' r='2'/%3E%3Ccircle cx='60' cy='60' r='2'/%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* 7. AMBIENTAL / CETESB — verde floresta */
.hero--ambiental .hero__bg {
    background:
        radial-gradient(ellipse at 40% 80%, rgba(34, 197, 94, 0.30) 0%, transparent 60%),
        radial-gradient(circle at 75% 20%, rgba(132, 204, 22, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #0A2540 0%, #14302b 50%, #1e3f2e 100%);
}
.hero--ambiental::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%2322c55e' fill-opacity='0.07'%3E%3Cpath d='M50 20 Q55 30 50 40 Q45 30 50 20z'/%3E%3Cpath d='M30 60 Q35 70 30 80 Q25 70 30 60z'/%3E%3Cpath d='M70 60 Q75 70 70 80 Q65 70 70 60z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* 8. PROJETOS ESTRUTURAIS — azul+cinza técnico */
.hero--projetos .hero__bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(100, 116, 139, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(232, 97, 26, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #061B2E 0%, #0A2540 50%, #1e293b 100%);
}
.hero--projetos::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='0.8'%3E%3Cpath d='M0 0l60 60M60 0L0 60'/%3E%3C/g%3E%3C/svg%3E");
}

/* 9. ALVARÁ REFORMA/CONSTRUÇÃO — azul+laranja oficial */
.hero--alvara .hero__bg {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(232, 97, 26, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #2a1d0f 50%, #3f2b1a 100%);
}
.hero--alvara::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cg fill='%23e8611a' fill-opacity='0.08'%3E%3Cpath d='M25 5l3 6 6 1-4.5 4.5 1 6.5-5.5-3-5.5 3 1-6.5L16 12l6-1z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* 10. REGULARIZAÇÃO — azul oficial com linhas paralelas */
.hero--regularizacao .hero__bg {
    background:
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #061B2E 0%, #0A2540 40%, #1a2d4f 100%);
}
.hero--regularizacao::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M0 5h100M0 10h100M0 15h100'/%3E%3C/g%3E%3C/svg%3E");
}

/* 11. PERÍCIA — dourado judicial sóbrio */
.hero--pericia .hero__bg {
    background:
        radial-gradient(circle at 50% 20%, rgba(217, 119, 6, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(180, 83, 9, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #2b1d0f 50%, #3f2a13 100%);
}
.hero--pericia::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d97706' stroke-opacity='0.1' stroke-width='1'%3E%3Cpath d='M40 10v60M20 20h40M20 60h40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* 12. INDUSTRIAL — cinza metálico+laranja */
.hero--industrial .hero__bg {
    background:
        radial-gradient(circle at 80% 20%, rgba(232, 97, 26, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(100, 116, 139, 0.28) 0%, transparent 50%),
        linear-gradient(135deg, #061B2E 0%, #1a1d24 50%, #2d2925 100%);
}
.hero--industrial::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Crect x='10' y='30' width='15' height='40'/%3E%3Crect x='32' y='20' width='15' height='50'/%3E%3Crect x='54' y='25' width='15' height='45'/%3E%3C/g%3E%3C/svg%3E");
}

/* 13. SEGURANÇA DO TRABALHO — vermelho alerta */
.hero--seguranca .hero__bg {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(220, 38, 38, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 20% 30%, rgba(251, 146, 60, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #2e1315 50%, #4a1d1f 100%);
}
.hero--seguranca::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ef4444' stroke-opacity='0.1' stroke-width='1.5'%3E%3Cpath d='M30 8L10 50h40z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
}

/* 14. TREINAMENTO NR — azul educacional */
.hero--treinamento .hero__bg {
    background:
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.30) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(251, 146, 60, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #1e3a8a 50%, #1e40af 100%);
}
.hero--treinamento::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

/* 15. FAQ COMO FAZER — azul corporativo limpo + grid blueprint sutil */
.hero--comofazer .hero__bg {
    background:
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 75%, rgba(232, 97, 26, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #0D3158 50%, #1e3a5f 100%);
}
.hero--comofazer::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* 16. FAQ PASSO A PASSO — mesmo padrão clean, leve toque de laranja accent */
.hero--passoapasso .hero__bg {
    background:
        radial-gradient(ellipse at 15% 40%, rgba(59, 130, 246, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 60%, rgba(232, 97, 26, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #0D3158 50%, #1e3a5f 100%);
}
.hero--passoapasso::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Garantir que conteúdo fique acima dos padrões decorativos */
.hero--predial .container,
.hero--eletrico .container,
.hero--hidraulico .container,
.hero--avcb .container,
.hero--licenciamento .container,
.hero--sanitario .container,
.hero--ambiental .container,
.hero--projetos .container,
.hero--alvara .container,
.hero--regularizacao .container,
.hero--pericia .container,
.hero--industrial .container,
.hero--seguranca .container,
.hero--treinamento .container,
.hero--comofazer .container,
.hero--passoapasso .container {
    position: relative;
    z-index: 2;
}
