/* 
   Design System - Leandro Marinho
   Paleta: Azul (#262E41) e Dourado (Gradiente)
   Estilo: Luxo Refinado
*/

:root {
    /* Cores Primárias */
    --color-primary: #262E41; /* Azul Profundo */
    --color-primary-light: #363E56;
    --color-primary-dark: #1A1F2C;
    
    /* Cores de Destaque (Dourado) */
    --color-gold-light: #D4AF37;
    --color-gold: #CCA650;
    --color-gold-dark: #8E6D2A;
    --gradient-gold: linear-gradient(135deg, #CCA650 0%, #8E6D2A 100%);
    --gradient-gold-hover: linear-gradient(135deg, #D4AF37 0%, #CCA650 100%);
    
    /* Neutros */
    --color-white: #FFFFFF;
    --color-bg-light: #F9F9F9;
    --color-text-dark: #1A1A1A;
    --color-text-muted: #666666;
    --color-border: rgba(204, 166, 80, 0.2);
    
    /* Tipografia */
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-elegant: 'Cormorant Garamond', serif;
    
    /* Espaçamento e Bordas */
    --section-padding: 120px 0; /* Aumentado para mais luxo */
    --border-radius: 4px; /* Mais quadrado/elegante */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.8; /* Mais respiro */
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitários */
.text-gold { color: var(--color-gold); }
.bg-primary { background-color: var(--color-primary); }
.btn-gold {
    display: inline-block;
    padding: 18px 45px;
    background: var(--gradient-gold);
    color: var(--color-white);
    border-radius: 2px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(204, 166, 80, 0.4);
}

/* Header Fixo */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(38, 46, 65, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a:hover {
    color: var(--color-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../imagem/Sessão Hero.webp') center right/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding-top: 80px;
}

.hero .container {
    margin-left: 5%; /* Desloca o conteúdo bem para a esquerda */
    width: 100%;
    max-width: 1400px;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.9);
}

/* Seções Gerais */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: var(--font-elegant);
    color: var(--color-gold);
    text-transform: italic;
    letter-spacing: 1px;
    font-size: 20px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
    text-transform: none; /* Subtitles in Garamond look better in natural case */
    font-style: italic;
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: var(--transition);
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold);
    border-radius: var(--border-radius);
    opacity: 0;
    transform: scale(1.05);
    transition: var(--transition);
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 40px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

/* Diferenciais */
.differentials {
    background-color: var(--color-bg-light);
}

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

.diff-item {
    display: flex;
    gap: 20px;
}

.diff-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 24px;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.whatsapp-button {
    width: 65px;
    height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-button img.profile-mask {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.whatsapp-balloon {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-balloon {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-balloon p {
    font-size: 14px;
    margin: 0;
    color: #333;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Grid System Responsivo */
.container-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.container-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* Responsividade */
@media (max-width: 991px) {
    .container-grid-2, .container-grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text {
        order: 1;
        text-align: center;
        margin-bottom: 30px;
    }

    .hero {
        background: linear-gradient(rgba(26, 31, 44, 0.8), rgba(26, 31, 44, 0.8)), 
                    url('../imagem/Sessão - mobile.webp') center center/cover no-repeat;
    }

    .hero .container {
        margin-left: 0;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .about-text p {
        text-align: center !important;
    }
    
    .hero-content {
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .header { display: none; }
    .hero-content h1 { font-size: 34px; }
    .section-title { font-size: 28px; }
    .nav { display: none; }
    
    .header .container {
        justify-content: center;
    }
    
    .logo h2 {
        font-size: 18px;
    }
}

/* Animações Premium */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes borderGlow {
    0% { border-color: rgba(204, 166, 80, 0.2); }
    50% { border-color: rgba(204, 166, 80, 0.6); }
    100% { border-color: rgba(204, 166, 80, 0.2); }
}

.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) !important;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.animated-border {
    animation: borderGlow 3s infinite ease-in-out;
}

/* Moldura Elegante para Fotos */
.elegant-frame {
    position: relative;
    display: inline-block;
    width: 80%; /* Tamanho reduzido para 80% */
    margin: 20px auto;
    transition: var(--transition);
}

.elegant-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--color-gold);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.elegant-frame img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.elegant-frame:hover {
    transform: scale(1.02);
}

.elegant-frame:hover::before {
    top: -25px;
    left: -25px;
    right: 25px;
    bottom: 25px;
    opacity: 0.8;
}

.elegant-frame:hover img {
    box-shadow: 30px 30px 50px rgba(0,0,0,0.4);
}

.parallax-section {
    position: relative;
    background: linear-gradient(rgba(204, 166, 80, 0.85), rgba(204, 166, 80, 0.85)), 
                url('../imagem/Paralax.webp') no-repeat;
    background-size: cover;
    background-position: center 0; /* Começa no topo para ter espaço para descer */
    overflow: hidden;
    padding: 160px 0;
    background-attachment: scroll;
}

.hero-content h1 {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-content .btn-gold {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}
