/* ===========================================================
   Vivian Machado — Micropigmentação & Academy
   Direção: "Editorial de Luxo" — Clareza, Ciência e Sofisticação.
   Paleta: Creme (Off-white), Bordô (Vinho) e Dourado (Gold).
   Tipografia: Playfair Display (Serif) + Montserrat (Sans).
   =========================================================== */

:root {
    /* Paleta v8 */
    --bg-primary: #FDFBF7;    /* Off-white Creme */
    --bg-secondary: #F5F0E6;  /* Champagne Suave */
    --brand: #800020;         /* Bordô/Vinho */
    --brand-light: #A52A2A;   /* Marrom avermelhado suave */
    --text-main: #2D2D2D;     /* Grafite Escuro */
    --text-muted: #555555;    /* Cinza Muted */
    --accent: #D4AF37;        /* Dourado Sutil */
    --white: #FFFFFF;
    
    /* Fontes */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Espaçamento */
    --padding-section: 100px 0;
    --border-radius: 4px;
    --shadow-soft: 0 10px 30px rgba(128, 0, 32, 0.05);
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 800px; }
.text-center { text-align: center; }
.bg-alt { background-color: var(--bg-secondary); }
.bg-brand { background-color: var(--brand); color: var(--white); }
.bg-brand h2, .bg-brand h3 { color: var(--white); }
.bg-brand p { color: rgba(255,255,255,0.8); }

/* Botões */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--brand);
    color: var(--white);
    border: 1px solid var(--brand);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--brand);
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}
.btn-outline:hover {
    background-color: var(--brand);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 40px; height: auto; }
.logo-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--brand); line-height: 1.2; }
.brand-sub { font-size: 0.6rem; letter-spacing: 2px; color: var(--text-muted); }

.main-nav ul { display: flex; gap: 30px; list-style: none; }
.main-nav a { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.main-nav a:hover { color: var(--brand); }
.nav-cta {
    background-color: var(--brand);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--border-radius);
}
.nav-toggle { display: none; }

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    background-color: var(--bg-primary);
}
.hero-grid { display: flex; align-items: center; gap: 50px; }
.hero-content { flex: 1; }
.section-tag {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--brand);
    margin-bottom: 20px;
    font-weight: 600;
}
h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
h1 em { color: var(--brand); font-style: italic; }
.hero-lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item .counter { font-family: var(--font-serif); font-size: 2rem; color: var(--brand); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.hero-visual { flex: 1; }
.wave-frame { position: relative; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); }
.wave-frame img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }

/* Seções Gerais */
.section-padding { padding: 100px 0; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-head { max-width: 600px; margin-bottom: 50px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: 2.5rem; margin-top: 10px; margin-bottom: 15px; }
.section-head h2 em { color: var(--brand); font-style: italic; }
.section-head p { color: var(--text-muted); font-size: 1rem; }

/* Sobre */
.sobre-visual { display: flex; gap: 20px; }
.wave-frame-sm { flex: 1; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.wave-frame-sm img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.sobre-text blockquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--brand);
    margin: 30px 0;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}
.badges-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge {
    background-color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: var(--shadow-soft);
    color: var(--brand);
}

/* Serviços / Estúdio */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-top: 3px solid var(--brand);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(128,0,32,0.1); }
.card-icon { font-family: var(--font-serif); font-size: 2rem; color: var(--accent); margin-bottom: 20px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }
.card-list { list-style: none; margin-bottom: 30px; }
.card-list li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.9rem; }
.card-link { color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { text-decoration: underline; }

/* Academy */
.academy-items { margin: 40px 0; }
.ac-item { margin-bottom: 20px; }
.ac-item strong { display: block; font-size: 1.1rem; margin-bottom: 5px; color: var(--white); font-family: var(--font-serif); }
.ac-item span { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.img-rounded { border-radius: var(--border-radius); box-shadow: var(--shadow-soft); }

/* Palestras e Galeria (Camera Stage) */
.camera-stage { position: relative; margin-top: 50px; }
.talks-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.talk-item, .gallery-item { border-radius: var(--border-radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-soft); }
.talk-item img, .gallery-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gallery-item.video-item { aspect-ratio: 4/5; display: flex; flex-direction: column; }
.gallery-item.video-item .gallery-media { flex: 1; position: relative; min-height: 0; display: flex; align-items: center; }
.gallery-item.video-item .gallery-media video { width: 100%; height: 100%; object-fit: contain; background: var(--bg-secondary); }
.gallery-item.video-item .video-toggle { position: absolute; bottom: 10px; right: 10px; z-index: 5; }
.talk-info, .gallery-caption { padding: 15px; }
.talk-info h4 { font-family: var(--font-serif); color: var(--brand); margin-bottom: 5px; font-size: 1.1rem; }
.talk-info p { font-size: 0.8rem; color: var(--text-muted); }
.gallery-caption { font-family: var(--font-serif); color: var(--brand); font-size: 0.9rem; font-style: italic; text-align: center; }

/* Animação da Câmera */
.camera-shutter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}
.is-snapping .camera-shutter { animation: cameraTrigger 1.5s ease-in-out; }
.shutter-svg { width: 100%; height: 100%; fill: var(--brand); stroke: var(--brand); }
.camera-flash {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    opacity: 0;
}
.is-snapping .camera-flash { animation: flashEffect 0.3s 0.2s; }
@keyframes cameraTrigger {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    50% { transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}
@keyframes flashEffect {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Galeria — Acordeão por categoria */
.gallery-accordion { display: flex; flex-direction: column; gap: 16px; }
.gallery-category { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.gallery-cat-toggle {
    width: 100%; display: flex; align-items: center; gap: 12px;
    background: none; border: none; cursor: pointer;
    padding: 22px 28px; text-align: left;
    font-family: var(--font-serif); font-size: 1.2rem; color: var(--brand);
}
.gallery-cat-toggle span:first-child { flex: 1; }
.gallery-count {
    font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
    background: var(--bg-secondary); color: var(--text-muted);
    padding: 3px 10px; border-radius: 20px;
}
.gallery-chevron {
    width: 10px; height: 10px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(45deg); transition: transform 0.3s ease; flex-shrink: 0;
}
.gallery-category.is-open .gallery-chevron { transform: rotate(-135deg); }
.gallery-cat-panel { padding: 0 28px 28px; }
.gallery-grid-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-thumb {
    display: block; padding: 0; border: none; cursor: pointer;
    border-radius: var(--border-radius); overflow: hidden; background: var(--bg-secondary);
    aspect-ratio: 1/1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(20,15,15,0.92);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 88vw; max-height: 86vh; border-radius: var(--border-radius); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,0.1); border: none; color: var(--white);
    cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Planos */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.plan-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    text-align: center;
}
.plan-card.featured { border: 2px solid var(--brand); transform: scale(1.05); z-index: 1; }
.plan-tag {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: var(--white);
    padding: 5px 15px; font-size: 10px; font-weight: 600;
}
.plan-price { color: var(--accent); font-weight: 600; margin: 10px 0 20px; font-size: 0.9rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 20px; }
.faq-q {
    width: 100%; text-align: left; background: none; border: none;
    padding: 20px 0; font-family: var(--font-serif); font-size: 1.2rem;
    color: var(--brand); cursor: pointer; display: flex; justify-content: space-between;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 200px; }

/* Contato */
.info-list { margin: 30px 0; }
.info-list p { margin-bottom: 15px; font-size: 1rem; }
.map-area iframe { border-radius: var(--border-radius); box-shadow: var(--shadow-soft); }

/* Footer */
.site-footer { background: var(--brand); color: var(--white); padding: 40px 0; margin-top: 50px; }
.footer-logo { width: 50px; margin-bottom: 20px; filter: brightness(0) invert(1); }

/* Responsividade */
@media (max-width: 768px) {
    .hero-grid, .grid-2-col { flex-direction: column; display: flex; }
    .service-grid, .talks-grid, .gallery-grid, .plan-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    .plan-card.featured { transform: scale(1); }
    .main-nav { display: none; }
    .gallery-grid-photos { grid-template-columns: repeat(2, 1fr); }
    .gallery-cat-toggle { padding: 18px 20px; font-size: 1.05rem; }
    .gallery-cat-panel { padding: 0 16px 22px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 10px; }
}
