/* 
   Spa Tantra - Design System 
   Focus: Professionalism, Seriousness, Sober Tones
*/

:root {
    --primary-color: #1a1a1a; /* Charcoal */
    --secondary-color: #2c3e50; /* Deep Slate */
    --accent-color: #e63946; /* Brand Red (Logo Only) */
    --bg-light: #f8f9fa; /* Off-white */
    --bg-dark: #121212;
    --text-main: #333333;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color); /* The ONLY red element */
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

header.scrolled nav ul li a {
    color: var(--primary-color);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2) 100%), url('hero_spa_tantra.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: var(--text-light);
    padding: 0 10%;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

.btn:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Sections General */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title .line {
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* Therapies Grid */
.therapies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.therapy-card {
    background: white;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.therapy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.therapy-img {
    height: 250px;
    overflow: hidden;
}

.therapy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.therapy-card:hover .therapy-img img {
    transform: scale(1.05);
}

.therapy-content {
    padding: 30px;
}

.therapy-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.therapy-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* About Section */
.about {
    background: var(--secondary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: var(--text-light);
}

.about-image {
    flex: 1;
    height: 500px;
    background: url('therapy_energy.webp') center/cover no-repeat;
    border-radius: 4px;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.info-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: rgba(255,255,255,0.6);
    padding: 60px 10% 20px;
    text-align: center;
}

.footer-logo {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Solid for Subpages */
header.header-solid {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
}
header.header-solid nav ul li a {
    color: var(--primary-color);
}
header.header-solid nav ul li a:hover {
    color: var(--accent-color);
}
header.header-solid .logo span {
    color: var(--accent-color);
}

/* Catalog and Details Styles */
.page-title-section {
    padding: 60px 10% 30px;
    text-align: center;
    background: var(--bg-light);
    border-bottom: 1px solid #eee;
}
.page-title-section h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}
.page-title-section .line {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto 15px;
}
.page-title-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.catalog-section {
    padding: 60px 10% 100px;
    background: white;
}

.therapists-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.therapist-card-catalog {
    background: white;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.therapist-card-catalog:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}
.therapist-card-catalog img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid #f8f9fa;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.therapist-card-catalog:hover img {
    border-color: var(--accent-color);
}
.therapist-card-catalog h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}
.therapist-card-catalog .specialty {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 20px;
}
.therapist-card-catalog p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Detail Page Layout */
.therapist-detail-section {
    padding: 80px 10% 100px;
    background: white;
}
.detail-layout {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.main-image-container {
    width: 100%;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}
.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.thumbnail-item {
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.thumbnail-item.active, .thumbnail-item:hover {
    border-color: var(--accent-color);
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-info h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    line-height: 1.1;
}
.detail-info .specialty {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 25px;
}
.detail-info .bio-highlight {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #444;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
}
.detail-info .work-description {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 40px;
}
.detail-info .work-description p {
    margin-bottom: 20px;
}
.booking-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}
.booking-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.booking-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.booking-card .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transform: none;
    animation: none;
}
.booking-card .btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Menu Toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

header.scrolled .menu-toggle span,
header.header-solid .menu-toggle span {
    background-color: var(--primary-color);
}

/* Burger Animation to 'X' */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about { flex-direction: column; }
    .about-image { width: 100%; height: 350px; }
    .detail-layout { grid-template-columns: 1fr; gap: 40px; }
    .main-image-container { height: 400px; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    /* Ocultar o botão agendar no header no mobile */
    header .btn, header a.btn {
        display: none !important;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(26, 26, 26, 0.98);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        padding: 100px 30px;
        transition: right 0.4s ease;
        display: block;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    nav ul li a {
        font-size: 1rem;
        color: var(--text-light) !important;
    }
    
    /* Organização do Submenu no Mobile */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 10px 0 0 15px !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        border: none !important;
    }
    
    .dropdown-menu li {
        width: 100% !important;
    }
    
    .dropdown-menu li a {
        white-space: normal !important;
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 6px 0 !important;
        display: block !important;
        text-transform: none !important;
        letter-spacing: 0.5px !important;
    }
    
    .dropdown-menu li a:hover {
        background: transparent !important;
        color: var(--accent-color) !important;
    }
    
    nav ul li.dropdown.active .dropdown-menu {
        display: block;
    }
    
    header { padding: 1rem 5%; }
    .detail-info h1 { font-size: 2.8rem; }
    .therapists-catalog-grid { grid-template-columns: 1fr; }
    .contact-info { flex-direction: column; gap: 30px; }
    .hero { text-align: center; align-items: center; padding: 0 5%; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
}

/* Dropdown Navigation Menu */
nav ul li {
    position: relative;
}

nav ul li.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(26, 26, 26, 0.95);
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block;
}

header.scrolled .dropdown-menu {
    background-color: white;
    border: 1px solid #eee;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
}

header.scrolled .dropdown-menu li a {
    color: var(--text-main) !important;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-color) !important;
    color: white !important;
}

nav ul li.dropdown > a::after {
    content: " ▾";
    font-size: 0.75rem;
    vertical-align: middle;
}
