:root {
    /* Cores Premium */
    --color-bg: #0a0a0c;
    --color-bg-darker: #050506;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-text: #eaeaea;
    --color-text-muted: #8a8a9a;
    
    /* Tons Ouro / Cobre / Âmbar */
    --color-gold: #D4AF37;
    --color-gold-hover: #e5c158;
    --color-copper: #b87333;
    --color-amber: #ffbf00;
    
    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Outros */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
}

body {
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 40%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 75%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(255, 0, 127, 0.03) 0%, transparent 35%); /* Sutil reflexo magenta no escuro */
    background-attachment: fixed;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    line-height: 1.6;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Filete Ouro Metalizado dividindo as seções */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.text-gold {
    color: var(--color-gold);
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Glassmorphism */
.glassy {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glassy-dark {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

/* Botões */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-copper) 100%);
    color: #000;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    color: #000;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 10px 24px;
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--color-gold);
    color: #000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

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

.nav-logo-img {
    height: 180px; /* Altura absurda para cobrir fundos transparentes da imagem PNG */
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
    transform: scale(1.3); /* Força a imagem a expandir acima e abaixo */
    transform-origin: left center;
}

.navbar.scrolled {
    background: rgba(5, 5, 6, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-logo-img {
    height: 80px; /* Reduz ao descer a página para navegação elegante */
    transform: scale(1.1);
}

.footer-logo-img {
    height: 140px; /* Aumenta o tamanho da logo de baixo */
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/flexsilk_bags_hero_novo.webp') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5, 5, 6, 0.9) 0%, rgba(5, 5, 6, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Tabs & Modelos */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--color-gold);
    color: #fff;
}

.tab-btn.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    font-weight: 500;
}

.model-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    min-height: 500px;
}

/* Galeria de Fotos (Múltiplas Imagens) */
.model-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.model-image-main {
    border-radius: var(--radius);
    height: 480px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.model-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Contain: Não corta a imagem no frame */
    transition: transform 0.5s ease;
}

.model-image-main:hover img {
    transform: scale(1.05); /* Zoom sutil sem cortar as bordas */
}

.model-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-thumb {
    height: 80px;
    width: 80px;
    border-radius: 6px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.1);
}

.model-info h3 {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.model-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.model-features {
    list-style: none;
    margin: 30px 0 40px;
}

.model-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ddd;
}

.model-features li::before {
    content: '✦';
    color: var(--color-gold);
    margin-right: 12px;
    font-size: 0.9em;
}

/* Timeline Alternada Premium */
.timeline {
    max-width: 1000px; /* Alargado para caber as duas colunas laterais em Zigue Zague */
    margin: 0 auto;
    position: relative;
    padding-top: 20px;
}

/* Fio condutor Dourado e Magenta */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-gold) 0%, #ff007f 50%, var(--color-gold) 100%);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 50px;
}

/* Ímpares na Esquerda (1, 3, 5...) */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

/* Pares na Direita (2, 4...) */
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

/* Bolinhas Metálicas */
.tl-dot {
    position: absolute;
    top: 30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), #ff007f);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4), 0 0 15px rgba(212, 175, 55, 0.5);
    z-index: 2;
}

.timeline-item:nth-child(odd) .tl-dot {
    right: -9px; /* Centraliza sobre a linha na direita da borda impar */
}

.timeline-item:nth-child(even) .tl-dot {
    left: -9px; /* Centraliza sobre a linha na esquerda da borda par */
}

/* O Cartão glassy em si */
.tl-content {
    padding: 35px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

/* Reflexo Mágico no Background Hover (Dourado/Magenta) */
.tl-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 0, 127, 0.1) 100%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.tl-content > h4, 
.tl-content > p {
    position: relative;
    z-index: 1; /* Para o texto não ser devorado pelo gradiente */
}

.tl-content:hover {
    border-color: #ff007f;
    box-shadow: 0 10px 40px rgba(255, 0, 127, 0.15), 0 10px 40px rgba(212, 175, 55, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.tl-content:hover::before {
    opacity: 1;
}

.tl-content h4 {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 12px;
}

/* Contato / Leaflet Map */
.map-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.address-box {
    padding: 25px;
    margin-top: 20px;
    border-left: 3px solid var(--color-gold);
    line-height: 1.8;
}

.cta-box {
    margin-top: 50px;
}

.map-container {
    height: 500px;
    overflow: hidden;
    padding: 10px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius) - 2px);
    z-index: 1; /* Para não sobrepor a navbar */
}

/* Rodapé */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 10px;
    font-size: 0.9rem;
}

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

.footer-links a:hover {
    color: var(--color-gold-hover);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

/* Formulário de Orçamento */
.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 1rem;
    color: var(--color-gold);
    font-weight: 500;
}

.form-group select, 
.form-group input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select:focus, 
.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    background: rgba(5, 5, 6, 0.8);
}

.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group select option {
    background: var(--color-bg-darker);
    color: #fff;
    padding: 10px;
}

.quote-btn {
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Social Links Footer */
.social-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 10px 15px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.social-btn:hover {
    color: var(--color-gold);
    border-left-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Responsivo */
@media (max-width: 992px) {
    .model-showcase, .map-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .hero-title { font-size: 3rem; }
    .section { padding: 60px 0; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    
    /* Reverte Linha do Tempo Alternada para Coluna Única no Celular */
    .timeline::before {
        left: 20px;
        transform: none;
    }
    .timeline-item {
        width: 100%;
        margin-bottom: 30px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 55px;
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .tl-dot,
    .timeline-item:nth-child(even) .tl-dot {
        left: 11px;
        right: auto;
    }
}

/* Leaflet Dark Mode Tweak */
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
