/* =========================================================================
   ÓTICA ELITE | ALTO PADRÃO - CSS PURO
   ========================================================================= */

:root {
    --bg-dark: #0B0B0F;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #996515;
    --emerald-dark: #002220;
    --emerald: #004B49;
    --ice: #F5F7FA;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A5;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-snappy: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   RESETS & TYPOGRAPHY
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

body.loading {
    overflow: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

.gold-text {
    background: linear-gradient(45deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================================================
   UTILITIES (GLASS & GLOW)
   ========================================================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-snappy);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold-dark), var(--gold));
    color: var(--bg-dark);
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--ice);
    border: 1px solid var(--ice);
}

.btn-secondary:hover {
    background: var(--ice);
    color: var(--bg-dark);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    transform: scale(0.5);
}

.glow-btn:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: rotate-glow 4s linear infinite;
}

.glow-btn-strong {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
.glow-btn-strong:hover {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    transform: translateY(-2px);
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================================================
   CINEMATIC LOADER
   ========================================================================= */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.lens-focus-ring {
    position: relative;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: ring-focus 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lens-focus-ring::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px dashed var(--gold);
    border-radius: 50%;
    animation: spin-slow 10s linear infinite;
    opacity: 0.3;
}

.lens-glare {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(0, 75, 73, 0) 0%, rgba(0, 75, 73, 0.4) 25%, rgba(0, 75, 73, 0) 50%, rgba(212, 175, 55, 0.2) 75%, rgba(0, 75, 73, 0) 100%);
    animation: spin 5s linear infinite;
    pointer-events: none;
    border-radius: 50%;
}

.loader-brand {
    font-size: 2.5rem;
    letter-spacing: 12px;
    color: var(--ice);
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    margin-bottom: 0.5rem;
    filter: blur(10px);
    animation: text-focus 2s 0.5s forwards;
}

.loader-subtitle {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    opacity: 0;
    animation: text-fade-in 1s 1.5s forwards;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-slow { 100% { transform: rotate(-360deg); } }
@keyframes ring-focus {
    0% { transform: scale(1.5); box-shadow: 0 0 0 rgba(0,0,0,0); }
    100% { transform: scale(1); box-shadow: inset 0 0 50px rgba(0,0,0,0.8); }
}
@keyframes text-focus {
    0% { filter: blur(10px); opacity: 0; }
    100% { filter: blur(0); opacity: 1; }
}
@keyframes text-fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--ice);
    letter-spacing: 4px;
}

.brand-logo span {
    color: var(--gold);
    font-weight: 300;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn.btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#particles-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Dark gradient over image to preserve text readability */
    background: linear-gradient(to right, var(--bg-dark) 20%, rgba(11, 11, 15, 0.5) 70%, transparent);
}

.parallax-img {
    width: 100%;
    height: 120%; /* For parallax scroll */
    object-fit: cover;
    object-position: center top;
    transform: translateY(-10%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.headline {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subheadline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Animations for JS trigger */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: 1s ease-in;
}
.reveal-fade.visible {
    opacity: 1;
}
.delay-1 { transition-delay: 0.3s; }

/* =========================================================================
   AUTHORITY SECTION (STATS)
   ========================================================================= */
.authority-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--emerald-dark));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--ice);
    display: inline-block;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
}

/* =========================================================================
   BEFORE / AFTER EXPERIENCE
   ========================================================================= */
.experience-section {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    aspect-ratio: 16/9;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.ba-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.image-before {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    overflow: hidden;
    border-right: 2px solid var(--gold);
}

.image-before img {
    width: 200%; /* Important mapping trick for slider */
    max-width: none;
}

.handle {
    position: absolute;
    top: 0; left: 50%;
    width: 40px; height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.handle-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--gold);
}

.handle-circle {
    width: 50px; height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: background 0.2s;
}

.handle:hover .handle-circle {
    background: var(--gold);
    color: var(--bg-dark);
}

.label-before, .label-after {
    position: absolute;
    bottom: 20px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: var(--ice);
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.label-before { left: 20px; }
.label-after { right: 20px; }

/* =========================================================================
   COLLECTIONS CAROUSEL
   ========================================================================= */
.collections-section {
    padding: 8rem 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 3rem;
}

.carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-item {
    min-width: 350px;
    width: 350px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.img-wrapper {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.reflection-overlay {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-item:hover .reflection-overlay {
    animation: shine 1.5s;
}

@keyframes shine {
    100% { left: 200%; }
}

.item-info {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
}

.item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.item-link {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.item-link:hover {
    border-color: var(--gold);
}

.carousel-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--gold);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-snappy);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* =========================================================================
   DIFFERENTIALS
   ========================================================================= */
.differentials-section {
    padding: 8rem 0;
    background: linear-gradient(to top, var(--bg-dark), var(--emerald-dark));
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.diff-card {
    padding: 3rem 2rem;
    text-align: center;
}

.diff-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.5));
}

.diff-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gold-light);
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials-section {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.testimo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimo-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimo-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimo-header img {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.testimo-header h4 {
    font-size: 1.1rem;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.comment {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */
.faq-section {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--ice);
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-snappy);
}

.accordion-header:hover {
    color: var(--gold);
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    padding: 0 2rem;
    color: var(--text-muted);
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 2rem 1.5rem;
}

/* =========================================================================
   FINAL CTA & FOOTER
   ========================================================================= */
.cta-section {
    padding: 6rem 2rem;
    background: var(--bg-dark);
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(212,175,55,0.05) 0%, var(--glass-bg) 100%);
}

.cta-container h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-container p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}

footer {
    background: #050508;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--ice);
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--gold);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 1024px) {
    .headline { font-size: 3.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    .testimo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .headline { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .section-header h2 { font-size: 2.2rem; }
    .diff-grid { grid-template-columns: 1fr; }
    .testimo-grid { grid-template-columns: 1fr; }
    .cta-container h2 { font-size: 2.5rem; }
}
