/* =================================
   GRUPO STYLLO CONTÁBIL - Custom CSS
   ================================= */

/* Variables */
:root {
    --primary: #DCAC59;
    --primary-light: #E8C88A;
    --primary-dark: #C49A4A;
    --secondary: #2A424B;
    --dark: #0A1E1F;
    --accent: #DCAC59;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Header Styles */
#header {
    background-color: rgba(10, 30, 31, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Adicionar sombra no texto para melhor legibilidade */
.nav-link,
#header a {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 172, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 172, 89, 0.4);
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(220, 172, 89, 0.4);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 172, 89, 0.5);
}

.btn-secondary-large {
    background: white;
    color: var(--primary-dark);
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 2px solid white;
}

.btn-secondary-large:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* h-20 = 80px */
    min-height: 100vh;
}

@media (min-width: 768px) {
    #hero {
        padding-top: 96px; /* h-24 md = 96px */
    }
}

/* Ajuste para desktop onde o header é maior */
@media (min-width: 768px) {
    #hero {
        margin-top: 96px; /* Altura do header em desktop (h-24 = 96px) */
        height: calc(100vh - 96px);
    }
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

#hero .relative {
    position: relative;
    z-index: 2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 30, 31, 0.28) 0%, rgba(10, 30, 31, 0.12) 35%, rgba(10, 30, 31, 0.18) 100%),
        radial-gradient(circle at center, rgba(10, 30, 31, 0.38) 0%, rgba(10, 30, 31, 0.16) 36%, rgba(10, 30, 31, 0) 68%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    padding: 1rem 1.5rem;
}

.hero-title {
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .hero-content {
        padding: 1.5rem 2rem;
    }
}

.hero-bg img {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    position: relative;
}

/* Se necessário, adicione mais espaço do bottom */
#hero .absolute.bottom-8 {
    bottom: 2rem; /* ou ajuste conforme necessário */
}

.scroll-indicator::before {
    content: '';
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        top: 28px;
        opacity: 0;
    }
}

/* Feature Box */
.feature-box {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(220, 172, 89, 0.2);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* CTA Background */
.cta-bg img {
    animation: parallaxCTA 30s ease-in-out infinite alternate;
}

@keyframes parallaxCTA {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.05) translateY(-20px);
    }
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 6rem;
    color: rgba(220, 172, 89, 0.1);
    font-family: 'Playfair Display', serif;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(220, 172, 89, 0.15);
}

/* Social Icons */
.social-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 172, 89, 0.4);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn-primary-large,
    .btn-secondary-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

/* Parallax Classes */
.parallax {
    transition: transform 0.5s cubic-bezier(0, 0, 0.5, 1);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   HEADER - Solução Global para Todas Páginas
   ============================================ */

/* Header padrão com fundo fixo */
#header {
    background-color: rgba(10, 30, 31, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   COMPENSAÇÃO DE ALTURA DO HEADER
   ============================================ */

/* Hero da HOME */
#hero {
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* h-20 = 80px */
    min-height: 100vh;
}

@media (min-width: 768px) {
    #hero {
        padding-top: 96px; /* h-24 md = 96px */
    }
}

/* Hero das páginas INTERNAS - sobrescrever pt-32 */
body:not(.home) section.relative.pt-32:first-of-type,
.page-hero {
    padding-top: 120px !important; /* 80px header + 40px espaço */
}

@media (min-width: 768px) {
    body:not(.home) section.relative.pt-32:first-of-type,
    .page-hero {
        padding-top: 136px !important; /* 96px header + 40px espaço */
    }
}

/* Alternativa mais específica - Se souber que sempre é a primeira section */
header + section,
header + div + section {
    margin-top: 0; /* Reset qualquer margin */
}

/* Para páginas sem hero, ajustar o primeiro conteúdo */
main,
.main-content {
    padding-top: 80px;
}

@media (min-width: 768px) {
    main,
    .main-content {
        padding-top: 96px;
    }
}

/* Home usa hero full-height — sem padding extra no main */
.home #main-content,
.home main#main-content {
    padding-top: 0;
}

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DCAC59 0%, #C49A4A 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(220, 172, 89, 0.3);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
}

.map-embed iframe {
    border: 0;
    width: 100%;
    height: 450px;
    display: block;
}

.map-embed--full iframe {
    height: 500px;
}

.styllo-richtext--inline p {
    display: inline;
    margin: 0;
}

/* Conteúdo WYSIWYG (um bloco, N parágrafos) */
.styllo-richtext p + p {
    margin-top: 1rem;
}

.styllo-richtext strong {
    font-weight: 600;
    color: inherit;
}

.styllo-richtext ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styllo-richtext ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.styllo-richtext ul li::before {
    content: '•';
    color: var(--primary);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.styllo-richtext--cta p {
    margin: 0;
}

.styllo-richtext--cta p + p {
    margin-top: 0.75rem;
}

/* Lista com check (página Serviços) */
.styllo-richtext--checklist ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.styllo-richtext--checklist ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.styllo-richtext--checklist ul li::before {
    content: '';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23DCAC59'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Conteúdo de post individual */
.styllo-post-content h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .styllo-post-content h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.styllo-post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.styllo-post-content p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.styllo-post-content p.lead,
.styllo-post-content > p:first-child {
    font-size: 1.25rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 2rem;
}

.styllo-post-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.styllo-post-content ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.styllo-post-content ul li::before {
    content: '';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23DCAC59'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.styllo-post-content ul li span,
.styllo-post-content ul li {
    color: #374151;
}

.styllo-post-content ol {
    list-style: decimal;
    list-style-position: inside;
    margin: 0 0 2rem;
    padding: 0;
    color: #374151;
}

.styllo-post-content ol li {
    margin-bottom: 1rem;
}

.styllo-post-content blockquote,
.styllo-post-content .wp-block-quote {
    background: rgba(220, 172, 89, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 2rem 0;
}

.styllo-post-content blockquote p,
.styllo-post-content .wp-block-quote p {
    margin-bottom: 0;
    font-style: italic;
    color: #1f2937;
}

.styllo-post-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.styllo-post-content a:hover {
    color: var(--primary-dark);
}

.styllo-post-content strong {
    font-weight: 600;
    color: inherit;
}

.styllo-post-content strong.text-primary,
.styllo-post-content strong.has-primary-color {
    color: var(--primary);
}

/* Filtro de categorias — link ativo */
.styllo-cat-filter .is-active {
    background-color: var(--primary);
    color: #fff;
}

