/* =================================
   GRUPO STYLLO CONTÁBIL - Custom CSS
   ================================= */

/* Variables */
:root {
    --primary: #D4A574;
    --primary-light: #E5C4A0;
    --primary-dark: #B8925F;
    --secondary: #2C3E50;
    --accent: #C9302C;
}

/* 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(44, 62, 80, 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, #D4A574 0%, #B8925F 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(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.btn-primary-large {
    background: linear-gradient(135deg, #D4A574 0%, #B8925F 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(212, 165, 116, 0.4);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 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 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, #D4A574 0%, #B8925F 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(212, 165, 116, 0.2);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #D4A574 0%, #B8925F 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(212, 165, 116, 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(212, 165, 116, 0.15);
}

/* Social Icons */
.social-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #D4A574 0%, #B8925F 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(212, 165, 116, 0.4);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #D4A574 0%, #B8925F 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, #D4A574 0%, #B8925F 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(44, 62, 80, 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;
    }
}

