:root {
    --red: #B20000;
    --black: #000000;
    --dark: #0A0A0A;
    --white: #FFFFFF;
}

/* ==========================================================================
   CORREÇÃO ANTI-SCROLL HORIZONTAL (iOS / SAFARI FIX)
   ========================================================================== */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--white); 
    scroll-behavior: smooth; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px; 
    width: 100%;
}

/* ==========================================================================
   NAVBAR / CABEÇALHO (Logo Visível + Hamburger)
   ========================================================================== */
.jpm-nav { 
    background: var(--white); 
    padding: 12px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid #f0f0f0; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.main-logo { 
    height: 95px; /* Logo grande e bem visível no computador */
    width: auto; 
    object-fit: contain; 
    display: block;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.02);
}

nav { 
    display: flex; 
    align-items: center; 
}

nav a { 
    text-decoration: none; 
    color: var(--black); 
    font-weight: 800; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    margin-left: 25px; 
    letter-spacing: 1px; 
    transition: color 0.3s; 
}

nav a:hover { 
    color: var(--red); 
}

.nav-cta { 
    background: var(--red); 
    color: var(--white)!important; 
    padding: 12px 25px; 
    transition: background 0.3s;
}

.nav-cta:hover { 
    background: #800000; 
}

/* MENU HAMBURGER (Móvel) */
.mobile-menu-btn { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 5px; 
    padding: 5px; 
    z-index: 1001; 
}

.mobile-menu-btn span { 
    width: 28px; 
    height: 3px; 
    background: var(--black); 
    transition: 0.3s; 
    display: block; 
    border-radius: 2px;
}

/* ==========================================================================
   HERO / PRINCIPAL
   ========================================================================== */
.jpm-hero {
    height: 80vh; 
    background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070') center/cover;
    position: relative; 
    display: flex; 
    align-items: center; 
    padding: 0 8%; 
    color: var(--white);
    width: 100%;
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(75deg, rgba(0,0,0,0.95) 40%, transparent); 
}

.hero-content { 
    z-index: 2; 
}

.hero-tag { 
    color: var(--red); 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.85rem; 
    margin-bottom: 10px; 
    display: block; 
}

.jpm-hero h1 { 
    font-family: 'Montserrat'; 
    font-size: clamp(2.5rem, 8vw, 7.5rem); 
    font-weight: 900; 
    line-height: 0.9; 
    margin-bottom: 15px; 
    word-break: break-word;
}

.outline { 
    color: transparent; 
    -webkit-text-stroke: 2px var(--white); 
}

.accent-year { 
    color: var(--red); 
    font-weight: 900; 
    display: inline-block; 
}

/* ==========================================================================
   BARRA DE EMERGÊNCIA
   ========================================================================== */
.emergency-bar { 
    background: var(--red); 
    color: var(--white); 
    padding: 20px 0; 
    width: 100%;
}

.flex-emergency { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.emergency-label { 
    font-weight: 800; 
    letter-spacing: 1px; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
}

.emergency-phones a { 
    color: var(--white); 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: 900; 
    margin-left: 25px; 
}

.blink-dot { 
    width: 10px; 
    height: 10px; 
    background: #fff; 
    border-radius: 50%; 
    display: inline-block; 
    animation: blink 1s infinite; 
    margin-right: 10px; 
}

@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.2; } 
}

/* ==========================================================================
   EMPRESA
   ========================================================================== */
.jpm-section { 
    padding: 100px 0; 
    width: 100%;
}

.massive-title { 
    font-family: 'Montserrat'; 
    font-size: clamp(2rem, 5vw, 4.5rem); 
    font-weight: 900; 
    line-height: 1; 
    margin-bottom: 30px; 
    word-break: break-word;
}

.massive-title.small { 
    font-size: clamp(1.8rem, 4vw, 3.5rem); 
}

.label { 
    color: var(--red); 
    text-transform: uppercase; 
    font-weight: 800; 
    letter-spacing: 3px; 
    font-size: 0.75rem; 
    display: block; 
    margin-bottom: 15px; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}

.content-text p { 
    margin-bottom: 25px; 
    font-size: 1.1rem; 
    color: #444; 
    line-height: 1.8; 
}

.stat-box { 
    background: #f9f9f9; 
    padding: 60px; 
    border-left: 15px solid var(--red); 
}

.stat-number { 
    font-size: clamp(4rem, 10vw, 8rem); 
    font-weight: 900; 
    line-height: 1; 
    display: block; 
}

.stat-label { 
    font-weight: 800; 
    color: var(--red); 
    text-transform: uppercase; 
}

/* ==========================================================================
   ESPECIALIZAÇÃO
   ========================================================================== */
.specialization-parallax {
    min-height: 50vh; 
    background: url('linha.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative; 
    display: flex; 
    align-items: center; 
    padding: 80px 0;
    width: 100%;
}

.parallax-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to right, rgba(178, 0, 0, 0.85), rgba(0, 0, 0, 0.85)); 
}

.relative-z { 
    position: relative; 
    z-index: 5; 
}

.specialization-content { 
    max-width: 800px; 
}

.specialization-content p { 
    font-size: 1.2rem; 
    line-height: 1.6; 
    margin-top: 15px; 
}

.white-text { 
    color: #fff!important; 
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.jpm-dark-section { 
    background: #0A0A0A; 
    padding: 100px 0; 
    color: #fff; 
    width: 100%;
}

.services-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 60px; 
}

.service-item { 
    border-top: 1px solid #222; 
    padding-top: 30px; 
    transition: 0.4s; 
}

.service-num { 
    color: var(--red); 
    font-weight: 900; 
    font-size: 1.2rem; 
    display: block; 
    margin-bottom: 15px; 
}

.service-item h3 { 
    font-family: 'Montserrat'; 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
}

.service-item p { 
    color: #999; 
    line-height: 1.6; 
}

.service-item:hover { 
    border-top-color: var(--red); 
}

.service-item:hover p { 
    color: #fff; 
}

/* ==========================================================================
   PORTEFÓLIO / TICKER (Sem Extrapolar Ecrã)
   ========================================================================== */
.brand-ticker-section { 
    padding: 80px 0; 
    background: #fff; 
    text-align: center; 
    width: 100%;
    overflow: hidden;
}

.ticker-wrapper { 
    width: 100%; 
    max-width: 100vw;
    overflow: hidden; 
    margin-top: 40px; 
}

.ticker-track { 
    display: flex; 
    width: calc(250px * 14); 
    animation: scrollTicker 25s linear infinite; 
    align-items: center; 
}

.ticker-item { 
    width: 250px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0 25px; 
}

.ticker-item img { 
    max-width: 100%; 
    max-height: 70px; 
    object-fit: contain; 
    filter: grayscale(0.2) opacity(0.9); 
    transition: 0.4s; 
}

.ticker-item:hover img { 
    filter: grayscale(0) opacity(1); 
    transform: scale(1.1); 
}

@keyframes scrollTicker { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-250px * 7)); } 
}

/* ==========================================================================
   CARREIRAS
   ========================================================================== */
.careers-bg { 
    background-color: #000000; 
    background-image: radial-gradient(circle at 50% 50%, #151515 0%, #000000 100%);
    color: #fff;
    overflow: hidden;
    width: 100%;
}

.careers-wrapper { 
    max-width: 900px; 
}

.careers-description { 
    font-size: 1.2rem; 
    color: #aaa; 
    line-height: 1.6; 
    margin-bottom: 50px; 
    max-width: 600px; 
}

.job-container { 
    margin-bottom: 40px; 
}

.job-card-premium {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border: 1px solid #333;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s ease;
}

.job-card-premium:hover { 
    border-color: var(--red); 
    transform: translateY(-5px); 
}

.job-status { 
    color: var(--red); 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    font-weight: 800; 
    letter-spacing: 2px; 
    display: block; 
    margin-bottom: 10px; 
}

.job-info h3 { 
    font-family: 'Montserrat'; 
    font-size: 1.8rem; 
    margin-bottom: 10px; 
}

.job-info p { 
    color: #ccc; 
    font-size: 0.95rem; 
}

.job-apply-btn {
    background: var(--red); 
    color: #fff; 
    text-decoration: none; 
    padding: 15px 30px; 
    font-weight: 800; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s; 
    white-space: nowrap;
}

.job-apply-btn:hover { 
    background: #fff; 
    color: #000; 
}

.contact-hint { 
    font-size: 0.9rem; 
    color: #bbb; 
    margin-bottom: 15px; 
}

.inline-call-modern { 
    display: inline-flex; 
    align-items: center; 
    gap: 15px; 
    color: #fff; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem; 
    transition: 0.3s; 
}

.inline-call-modern svg { 
    transition: 0.3s; 
    color: var(--red); 
}

.inline-call-modern:hover svg { 
    transform: translateX(10px); 
}

/* ==========================================================================
   ORÇAMENTO
   ========================================================================== */
.budget-card { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    background: #111; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.25); 
}

.budget-info { 
    background: var(--red); 
    padding: 60px; 
    color: #fff; 
}

.budget-direct-calls a { 
    display: block; 
    color: #fff; 
    text-decoration: none; 
    font-size: 1.8rem; 
    font-weight: 900; 
    margin-top: 15px; 
}

.budget-form { 
    padding: 60px; 
}

.input-row { 
    display: flex; 
    gap: 20px; 
}

.budget-form input, .budget-form textarea { 
    width: 100%; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid #333; 
    padding: 15px 0; 
    margin-bottom: 25px; 
    color: #fff; 
    outline: none; 
}

.budget-form button { 
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 20px 40px; 
    font-weight: 900; 
    cursor: pointer; 
    transition: 0.3s; 
    width: 100%; 
}

.budget-form button:hover { 
    background: var(--red); 
    color: #fff; 
}

/* ==========================================================================
   RODAPÉ (Footer)
   ========================================================================== */
.main-footer { 
    background: #080808; 
    color: #FFFFFF; 
    padding-top: 60px; 
    border-top: 5px solid var(--red); 
    width: 100%;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    padding-bottom: 40px; 
    align-items: center; 
}

.footer-logo { 
    height: 70px; 
    width: auto; 
    object-fit: contain; 
    margin-bottom: 20px; 
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
}

.footer-brand p { 
    color: #DDDDDD; 
    font-size: 0.95rem; 
    line-height: 1.6; 
    max-width: 450px; 
}

.footer-contact p { 
    color: #FFFFFF; 
    font-size: 1rem; 
    line-height: 1.8; 
    margin-bottom: 12px; 
    font-weight: 500; 
}

.footer-bar { 
    background: #000; 
    padding: 20px 0; 
    font-size: 0.75rem; 
    font-weight: 800; 
    color: #888888; 
    border-top: 1px solid #1a1a1a; 
    width: 100%;
}

.space-between { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.red-tag { 
    color: var(--red); 
}

/* ==========================================================================
   WHATSAPP
   ========================================================================== */
.whatsapp-minimal { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    background: #fff; 
    padding: 8px 8px 8px 18px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    z-index: 1000; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
}

.whatsapp-minimal span { 
    font-weight: 800; 
    font-size: 0.65rem; 
    color: #000; 
}

.wa-icon { 
    background: #25D366; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* ==========================================================================
   REGRAS RESPONSIVAS MOBILE (Ajuste Perfeito)
   ========================================================================== */
@media (max-width: 900px) {
    .container { 
        padding: 0 20px; 
    }

    /* LOGO MOBILE BEM VISÍVEL */
    .main-logo { 
        height: 70px; 
    }

    /* MENU HAMBURGER MÓVEL */
    .mobile-menu-btn { 
        display: flex; 
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        display: none; 
        border-bottom: 3px solid var(--red);
    }

    nav.active { 
        display: flex; 
    }

    nav a { 
        margin: 12px 0; 
        font-size: 0.95rem; 
        text-align: center; 
        width: 100%; 
    }

    .nav-cta { 
        margin-top: 10px; 
        width: 80%; 
        display: inline-block; 
    }

    /* LAYOUT MOBILE */
    .grid-2, .services-grid, .budget-card, .footer-grid, .input-row, .flex-emergency { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 35px;
    }

    .flex-emergency { 
        flex-direction: column; 
        gap: 15px; 
    }

    .emergency-phones a { 
        margin: 0 10px; 
        font-size: 1.2rem; 
    }

    .jpm-hero { 
        height: 75vh; 
        padding: 0 5%; 
        text-align: center; 
        justify-content: center; 
    }

    .specialization-parallax { 
        background-attachment: scroll; /* Fix para travamentos no iOS */
        padding: 60px 0;
        text-align: center;
    }

    .job-card-premium {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }

    .job-apply-btn { 
        width: 100%; 
        text-align: center; 
    }

    .footer-brand p { 
        margin: 0 auto; 
    }

    .space-between { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center; 
    }

    .budget-info, .budget-form { 
        padding: 40px 20px; 
    }

    .budget-direct-calls a {
        font-size: 1.5rem;
    }

    .stat-box { 
        padding: 40px 20px; 
        border-left: none; 
        border-top: 8px solid var(--red); 
    }
}
