/* ============================================================
   ADEX ENGENHARIA — CSS Global
   Tema filho Hello Elementor
   ============================================================ */

/* --- VARIÁVEIS DE DESIGN ----------------------------------- */
:root {
    --adex-navy:       #0B1F3A;
    --adex-blue:       #1B4B8A;
    --adex-blue-mid:   #2A64B8;
    --adex-blue-light: #E8EFF8;
    --adex-accent:     #C8A96E;
    --adex-white:      #FAFAF8;
    --adex-gray:       #8A8A85;
    --adex-gray-light: #F2F1EE;
    --adex-text:       #1A1A18;
    --adex-font-serif: 'Cormorant Garamond', Georgia, serif;
    --adex-font-sans:  'DM Sans', sans-serif;
}

/* --- RESET E BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--adex-font-sans);
    background: var(--adex-white);
    color: var(--adex-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- TIPOGRAFIA GLOBAL ------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--adex-font-serif);
    font-weight: 300;
    line-height: 1.1;
}

p {
    font-family: var(--adex-font-sans);
    font-weight: 300;
    line-height: 1.8;
    color: var(--adex-gray);
}

/* --- NAVBAR ELEMENTOR -------------------------------------- */
.e-n-menu,
.elementor-nav-menu {
    font-family: var(--adex-font-sans) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
}

/* Header fixo com blur */
.e-con.adex-header,
#adex-header,
.elementor-location-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(250,250,248,0.93) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(11,31,58,0.08) !important;
    height: 72px !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.elementor-location-header.scrolled {
    box-shadow: 0 2px 24px rgba(11,31,58,0.08);
}

/* Compensar header fixo */
.elementor-location-header + * {
    margin-top: 72px;
}

/* --- BOTÕES GLOBAIS --------------------------------------- */
.adex-btn-primary,
.elementor-button.adex-btn-primary {
    background: var(--adex-navy) !important;
    color: #fff !important;
    font-family: var(--adex-font-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 14px 32px !important;
    border-radius: 2px !important;
    border: none !important;
    transition: background 0.2s ease !important;
    text-decoration: none !important;
}
.adex-btn-primary:hover,
.elementor-button.adex-btn-primary:hover {
    background: var(--adex-blue) !important;
    color: #fff !important;
}

.adex-btn-accent,
.elementor-button.adex-btn-accent {
    background: var(--adex-accent) !important;
    color: var(--adex-navy) !important;
    font-family: var(--adex-font-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 16px 36px !important;
    border-radius: 2px !important;
    border: none !important;
    transition: opacity 0.2s ease !important;
}
.adex-btn-accent:hover { opacity: 0.85 !important; }

/* --- SEÇÃO HERO ------------------------------------------- */
.adex-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.adex-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 64px 80px 80px;
}

.adex-hero-tag {
    font-family: var(--adex-font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--adex-accent);
    margin-bottom: 28px;
    display: block;
}

.adex-hero-title {
    font-family: var(--adex-font-serif) !important;
    font-size: 72px !important;
    font-weight: 300 !important;
    line-height: 1.05 !important;
    color: var(--adex-navy) !important;
    margin-bottom: 28px !important;
}

.adex-hero-title em {
    font-style: italic;
    color: var(--adex-blue-mid);
}

.adex-hero-sub {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--adex-gray);
    max-width: 400px;
    margin-bottom: 48px;
}

.adex-hero-right {
    position: relative;
    overflow: hidden;
    background: var(--adex-navy);
    min-height: 600px;
}

.adex-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
}

/* Badge sobre a foto do hero */
.adex-hero-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(250,250,248,0.96);
    padding: 20px 26px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.adex-hero-badge-num {
    font-family: var(--adex-font-serif);
    font-size: 44px;
    font-weight: 300;
    color: var(--adex-navy);
    line-height: 1;
}

.adex-hero-badge-label {
    font-family: var(--adex-font-sans);
    font-size: 11px;
    color: var(--adex-gray);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* --- SEÇÃO NÚMEROS --------------------------------------- */
.adex-numbers {
    background: var(--adex-navy);
    padding: 56px 80px;
}

.adex-numbers .elementor-column {
    border-right: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 0 20px;
}

.adex-numbers .elementor-column:last-child {
    border-right: none;
}

.adex-number-val {
    font-family: var(--adex-font-serif) !important;
    font-size: 52px !important;
    font-weight: 300 !important;
    color: #fff !important;
    line-height: 1 !important;
}

.adex-number-label {
    font-family: var(--adex-font-sans) !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.45) !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-top: 8px !important;
}

/* --- SEÇÃO SERVIÇOS -------------------------------------- */
.adex-services {
    padding: 120px 80px;
}

.adex-section-tag {
    font-family: var(--adex-font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--adex-accent);
    margin-bottom: 12px;
    display: block;
}

.adex-section-title {
    font-family: var(--adex-font-serif) !important;
    font-size: 48px !important;
    font-weight: 300 !important;
    color: var(--adex-navy) !important;
    line-height: 1.1 !important;
}

/* Card de serviço */
.adex-service-card {
    background: var(--adex-gray-light);
    padding: 40px 36px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    height: 100%;
}

.adex-service-card:hover {
    background: var(--adex-navy);
    transform: translateY(-2px);
}

.adex-service-card:hover .adex-sc-num,
.adex-service-card:hover .adex-sc-title,
.adex-service-card:hover .adex-sc-body {
    color: rgba(255,255,255,0.9) !important;
}

.adex-service-card:hover .adex-sc-num {
    color: rgba(255,255,255,0.08) !important;
}

.adex-sc-num {
    font-family: var(--adex-font-serif);
    font-size: 64px;
    font-weight: 300;
    color: rgba(11,31,58,0.06);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
    transition: color 0.3s;
    user-select: none;
}

.adex-sc-title {
    font-family: var(--adex-font-serif) !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    color: var(--adex-navy) !important;
    margin-bottom: 16px !important;
    transition: color 0.3s;
    line-height: 1.2 !important;
}

.adex-sc-body {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--adex-gray);
    transition: color 0.3s;
}

/* --- SEÇÃO PORTFÓLIO ------------------------------------- */
.adex-portfolio {
    padding: 0 80px 120px;
}

/* Filtros */
.adex-portfolio-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.adex-filter-btn {
    font-family: var(--adex-font-sans);
    font-size: 12px;
    padding: 8px 20px;
    border: 1px solid rgba(11,31,58,0.15);
    background: none;
    border-radius: 2px;
    cursor: pointer;
    color: var(--adex-gray);
    transition: all 0.2s ease;
}

.adex-filter-btn:hover,
.adex-filter-btn.active {
    background: var(--adex-navy);
    color: #fff;
    border-color: var(--adex-navy);
}

/* Grid do portfólio */
.adex-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    margin-top: 48px;
}

.adex-p-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.adex-p-item:nth-child(1) { grid-column: span 7; grid-row: span 2; min-height: 520px; }
.adex-p-item:nth-child(2) { grid-column: span 5; min-height: 258px; }
.adex-p-item:nth-child(3) { grid-column: span 5; min-height: 258px; }
.adex-p-item:nth-child(4) { grid-column: span 4; min-height: 340px; }
.adex-p-item:nth-child(5) { grid-column: span 4; min-height: 340px; }
.adex-p-item:nth-child(6) { grid-column: span 4; min-height: 340px; }
.adex-p-item:nth-child(7) { grid-column: span 5; min-height: 300px; }
.adex-p-item:nth-child(8) { grid-column: span 7; min-height: 300px; }
.adex-p-item:nth-child(9) { grid-column: span 6; min-height: 320px; }
.adex-p-item:nth-child(10){ grid-column: span 6; min-height: 320px; }
.adex-p-item:nth-child(11){ grid-column: span 4; min-height: 280px; }
.adex-p-item:nth-child(12){ grid-column: span 4; min-height: 280px; }
.adex-p-item:nth-child(13){ grid-column: span 4; min-height: 280px; }

.adex-p-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.adex-p-item:hover img {
    transform: scale(1.04);
}

.adex-p-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,31,58,0.82);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.adex-p-item:hover .adex-p-overlay {
    opacity: 1;
}

.adex-p-title {
    font-family: var(--adex-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.adex-p-sub {
    font-family: var(--adex-font-sans);
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- SEÇÃO SOBRE ----------------------------------------- */
.adex-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--adex-gray-light);
}

.adex-about-left {
    background: var(--adex-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px;
}

.adex-about-quote {
    font-family: var(--adex-font-serif) !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    font-style: italic !important;
    color: rgba(255,255,255,0.92) !important;
    line-height: 1.4 !important;
    text-align: center !important;
    max-width: 420px;
}

.adex-about-right {
    padding: 80px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.adex-about-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--adex-text);
    margin-bottom: 24px;
}

/* Cards CREA */
.adex-crea-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.adex-crea-item {
    border-left: 2px solid var(--adex-blue-mid);
    padding: 12px 16px;
    background: #fff;
}

.adex-crea-name {
    font-family: var(--adex-font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--adex-navy);
}

.adex-crea-num {
    font-family: var(--adex-font-sans);
    font-size: 12px;
    color: var(--adex-gray);
    margin-top: 4px;
}

/* --- SEÇÃO CONTATO --------------------------------------- */
.adex-contact {
    background: var(--adex-navy);
    padding: 100px 80px;
}

.adex-contact-title {
    font-family: var(--adex-font-serif) !important;
    font-size: 52px !important;
    font-weight: 300 !important;
    color: #fff !important;
    line-height: 1.1 !important;
}

.adex-contact-sub {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
}

.adex-contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--adex-font-sans);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.adex-contact-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--adex-accent);
    flex-shrink: 0;
}

/* Formulário Elementor no fundo escuro */
.adex-contact .elementor-form .elementor-field-group input,
.adex-contact .elementor-form .elementor-field-group textarea,
.adex-contact .elementor-form .elementor-field-group select,
.adex-contact .elementor-field-textual {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 2px !important;
    color: #fff !important;
    font-family: var(--adex-font-sans) !important;
    font-size: 14px !important;
    padding: 14px 18px !important;
    transition: border 0.2s ease !important;
}

.adex-contact .elementor-field-textual::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

.adex-contact .elementor-field-textual:focus {
    border-color: rgba(255,255,255,0.3) !important;
    outline: none !important;
}

/* --- FOOTER ---------------------------------------------- */
.adex-footer {
    background: var(--adex-navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 28px 80px;
}

.adex-footer-copy {
    font-family: var(--adex-font-sans) !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.3) !important;
    letter-spacing: 0.3px !important;
}

.adex-footer-insta {
    font-family: var(--adex-font-sans) !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.4) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.adex-footer-insta:hover { color: #fff !important; }

/* --- BOTÃO WHATSAPP FLUTUANTE ---------------------------- */
.adex-whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.adex-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}

.adex-whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* --- DIVISOR DECORATIVO ---------------------------------- */
.adex-divider {
    width: 40px;
    height: 2px;
    background: var(--adex-accent);
    margin-bottom: 24px;
}

/* --- ANIMAÇÕES ------------------------------------------- */
@keyframes adexFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.adex-animate {
    animation: adexFadeUp 0.7s ease both;
}

/* Intersection Observer classes */
.adex-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.adex-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVO ------------------------------------------ */
@media (max-width: 1024px) {
    .adex-hero { grid-template-columns: 1fr; }
    .adex-hero-right { min-height: 400px; }
    .adex-hero-left { padding: 100px 40px 60px; }
    .adex-hero-title { font-size: 52px !important; }

    .adex-numbers { padding: 40px; }
    .adex-services { padding: 80px 40px; }
    .adex-portfolio { padding: 0 40px 80px; }

    .adex-portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    .adex-p-item { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 260px !important; }

    .adex-about { grid-template-columns: 1fr; }
    .adex-about-left { min-height: 300px; }
    .adex-about-right { padding: 60px 40px; }

    .adex-contact { padding: 80px 40px; }
    .adex-footer { padding: 28px 40px; }
}

@media (max-width: 767px) {
    .adex-hero-title { font-size: 40px !important; }
    .adex-section-title { font-size: 36px !important; }
    .adex-contact-title { font-size: 38px !important; }
    .adex-about-quote { font-size: 26px !important; }
    .adex-number-val { font-size: 38px !important; }

    .adex-hero-left { padding: 88px 24px 48px; }
    .adex-numbers { padding: 40px 24px; }
    .adex-services { padding: 64px 24px; }
    .adex-portfolio { padding: 0 24px 64px; }
    .adex-about-right { padding: 48px 24px; }
    .adex-contact { padding: 64px 24px; }
    .adex-footer { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }

    .adex-portfolio-grid { grid-template-columns: 1fr; }
    .adex-crea-grid { grid-template-columns: 1fr; }

    .adex-whatsapp-float { bottom: 20px; right: 20px; }
}
