/* ==========================================================================
   Eduardo Dias Advocacia — Complementary CSS
   Tailwind CDN handles utility classes. This file is for custom utilities.
   ========================================================================== */

/* Tailwind "size-*" utility polyfill (CDN may not support all) */
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-6 { width: 1.5rem; height: 1.5rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-12 { width: 3rem; height: 3rem; }
.size-14 { width: 3.5rem; height: 3.5rem; }

/* Background secondary using Tailwind config */
.bg-secondary {
    background-color: #f3f4f6;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Justificar textos descritivos */
.text-muted-foreground,
p.leading-relaxed,
blockquote,
.text-white\/60,
.text-white\/75,
.text-navy-foreground\/70,
.text-navy-foreground\/75 {
    text-align: justify;
}

/* Compensar header sticky no scroll para âncoras */
[id] {
    scroll-margin-top: 80px;
}

#inicio {
    scroll-margin-top: 0;
}

/* ==========================================================================
   Efeitos e Microinterações
   ========================================================================== */

/* 1. Scroll Reveal — fade-in ao entrar na viewport */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

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

/* 2. Underline animado nos links do menu */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00664D;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* 3. Header encolhe no scroll */
header {
    transition: padding 0.3s ease;
}

header.scrolled .container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* 4. Botões — fill da esquerda para direita */
a[class*="bg-white"][class*="text-navy"],
a[class*="bg-accent"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a[class*="bg-white"][class*="text-navy"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 77, 0.08);
    transition: left 0.3s ease;
    z-index: -1;
}

a[class*="bg-white"][class*="text-navy"]:hover::before {
    left: 0;
}

/* Mobile adjustments */
@media (max-width: 639px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Evitar overflow horizontal */
    body {
        overflow-x: hidden;
    }

    /* Botão flutuante menor no mobile */
    .fixed.bottom-6.right-6 {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}

/* Page templates (for WP pages outside front-page) */
.page-header {
    background: #00664D;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    line-height: 1.8;
}

.page-content p { margin-bottom: 1rem; }

.error-404 {
    text-align: center;
    padding: 100px 24px;
}

.error-404 h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: #00664D;
}

.error-404 p {
    color: #6b7280;
    margin: 16px 0 32px;
}
