:root {
    --bg: #08090b;
    --bg-soft: #111419;
    --surface: #ffffff;
    --surface-muted: #f4f6f8;
    --text: #101318;
    --text-muted: #66717f;
    --text-light: rgba(255, 255, 255, 0.82);
    --line: rgba(16, 19, 24, 0.12);
    --line-light: rgba(255, 255, 255, 0.14);
    --gold: #d7a92e;
    --gold-bright: #f4cf63;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    animation: page-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-leaving {
    pointer-events: none;
    animation: page-leave 260ms ease forwards;
}

img,
video {
    max-width: 100%;
}

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

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

.site-header {
    min-height: 92px;
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 14px clamp(20px, 5vw, 64px);
    background: rgba(8, 9, 11, 0.92);
    color: #fff;
    border-bottom: 1px solid var(--line-light);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
}

.brand img {
    width: 54px;
    height: 60px;
    object-fit: cover;
}

.brand span,
.site-footer strong {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 30px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    padding: 10px 0;
    transition: color 180ms ease, transform 180ms ease;
}

.main-nav a::after {
    content: "";
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .active {
    color: #fff;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .active::after {
    transform: scaleX(1);
}

.header-cta {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(244, 207, 99, 0.5);
    border-radius: 999px;
    color: #111;
    background: var(--gold-bright);
    font-size: 14px;
    font-weight: 800;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
    transform: translateY(-2px);
    background: #ffe08a;
    box-shadow: 0 14px 34px rgba(215, 169, 46, 0.28);
}

.hero {
    background:
        linear-gradient(115deg, rgba(8, 9, 11, 0.98) 0%, rgba(17, 20, 25, 0.94) 55%, rgba(46, 38, 19, 0.84) 100%);
    color: #fff;
}

.corporate-hero {
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: clamp(38px, 5vw, 72px);
    padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.hero-copy {
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.hero h1,
.page-hero h1,
.form-copy h1 {
    margin: 18px 0 0;
    color: inherit;
    font-size: clamp(42px, 5.6vw, 76px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0;
}

.hero p,
.page-hero p,
.form-copy p,
.section-heading p,
.split-section p {
    margin: 24px 0 0;
    color: var(--text-light);
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-primary {
    background: var(--gold-bright);
    color: #111;
    box-shadow: 0 18px 40px rgba(215, 169, 46, 0.22);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #ffe08a;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.12);
}

.hero-media {
    position: relative;
}

.hero-media img,
.image-stack img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.hero-media img {
    aspect-ratio: 16 / 9;
}

.media-badge {
    width: min(360px, calc(100% - 32px));
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(8, 9, 11, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.media-badge strong,
.media-badge span {
    display: block;
}

.media-badge strong {
    color: #fff;
    font-size: 16px;
}

.media-badge span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.4;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.metric-strip div {
    min-height: 128px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 28px clamp(18px, 4vw, 46px);
    border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
    border-right: 0;
}

.metric-strip strong {
    color: var(--text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.metric-strip span {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.section {
    padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 64px);
    background: var(--surface);
}

.section:nth-of-type(even) {
    background: var(--surface-muted);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading h2,
.split-section h2,
.cta-section h2 {
    margin: 16px 0 0;
    color: var(--text);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
}

.section-heading p,
.split-section p,
.cta-section p {
    color: var(--text-muted);
}

.service-grid,
.service-detail-grid,
.process-grid,
.coverage-grid,
.media-grid {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

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

.service-grid-wide {
    grid-template-columns: repeat(5, 1fr);
}

.corporate-card,
.detail-card,
.process-grid div,
.coverage-grid div,
.video-card,
.mission-panel,
.contact-panel,
.steps-panel,
.corporate-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 38px rgba(16, 19, 24, 0.06);
}

.corporate-card,
.detail-card,
.process-grid div,
.coverage-grid div {
    padding: 28px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.corporate-card:hover,
.detail-card:hover,
.process-grid div:hover,
.coverage-grid div:hover {
    transform: translateY(-6px);
    border-color: rgba(215, 169, 46, 0.44);
    box-shadow: 0 24px 60px rgba(16, 19, 24, 0.12);
}

.highlight-card {
    border-color: rgba(215, 169, 46, 0.5);
    background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
}

.corporate-card span,
.process-grid span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.corporate-card h3,
.detail-card h2,
.process-grid h3,
.coverage-grid h3,
.video-card h3,
.mission-panel strong {
    margin: 16px 0 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.corporate-card p,
.detail-card p,
.process-grid p,
.coverage-grid p,
.video-card p,
.mission-panel span,
.contact-panel a,
.steps-panel div {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.media-section {
    background: #101318;
    color: #fff;
}

.construction-feature {
    background:
        linear-gradient(180deg, #f6f7f9 0%, #fff 100%);
}

.section.trust-feature {
    background: #fff;
    color: var(--text);
}

.trust-feature .split-section h2 {
    color: var(--text);
}

.trust-feature .split-section p {
    color: var(--text-muted);
}

.trust-split {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.trust-image {
    justify-self: center;
    width: min(520px, 100%);
}

.trust-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.media-section .section-heading h2 {
    color: #fff;
}

.media-section .section-heading p {
    color: rgba(255, 255, 255, 0.68);
}

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

.media-grid-expanded {
    grid-template-columns: repeat(3, 1fr);
}

.media-showcase {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.featured-video,
.silent-video {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.featured-video video,
.silent-video video {
    width: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.featured-video {
    background: #050608;
}

.featured-video video {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.clean-video {
    align-self: start;
}

.visual-board {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 14px;
}

.media-layout-clean {
    align-items: start;
}

.visual-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: start;
}

.silent-video {
    position: relative;
    margin: 0;
}

.silent-video {
    min-height: 0;
    background: #050608;
    align-self: start;
}

.silent-video-wide {
    grid-column: auto;
    min-height: 0;
}

.silent-video video {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.silent-video:hover video {
    filter: contrast(1.05);
    transform: scale(1.04);
}

.contain-media {
    background: radial-gradient(circle at center, rgba(244, 207, 99, 0.12), rgba(5, 6, 8, 0.98) 62%);
}

.contain-media img,
.contain-media video {
    object-fit: contain;
}

.silent-video figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 9, 11, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

.video-card {
    overflow: hidden;
    background: #fff;
}

.video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-card video[poster$="ajs-vigia-obra.jpeg"] {
    object-position: center top;
}

.video-card div {
    padding: 24px;
}

.process-grid {
    grid-template-columns: repeat(3, 1fr);
}

.cta-section {
    width: min(var(--max), calc(100% - 40px));
    margin: clamp(72px, 9vw, 118px) auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(34px, 5vw, 54px);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(8, 9, 11, 0.96), rgba(31, 33, 38, 0.96)),
        url("imagens/ajs-apresentacao.jpeg") center / cover no-repeat;
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-section h2,
.cta-section p {
    color: #fff;
}

.cta-section p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.74);
}

.page-hero {
    min-height: 430px;
    display: grid;
    align-items: center;
    padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 64px);
    background:
        linear-gradient(115deg, rgba(8, 9, 11, 0.94), rgba(20, 22, 28, 0.88)),
        url("imagens/ajs-apresentacao.jpeg") center / cover no-repeat;
    color: #fff;
}

.page-hero > div {
    width: min(880px, 100%);
}

.page-hero h1,
.form-copy h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.service-detail-grid {
    grid-template-columns: repeat(3, 1fr);
}

.detail-card ul {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.detail-card li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.35;
}

.detail-card li::before {
    content: "";
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--gold);
}

.split-section {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
    align-items: center;
    gap: clamp(38px, 6vw, 84px);
}

.split-section .btn {
    margin-top: 28px;
}

.image-stack img {
    aspect-ratio: 16 / 10;
}

.poster-stack {
    justify-self: center;
    width: min(430px, 100%);
}

.poster-stack img {
    aspect-ratio: 5 / 7;
    object-position: center top;
}

.service-video-frame {
    justify-self: center;
    width: min(430px, 100%);
    overflow: hidden;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: var(--shadow);
}

.service-video-frame video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.feature-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(215, 169, 46, 0.32);
    border-radius: 999px;
    background: rgba(215, 169, 46, 0.08);
    color: #6d5417;
    font-size: 13px;
    font-weight: 800;
}

.dark-feature-list span {
    border-color: rgba(244, 207, 99, 0.34);
    background: rgba(244, 207, 99, 0.16);
    color: var(--text);
}

.about-intro {
    background:
        linear-gradient(115deg, rgba(8, 9, 11, 0.9), rgba(63, 61, 54, 0.78)),
        url("imagens/ajs-apresentacao.jpeg") center / cover no-repeat;
}

.mission-panel {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.mission-panel div {
    padding: 28px;
    border-bottom: 1px solid var(--line);
}

.mission-panel div:last-child {
    border-bottom: 0;
}

.mission-panel span,
.contact-panel a {
    display: block;
}

.coverage-section {
    background: var(--surface-muted);
}

.coverage-grid {
    grid-template-columns: repeat(3, 1fr);
}

.form-page {
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(38px, 6vw, 84px);
    padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px);
    background:
        linear-gradient(115deg, rgba(8, 9, 11, 0.96), rgba(18, 22, 28, 0.93)),
        url("imagens/ajs-apresentacao.jpeg") center / cover no-repeat;
    color: #fff;
}

.jobs-form-page {
    background:
        linear-gradient(115deg, rgba(8, 9, 11, 0.95), rgba(28, 25, 18, 0.9)),
        url("imagens/ajs-apresentacao.jpeg") center / cover no-repeat;
}

.form-copy {
    max-width: 620px;
}

.contact-panel,
.steps-panel {
    margin-top: 34px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.contact-panel strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 18px;
}

.contact-panel a,
.steps-panel div {
    color: rgba(255, 255, 255, 0.76);
}

.steps-panel {
    display: grid;
    gap: 14px;
}

.steps-panel div {
    margin: 0;
}

.steps-panel span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--gold-bright);
    color: #111;
    font-weight: 900;
}

.corporate-form {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 4vw, 42px);
}

.form-row {
    display: grid;
    gap: 8px;
}

.two-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.corporate-form label {
    color: #2d333b;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.corporate-form input,
.corporate-form textarea,
.corporate-form select {
    width: 100%;
    border: 1px solid rgba(16, 19, 24, 0.14);
    border-radius: var(--radius);
    background: #f7f8fa;
    color: var(--text);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.corporate-form input,
.corporate-form select {
    height: 50px;
    padding: 0 14px;
}

.corporate-form textarea {
    min-height: 132px;
    padding: 14px;
    resize: vertical;
}

.corporate-form input:focus,
.corporate-form textarea:focus,
.corporate-form select:focus {
    border-color: rgba(215, 169, 46, 0.68);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(215, 169, 46, 0.16);
}

.corporate-form .btn {
    width: max-content;
    border: 0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 5vw, 64px);
    background: #050608;
    color: #fff;
    border-top: 1px solid var(--line-light);
}

.site-footer p {
    max-width: 560px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.5;
}

.whatsapp-link {
    min-width: max-content;
    color: var(--gold-bright);
    font-size: 20px;
    font-weight: 900;
    transition: color 180ms ease, transform 180ms ease;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.js [data-reveal],
.js .reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible,
.js .reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes page-leave {
    to {
        opacity: 0;
        transform: translateY(-8px);
        filter: blur(3px);
    }
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 14px;
        position: static;
    }

    .brand,
    .main-nav {
        justify-content: center;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .header-cta {
        justify-self: center;
    }

    .corporate-hero,
    .split-section,
    .form-page,
    .media-showcase {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .form-copy {
        max-width: none;
    }

    .service-grid,
    .service-detail-grid,
    .process-grid,
    .coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 680px) {
    .site-header {
        padding: 16px 18px;
    }

    .brand span {
        font-size: 16px;
    }

    .main-nav {
        gap: 10px 16px;
        font-size: 14px;
    }

    .corporate-hero,
    .page-hero,
    .form-page,
    .section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1,
    .page-hero h1,
    .form-copy h1 {
        font-size: 38px;
    }

    .hero-actions,
    .cta-section,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .corporate-form .btn,
    .header-cta {
        width: 100%;
    }

    .metric-strip,
    .service-grid,
    .service-detail-grid,
    .process-grid,
    .coverage-grid,
    .media-grid,
    .visual-board,
    .visual-strip,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .silent-video-wide,
    .visual-strip {
        grid-column: auto;
    }

    .metric-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .media-badge {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .cta-section {
        width: calc(100% - 36px);
        margin: 64px auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js [data-reveal],
    .js .reveal-item {
        opacity: 1;
        transform: none;
    }
}
