/* =================================================================
   DESIGN SYSTEM (As cores são re-escritas via JS pelo config.js)
   ================================================================= */
:root {
    --primary: #141414;
    --secondary: #1f1f1f;
    --accent: #d4af37;
    --text: #ffffff;
    --text-muted: #a0a0a0;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* =================================================================
   RESET & ESTILOS BÁSICOS
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* =================================================================
   LAYOUT & CLASSES UTILITÁRIAS
   ================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-secondary {
    background-color: var(--secondary);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 15px auto 0;
}

.text-center {
    text-align: center;
}

/* =================================================================
   BOTÕES
   ================================================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =================================================================
   HEADER & NAVBAR
   ================================================================= */
.navbar.scrolled {
    background-color: rgba(20, 20, 20, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    border-bottom: 1px solid var(--secondary);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: var(--accent);
    font-size: 2rem;
}

/* NOVO DESIGN DO LOGO PREMIUM */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin: 0;
    padding: 5px 0;
}

.nav-brand-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-brand:hover .nav-brand-img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: 2px;
}

.nav-brand-text span {
    display: block;
}

@media (min-width: 769px) {
    .nav-brand-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .nav-brand {
        gap: 12px;
    }
    .nav-brand-img {
        width: 75px;
        height: 75px;
        border-width: 2px;
    }
    .nav-brand-text {
        font-size: 1.35rem;
        letter-spacing: 1.5px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Fica por cima do menu ao abrir */
}

.mobile-menu-btn .bar {
    height: 3px;
    width: 100%;
    background-color: var(--accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animação para transformar o hamburger num X */
.mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center 0%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Removido o image-rendering para permitir que o browser faça o antialiasing nativo com melhor qualidade */
}

/* Correção para o bug do iOS/Mobile Safari que deixa imagens fixed pixelizadas ou esticadas */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-color: var(--primary);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(20, 20, 20, 1));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 20px 0;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--text);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* =================================================================
   GRID GENÉRICA
   ================================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* =================================================================
   CARDS DE SERVIÇOS
   ================================================================= */
.service-card {
    background-color: var(--primary);
    padding: 40px 30px;
    border: 1px solid var(--secondary);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card .price {
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* =================================================================
   GALERIA
   ================================================================= */
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(30%);
}

.gallery-container {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-img:hover {
    transform: scale(1.08);
    filter: grayscale(0%);
}

/* =================================================================
   SOBRE NÓS
   ================================================================= */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* =================================================================
   FORMULÁRIO DE MARCAÇÃO
   ================================================================= */
.booking-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--secondary);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-title {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contact-details p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.contact-details strong {
    color: var(--text);
}

.hours-container {
    margin-top: 30px;
}

.hours-container strong {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
}

.hours-container ul li {
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =================================================================
   WHATSAPP & CALL FLOAT
   ================================================================= */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float:hover {
    transform: scale(1.15) rotate(-10deg);
    opacity: 1;
}

.call-float {
    position: fixed;
    bottom: 25px;
    right: 90px;
    width: 55px;
    height: 55px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.call-float:hover {
    transform: scale(1.15) rotate(10deg);
    opacity: 1;
}

.wa-icon, .call-icon {
    width: 28px;
    height: 28px;
}

/* =================================================================
   PREMIUM FEATURES: LOADER, REVEAL, LIGHTBOX, STATUS, TEAM, SLOTS
   ================================================================= */

/* 1. Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--secondary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* 2. Animações Reveal no Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Status Badge (Aberto/Fechado) */
.shop-status {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-open {
    background-color: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.status-closed {
    background-color: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-open .status-dot {
    background-color: #25D366;
    box-shadow: 0 0 8px #25D366;
}

.status-closed .status-dot {
    background-color: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

/* 4. Team Section */
.team-card {
    background-color: var(--primary);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.team-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    background-color: transparent;
    filter: grayscale(40%);
    transition: filter 0.3s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    color: var(--accent);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.team-info p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* 5. Testimonials Section */
.testimonial-card {
    background-color: var(--secondary);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-family: var(--font-heading);
    color: var(--text);
    font-weight: 600;
}

.testimonial-rating {
    color: var(--accent);
    margin-top: 5px;
    font-size: 1.2rem;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    line-height: 1;
}

/* 6. Time Slots (Disponibilidade) */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    background-color: var(--secondary);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.time-slot:not(:disabled):hover {
    border-color: var(--accent);
    color: var(--accent);
}

.time-slot.selected {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: bold;
}

.time-slot:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: transparent;
    text-decoration: line-through;
}

/* 7. Lightbox */
.lightbox {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content.circular-lb {
    border-radius: 50%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border: 4px solid var(--accent);
    padding: 15px; /* Evita que o texto encoste na borda e seja cortado */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: white;
    font-size: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    line-height: 1;
    padding-bottom: 4px; /* Centra perfeitamente o ícone vezes (X) */
}

.lightbox-close:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

/* 8. Premium Gallery & Location Cards */
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.gallery-img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
    filter: brightness(1.1);
    z-index: 10;
    position: relative;
}

.location-card {
    background: linear-gradient(145deg, var(--secondary), var(--primary));
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
}

.location-card h4 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-card p,
.location-card strong {
    color: var(--text);
    line-height: 1.6;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-list li:last-child {
    border-bottom: none;
}

/* =================================================================
   MEDIA QUERIES (MOBILE FIRST CORRECTIONS)
   ================================================================= */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        border-bottom: 1px solid var(--accent);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .wa-float {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }
    
    .call-float {
        bottom: 15px;
        right: 73px;
        width: 48px;
        height: 48px;
    }
    
    .wa-icon, .call-icon {
        width: 24px;
        height: 24px;
    }
}