:root {
    --primary: #3a4732; /* New Slightly Darker, Professional Forest Green */
    --secondary: #d6b394;
    --secondary-green: #5a6652;
    --bg-cream: #fefcf7;
    --bg-green: #f2f4ef;
    --text-dark: #2d3427;
    --text-muted: #5a6451;
    --white: #ffffff;
    --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 15px 50px rgba(58, 71, 50, 0.15);
    --section-pad: 120px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Organic Grain Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

section {
    padding: var(--section-pad) 20px;
    width: 100%; /* Ensure full-width backgrounds */
    max-width: none; /* Removed fixed max-width to fix 'vazamento' gaps */
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 10px 0;
}

header.scrolled {
    background: rgba(254, 252, 247, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(100, 115, 84, 0.1);
    padding: 5px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #525e44;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(100, 115, 84, 0.25);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(100, 115, 84, 0.05);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 0.8rem;
    padding: 10px 20px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Nossa Essência */
.essencia {
    background: var(--bg-green); /* Restored light background */
    color: var(--text-dark);
    max-width: none;
}

.essencia .hero-tag {
    color: var(--primary);
}

.essencia-content h2 {
    color: var(--text-dark);
}

.essencia-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.essencia-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.essencia-image {
    flex: 1;
}

.essencia-image img {
    width: 100%;
    border-radius: 60px;
    box-shadow: var(--shadow-soft);
}

.essencia-content {
    flex: 1;
}

.essencia-content h2 {
    font-size: 3.2rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.essencia-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Por Que Escolher / Pilares (Immersive Glassmorphism) */
.pq-escolher {
    position: relative;
    background: var(--primary) url('Assets/Diferenciais.JPG') center/cover no-repeat fixed; /* Set to Fixed/Parallax */
    padding: 160px 60px;
    max-width: none;
    overflow: hidden;
}

.pq-escolher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(45, 52, 39, 0.95) 0%, rgba(45, 52, 39, 0.5) 100%);
    z-index: 1;
}

.pillars-moldure {
    position: relative;
    z-index: 2;
    background: rgba(45, 52, 39, 0.5); /* 50% Opacity as requested */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    padding: 60px 40px 80px; /* Reduced vertical padding for horizontal look */
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px; /* Wider moldure */
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    overflow: visible; /* CRITICAL for vazamento */
}

.pq-escolher .pilares-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    width: 120%; /* Moderate overflow for 'vazamento' */
    margin-left: -10%;
}

.pq-escolher .pilar-card {
    flex: 1;
    min-height: 120px; /* Extreme flat horizontal proportion */
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    color: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pq-escolher .pilar-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.pq-escolher .pilar-icon {
    font-size: 2rem; /* Slightly smaller */
    color: var(--secondary);
    margin-bottom: 8px; /* Substantially reduced spacing */
    opacity: 1;
}

.pq-escolher .pilar-card h3 {
    font-size: 1.25rem; /* Slightly more compact */
    margin-bottom: 5px; /* Tighter spacing */
    color: var(--white);
}

.pq-escolher .pilar-card p {
    font-size: 0.85rem; /* More compact description */
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.pilar-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Section Utilities */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* FAQ Styling */
.faq {
    background-color: var(--white);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}

/* Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Specialist Portraits & Cards */
.prof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

/* Professional Portraits & Cards (Le Sens Style) */
.profissionais {
    background: radial-gradient(circle at 50% 50%, #4a5a41 0%, var(--primary) 100%);
    color: var(--white);
    padding: 160px 20px;
    max-width: none;
    position: relative;
    overflow: hidden; /* Contain ambient glows */
}

/* Ambient Glow Blobs */
.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(100, 115, 84, 0.45) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: ambientFloat 20s infinite alternate ease-in-out;
}

.glow-1 { top: -10%; left: -10%; animation-duration: 25s; }
.glow-2 { bottom: -10%; right: -10%; animation-delay: -7s; animation-duration: 30s; background: radial-gradient(circle, rgba(214, 179, 148, 0.1) 0%, transparent 70%); }

@keyframes ambientFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(150px, 80px) scale(1.1); opacity: 0.6; }
    100% { transform: translate(-80px, 150px) scale(0.9); opacity: 0.4; }
}

.profissionais .container {
    position: relative;
    z-index: 5; /* Keep content above glows */
}

.prof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 405px));
    gap: 40px;
    justify-content: center;
    perspective: 1000px;
}

.prof-card {
    position: relative;
    height: 630px;
    max-width: 405px;
    background: var(--primary);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--white); /* Solid white border as requested */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 1s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s ease;
}

/* Entrance Animation Staggering */
.prof-card:nth-child(2) {
    transition-delay: 0.2s;
}

.prof-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.prof-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    padding: 40px;
    background: linear-gradient(0deg, var(--primary) 0%, var(--primary) 42%, rgba(100, 115, 84, 0) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.prof-card-content .prof-role {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px; /* Reduced spacing */
}

.prof-card-content h3 {
    font-size: 2.2rem;
    margin-bottom: 10px; /* Reduced spacing */
    line-height: 1.1;
}

.prof-card-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 12px; /* Tightened space before the button */
}

/* Moving Light Beam Effect */
.prof-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: rotate(25deg) translateY(-50%);
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
}

.prof-card:hover::before {
    left: 150%;
}

/* Card Hover Interaction - Restored Blur as requested */
.prof-grid:hover .prof-card {
    filter: blur(2px) brightness(0.95);
    transform: scale(0.98);
    opacity: 0.85;
}

.prof-grid .prof-card:hover {
    filter: none;
    transform: scale(1.03) translateY(-10px); /* Enhanced lift for movement */
    opacity: 1;
    z-index: 4;
}

.prof-card:hover img {
    transform: scale(1.1);
}

/* Experiências / Testemunhos */
.experiências {
    background: var(--bg-cream);
}

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

.testemunho-card {
    padding: 60px;
    background: var(--white);
    border-radius: 40px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.testemunho-card .quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 30px;
}

.testemunho-card .author {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    max-width: none;
    background-color: var(--primary); /* Safe fallback for animations */
    overflow: hidden; /* Ensure zoom doesn't leak out */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 65%; /* Restricting width to its side */
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Keep behind everything */
    animation: kenBurns 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); } /* Slightly subtler zoom */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Restored Airy/Light gradient */
    background: linear-gradient(90deg, 
        rgba(254, 252, 247, 0.95) 0%, 
        rgba(254, 252, 247, 0.7) 40%, 
        rgba(254, 252, 247, 0) 100%);
    z-index: 2;
}

/* Vertical continuity gradient at the bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-green));
    z-index: 4;
}

.hero-container {
    position: relative;
    z-index: 3;
    pointer-events: none;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    pointer-events: auto;
}

.hero-tag {
    display: inline-block;
    font-weight: 600;
    color: var(--white); /* Default for dark sections */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero .hero-tag {
    color: var(--primary); /* Specific green for the light Hero section */
    opacity: 1;
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.05;
    margin-bottom: 30px;
    color: var(--text-dark); /* Restored dark text */
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted); /* Restored muted text */
    margin-bottom: 50px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Float WhatsApp */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.wa-float:hover {
    transform: scale(1.1);
}

/* Specialties / Atendimentos */
.especialidades {
    background: var(--white);
    padding-top: 160px;
}

.section-header {
    margin-bottom: 80px;
    max-width: 800px;
}

.section-header .serif {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 15px;
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forced 2x2 grid for perfect balance */
    gap: 30px;
}

.spec-card {
    position: relative;
    height: 240px; /* Reduced height for horizontal rectangular look */
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.spec-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-card:hover img {
    transform: scale(1.1);
}

.spec-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px; 
    /* Brand green gradient for better cohesion */
    background: linear-gradient(0deg, var(--primary) 0%, rgba(45, 52, 39, 0.7) 40%, transparent 100%);
    color: var(--white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.spec-card-content h3 {
    font-size: 1.6rem; /* Slightly smaller for the horizontal layout */
    margin-bottom: 5px;
}

.spec-card-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Moving Light Beam Effect for Specialties - Slower and entrance-only */
.spec-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transform: rotate(25deg) translateY(-50%);
    z-index: 3;
    pointer-events: none;
    transition: none; /* No transition on reset (hover-out) */
}

.spec-card:hover::before {
    left: 150%;
    transition: left 1.8s cubic-bezier(0.4, 0, 0.2, 1); /* Even slower for a more atmospheric feel */
}

.spec-card:hover {
    transform: scale(1.03) translateY(-10px); /* Enhanced lift for movement */
    border-top: 1px solid rgba(100, 115, 84, 0.3);
    box-shadow: inset 0 60px 80px -40px rgba(100, 115, 84, 0.4), 0 20px 40px rgba(0,0,0,0.1);
}

.spec-card:hover::before {
    opacity: 1;
}

/* Card Hover Interaction for Specialties - Removed Blur */
.especialidades-grid .spec-card:hover {
    transform: scale(1.03);
    z-index: 4;
}

.spec-card {
    transition: var(--transition), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Gallery / Space */
.space-gallery {
    background: var(--bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    height: 550px;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Conteúdo / Vídeos */
.conteudo {
    background: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 120px;
}

.video-card {
    cursor: pointer;
}

.video-thumb {
    aspect-ratio: 16/9;
    background: var(--primary);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
    opacity: 0.9;
}

.video-card:hover .video-thumb {
    transform: translateY(-8px);
    opacity: 1;
    box-shadow: var(--shadow-soft);
}

.video-card h4 {
    font-size: 1.4rem;
    color: var(--primary);
}

.insta-grid-wrapper {
    background: var(--bg-cream);
    padding: 100px;
    border-radius: 80px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.insta-item {
    aspect-ratio: 1/1;
    background: rgba(100, 115, 84, 0.1);
    border-radius: 30px;
    transition: var(--transition);
}

.insta-item:hover {
    background: rgba(100, 115, 84, 0.2);
}

/* Final CTA */
.final-cta {
    background: radial-gradient(circle at 50% 50%, #4a5a41 0%, var(--primary) 100%);
    color: var(--white);
    padding: 180px 20px;
    border-radius: 80px 80px 0 0;
    position: relative;
    overflow: hidden;
}

.final-cta h2 {
    font-size: 4.2rem;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.1;
    position: relative;
    z-index: 5;
}

.final-cta p {
    font-size: 1.35rem;
    opacity: 0.85;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.final-cta .hero-btns {
    position: relative;
    z-index: 5;
}

.final-cta .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.final-cta .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* Footer */
.footer {
    padding: 100px 0 50px;
    background: var(--primary);
    color: var(--white);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 12px;
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-info {
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom b {
    color: var(--white);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.1rem; }
    .essencia-container { flex-direction: column; text-align: center; gap: 40px; }
    .especialidades-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .insta-grid { grid-template-columns: 1fr 1fr; }
    .final-cta h2 { font-size: 2.8rem; }
}