/* ─── NA PERÍCIAS - Page Styles ─── */
/* design-system.css is linked directly in HTML */

html {
    scroll-behavior: smooth;
}

/* ════════════════════════════════════════
   SECTION BASE
   ════════════════════════════════════════ */
section {
    position: relative;
    overflow: hidden;
}

/* ════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--sp-4) 0;
    transition: background 400ms ease;
}

.site-header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header nav {
    display: flex;
    gap: var(--sp-6);
    align-items: center;
}

.site-header nav a {
    font-weight: 500;
    font-size: var(--fs-sm);
    transition: color var(--transition);
    color: var(--text-on-light);
}

.site-header nav a:hover {
    color: var(--gold-dark);
}

.site-header.scrolled nav a {
    color: var(--text-on-dark);
}

.site-header.scrolled nav a:hover {
    color: var(--gold);
}

/* ════════════════════════════════════════
   01 - HERO (Slide 01)
   Concrete light bg, split layout, B&W photo
   ════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--sp-20) 0;
    position: relative;
}

/* Large watermark logo behind */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 60%;
    height: 120%;
    background: url('logotipo/NA DOURADO.png') no-repeat center;
    background-size: contain;
    opacity: 0.04;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.hero-logo {
    height: 80px;
    width: fit-content;
}

.hero-title {
    font-size: var(--fs-hero);
    line-height: 1.05;
    color: var(--text-on-light);
}

.hero-subtitle {
    font-size: var(--fs-md);
    color: var(--text-muted-light);
    max-width: 500px;
}

/* Override outline button on concrete bg for contrast */
.hero .btn--outline-gold {
    border-color: var(--gold-darker);
    color: var(--gold-darker);
}

.hero .btn--outline-gold:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    background: rgba(139, 115, 64, 0.08);
}

.hero-photo-wrapper {
    position: relative;
    padding: var(--sp-4);
}

/* Gold bar accent top */
.hero-photo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 6px;
    background: var(--gold);
    border-radius: 3px;
}

/* Gold bar accent bottom */
.hero-photo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 50%;
    height: 6px;
    background: var(--gold);
    border-radius: 3px;
}

.hero-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    filter: grayscale(100%);
    object-fit: cover;
    max-height: 550px;
}

/* ════════════════════════════════════════
   02 - QUEM SOMOS (Slide 02)
   Dark bg, logo + gold line, text left, photo right
   ════════════════════════════════════════ */
.about {
    padding: var(--sp-24) 0;
}

.about-header {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
}

.about-header img {
    height: 40px;
}

.about-header .gold-line {
    flex: 1;
    max-width: 400px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--sp-12);
    align-items: start;
}

.about-grid h2 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--sp-8);
    color: var(--text-on-dark);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    color: var(--text-muted-dark);
    font-size: var(--fs-md);
    line-height: 1.8;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.about-photo-wrapper {
    position: relative;
    overflow: hidden;
    margin-right: calc(-1 * var(--sp-6));
    height: 100%;
}

/* ════════════════════════════════════════
   03/04 - ÁREAS DE ATUAÇÃO (Slides 03-04)
   Dark bg, WHITE rounded service cards with photo
   ════════════════════════════════════════ */
.services {
    padding: var(--sp-20) 0;
}

.services-badge {
    display: inline-block;
    background: var(--dark-card);
    color: var(--text-on-dark);
    padding: var(--sp-3) var(--sp-8);
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 0;
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--sp-12);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text-on-light);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.service-card__photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card__body {
    padding: var(--sp-6);
}

.service-card__icon {
    font-size: 36px;
    margin-bottom: var(--sp-3);
    display: block;
    color: var(--dark);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--sp-2);
    color: var(--text-on-light);
}

.service-card__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin-top: var(--sp-2);
}

.service-card__desc {
    font-size: var(--fs-sm);
    color: var(--text-muted-light);
    line-height: 1.6;
}

/* ════════════════════════════════════════
   05 - BENEFÍCIOS E DIFERENCIAIS (Slide 05)
   Concrete bg, dark "folder" shaped cards with gold icons
   ════════════════════════════════════════ */
.benefits {
    padding: var(--sp-20) 0;
}

.benefits h2 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--sp-2);
}

.benefits-subtitle {
    color: var(--text-muted-light);
    margin-bottom: var(--sp-12);
    font-size: var(--fs-md);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
}

.benefit-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: var(--sp-8) var(--sp-6);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Folder tab effect */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 8px;
    background: var(--dark-card-hover);
    border-radius: 0 0 var(--radius-md) 0;
}

.benefit-card:hover {
    background: var(--dark-card-hover);
    transform: translateY(-4px);
}

.benefit-card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1.3;
}

.benefit-card__icon {
    font-size: 32px;
    color: var(--gold);
    align-self: flex-start;
    margin-top: auto;
}

/* ════════════════════════════════════════
   06 - NOSSOS NÚMEROS (Slide 06)
   Dark bg with photo overlay, white staggered cards
   ════════════════════════════════════════ */
.numbers {
    padding: var(--sp-24) 0;
    position: relative;
    background:
        linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.85)),
        url('Imagens/foto-martelo-inspecao.webp');
    background-size: cover;
    background-position: center;
    color: var(--text-on-dark);
    text-align: center;
}

.numbers h2 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--sp-16);
    color: var(--text-on-dark);
}

.numbers-grid {
    display: flex;
    justify-content: center;
    gap: var(--sp-8);
    align-items: flex-end;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--white);
    color: var(--text-on-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-8) var(--sp-10);
    text-align: center;
    min-width: 180px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Staggered effect */
.stat-card:nth-child(2) {
    transform: translateY(-20px);
}

.stat-card:nth-child(2):hover {
    transform: translateY(-24px);
}

.stat-card:nth-child(4) {
    transform: translateY(-20px);
}

.stat-card:nth-child(4):hover {
    transform: translateY(-24px);
}

.stat-card__number {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: var(--sp-2);
}

.stat-card__label {
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: capitalize;
}

.numbers-logo {
    margin-top: var(--sp-16);
    opacity: 0.3;
    height: 40px;
}

/* ════════════════════════════════════════
   07 - CASES DE CLIENTES (Slide 07)
   Gold banner header, white bg, circular photos
   ════════════════════════════════════════ */
.testimonials {
    padding: 0;
}

.testimonials-banner {
    background: var(--gold);
    color: var(--dark);
    padding: var(--sp-4) var(--sp-8);
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    border-radius: 0 0 var(--radius-lg) 0;
    margin-bottom: var(--sp-12);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    padding: var(--sp-12) 0 var(--sp-20);
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--light-bg);
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
}

.testimonial-name::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    margin-top: var(--sp-1);
}

.testimonial-role {
    font-size: var(--fs-sm);
    color: var(--text-muted-light);
}

.testimonial-text {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--text-on-light);
}

/* ════════════════════════════════════════
   08 - CONTATO (Slide 08)
   Concrete bg, split layout, credentials + photo
   ════════════════════════════════════════ */
.contact {
    padding: var(--sp-20) 0;
    position: relative;
}

/* Gold banner accents */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 8px;
    background: var(--gold);
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 30%;
    height: 8px;
    background: var(--gold);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
}

.contact-info h3 {
    font-size: var(--fs-lg);
    color: var(--text-muted-light);
    font-weight: 400;
    margin-bottom: var(--sp-1);
}

.contact-info h2 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--sp-6);
    line-height: 1.1;
}

.contact-credentials {
    list-style: disc;
    padding-left: var(--sp-6);
    margin-bottom: var(--sp-10);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    color: var(--text-muted-light);
}

.contact-details-label {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--sp-4);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    color: var(--text-muted-light);
    font-size: var(--fs-md);
}

.contact-details a {
    color: var(--text-on-light);
    font-weight: 500;
}

.contact-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    max-height: 600px;
}

/* ════════════════════════════════════════
   PERICIA GPT (Bonus section)
   ════════════════════════════════════════ */
.periciagpt {
    padding: var(--sp-16) 0;
}

.ai-box {
    background: var(--dark);
    border: 1px solid rgba(200, 164, 92, 0.15);
    padding: var(--sp-10);
    border-radius: var(--radius-lg);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.ai-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 164, 92, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.ai-box .input {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--text-on-dark);
}

/* ════════════════════════════════════════
   FLOATING WHATSAPP
   ════════════════════════════════════════ */
.floating-whatsapp {
    position: fixed;
    bottom: var(--sp-8);
    right: var(--sp-8);
    background: #128C3E;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(18, 140, 62, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-green 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ════════════════════════════════════════
   HAMBURGER MENU
   ════════════════════════════════════════ */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-on-light);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.site-header.scrolled .hamburger span {
    background: var(--text-on-dark);
}

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

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

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

/* ════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) {
    transition-delay: 100ms;
}

.reveal:nth-child(3) {
    transition-delay: 200ms;
}

.reveal:nth-child(4) {
    transition-delay: 300ms;
}

.reveal:nth-child(5) {
    transition-delay: 400ms;
}

.reveal:nth-child(6) {
    transition-delay: 500ms;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
    padding: var(--sp-12) 0 var(--sp-6);
    color: var(--text-muted-dark);
    font-size: var(--fs-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--sp-10);
    margin-bottom: var(--sp-10);
}

.footer-brand p {
    color: var(--text-muted-dark);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-on-dark);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-2);
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted-dark);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--sp-6);
    text-align: center;
    color: var(--text-muted-dark);
    font-size: var(--fs-xs);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {

    /* Hamburger visible */
    .hamburger {
        display: block;
    }

    .site-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--sp-8);
        transition: right 400ms ease;
        z-index: 150;
    }

    .site-header nav.open {
        right: 0;
    }

    .site-header nav a {
        color: var(--text-on-dark);
        font-size: var(--fs-lg);
    }

    .hero-grid,
    .about-grid,
    .testimonials-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-text {
        align-items: center;
    }

    .hero-photo-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-photo-wrapper {
        margin-right: 0;
        max-height: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .numbers-grid {
        gap: var(--sp-4);
    }

    .stat-card:nth-child(2),
    .stat-card:nth-child(4) {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }

    section {
        padding: var(--sp-12) 0;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
    }

    .floating-whatsapp {
        bottom: var(--sp-4);
        right: var(--sp-4);
        width: 52px;
        height: 52px;
    }
}