/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: #E8E4DE; background: #0B1210; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* === CUSTOM PROPERTIES === */
:root {
    --bg-dark: #0B1210;
    --bg-card: #1A2420;
    --emerald: #2D6A4F;
    --emerald-light: #52B788;
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --text: #E8E4DE;
    --text-muted: #8B9A8E;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-decorative: 'Cinzel', serif;
    --container: 1200px;
    --radius: 8px;
}

/* === BASE === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; z-index: 1; transition: background-color 2s ease; }

/* === PAPYRUS TEXTURE OVERLAY === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--text); margin-bottom: 16px; }
.section-title em { font-style: normal; color: var(--gold); }
.eyebrow { font-family: var(--font-decorative); font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; }
.section-head.center { text-align: center; margin-bottom: 60px; }
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 16px auto 0; }

/* === REVEAL ANIMATION BASE === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #B8943F);
    color: #0B1210;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-2px); }
.btn-ghost {
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 168, 76, 0.05); }
.btn-full { width: 100%; justify-content: center; text-align: center; }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }

/* ============================================
   PRELOADER — THE FORGE
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: #060D09;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.forge-scene { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }

.forge-anvil-img {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: auto;
    z-index: 2;
}

.forge-hammer-img {
    position: absolute;
    width: 70px;
    height: auto;
    z-index: 3;
    top: 26px;
    left: 53%;
    transform-origin: 50% 90%;
    transform: translateX(-50%) rotate(-40deg);
    animation: hammerStrike 0.4s ease-in-out 0.25s 3 forwards;
}

@keyframes hammerStrike {
    0% { transform: translateX(-50%) rotate(-40deg); }
    35% { transform: translateX(-50%) rotate(5deg); }
    45% { transform: translateX(-50%) rotate(0deg); }
    55% { transform: translateX(-50%) rotate(-15deg); }
    100% { transform: translateX(-50%) rotate(-40deg); }
}

.forge-glow {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1;
}
.forge-glow.flash { opacity: 1; }

.forge-sparks { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); pointer-events: none; width: 0; height: 0; z-index: 4; }
.spark {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold);
}
.spark.burst { animation: sparkFly 0.6s ease-out forwards; }

@keyframes sparkFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

.forge-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 5;
}
.forge-logo.reveal { opacity: 1; }
.forge-w, .forge-f {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.8), 0 0 40px rgba(201, 168, 76, 0.4);
    animation: incandescent 1.5s ease-in-out infinite alternate;
}
.forge-f { animation-delay: 0.3s; }

@keyframes incandescent {
    0% { text-shadow: 0 0 20px rgba(201, 168, 76, 0.8), 0 0 40px rgba(201, 168, 76, 0.4); }
    100% { text-shadow: 0 0 30px rgba(201, 168, 76, 1), 0 0 60px rgba(201, 168, 76, 0.6), 0 0 80px rgba(232, 213, 163, 0.3); }
}

.forge-text {
    position: absolute;
    bottom: 2px;
    font-family: var(--font-decorative);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.5s;
}
.forge-text.visible { opacity: 1; }

.preloader-bar {
    width: 200px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 40px;
    overflow: hidden;
}
.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 2px;
    transition: width 0.3s;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s, opacity 0.5s;
    opacity: 0;
}
.header.visible { opacity: 1; }
.header.scrolled { background: rgba(11, 18, 16, 0.9); backdrop-filter: blur(12px); }

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Nav shimmer — gold/emerald animated text */
.nav-shimmer {
    background: linear-gradient(90deg, var(--gold) 0%, var(--emerald-light) 25%, var(--gold) 50%, var(--emerald-light) 75%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: navShimmer 8s ease-in-out infinite;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.nav-shimmer::after { display: none; }
.nav-shimmer:hover {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, var(--gold-light) 0%, #7ee8b0 25%, var(--gold-light) 50%, #7ee8b0 75%, var(--gold-light) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes navShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-cta {
    font-size: 0.8rem;
    padding: 8px 20px;
    background: var(--emerald);
    color: white;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 500;
}
.nav-cta:hover { background: var(--emerald-light); }

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}
.menu-btn-line {
    width: 24px; height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.open .menu-btn-line:first-child { transform: rotate(45deg) translate(3px, 3px); }
.menu-btn.open .menu-btn-line:last-child { transform: rotate(-45deg) translate(3px, -3px); }

@media (max-width: 768px) {
    .menu-btn { display: flex; }
    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 999;
        align-items: flex-start;
    }
    .nav.open { right: 0; }
    .nav-link { font-size: 1.1rem; }
    .nav-cta { margin-top: auto; width: 100%; text-align: center; justify-content: center; padding: 12px 20px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0B1210 0%, #1A2420 30%, #0D1F15 60%, #0B1210 100%);
    background-size: 400% 400%;
    animation: heroGradientShift 16s ease-in-out infinite;
}
@keyframes heroGradientShift {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 50%; }
    100% { background-position: 0% 0%; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left { max-width: 600px; }

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
}
@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Right — Visual */
.hero-right { display: flex; justify-content: center; }

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

.forge-emblem {
    position: relative;
    width: 220px; height: 220px;
    margin: 0 auto 40px;
}
.emblem-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    animation: emblemSpin 20s linear infinite;
}
.emblem-ring::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
}
.emblem-ring-2 {
    inset: 15px;
    border-color: rgba(82, 183, 136, 0.15);
    animation-direction: reverse;
    animation-duration: 15s;
}
.emblem-ring-2::before {
    background: var(--emerald-light);
    box-shadow: 0 0 8px var(--emerald-light);
}

@keyframes emblemSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.emblem-inner {
    position: absolute;
    inset: 30px;
    background: rgba(26, 36, 32, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}
.emblem-anvil { opacity: 0.6; }
.emblem-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-left { max-width: 100%; }
    .hero-desc { max-width: 100%; }
    .hero-ctas { justify-content: center; }
    .hero-right { margin-top: 40px; }
    .forge-emblem { width: 180px; height: 180px; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 20px 0;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    z-index: 1;
    transition: background-color 2s ease;
}
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 30s linear infinite; }
.marquee-content { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.marquee-content span { font-family: var(--font-decorative); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.marquee-dot { font-size: 0.5rem; color: var(--emerald-light) !important; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================
   SERVICOS
   ============================================ */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.servico-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.servico-card .btn { margin-top: auto; }
.servico-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 12px 40px rgba(45, 106, 79, 0.15);
}
.servico-card.destaque { border-color: var(--gold); border-width: 2px; }

/* Flame border effect on click */
.servico-card.flame {
    border: none;
    position: relative;
    overflow: visible;
}
.servico-card.flame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius) + 3px);
    background: conic-gradient(
        from var(--flame-angle, 0deg),
        #C9A84C 0%,
        #E8A020 10%,
        #C9A84C 20%,
        transparent 30%,
        transparent 45%,
        #C9A84C 55%,
        #E8A020 65%,
        #C9A84C 75%,
        transparent 85%,
        #C9A84C 100%
    );
    z-index: -1;
    animation: flameRotate 16s linear infinite;
    filter: blur(2px);
}
.servico-card.flame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: var(--bg-card);
    z-index: -1;
}

@keyframes flameRotate {
    0% { --flame-angle: 0deg; }
    100% { --flame-angle: 360deg; }
}

/* Register custom property for animation */
@property --flame-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Fallback for browsers that don't support @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .servico-card.flame::before {
        background: linear-gradient(135deg, #C9A84C, #E8A020, #C9A84C, #E8A020);
        background-size: 300% 300%;
        animation: flameShimmer 2s ease-in-out infinite;
    }
    @keyframes flameShimmer {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }
}
.servico-badge {
    position: absolute;
    top: -12px; left: 24px;
    background: var(--gold);
    color: #0B1210;
    font-family: var(--font-decorative);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 600;
}

/* Gestão badge */
.gestao-badge {
    position: absolute;
    top: -12px; right: 16px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gestao-dot {
    width: 7px; height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: gestaoPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
@keyframes gestaoPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(255,255,255,0.6); }
    50% { opacity: 0.3; transform: scale(1.8); box-shadow: 0 0 12px rgba(255,255,255,0.3); }
}

/* Gestao Tooltip (hover) */
.gestao-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 10;
}
.gestao-tooltip::before {
    content: '';
    position: absolute;
    top: -5px; right: 16px;
    width: 10px; height: 10px;
    background: var(--bg-dark);
    border-left: 1px solid rgba(201, 168, 76, 0.2);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    transform: rotate(45deg);
}
.gestao-badge:hover .gestao-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Gestao Modal Grid */
.gestao-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.gestao-modal-item {
    background: var(--bg-dark);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 6px;
    padding: 14px;
}
.gestao-modal-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 4px;
}
.gestao-modal-item p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.gestao-modal-vantagens {
    background: rgba(45, 106, 79, 0.08);
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
}
.gestao-modal-vantagens h5 {
    font-family: var(--font-decorative);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--emerald-light);
    margin-bottom: 12px;
}
.gestao-modal-vantagens ul { list-style: none; }
.gestao-modal-vantagens li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}
.gestao-modal-vantagens li::before {
    content: '~';
    position: absolute;
    left: 0;
    color: var(--emerald-light);
    font-weight: 700;
}

.gestao-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}
.gestao-modal-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

@media (max-width: 768px) {
    .gestao-modal-grid { grid-template-columns: 1fr; }
}

.servico-name { font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }
.servico-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

.servico-price { margin-bottom: 24px; }
.price-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}
.price-label { font-size: 0.75rem; color: var(--text-muted); }

.servico-features { margin-bottom: 28px; }
.servico-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}
.servico-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--emerald-light);
    font-weight: 700;
}

/* ============================================
   IMPORTANCIA
   ============================================ */
.importancia { background: var(--bg-card); transition: background-color 2s ease; }

.importancia-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.importancia-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.importancia-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}
.importancia-stat { flex: 1; }
.importancia-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}
.importancia-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.importancia-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.importancia-card {
    background: var(--bg-dark);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.3s;
}
.importancia-card:hover { border-color: rgba(201, 168, 76, 0.25); }
.importancia-icon {
    color: var(--emerald-light);
    margin-bottom: 12px;
}
.importancia-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text);
}
.importancia-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .importancia-grid { grid-template-columns: 1fr; }
    .importancia-stats { flex-direction: column; gap: 20px; }
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    padding: 40px;
}

.mockup-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.mockup-tab {
    padding: 8px 20px;
    font-size: 0.8rem;
    font-family: var(--font-decorative);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mockup-tab:hover {
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.4);
}
.mockup-tab.active {
    color: #0B1210;
    background: var(--gold);
    border-color: var(--gold);
}

.mockup-frame {
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.mockup-dots { display: flex; gap: 6px; padding: 10px 14px; background: #1a1a1a; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28ca41; }
.mockup-screen { max-height: 520px; overflow-y: auto; overflow-x: hidden; border-radius: 0 0 6px 6px; }
.mockup-screen::-webkit-scrollbar { width: 4px; }
.mockup-screen::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 2px; }
.mockup-screen::-webkit-scrollbar-track { background: transparent; }
.mockup-screen img { width: 100%; display: block; transition: opacity 0.3s ease; cursor: pointer; }

.mockup-expand {
    position: absolute;
    top: 46px; right: 10px;
    width: 32px; height: 32px;
    background: rgba(11, 18, 16, 0.7);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 2;
    cursor: pointer;
}
.mockup-screen { position: relative; }
.mockup-screen:hover .mockup-expand { opacity: 1; }
.mockup-expand:hover { background: rgba(201, 168, 76, 0.2); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 9, 0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-viewport.grabbing { cursor: grabbing; }
.lightbox-viewport img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}
.lightbox-viewport.zoomed img {
    max-width: none;
    max-height: none;
    cursor: grab;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 2rem;
    color: var(--gold);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 2;
}
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(11, 18, 16, 0.7);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    pointer-events: none;
    transition: opacity 0.5s;
    white-space: nowrap;
}
.lightbox-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.lightbox-zoom-btn {
    width: 36px; height: 36px;
    background: rgba(11, 18, 16, 0.7);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    color: var(--gold);
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}
.lightbox-zoom-btn:hover { background: rgba(201, 168, 76, 0.2); }

/* ============================================
   BRIEFING MODAL
   ============================================ */
.briefing-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 9, 0.92);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(6px);
    padding: 20px;
}
.briefing-modal.open { opacity: 1; visibility: visible; }

.briefing-box {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.briefing-modal.open .briefing-box { transform: translateY(0); }

.briefing-box::-webkit-scrollbar { width: 4px; }
.briefing-box::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 2px; }

.briefing-close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 1.8rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.briefing-close:hover { color: var(--gold); }

.briefing-header { margin-bottom: 28px; }
.briefing-badge {
    display: inline-block;
    background: var(--gold);
    color: #0B1210;
    font-family: var(--font-decorative);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 12px;
}
.briefing-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.briefing-title em { font-style: normal; color: var(--gold); }
.briefing-sub { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.briefing-section { margin-bottom: 24px; }
.briefing-section-title {
    font-family: var(--font-decorative);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.bf-field { margin-bottom: 16px; }
.bf-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 500;
}
.bf-field input,
.bf-field textarea,
.bf-field select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}
.bf-field input:focus,
.bf-field textarea:focus,
.bf-field select:focus {
    border-color: var(--gold);
}
.bf-field textarea { resize: vertical; min-height: 60px; }
.bf-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238B9A8E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.briefing-submit { margin-top: 8px; }

@media (max-width: 768px) {
    .briefing-box { padding: 24px 20px; max-height: 90vh; }
    .briefing-title { font-size: 1.3rem; }
}

.portfolio-title { font-size: 2rem; margin-bottom: 16px; line-height: 1.2; }
.portfolio-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.portfolio-techs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tech-tag {
    font-size: 0.7rem;
    padding: 4px 12px;
    background: rgba(45, 106, 79, 0.2);
    border: 1px solid rgba(45, 106, 79, 0.3);
    border-radius: 4px;
    color: var(--emerald-light);
    font-family: monospace;
}
.portfolio-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-item { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.pf-icon { font-size: 1.1rem; }

@media (max-width: 768px) {
    .portfolio-card { grid-template-columns: 1fr; padding: 24px; }
    .mockup-screen { max-height: 350px; }
    .portfolio-features { grid-template-columns: 1fr; }
    .mockup-tabs { flex-wrap: wrap; }
    .mockup-tab { padding: 6px 14px; font-size: 0.7rem; }
}

/* ============================================
   COMPARATIVO
   ============================================ */
.comparativo { background: var(--bg-card); transition: background-color 2s ease; }

.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.compare-col {
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
}
.compare-col.winner { border-color: var(--gold); border-width: 2px; }
.compare-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold);
    color: #0B1210;
    font-family: var(--font-decorative);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 600;
}
.compare-label { font-size: 1.2rem; margin-bottom: 4px; }
.compare-sub { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 24px; }
.compare-list li {
    font-size: 0.85rem;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.compare-list li::before { position: absolute; left: 0; font-size: 0.9rem; }
.compare-list li.good::before { content: '✓'; color: var(--emerald-light); }
.compare-list li.bad::before { content: '✗'; color: #C0392B; }
.compare-list li.ok::before { content: '~'; color: var(--gold); }
.compare-list li.good { color: var(--text); }
.compare-list li.bad { color: var(--text-muted); }

.compare-score {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
    color: var(--text-muted);
}
.compare-col.winner .compare-score { color: var(--gold); }

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

/* ============================================
   PROCESSO
   ============================================ */
.processo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.processo-step {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: var(--radius);
    position: relative;
    transition: border-color 0.3s;
}
.processo-step:hover { border-color: rgba(201, 168, 76, 0.25); }

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.1);
    position: absolute;
    top: 12px; right: 16px;
}
.step-icon { color: var(--emerald-light); margin-bottom: 16px; }
.processo-step h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.processo-step p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

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

/* ============================================
   FAQ
   ============================================ */
.faq { background: var(--bg-card); transition: background-color 2s ease; }

.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(201, 168, 76, 0.1); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1rem;
    color: var(--text);
    text-align: left;
    transition: color 0.3s;
}
.faq-question:hover { color: var(--gold); }

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   CONTATO
   ============================================ */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contato-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.contato-icon { color: var(--emerald-light); flex-shrink: 0; }
.contato-card h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contato-card p { font-size: 0.85rem; color: var(--text-muted); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { position: relative; }
.field input, .field textarea {
    width: 100%;
    padding: 14px 0 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field label {
    position: absolute;
    top: 14px; left: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 0.7rem;
    color: var(--gold);
}
.field-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}
.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line { width: 100%; }
.field textarea { resize: vertical; min-height: 80px; }

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
    transition: background-color 2s ease;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; max-width: 300px; }
.footer-nav h5, .footer-contact h5 {
    font-family: var(--font-decorative);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.footer-nav a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--text); }
.footer-contact p { font-size: 0.85rem; color: var(--text-muted); padding: 4px 0; }

.footer-bottom {
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================
   RESPONSIVE POLISH
   ============================================ */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .servicos-grid { grid-template-columns: 1fr; }
    .section-title { font-size: clamp(1.5rem, 5vw, 2.5rem); }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 1.2rem; }
    .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 22px; height: 22px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .servico-card { padding: 24px 20px; }
    .portfolio-card { padding: 20px; }
    .compare-col { padding: 24px 16px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat { min-width: 80px; }
    .forge-emblem { width: 150px; height: 150px; }
    .emblem-text { font-size: 1.4rem; }
    .faq-question { font-size: 0.9rem; padding: 16px 0; }
    .contato-card { padding: 16px; }
}
