/*
Theme Name: Grupo JC Segurancas Interativo V07
Author: Horizon Ideias
Version: 3.0.0
Text Domain: jc-segurancas
*/

:root {
    --black: #050505;
    --charcoal: #141414;
    --surface: #1b1b1b;
    --surface-soft: #272521;
    --gold: #f4ba20;
    --gold-dark: #bc8700;
    --white: #fff;
    --muted: #b8b8b8;
    --line: rgba(255, 255, 255, .14);
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--black);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 42px)); margin-inline: auto; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: linear-gradient(180deg, rgba(5, 5, 5, .95), rgba(5, 5, 5, .58) 62%, transparent);
    transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(5, 5, 5, .94);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .24);
    backdrop-filter: blur(16px);
}
.header-row { min-height: 118px; display: flex; align-items: center; gap: 28px; transition: min-height .35s var(--ease); }
.is-scrolled .header-row { min-height: 82px; }
.brand { flex: 0 0 auto; }
.brand img { width: 222px; height: auto; }
.menu { display: flex; gap: 24px; margin-left: auto; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.menu a { position: relative; padding-block: 10px; }
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: var(--gold);
    transition: right .28s var(--ease);
}
.menu a:hover::after, .menu a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid var(--gold);
    border-radius: 5px;
    background: var(--gold);
    color: #111;
    box-shadow: 0 10px 30px rgba(244, 186, 32, .17);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.cta:hover { transform: translateY(-3px); background: #ffd054; box-shadow: 0 15px 38px rgba(244, 186, 32, .28); }

.hero {
    position: relative;
    display: flex;
    min-height: 790px;
    align-items: center;
    overflow: hidden;
    background: #0b0b0b url('assets/hero-equipe-v07.webp') center center / cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 190px;
    background: linear-gradient(transparent, rgba(5, 5, 5, .9));
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, .98) 0%, rgba(5, 5, 5, .92) 32%, rgba(5, 5, 5, .34) 64%, rgba(5, 5, 5, .08) 100%),
        linear-gradient(180deg, rgba(5, 5, 5, .15), rgba(5, 5, 5, .08));
}
.hero-content { position: relative; z-index: 2; padding-top: 84px; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .24em; }
.hero h1 {
    max-width: 900px;
    margin: 18px 0 24px;
    font-size: clamp(44px, 6vw, 80px);
    letter-spacing: -.035em;
    line-height: 1.03;
    text-transform: uppercase;
    text-shadow: 0 10px 38px rgba(0, 0, 0, .3);
}
.hero h1 span { color: var(--gold); }
.hero p { max-width: 620px; margin: 0; color: #e2e2e2; font-size: 18px; }
.actions { display: flex; gap: 14px; margin-top: 30px; }
.ghost {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 21px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 5px;
    background: rgba(5, 5, 5, .2);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.ghost:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(244, 186, 32, .1); }
.scroll-cue {
    position: absolute;
    z-index: 3;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 86px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .76);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.scroll-cue i { position: relative; width: 44px; height: 1px; overflow: hidden; background: rgba(255, 255, 255, .32); }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 50%, 100% { transform: translateX(100%); } }

.audiences {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1240px;
    margin: -60px auto 0;
    box-shadow: var(--shadow);
}
.audiences article {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    padding: 42px;
    border-right: 1px solid #4a453a;
    background: #25231f;
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.audiences article:nth-child(2) { background: #363430; }
.audiences article:nth-child(3) { border-right: 0; background: #292826; }
.audiences article::before { content: ""; position: absolute; inset: 0 100% 0 0; background: linear-gradient(135deg, rgba(244, 186, 32, .14), transparent 62%); transition: right .35s var(--ease); }
.audiences article:hover { z-index: 2; transform: translateY(-10px); background: #302d27; }
.audiences article:hover::before { right: 0; }
.audiences article > * { position: relative; z-index: 1; }
.audiences span, .card-num { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.audiences h2 { margin: 62px 0 16px; font-size: 28px; line-height: 1.08; text-transform: uppercase; }
.audiences p { color: #d0d0d0; }
.wa-link { display: inline-block; margin-top: 12px; color: var(--gold); font-size: 11px; font-weight: 900; text-transform: uppercase; transition: transform .25s var(--ease); }
.wa-link:hover { transform: translateX(5px); }

.section { padding: 104px 0; }
.section h2 { margin: 14px 0 28px; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; text-transform: uppercase; }
.story { overflow: hidden; background: #fff; color: #151515; }
.story-grid, .tech-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.story-image, .tech-image { position: relative; min-height: 520px; margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.story-image::before, .tech-image::before { content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid rgba(255, 255, 255, .18); pointer-events: none; }
.story-image img, .tech-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; transition: transform .8s var(--ease); }
.story-image:hover img, .tech-image:hover img { transform: scale(1.045); }
.story-image figcaption, .tech-image figcaption {
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    padding: 28px 26px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.story p { color: #555; font-size: 17px; }
.text-link { display: inline-block; margin-top: 18px; color: #8f6900; font-weight: 900; text-transform: uppercase; transition: transform .25s var(--ease); }
.text-link:hover { transform: translateX(5px); }

.tech { overflow: hidden; background: radial-gradient(circle at 75% 40%, #4a463d 0, #363430 42%, #242321 100%); }
.tech p { color: #ddd; font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.feature-grid div { padding: 20px; border: 1px solid var(--line); background: rgba(5, 5, 5, .1); transition: transform .25s var(--ease), background .25s var(--ease); }
.feature-grid div:hover { transform: translateY(-5px); background: rgba(5, 5, 5, .24); }
.feature-grid strong { display: block; color: var(--gold); font-size: 27px; line-height: 1.2; }
.feature-grid span { color: #ddd; font-size: 11px; }

.services { background: #0b0b0b; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-head p { max-width: 470px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    padding: 34px;
    border-top: 4px solid var(--gold);
    background: linear-gradient(145deg, #1c1c1c, #141414);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--gold); opacity: .08; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.card:hover { transform: translateY(-9px); box-shadow: 0 22px 45px rgba(0, 0, 0, .32); }
.card:hover::after { transform: scale(1.5); opacity: .14; }
.card h3 { margin: 52px 0 12px; font-size: 24px; line-height: 1.12; text-transform: uppercase; }
.card p { color: var(--muted); }
.card a { position: absolute; z-index: 2; bottom: 28px; left: 34px; color: var(--gold); font-size: 11px; font-weight: 900; text-transform: uppercase; }

.testimonials { position: relative; overflow: hidden; text-align: center; background: #151515; }
.testimonials::before { content: "“"; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); color: rgba(244, 186, 32, .05); font-family: Georgia, serif; font-size: 480px; line-height: 1; }
.testimonials .wrap { position: relative; }
.testimonials blockquote { max-width: 850px; margin: 40px auto 16px; font-size: 24px; font-weight: 700; }
.testimonials p { color: var(--gold); }

.contact-section { background: linear-gradient(180deg, #0b0b0b, #050505); }
.contact-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 56px;
    border-left: 6px solid var(--gold);
    background: linear-gradient(115deg, #25231f, #3c3628);
    box-shadow: var(--shadow);
}
.contact-box h2 { margin-top: 10px; }
.contact-box p { color: #ddd; }

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 12px 19px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: #1fbf5b;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
    color: #fff;
    line-height: 1.1;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 18px 36px rgba(0, 0, 0, .46); }
.whatsapp-float span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.whatsapp-float strong { font-size: 14px; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); color: #aaa; font-size: 12px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row img { width: 150px; height: auto; }
.horizon { color: var(--gold); font-weight: 900; letter-spacing: .1em; }

.has-js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .72s var(--ease), transform .72s var(--ease); }
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
    .menu { gap: 16px; }
    .header-cta { padding-inline: 16px; }
    .story-grid, .tech-grid { gap: 44px; }
}

@media (max-width: 900px) {
    html { scroll-padding-top: 78px; }
    .site-header { background: rgba(5, 5, 5, .96); }
    .header-row, .is-scrolled .header-row { min-height: 78px; }
    .brand img { width: 165px; }
    .menu-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 10px;
        place-content: center;
        gap: 5px;
        border: 1px solid var(--line);
        border-radius: 5px;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }
    .menu-toggle > span:not(.screen-reader-text) { display: block; width: 21px; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .25s var(--ease); }
    .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: grid;
        max-height: 0;
        overflow: hidden;
        gap: 0;
        margin: 0;
        padding: 0 21px;
        background: rgba(5, 5, 5, .98);
        opacity: 0;
        pointer-events: none;
        transition: max-height .35s var(--ease), opacity .25s var(--ease), padding .35s var(--ease);
    }
    .menu.is-open { max-height: 430px; padding-block: 16px 24px; opacity: 1; pointer-events: auto; }
    .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .menu a:last-child { border-bottom: 0; }
    .header-cta { display: none; }
    .hero { min-height: 700px; background-position: 65% center; }
    .hero-overlay { background: linear-gradient(90deg, rgba(5, 5, 5, .98) 0%, rgba(5, 5, 5, .82) 62%, rgba(5, 5, 5, .28)); }
    .hero-content { padding-top: 70px; }
    .scroll-cue { display: none; }
    .audiences { grid-template-columns: 1fr; margin: 0; box-shadow: none; }
    .audiences article { min-height: auto; border-right: 0; border-bottom: 1px solid #4a453a; }
    .audiences article:hover { transform: none; }
    .audiences h2 { margin-top: 30px; }
    .story-grid, .tech-grid, .grid, .contact-box { grid-template-columns: 1fr; }
    .story-grid, .tech-grid { gap: 42px; }
    .story-image, .tech-image, .story-image img, .tech-image img { min-height: 380px; }
    .tech-image { order: -1; }
    .section-head { display: block; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-row { flex-direction: column; align-items: flex-start; }
    .section { padding: 78px 0; }
}

@media (max-width: 560px) {
    .wrap { width: min(100% - 28px, 1180px); }
    .hero { min-height: 680px; background-position: 68% center; }
    .hero-overlay { background: linear-gradient(90deg, rgba(5, 5, 5, .97), rgba(5, 5, 5, .8) 70%, rgba(5, 5, 5, .35)); }
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 16px; }
    .actions { align-items: flex-start; flex-direction: column; }
    .audiences article { padding: 36px 28px; }
    .feature-grid { grid-template-columns: 1fr; }
    .contact-box { padding: 38px 24px; }
    .section h2 { font-size: 34px; }
    .story-image, .tech-image, .story-image img, .tech-image img { min-height: 300px; }
    .whatsapp-float { right: 14px; bottom: 14px; padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .has-js [data-reveal] { opacity: 1; transform: none; }
}
