/* --- Setup & Variables --- */
:root {
    --bg-dark: #0a0a0a;      /* Preto Profundo */
    --bg-card: #141414;      /* Cinza Quase Preto */
    --accent: #C0C0C0;       /* Prata Sofisticado (Substituindo o Dourado) */
    --accent-light: #E5E5E5; /* Prata Claro */
    --text-main: #f0f0f0;    /* Branco Suave */
    --text-muted: #a0a0a0;   /* Cinza Médio */
    --border-color: rgba(192, 192, 192, 0.2); /* Borda Prata Sutil */
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --container-width: 1280px;
    --transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.2;
}

h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 2rem; color: var(--accent); }

p { color: var(--text-muted); font-weight: 300; font-size: 1.05rem; }

.text-accent { color: var(--accent); }
.text-italic { font-style: italic; }

/* --- Layout Utils --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section { 
    padding: 100px 0; 
    position: relative; 
    scroll-margin-top: 120px; /* Garante que o cabeçalho não cubra o título ao rolar */
}

a { text-decoration: none; transition: var(--transition); color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Force single line */
    text-align: center;
    max-width: 100%;
}

.btn:hover {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
}

.btn-fill {
    background-color: var(--accent);
    color: #000;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title-wrapper::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    margin: 20px auto 0;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

/* Logo Ajustado: Empilhado, Próximo e Sem Acento */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-family: var(--font-serif);
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 0.85; /* Une as linhas */
}

.logo .line-1 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-main);
    font-weight: 400;
}

.logo .line-2 {
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
}

nav ul { display: flex; gap: 40px; }

nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    position: relative;
}

nav a.active, nav a:hover { color: var(--accent); }

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s;
}
nav a:hover::after { width: 100%; }

.hamburger { display: none; color: var(--accent); font-size: 1.5rem; cursor: pointer; position: relative; z-index: 1001; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 70% 50%, #1a1a1a 0%, #0a0a0a 70%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.hero-text { z-index: 2; padding-right: 20px; }

.hero-welcome {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.hero h1 span {
    display: block;
    color: var(--accent);
    font-style: italic;
}

.hero p {
    max-width: 480px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.hero-img-container {
    position: relative;
    height: 85vh;
    display: flex;
    justify-content: center; /* Centralizado */
    align-items: center;
}

/* Moldura Prata Atrás da Imagem */
.hero-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centralizado */
    width: 90%;
    height: 95%;
    border: 1px solid var(--accent);
    z-index: 1;
    opacity: 0.3;
}

.hero-img {
    position: relative;
    z-index: 2;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: top center; /* Foco no rosto */
    filter: grayscale(20%) contrast(110%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- About Section --- */
.about { background-color: #0f0f0f; } /* Changed to medium dark */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    filter: grayscale(100%);
    transition: var(--transition);
}

.about-img:hover { filter: grayscale(0%); }

.about-content h2 { margin-bottom: 30px; }

.stats-row {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat-item span {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* --- Procedures --- */
.procedures { background-color: #0f0f0f; }

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.proc-card {
    background: var(--bg-card);
    padding: 50px 30px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.proc-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.proc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background-color: var(--accent);
    transition: height 0.4s;
}

.proc-card:hover::before { height: 100%; }

.proc-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.proc-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

/* --- Gallery (Results) with Before/After --- */
.results { background-color: var(--bg-dark); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row for better visibility */
    gap: 40px;
}

.ba-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1; /* Square format */
    overflow: hidden;
    border: 1px solid rgba(192, 192, 192, 0.1);
    cursor: col-resize;
    user-select: none;
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The 'After' image is the background base. 
   The 'Before' image is on top and clipped. */

.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%; /* Start at 50% */
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid #fff;
    will-change: width;
}

/* Important: The image inside the clipped wrapper must retain full width 
   to align perfectly with the background image. */
.ba-before-wrapper img {
    width: auto; /* Allow JS to set this to container width */
    height: 100%;
    max-width: none;
}

/* The handle */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%; /* Start at 50% */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    pointer-events: none; /* Events flow to container */
}

.ba-handle i {
    color: #000;
    font-size: 1rem;
}

.ba-labels {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 3;
}

.ba-label {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.ba-info h4 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.ba-info p {
    font-size: 0.9rem;
}

/* --- Contact --- */
.contact {
    background: linear-gradient(to bottom, var(--bg-dark), #000);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-info-box {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid rgba(192, 192, 192, 0.1);
    width: 100%;
    max-width: 600px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.info-item h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--text-main);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.socials a {
    color: var(--text-muted);
    margin: 0 15px;
    font-size: 1.2rem;
}
.socials a:hover { color: var(--accent); }

.copy { margin-top: 30px; font-size: 0.7rem; color: #555; text-transform: uppercase; letter-spacing: 2px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .hero-img-container { height: 60vh; order: -1; justify-content: center; }
    .hero-text { text-align: center; padding: 0; }
    .hero p { margin: 0 auto 40px; }
    .gallery-grid { grid-template-columns: 1fr; }
    
    .hamburger { display: block; }
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        z-index: 999;
        border-left: 1px solid var(--accent);
    }
    nav ul.active { right: 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    /* On mobile, sliders take full width */
    .ba-container { aspect-ratio: 4/5; }
    
    /* Mobile adjustments for buttons and layout */
    .btn {
        padding: 18px 20px; /* Reduce padding on mobile */
        font-size: 0.7rem;
    }
    
    .contact-info-box {
        padding: 30px 20px; /* Reduce box padding to give more space */
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none; /* Hidden by default, shown via JS */
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--accent);
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 20px 50px;
    }
}

.cookie-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .cookie-text {
        margin-bottom: 0;
        margin-right: 20px;
        max-width: 70%;
    }
}

.cookie-btn {
    background-color: var(--accent);
    color: #000;
    border: none;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: var(--transition);
}

.cookie-btn:hover {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}
