:root {
    --fire-core: #ff3300;
    --fire-glow: rgba(255, 51, 0, 0.6);
    --ember: #ffbd2e;
    --bg-black: #050505;
    --steel: #e0e0e0;
    --gold: #c5a059;
    --font-epic: 'Cinzel Decorative', serif;
    --font-body: 'Montserrat', sans-serif;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

html { scroll-behavior: smooth; }

body {
    background-color: #000;
    color: var(--steel);
    font-family: var(--font-body);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--fire-core); }

/* --- PRELOADER --- */
.preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; transition: opacity 1.5s ease;
}
.preloader-text {
    font-family: var(--font-epic); font-size: 2rem; color: var(--gold);
    letter-spacing: 10px; animation: pulse 2s infinite;
}
.loading-bar {
    width: 200px; height: 1px; background: #222; margin-top: 20px; position: relative; overflow: hidden;
}
.loading-bar::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--fire-core); animation: load 2s forwards;
}
@keyframes load { 100% { left: 0; } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; filter: drop-shadow(0 0 10px var(--fire-core)); } }

/* --- CURSOR CUSTOMIZADO --- */
.cursor {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    background: var(--fire-core); border-radius: 50%;
    pointer-events: none; z-index: 10000;
    transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: screen; box-shadow: 0 0 15px var(--fire-core);
}
.cursor.hovering { width: 40px; height: 40px; background: rgba(197, 160, 89, 0.2); border: 1px solid var(--gold); box-shadow: none; }

/* --- CANVAS PARTICLES --- */
#canvas-embers { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -5; pointer-events: none; }

/* --- LAYOUT E ESTRUTURA --- */
.content-wrapper { position: relative; }

header {
    position: fixed; top: 0; width: 100%; padding: 40px 5%;
    display: flex; justify-content: space-between; align-items: center; z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}
.logo { font-family: var(--font-epic); font-size: 2rem; color: var(--steel); letter-spacing: 4px; font-weight: 900; }

/* --- MENU TOGGLE (MOBILE) --- */
.menu-toggle {
    display: none; background: none; border: none;
    flex-direction: column; gap: 6px; padding: 10px; z-index: 101;
}
.menu-toggle span {
    display: block; width: 28px; height: 1px; background: var(--steel);
    transition: 0.4s var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menu Vertical Lateral */
.side-nav {
    position: fixed; right: 40px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 30px; z-index: 100;
}
.side-nav a {
    color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 4px; writing-mode: vertical-rl;
    transition: 0.4s;
}
.side-nav a:hover { color: var(--gold); text-shadow: 0 0 10px var(--gold); }

/* ============================================
   HERO — Full-screen com imagem de forja
   ============================================ */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.6) saturate(1.2);
    transform: scale(1.1);
    transition: transform 8s ease-out;
    z-index: -10;
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0.6) 100%);
    z-index: -9;
}
.hero-content { position: relative; z-index: 2; }
.title-wrapper { overflow: hidden; }
.hero h1 {
    font-family: var(--font-epic); font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.8; font-weight: 900;
    background: linear-gradient(180deg, #fff, var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 20px 30px rgba(255,51,0,0.3));
}
.hero p {
    margin-top: 30px; font-weight: 100; letter-spacing: 20px;
    text-transform: uppercase; color: var(--ember); font-size: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-indicator span {
    display: block; width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Botão Magnético */
.magnetic-btn-wrapper { margin-top: 60px; display: inline-block; padding: 20px; }
.btn-forge {
    display: inline-block; padding: 18px 40px; border: 1px solid var(--gold);
    color: var(--gold); text-decoration: none; text-transform: uppercase;
    letter-spacing: 4px; font-size: 0.85rem; font-weight: 600;
    position: relative; overflow: hidden;
    transition: all 0.4s ease; background: rgba(197, 160, 89, 0.05);
    font-family: var(--font-body); backdrop-filter: blur(5px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.btn-forge::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.4), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease; z-index: -1;
}
.btn-forge:hover { 
    color: #fff; 
    border-color: #fff; 
    background: rgba(197, 160, 89, 0.15);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4); 
}
.btn-forge:hover::before { left: 150%; }

/* --- SCROLL REVEAL CLASSES --- */
.reveal { opacity: 0; transform: translateY(50px); transition: 1s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ============================================
   IMAGE DIVIDERS — Faixas panorâmicas
   ============================================ */
.img-divider {
    position: relative; width: 100%; height: 300px; overflow: hidden;
}
.img-divider--tall { height: 500px; }
.img-divider img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.8) saturate(1.2);
    transition: transform 1.2s var(--ease), filter 1.2s;
}
.img-divider:hover img {
    transform: scale(1.05);
    filter: brightness(0.5) saturate(1.5);
}
.img-divider-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #000 0%, transparent 20%, transparent 80%, #000 100%);
    pointer-events: none;
}
.img-divider-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 2; text-align: center;
}
.img-divider-text span {
    font-family: var(--font-epic); font-size: 1.5rem; color: var(--gold);
    letter-spacing: 6px; text-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
    text-transform: uppercase;
}

/* ============================================
   PHILOSOPHY — com imagem do forjador
   ============================================ */
.philosophy {
    padding: 150px 10%;
    background: transparent;
    position: relative;
}
.philosophy-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.philosophy-visual { position: relative; }
.philosophy-img-wrapper {
    position: relative; overflow: hidden;
}
.philosophy-img-wrapper img {
    width: 100%; height: 600px; object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.8s, transform 0.8s;
}
.philosophy-img-wrapper:hover img {
    filter: grayscale(0) brightness(0.8) contrast(1.1);
    transform: scale(1.03);
}
.philosophy-img-glow {
    position: absolute; bottom: -2px; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, #0a0604, transparent);
    pointer-events: none;
}

.section-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 8px;
    color: var(--fire-core); display: block; margin-bottom: 30px;
}
.philosophy-text h2 {
    font-family: var(--font-epic); font-size: 3.5rem; color: #fff;
    line-height: 1.2; margin-bottom: 40px; text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}
.philosophy-text p {
    font-weight: 400; line-height: 2; color: #ddd; font-size: 1.05rem; margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.philosophy-stats {
    display: flex; gap: 80px; margin-top: 80px;
    padding-top: 60px; border-top: 1px solid #1a1a1a;
    justify-content: center;
}
.stat { text-align: center; }
.stat-number {
    font-family: var(--font-epic); font-size: 4rem; color: var(--gold);
    display: block; line-height: 1;
}
.stat-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px;
    color: #aaa; margin-top: 10px; display: block;
}

/* ============================================
   PROCESS — com imagens em cada step
   ============================================ */
.process {
    padding: 150px 10% 150px;
    background: transparent;
    position: relative;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}
.process-hero-img {
    width: calc(100% + 20%); margin-left: -10%; margin-bottom: 80px;
    height: 400px; overflow: hidden; position: relative;
}
.process-hero-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.6) saturate(1.3) contrast(1.1);
}
.process-hero-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, #020202, transparent);
}
.process-timeline {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
    margin-top: 80px;
}
.process-step {
    padding: 0;
    border: 1px solid #111;
    transition: border-color 0.6s, background 0.6s;
    position: relative;
    overflow: hidden;
}
.process-step:hover {
    border-color: var(--fire-core);
    background: rgba(255, 51, 0, 0.03);
}
.step-img {
    width: 100%; height: 200px; overflow: hidden;
    position: relative;
}
.step-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.8s, transform 0.8s;
}
.process-step:hover .step-img img {
    filter: brightness(1.1);
    transform: scale(1.08);
}
.step-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, #020202, transparent);
    pointer-events: none;
}
.step-number {
    font-family: var(--font-epic); font-size: 3rem; color: #111;
    padding: 20px 30px 0; transition: color 0.6s;
}
.process-step:hover .step-number { color: var(--fire-core); }
.process-step h3 {
    font-family: var(--font-epic); font-size: 1.3rem; color: var(--steel);
    margin-bottom: 20px; padding: 0 30px;
}
.process-step p {
    font-weight: 400; line-height: 1.8; color: #ccc; font-size: 0.95rem;
    padding: 0 30px 30px; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ============================================
   ACERVO DE LUXO
   ============================================ */
.collection { padding: 150px 10%; background: transparent; position: relative; }
.section-title { font-family: var(--font-epic); font-size: 4rem; color: #e0e0e0; margin-bottom: 100px; text-transform: uppercase; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }

.product-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 150px; gap: 50px;
}
.product-row:nth-child(even) { flex-direction: row-reverse; }

.product-img {
    flex: 1; height: 600px; background-size: cover; background-position: center;
    filter: grayscale(0); transition: 0.8s; position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.product-img::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent 50%, rgba(2,2,2,0.8));
}
.product-row:hover .product-img { box-shadow: 0 0 50px rgba(255,51,0,0.4); transform: scale(1.02); }

.product-info { flex: 1; padding: 0 50px; }
.product-tag {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 6px;
    color: var(--fire-core); display: block; margin-bottom: 15px;
    border-left: 2px solid var(--fire-core); padding-left: 12px;
}
.product-info h3 { font-family: var(--font-epic); font-size: 3rem; color: var(--steel); margin-bottom: 20px; }
.product-info p { font-weight: 400; line-height: 2; color: #ccc; margin-bottom: 40px; font-size: 1.15rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.product-info .price { font-size: 2rem; color: var(--gold); font-family: var(--font-epic); display: block; margin-bottom: 30px; }

/* ============================================
   FORJA DE LENDAS (Nova Seção)
   ============================================ */
.legends {
    padding: 150px 10%; background: transparent; position: relative;
}
.legends-inner { max-width: 1200px; margin: 0 auto; }
.legends-desc {
    text-align: center; color: #ccc; font-size: 1.15rem; line-height: 2;
    margin: 0 auto 60px; max-width: 800px; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.legends-img-wrapper {
    position: relative; width: 100%; height: 500px; border-radius: 8px; /* Altura reduzida para não super-esticar a imagem se for pequena */
    overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(197, 160, 89, 0.2); transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.legends-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    /* Zooming muito leve para continuar escondendo a logo */
    transform: scale(1.06); transform-origin: top left;
    filter: brightness(0.9); /* Removemos totalmente o contraste exagerado! */
    transition: filter 1s ease-out, transform 1s ease-out;
}
.legends-img-wrapper:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 40px rgba(255, 51, 0, 0.4);
}
.legends-img-wrapper:hover img {
    filter: brightness(1.1); /* Suave clareada no hover */
    transform: scale(1.09); /* Hover também bem mais suave */
}
.legends-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Vignette suave e agradável */
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.3) 100%);
    pointer-events: none; z-index: 1;
}

/* ============================================
   CONTACT — com background atmosférico
   ============================================ */
.contact {
    padding: 150px 10%;
    background: transparent;
    position: relative; overflow: hidden;
}
.contact-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.4) saturate(1.2);
    z-index: -10;
}
.contact-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 100%);
    z-index: -9;
}
.contact-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.contact-desc {
    font-weight: 400; line-height: 2; color: #ddd; font-size: 1.15rem;
    margin-bottom: 60px; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 20px; }
.contact-form input,
.contact-form textarea {
    width: 100%; padding: 20px; background: rgba(255,255,255,0.08);
    border: 1px solid #555; color: #fff; font-family: var(--font-body);
    font-size: 0.9rem; font-weight: 300; transition: border-color 0.4s, background 0.4s;
    outline: none; resize: none;
    backdrop-filter: blur(10px);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form .btn-forge {
    align-self: center; margin-top: 20px;
}

/* --- FOOTER --- */
footer { padding: 80px 10% 40px; border-top: 1px solid #111; background: #000; }
.footer-grid {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 60px;
}
.footer-brand h2 {
    font-family: var(--font-epic); font-size: 1.5rem; letter-spacing: 10px;
    color: var(--steel); margin-bottom: 10px;
}
.footer-brand p { font-weight: 300; color: #aaa; font-size: 0.85rem; }
.footer-links {
    display: flex; gap: 30px;
}
.footer-links a {
    color: #aaa; text-decoration: none; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 3px; transition: color 0.4s;
}
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 20px; }
.footer-social a {
    color: #aaa; text-decoration: none; font-size: 0.8rem;
    letter-spacing: 2px; transition: color 0.4s;
}
.footer-social a:hover { color: var(--fire-core); }
.footer-bottom {
    text-align: center; padding-top: 40px; border-top: 1px solid #0a0a0a;
}
.footer-bottom p { font-size: 0.7rem; color: #bbb; letter-spacing: 2px; }

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
    .philosophy-grid { grid-template-columns: 1fr; gap: 60px; }
    .philosophy-img-wrapper img { height: 450px; }
    .philosophy-stats { flex-direction: row; gap: 40px; flex-wrap: wrap; justify-content: center; }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .product-row { flex-direction: column !important; }
    .product-img { width: 100%; height: 400px; }
    .product-info { padding: 30px 0; }
    .product-info h3 { font-size: 2.2rem; }
    .section-title { font-size: 3rem; margin-bottom: 60px; }
    .img-divider { height: 250px; }
    .img-divider--tall { height: 350px; }
    .img-divider-text span { font-size: 1.2rem; letter-spacing: 4px; }
    
    .legends { padding: 100px 6%; }
    .legends-img-wrapper { height: 400px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .side-nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.97); flex-direction: column; justify-content: center;
        align-items: center; gap: 40px; transition: right 0.6s var(--ease);
        transform: none;
    }
    .side-nav.open { right: 0; }
    .side-nav a { writing-mode: horizontal-tb; font-size: 1rem; letter-spacing: 8px; color: rgba(255,255,255,0.6); }

    header { padding: 25px 5%; }
    .logo { font-size: 1.5rem; }

    .hero h1 { font-size: clamp(3rem, 12vw, 6rem); }
    .hero p { letter-spacing: 8px; font-size: 0.8rem; }

    .img-divider { height: 200px; }
    .img-divider--tall { height: 300px; }
    .img-divider-text span { font-size: 0.9rem; letter-spacing: 3px; padding: 0 20px; }

    .philosophy { padding: 100px 6%; }
    .philosophy-text h2 { font-size: 2.2rem; }
    .philosophy-img-wrapper img { height: 350px; }
    .philosophy-stats { flex-direction: column; gap: 30px; align-items: center; }
    .stat-number { font-size: 3rem; }

    .process { padding: 100px 6%; }
    .process-hero-img { width: calc(100% + 12%); margin-left: -6%; height: 250px; }
    .process-timeline { grid-template-columns: 1fr; }
    .step-img { height: 180px; }

    .collection { padding: 100px 6%; }
    .product-img { height: 300px; }
    .product-info h3 { font-size: 1.8rem; }
    .product-info p { font-size: 0.95rem; }
    .product-info .price { font-size: 1.5rem; }
    .product-row { margin-bottom: 80px; }

    .contact { padding: 100px 6%; }
    .form-row { flex-direction: column; }

    footer { padding: 60px 6% 30px; }
    .footer-grid { flex-direction: column; gap: 40px; align-items: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    .btn-forge { padding: 16px 30px; font-size: 0.7rem; letter-spacing: 3px; }
    
    .legends { padding: 80px 6%; }
    .legends-desc { font-size: 0.95rem; margin-bottom: 40px; }
    .legends-img-wrapper { height: 300px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
    .hero p { letter-spacing: 5px; font-size: 0.7rem; }
    .section-title { font-size: 2rem; }
    .philosophy-text h2 { font-size: 1.8rem; }
    .philosophy-img-wrapper img { height: 280px; }
    .stat-number { font-size: 2.5rem; }
    .product-img { height: 250px; }
    .img-divider { height: 150px; }
    .legends-img-wrapper { height: 220px; }
    .img-divider--tall { height: 220px; }
    .img-divider-text span { font-size: 0.75rem; }
    .process-hero-img { height: 180px; }
    .step-img { height: 150px; }
}

/* Touch devices — show normal cursor */
@media (hover: none) {
    * { cursor: auto; }
    .cursor { display: none; }
}
