/* ============================================
   DESIGN SYSTEM — Dr. Carlos Ornelas
   Palette: Preto | Dourado | Branco
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --preto: #111111;
  --preto-suave: #1a1a1a;
  --preto-medio: #2a2a2a;
  --dourado: #c9a84c;
  --dourado-claro: #e2c06b;
  --dourado-escuro: #a07828;
  --branco: #ffffff;
  --branco-suave: #fcfcfc;
  --cinza-claro: #ececec;
  --texto-suave: #666666;

  --font-heading: 'Lato', sans-serif;
  --font-subheading: 'Lato', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease-out;
  --radius: 8px;
}

/* === RESET & BASE (Mobile First) === */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { 
    background: var(--preto); 
    color: var(--branco-suave); 
    font-family: var(--font-body); 
    font-size: 16px; 
    line-height: 1.6; 
    overflow-x: hidden;
    font-weight: 300;
}

/* Landing Page Specific: Hide until data is ready */
body.landing-page {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}
body.landing-page.loaded {
    opacity: 1;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--branco); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; height: auto; }

/* === UTILS === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-dark { /* removed hardcoded */ }
.section-light { /* removed hardcoded */ }
.gold-text { color: var(--dourado-claro); font-style: normal; font-weight: 700; }
.hidden-section { display: none !important; }

/* === TYPOGRAPHY (Mobile) === */
.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
}
.section-title { margin-bottom: 50px; text-align: center; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 12px; font-weight: 700; }
.section-title .subtitle { opacity: 0.8; font-size: 1rem; margin: 0 auto; max-width: 600px; }

/* === BUTTONS (Touch Optimized) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px; 
    padding: 0 30px;
    background: var(--dourado);
    color: var(--preto);
    font-weight: 700;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    width: 100%; 
}
.btn-outline { background: transparent; border: 1px solid var(--dourado); color: var(--dourado); }

/* === HEADER === */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 45px; }

/* === HERO (Mobile) === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: left;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content { }
.hero-image-wrap {
    display: none;
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    max-height: 550px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
.hero p { font-size: 1rem; color: var(--cinza-claro); margin-bottom: 35px; }
.hero-ctas { display: flex; flex-direction: column; gap: 15px; }

/* === SERVICES (Meus Serviços) === */
.services-list-vertical { display: flex; flex-direction: column; }
.service-vertical-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.12);
}
.service-vertical-item:last-child { border-bottom: 1px solid rgba(0,0,0,0.12); }
.service-number {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.35;
    white-space: nowrap;
    min-width: 70px;
    padding-top: 4px;
    font-family: var(--font-heading);
}
.service-desc-wrap h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.service-desc-wrap p { font-size: 0.95rem; opacity: 0.7; line-height: 1.7; }

/* === SECTIONS === */
section { padding: 80px 0; }

/* === HIGHLIGHTS === */
.highlights-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.highlight-card { text-align: center; }
.highlight-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.highlight-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* === PAIN CARDS === */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
.pain-card {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 25px;
    border-radius: var(--radius);
}
.pain-icon { font-size: 2.2rem; margin-bottom: 15px; }

/* === PAIN MAP === */
.pain-map-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    align-items: center;
}

@media (min-width: 768px) {
    .pain-map-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

.pain-map-svg-wrap {
    width: 100%;
    max-width: 350px;
    flex-shrink: 0;
}

.human-body-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.body-region {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    cursor: pointer;
    transition: var(--transition);
}

.body-region:hover, .body-region.active {
    fill: rgba(255, 50, 50, 0.4);
    stroke: #ff3333;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
}

.pain-map-info {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.4s ease-out;
}

.pain-map-info.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pain-info-glass {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.close-info {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--texto-suave);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-info:hover {
    color: var(--branco);
}

.region-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: var(--dourado-claro);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.pain-info-glass h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.pain-desc {
    color: var(--texto-suave);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.treatments-section h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--branco);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.treatment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.treatment-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--cinza-claro);
}

.pain-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pain-map-initial {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 40px 20px;
    background: rgba(20, 20, 20, 0.4);
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.pain-map-initial .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.pain-map-initial.hidden {
    display: none;
}

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
.about-image-wrap { position: relative; margin-bottom: 30px; }
.about-badge {
    position: absolute;
    bottom: -15px;
    right: -10px;
    background: var(--dourado);
    padding: 20px;
    border-radius: 8px;
    color: var(--preto);
}
.badge-number { display: block; font-size: 1.8rem; font-weight: 700; }
.badge-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.about-content h2 { font-size: 2.2rem; margin-bottom: 20px; }
.method-steps { display: flex; flex-direction: column; gap: 30px; margin: 30px 0; }
.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.method-step { display: flex; gap: 15px; }
.step-number { font-size: 1.1rem; color: var(--dourado); font-weight: 700; opacity: 0.5; }

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
    justify-content: center;
    gap: 20px;
}

/* === ELFSIGHT MASK === */
#avaliacoes { position: relative; overflow: hidden; }
.elfsight-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: var(--preto);
    z-index: 10;
    pointer-events: none;
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; }
.faq-item summary { padding: 20px; cursor: pointer; position: relative; list-style: none; font-weight: 600; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; font-weight: 400; opacity: 0.7; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 20px 20px; color: var(--texto-suave); font-size: 0.9rem; }

/* === LOCATION === */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.location-info { background: rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.05); padding: 30px 20px; border-radius: var(--radius); }
.location-block { display: flex; gap: 15px; }
.location-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 25px 0; }
.map-container { border-radius: var(--radius); min-height: 300px; }

/* === FOOTER === */
footer { padding: 60px 0 30px; text-align: center; border-top: 1px solid var(--preto-medio); }
.footer-social-text {
    font-size: 0.9rem;
    color: var(--texto-suave);
    margin: 25px 0 10px;
    font-weight: 500;
}

.footer-links { display: flex; justify-content: center; gap: 30px; margin: 0 0 30px; }
.footer-copy { font-size: 0.75rem; color: #555; }

/* === FLOATING WHATSAPP === */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ============================================
   DESKTOP / TABLET EXPANSION (min-width)
   ============================================ */

/* TABLET (768px and up) */
@media (min-width: 768px) {
    body { font-size: 17px; }
    .section-title h2 { font-size: 2.5rem; }
    .btn { width: auto; }
    
    .hero { text-align: left; padding-top: 80px; }
    .hero h1 { font-size: 3.5rem; }
    .hero-overlay { background: rgba(10,10,10,0.6); }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .hero-image-wrap { display: block; }
    .hero-ctas { flex-direction: row; }
    
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    
    .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
    .about-content h2 { font-size: 2.5rem; }
    
    .location-grid { grid-template-columns: 1fr; } /* Map below info on tablet */
    
    .logo { height: 50px; }
    section { padding: 100px 0; }
    
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 380px)); }
}

/* DESKTOP (1024px and up) */
@media (min-width: 1024px) {
    body { font-size: 18px; }
    .section-title h2 { font-size: 2.8rem; }
    
    .hero h1 { font-size: 4rem; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
    .hero-overlay { background: rgba(10,10,10,0.55); }
    
    .highlights-grid { grid-template-columns: repeat(3, 1fr); gap: 60px; }
    .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    
    .about-grid { grid-template-columns: 1fr 1.2fr; gap: 100px; }
    .about-content h2 { font-size: 3rem; }
    
    .location-grid { grid-template-columns: 1fr 1.5fr; }
    .location-info { padding: 50px; }
    
    .logo { height: 60px; }
    section { padding: 120px 0; }
    
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 420px)); }
}

/* WIDE SCREENS (1440px and up) */
@media (min-width: 1440px) {
    .hero h1 { font-size: 5.2rem; }
    .hero-content { max-width: 50%; }
}
