/* VARIÁVEIS E RESET */
:root {
    --black: #0c0c0c;
    --white: #f5f5f5;
    --gold: #c5a47e;
    --wood: #3e2e28;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    background-color: var(--black);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(62, 46, 40, 0.1) 0%, rgba(12, 12, 12, 1) 70%);
    z-index: -1;
}

.dark-mode {
    --black: #f5f5f5;
    --white: #0c0c0c;
    background-color: var(--white);
    color: var(--black);
}

.dark-mode body::before {
    background: radial-gradient(circle at 10% 20%, rgba(197, 164, 126, 0.05) 0%, rgba(245, 245, 245, 1) 70%);
}

/* TIPOGRAFIA */
h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--gold);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    font-weight: 300;
    max-width: 700px;
}

/* LAYOUT */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* LOADER */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-crest {
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    position: relative;
    animation: rotateCrest 4s linear infinite;
}

.loader-crest::before {
    content: "É";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    font-weight: 700;
}

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

.loader-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0.7;
    animation: pulseText 2s infinite;
}

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

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInLetters 1.2s ease-out 0.8s forwards;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInLetters 1s ease-out forwards;
}

.nav-links a:nth-child(1) { animation-delay: 1.0s; }
.nav-links a:nth-child(2) { animation-delay: 1.1s; }
.nav-links a:nth-child(3) { animation-delay: 1.2s; }
.nav-links a:nth-child(4) { animation-delay: 1.3s; }
.nav-links a:nth-child(5) { animation-delay: 1.4s; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInLetters 1s ease-out 1.5s forwards;
}

.dark-mode-toggle:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    animation: fadeInLetters 1s ease-out 1.6s forwards;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0.3) 50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--gold);
    opacity: 0;
    animation: fadeInLetters 1.2s ease-out 0.5s forwards;
}

.hero-title {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInLetters 1.5s ease-out 0.8s forwards;
}

.hero-text {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInLetters 1.5s ease-out 1.2s forwards;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInLetters 1.5s ease-out 1.6s forwards;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width 0.5s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--black);
}

.btn:hover::before {
    width: 100%;
}

/* FASHION SHOWCASE */
.fashion-showcase {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fashion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

.fashion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(12,12,12,0.9) 0%, transparent 70%);
    z-index: -1;
}

.fashion-content {
    padding-left: 10%;
    max-width: 600px;
}

.fashion-tag {
    background: var(--gold);
    color: var(--black);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInLetters 1s ease-out forwards;
}

/* FEATURED COLLECTIONS */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.collection-card {
    position: relative;
    overflow: hidden;
    height: 500px;
    transition: var(--transition);
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(12, 12, 12, 0.9) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-10px);
}

.collection-card:hover .collection-overlay {
    transform: translateY(0);
    opacity: 1;
}

.collection-card:hover .collection-img {
    transform: scale(1.05);
}

.collection-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.collection-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* STORYTELLING SECTION */
.storytelling {
    background: linear-gradient(to right, var(--black) 50%, rgba(62, 46, 40, 0.1) 50%);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-content {
    padding-right: 2rem;
}

.story-image {
    position: relative;
    height: 600px;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    z-index: -1;
}

.year-marker {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 1.5rem;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* LOOKBOOK SECTION */
.lookbook {
    position: relative;
    padding: 0;
}

.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 50vh);
}

.lookbook-item {
    position: relative;
    overflow: hidden;
}

.lookbook-item.large {
    grid-column: span 2;
    height: 70vh;
}

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

.lookbook-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12,12,12,0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lookbook-item:hover .lookbook-overlay {
    opacity: 1;
}

.lookbook-item:hover .lookbook-img {
    transform: scale(1.05);
}

.lookbook-tag {
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* CONFIGURATOR SECTION */
.configurator {
    background-color: rgba(62, 46, 40, 0.05);
    position: relative;
    overflow: hidden;
}

.configurator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23c5a47e" stroke-width="0.5" stroke-dasharray="4 4"/></svg>');
    opacity: 0.05;
    z-index: -1;
}

.config-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.config-preview {
    background: rgba(197, 164, 126, 0.05);
    border: 1px solid rgba(197, 164, 126, 0.2);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-3d {
    width: 80%;
    height: 80%;
    background: rgba(12, 12, 12, 0.2);
    position: relative;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.option-group h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--gold);
}

.option-select {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.option {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(245, 245, 245, 0.2);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.option.active {
    border-color: var(--gold);
}

.option.active::after {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: var(--gold);
    border-radius: 50%;
}

.option-wood {
    background-color: var(--wood);
}

.option-black {
    background-color: #1a1a1a;
}

.option-white {
    background-color: #e8e3d8;
}

.option-gold {
    background: linear-gradient(45deg, #d4af37, #c5a47e);
}

.material-preview {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(12, 12, 12, 0.7);
    padding: 1rem;
    max-width: 300px;
}

/* TESTIMONIALS */
.testimonials {
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M40,80 C50,10 150,10 160,80 C170,130 110,170 80,150 C30,130 20,70 40,80 Z" fill="none" stroke="%23c5a47e" stroke-width="0.5" opacity="0.05"/></svg>');
    background-size: 400px;
    opacity: 0.1;
    z-index: -1;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.testimonial {
    text-align: center;
    padding: 0 2rem;
}

.testimonial-crest {
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: """;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    position: absolute;
    color: var(--gold);
    opacity: 0.3;
}

.testimonial-text::before {
    top: -30px;
    left: -30px;
}

.testimonial-text::after {
    bottom: -60px;
    right: -30px;
}

.testimonial-author {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* FINAL CTA */
.final-cta {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    padding: 4rem;
    background: rgba(12, 12, 12, 0.7);
    border: 1px solid rgba(197, 164, 126, 0.3);
    position: relative;
}

.cta-title {
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--gold);
    color: var(--black);
    font-weight: 500;
    border: none;
}

.cta-btn:hover {
    color: var(--white);
}

.cta-btn:hover::before {
    background: var(--wood);
}

/* FOOTER */
footer {
    padding: 6rem 0 3rem;
    position: relative;
    border-top: 1px solid rgba(245, 245, 245, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

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

.contact-info {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--gold);
    margin-right: 0.8rem;
    margin-top: 5px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 245, 245, 0.2);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 245, 245, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

.animated-crest {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLetters {
    from {
        opacity: 0;
        letter-spacing: 5px;
    }
    to {
        opacity: 1;
        letter-spacing: normal;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* RESPONSIVIDADE */
@media (max-width: 1200px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .story-grid,
    .config-container {
        grid-template-columns: 1fr;
    }
    
    .story-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .config-preview {
        height: 400px;
    }
    
    .lookbook-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .lookbook-item.large {
        grid-column: span 1;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .fashion-content {
        padding: 0 5%;
        text-align: center;
    }
}
