/* ============================================
   BRICKS RANCHO PEDRUSS - STYLESHEET
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #111111;
    --wood-dark: #2b1b12;
    --leather: #5b3a1d;
    --gold-aged: #b88a4a;
    --beige-leather: #d8b98b;
    --white: #ffffff;
    --gold-light: #d4a853;
    --gold-shine: #f0d078;
    --wood-bg: #1a0f0a;
    --card-bg: #2a1a0e;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--white);
    overflow-x: hidden;
    cursor: default;
}

h1, h2, h3, h4 {
    font-family: 'Rye', cursive;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CUSTOM CURSOR --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 100000;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor.jumping {
    animation: cursorJump 0.3s ease-out;
}

@keyframes cursorJump {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.2); }
    100% { transform: translateY(0) scale(1); }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(184, 138, 74, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 2px solid var(--gold-aged);
    box-shadow: 0 0 10px rgba(184, 138, 74, 0.3);
}

.navbar.scrolled .nav-logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-aged);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--gold-aged);
}

.nav-highlight {
    background: var(--gold-aged);
    color: var(--bg-primary) !important;
    font-weight: 700;
    border-radius: 25px;
    padding: 8px 18px !important;
}

.nav-highlight:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.nav-highlight::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--gold-aged);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.7) 100%),
        linear-gradient(to bottom, rgba(17,17,17,0.1) 0%, rgba(17,17,17,0.5) 100%);
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/hero-bg.jpg') center/cover no-repeat;
    z-index: 1;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Smoke Effect */
.hero-smoke {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-smoke::before,
.hero-smoke::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 30%;
    background: linear-gradient(to top, rgba(200, 180, 140, 0.08) 0%, transparent 100%);
    animation: smokeDrift 8s ease-in-out infinite;
}

.hero-smoke::after {
    animation-delay: -4s;
    left: -50%;
    opacity: 0.7;
}

@keyframes smokeDrift {
    0%, 100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(5%) scaleY(1.2); }
}

/* Dust Effect */
.hero-dust {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 80%, rgba(184, 138, 74, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(184, 138, 74, 0.03) 0%, transparent 40%);
    animation: dustPulse 6s ease-in-out infinite;
}

@keyframes dustPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Particles Canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 20px;
}

.hero-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(184, 138, 74, 0.4));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    text-shadow: 
        0 0 40px rgba(184, 138, 74, 0.5),
        0 2px 4px rgba(0,0,0,0.8),
        0 0 80px rgba(184, 138, 74, 0.2);
    letter-spacing: 8px;
    margin-bottom: 5px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 40px rgba(184, 138, 74, 0.3), 0 2px 4px rgba(0,0,0,0.8); }
    100% { text-shadow: 0 0 60px rgba(184, 138, 74, 0.6), 0 2px 4px rgba(0,0,0,0.8), 0 0 100px rgba(184, 138, 74, 0.3); }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--gold-aged);
    letter-spacing: 6px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-slogan {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--beige-leather);
    font-style: italic;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* Buttons */
.btn-gold {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold-aged) 0%, var(--gold-light) 50%, var(--gold-aged) 100%);
    color: var(--bg-primary);
    font-family: 'Rye', cursive;
    font-size: 1rem;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(184, 138, 74, 0.3);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(184, 138, 74, 0.5);
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-small {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold-aged), var(--gold-light));
    color: var(--bg-primary);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 138, 74, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--beige-leather);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--gold-aged);
    border-bottom: 2px solid var(--gold-aged);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* --- CATEGORIES --- */
.categories {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold-aged);
    letter-spacing: 4px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.divider {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.divider span {
    display: inline-block;
    color: var(--gold-aged);
    font-size: 1.5rem;
    padding: 0 20px;
    position: relative;
}

.divider span::before,
.divider span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-aged), transparent);
}

.divider span::before {
    right: 100%;
}

.divider span::after {
    left: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wood-dark) 0%, var(--card-bg) 50%, var(--wood-dark) 100%);
    z-index: 0;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold-aged);
    border-radius: 15px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(184, 138, 74, 0.2);
}

.category-card:hover::after {
    opacity: 1;
    box-shadow: 0 0 20px rgba(184, 138, 74, 0.3);
}

.card-inner {
    position: relative;
    z-index: 2;
    padding: 35px 25px;
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.card-inner h3 {
    color: var(--gold-aged);
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.card-inner p {
    color: var(--beige-leather);
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: 'Rye', cursive;
    font-size: 0.75rem;
    color: var(--gold-aged);
    opacity: 0.5;
}

.category-card-wide {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* --- FEATURED PRODUCTS --- */
.featured {
    padding: 100px 0;
    background: var(--wood-bg);
    position: relative;
}

.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/wood-texture.jpg') repeat;
    opacity: 0.15;
    z-index: 0;
}

.featured .container {
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(184, 138, 74, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-aged);
    box-shadow: 0 12px 30px rgba(184, 138, 74, 0.2);
}

.product-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold-aged);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.product-city {
    color: var(--beige-leather);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.product-price {
    color: var(--gold-aged);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- ANUNCIE --- */
.anuncie {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--leather) 0%, var(--wood-dark) 100%);
    position: relative;
    overflow: hidden;
}

.anuncie::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/wood-texture.jpg') repeat;
    opacity: 0.1;
}

.anuncie-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.anuncie-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.anuncie h2 {
    color: var(--gold-aged);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.anuncie p {
    color: var(--beige-leather);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CONTATO --- */
.contato {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contato-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contato-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contato-item h4 {
    color: var(--gold-aged);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 3px;
}

.contato-item p {
    color: var(--beige-leather);
    font-size: 0.9rem;
}

.contato-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(43, 27, 18, 0.8);
    border: 1px solid rgba(184, 138, 74, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.contato-form input:focus,
.contato-form textarea:focus {
    border-color: var(--gold-aged);
    box-shadow: 0 0 15px rgba(184, 138, 74, 0.2);
}

.contato-form input::placeholder,
.contato-form textarea::placeholder {
    color: rgba(216, 185, 139, 0.5);
}

/* --- FOOTER --- */
.footer {
    background: var(--bg-primary);
    padding: 60px 0 30px;
    position: relative;
}

.footer-wood {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold-aged), var(--leather), var(--gold-aged));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold-aged);
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(184, 138, 74, 0.3);
}

.footer-brand p {
    color: var(--beige-leather);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--gold-aged);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--beige-leather);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-aged);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 138, 74, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gold-aged);
    border-color: var(--gold-aged);
    transform: translateY(-3px);
}

.social-icon:hover svg path {
    fill: var(--bg-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(184, 138, 74, 0.15);
}

.footer-bottom p {
    color: var(--beige-leather);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer-disclaimer {
    color: rgba(216, 185, 139, 0.5);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold-aged);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 138, 74, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 138, 74, 0.5);
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 5px;
        transition: right 0.4s ease;
        border-left: 2px solid var(--gold-aged);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(184, 138, 74, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .contato-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 180px;
        height: 180px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .category-card-wide {
        grid-column: 1 / -1;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .product-img {
        height: 160px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .divider span::before,
    .divider span::after {
        width: 40px;
    }
}

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

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

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        letter-spacing: 4px;
    }

    .hero-subtitle {
        letter-spacing: 3px;
    }

    .btn-gold {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .custom-cursor {
        display: none;
    }
}
