:root {
    --bg-body: #FAFAF9;
    --primary: #2D3A34;
    --secondary: #6B7280;
    --accent: #C08B76;
    --accent-clay: #C08B76;
    --accent-sage: #D6DBD2;
    --white: #FFFFFF;
}

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

/* PRELOADER - Rápido e eficiente */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-out;
}

.pulse-loader {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Esconde conteúdo durante carregamento */
body.loading {
    overflow: hidden;
}

body.loading #mobile-menu-overlay {
    display: none !important;
}

/* Menu Mobile - Garantir que fique escondido */
#mobile-menu-overlay {
    transform: translateX(-100%);
}

#mobile-menu-overlay:not(.-translate-x-full) {
    transform: translateX(0);
}

body {
    background-color: var(--bg-body);
    color: var(--primary);
    font-family: 'Instrument Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.serif {
    font-family: 'Cinzel', serif;
    letter-spacing: -0.01em;
    color: var(--primary);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TEXTURA DE FUNDO */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 50;
}

/* HEADER VIDRO */
header {
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* BOTÕES */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 99px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 58, 52, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-clay);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border-radius: 99px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* MÁSCARA ORGÂNICA */
.organic-shape-container {
    position: relative;
    background-color: var(--accent-sage);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    transition: border-radius 2s ease;
}

.organic-shape-container img,
.organic-shape-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CARDS */
.service-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: #fff;
    transform: translateY(-5px);
    border-color: var(--accent-clay);
}

.service-card.highlight {
    background: #fff;
    border: 2px solid var(--accent-clay);
    box-shadow: 0 10px 30px rgba(192, 139, 118, 0.15);
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}

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

/* ============================================
   HERO ESTILO CODING.BIO - MODERADO
   ============================================ */

.hero-bio {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10rem 2rem 6rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Título principal - MODERADO (não gigante) */
.hero-title-bio {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 1;
}

.hero-title-bio .word {
    display: inline-block;
    opacity: 0.3;
}

/* Subtítulo - MODERADO */
.hero-subtitle-bio {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.6;
    font-weight: 400;
    color: #6B7280;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 1;
}

.hero-subtitle-bio .word {
    display: inline-block;
    opacity: 0.3;
}

/* Badge superior */
.bio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(45, 58, 52, 0.15);
    border-radius: 100px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: #6B7280;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
}

.bio-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-clay);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ============================================
   SEÇÕES DE CONTEÚDO - MODERADO
   ============================================ */

.content-section {
    padding: 6rem 2rem;
}

.section-title-bio {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 1;
}

.section-title-bio .word {
    display: inline-block;
    opacity: 0.3;
}

.section-text-bio {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    font-weight: 400;
    color: #6B7280;
    max-width: 700px;
    opacity: 1;
}

.section-text-bio .word {
    display: inline-block;
    opacity: 0.3;
}

/* Cards estilo coding.bio - CLEAN */
.bio-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(45, 58, 52, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bio-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-clay);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(45, 58, 52, 0.08);
}

.bio-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(192, 139, 118, 0.1) 0%, rgba(214, 219, 210, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-clay);
}

.bio-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.bio-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6B7280;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.bio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-clay);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.bio-card-link:hover {
    gap: 0.75rem;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
    border-bottom: 1px solid rgba(45, 58, 52, 0.1);
    padding: 1.5rem 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-clay);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--secondary);
    line-height: 1.7;
}

.faq-answer.active {
    max-height: 500px;
    padding-top: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(180deg);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.max-w-6xl {
    max-width: 72rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-20 {
    margin-top: 5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: #E5E7EB;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gray-500 {
    color: #6B7280;
}

.text-gray-600 {
    color: #4B5563;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:inline-flex {
        display: inline-flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:px-12 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.w-full {
    width: 100%;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.group:hover .group-hover\:scale-125 {
    transform: scale(1.25);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.font-sans {
    font-family: 'Instrument Sans', sans-serif;
}

.font-medium {
    font-weight: 500;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.ml-1 {
    margin-left: 0.25rem;
}

.hover\:text-\[\#C08B76\]:hover {
    color: #C08B76;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.inline-flex {
    display: inline-flex;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em;
}

.font-serif {
    font-family: 'Cinzel', serif;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

/* ============================================
   ACESSIBILIDADE - FOCUS STATES
   ============================================ */

/* Foco visível para navegação por teclado */
*:focus-visible {
    outline: 2px solid var(--accent-clay);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove outline padrão mas mantém para teclado */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Focus ring customizado */
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--accent-clay);
}

.focus\:ring-offset-2:focus {
    box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px var(--accent-clay);
}

/* Skip to main content link (para leitores de tela) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
}

.skip-to-main:focus {
    left: 1rem;
    top: 1rem;
}

/* Melhor contraste para textos */
.text-gray-500 {
    color: #6B7280;
}

.text-gray-600 {
    color: #4B5563;
}

/* Indicador de loading acessível */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Alto contraste para modo de alto contraste do Windows */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    .btn-outline {
        border-width: 2px;
    }
}

/* Modo escuro (se o usuário preferir) */
@media (prefers-color-scheme: dark) {
    /* Mantém o design claro por ser mais apropriado para psicologia */
    /* Mas você pode adicionar suporte a dark mode aqui se desejar */
}