/* ========================
   RESET & VARIÁVEIS
======================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red:        #D72626;
    --red-dark:   #b81818;
    --red-glow:   rgba(215,38,38,0.25);
    --bg:         #0a0a0a;
    --bg2:        #111111;
    --bg3:        #141414;
    --border:     rgba(255,255,255,0.07);
    --white:      #ffffff;
    --gray:       #999999;
    --muted:      #555555;
    --font-d:     'Barlow Condensed', sans-serif;
    --font-b:     'Barlow', sans-serif;
    --ease:       cubic-bezier(0.25,0.8,0.25,1);
    --radius:     16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

/* grade de pontos no fundo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
p  { color: var(--gray); }

.container {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}

section { padding: 100px 0; position: relative; z-index: 1; }

/* Tags de seção */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-b);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
    font-family: var(--font-d);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.section-sub { font-size: 0.95rem; color: var(--muted); max-width: 480px; margin: 0 auto; }

/* ========================
   LOADER
======================== */
.loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity .5s ease, visibility .5s ease;
}
.loader.out { opacity: 0; visibility: hidden; }
.loader-text {
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--muted);
}
.loader-bar {
    width: 180px; height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--red);
    animation: loadFill 1.3s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ========================
   HEADER
======================== */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(10,10,10,.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
header.scrolled {
    background: rgba(10,10,10,.97);
    box-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo { height: 52px; border-radius: 6px; transition: transform .3s; }
.logo:hover { transform: scale(1.04); }

/* nav desktop */
#nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
#nav-menu .nav-link {
    font-family: var(--font-b);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all .25s;
}
#nav-menu .nav-link:hover,
#nav-menu .nav-link.active { color: var(--white); background: rgba(255,255,255,.05); }
#nav-menu .nav-link.active { color: var(--red); }

/* botão hamburguer */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s var(--ease);
    transform-origin: center;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* overlay mobile */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-close {
    position: absolute;
    top: 24px; right: 24px;
    background: none; border: none;
    color: var(--gray); font-size: 1.5rem;
    cursor: pointer;
    transition: color .2s;
}
.mobile-close:hover { color: var(--red); }

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.mobile-link {
    font-family: var(--font-d);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .25s;
}
.mobile-link:hover { color: var(--red); transform: translateX(12px); }

/* ========================
   HERO
======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('assets/hero.jpg') center center / cover no-repeat;
    padding: 140px 20px 100px;
    overflow: hidden;
}

#particles {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(10,10,10,.72), rgba(10,10,10,.92));
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 820px;
    width: 100%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp .8s .3s forwards;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%,100% { box-shadow: 0 0 0 0 var(--red-glow); }
    50%      { box-shadow: 0 0 0 8px rgba(215,38,38,0); }
}

.hero h1 {
    font-family: var(--font-d);
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 9rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: .95;
    margin-bottom: 24px;
}
.h1-line {
    display: block;
    opacity: 0;
    animation: fadeUp .8s forwards;
}
.h1-line:nth-child(1) { animation-delay: .5s; }
.h1-line.red {
    color: var(--red);
    animation-delay: .65s;
    text-shadow: 0 0 80px rgba(215,38,38,.35);
}

.hero h2 {
    font-family: var(--font-b);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    color: var(--gray);
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp .8s .85s forwards;
}

.hero > .hero-content > p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp .8s 1s forwards;
}

/* botões */
.buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .8s 1.15s forwards;
}

/* stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp .8s 1.4s forwards;
}
.stat { padding: 0 36px; text-align: center; }
.stat-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-num {
    font-family: var(--font-d);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}
.stat-sign {
    font-family: var(--font-d);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--red);
    font-weight: 900;
}
.stat p { font-size: 0.75rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 50px; background: var(--border); flex-shrink: 0; }

/* scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}
.scroll-hint span { font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.scroll-line {
    width: 1px; height: 25px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%   { transform: scaleY(0); transform-origin: top; opacity:0; }
    40%  { transform: scaleY(1); transform-origin: top; opacity:1; }
    60%  { transform: scaleY(1); transform-origin: bottom; opacity:1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity:0; }
}

/* ========================
   BOTÕES
======================== */
.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-b);
    font-weight: 600;
    font-size: 0.92rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 22px var(--red-glow);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 10px 28px var(--red-glow); }

.btn-secondary {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
    color: var(--white);
}
.btn-secondary:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }

.btn-white {
    background: var(--white);
    color: var(--red);
    font-weight: 700;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,255,255,.18); }

.btn-outline {
    background: transparent;
    border-color: rgba(215,38,38,.4);
    color: var(--red);
    padding: 12px 26px;
    font-size: 0.88rem;
}
.btn-outline:hover { background: var(--red); color: var(--white); border-color: var(--red); transform: translateY(-2px); }

.pulse { animation: pulseBtn 2.5s infinite; }
@keyframes pulseBtn {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.3); }
    50%      { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

/* ========================
   SOBRE
======================== */
.sobre { background: var(--bg); overflow: hidden; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-d);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}
.about-text p { font-size: .97rem; line-height: 1.8; margin-bottom: 18px; }

.img-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.img-frame::before {
    content: '';
    position: absolute; inset: 0;
    border: 1px solid rgba(215,38,38,.25);
    border-radius: var(--radius);
    z-index: 2;
    pointer-events: none;
}
.img-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform .6s ease;
}
.img-frame:hover img { transform: scale(1.04); }

.img-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
.img-badge i { color: var(--red); font-size: 1rem; }
.img-badge span { font-size: 0.82rem; font-weight: 600; }

/* ========================
   SERVIÇOS
======================== */
.servicos {
    background: var(--bg3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(215,38,38,.3);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

.card-img-box {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.card-img-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.card:hover .card-img-box img { transform: scale(1.08); }

.card-icon-over {
    position: absolute; inset: 0;
    background: rgba(215,38,38,.82);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.card:hover .card-icon-over { opacity: 1; }
.card-icon-over i { font-size: 2.2rem; color: var(--white); }

.card-body { padding: 22px; }
.card-body h3 {
    font-family: var(--font-d);
    font-size: 1.35rem;
    margin-bottom: 8px;
}
.card-body p { font-size: .9rem; line-height: 1.7; margin-bottom: 14px; }

.card-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red);
    background: rgba(215,38,38,.1);
    border: 1px solid rgba(215,38,38,.2);
    padding: 3px 12px;
    border-radius: 20px;
}

/* ========================
   DIFERENCIAIS
======================== */
.diferenciais {
    background: var(--bg);
    overflow: hidden;
}

.dif-bg-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-family: var(--font-d);
    font-size: clamp(5rem, 18vw, 16rem);
    font-weight: 900;
    color: rgba(255,255,255,.013);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: 12px;
    z-index: 0;
}

.dif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.dif-item {
    background: var(--bg);
    padding: 44px 38px;
    position: relative;
    overflow: hidden;
    transition: background .3s;
}
.dif-item:hover { background: #0f0f0f; }

/* número decorativo */
.dif-num {
    position: absolute;
    top: 16px; right: 24px;
    font-family: var(--font-d);
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(255,255,255,.03);
    line-height: 1;
    user-select: none;
    transition: color .4s;
}
.dif-item:hover .dif-num { color: rgba(215,38,38,.07); }

.dif-icon {
    width: 52px; height: 52px;
    background: rgba(215,38,38,.1);
    border: 1px solid rgba(215,38,38,.2);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    transition: all .3s;
}
.dif-item:hover .dif-icon { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.dif-icon i { font-size: 1.2rem; color: var(--red); transition: color .3s; }
.dif-item:hover .dif-icon i { color: var(--white); }

.dif-item h3 {
    font-family: var(--font-d);
    font-size: 1.55rem;
    margin-bottom: 10px;
    transition: color .3s;
}
.dif-item:hover h3 { color: var(--red); }

.dif-item p { font-size: .93rem; line-height: 1.75; color: var(--muted); }

.dif-line {
    width: 30px; height: 2px;
    background: var(--red);
    margin-top: 22px;
    transition: width .4s ease;
}
.dif-item:hover .dif-line { width: 56px; }

/* ========================
   GALERIA
======================== */
.galeria {
    background: var(--bg3);
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gallery img {
    width: 100%;
    height: 490px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.025);
    box-shadow: 0 18px 40px rgba(215,38,38,.2);
    position: relative;
    z-index: 2;
}

/* ========================
   CTA / CONTATO
======================== */
.cta {
    background: linear-gradient(135deg, #180000, var(--red-dark) 50%, #180000);
    background-size: 300% 300%;
    animation: gradMove 8s ease infinite;
    text-align: center;
    padding: 100px 0;
    overflow: hidden;
}
@keyframes gradMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-inner { position: relative; z-index: 1; }

.cta h2 {
    font-family: var(--font-d);
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin: 10px auto 14px;
    max-width: 680px;
}
.cta p { color: rgba(255,255,255,.78); font-size: 1rem; margin-bottom: 44px; }

.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 16px 26px;
    min-width: 230px;
    text-align: left;
    transition: all .3s var(--ease);
    backdrop-filter: blur(8px);
}
.cta-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }

.cta-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.15);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cta-icon i { font-size: 1.15rem; color: var(--white); }

.cta-card-text span {
    display: block;
    font-size: .7rem;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.cta-card-text strong { font-size: .97rem; color: var(--white); font-weight: 600; }

/* ========================
   FOOTER
======================== */
footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.footer-logo { height: 60px; border-radius: 8px; opacity: .8; transition: opacity .3s; }
.footer-logo:hover { opacity: 1; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
    display: flex; align-items: center; gap: 8px;
    font-size: .88rem; color: var(--muted);
    transition: all .25s;
}
.footer-links a i { color: var(--red); }
.footer-links a:hover { color: var(--white); transform: translateY(-2px); }

.copy { font-size: .78rem; color: #3a3a3a; margin-top: 8px; }

/* ========================
   SCROLLBAR
======================== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* ========================
   KEYFRAMES GLOBAIS
======================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========================
   RESPONSIVO
======================== */

/* 1024px */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .about-img-wrap { order: -1; }
    .img-frame img { height: 320px; }

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

    .gallery img:first-child { height: 330px; }
    .gallery img { height: 210px; }
}

/* 768px */
@media (max-width: 768px) {
    #nav-menu { display: none; }
    .mobile-menu-btn { display: flex; }

    section { padding: 80px 0; }

    .hero { padding: 120px 20px 90px; min-height: 100svh; }
    .hero h1 { letter-spacing: 2px; }

    .hero-stats { gap: 0; }
    .stat { padding: 0 18px; }
    .stat-divider { height: 40px; }

    .scroll-hint { display: none; }

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

    .dif-grid { grid-template-columns: 1fr; }
    .dif-item { padding: 32px 24px; }

    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: unset;
    }
    .gallery img:first-child { grid-row: unset; height: 200px; }
    .gallery img { height: 200px; }

    .cta-contacts { flex-direction: column; align-items: center; }
    .cta-card { width: 100%; max-width: 340px; }

    .footer-links { flex-direction: column; align-items: center; gap: 14px; }
}

/* 540px */
@media (max-width: 540px) {
    .cards { grid-template-columns: 1fr; }

    .gallery { grid-template-columns: 1fr; }
    .gallery img:first-child { height: 220px; }
    .gallery img { height: 200px; }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        border-top: none;
        padding-top: 24px;
    }
    .stat-divider { width: 40px; height: 1px; }

    .dif-bg-text { display: none; }
}

/* 420px */
@media (max-width: 420px) {
    .hero h1 { letter-spacing: 1px; }

    .buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }

    .about-grid { gap: 32px; }
    .img-frame img { height: 260px; }
}