/* ==============================================
   Rosa do Vale - Custom CSS
   ============================================== */

/* Variáveis CSS para cores da paleta */
:root {
    --verde-floresta: #006400;
    --dourado-suave: #B8860B;
    --rosa-nude: #F0D5D5;
    --bege-neutro: #F555DC;
    --verde-claro: #228B22;
    --creme: #FFF8DC;
    --branco: #FFFFFF;
    --cinza-escuro: #333333;
    --cinza-claro: #F8F9FA;
}

/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--cinza-escuro);
    overflow-x: hidden;
}

/* Typography */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Navegação */
nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Hero Section */
.hero-overlay {
    background: linear-gradient(135deg, 
        rgba(0, 100, 0, 0.8) 0%, 
        rgba(34, 139, 34, 0.6) 50%, 
        rgba(184, 134, 11, 0.4) 100%);
}

/* Botões personalizados */
.btn-primary {
    background: linear-gradient(135deg, var(--verde-floresta), var(--verde-claro));
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--dourado-suave), #DAA520);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

/* Cards de serviços */
.service-card {
    background: var(--branco);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 100, 0, 0.1);
}

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

.service-card .card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-card .card-overlay {
    background: linear-gradient(135deg, 
        rgba(0, 100, 0, 0.8) 0%, 
        rgba(34, 139, 34, 0.6) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.service-card:hover .card-overlay {
    opacity: 0.6;
}

/* Galeria */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 100, 0, 0.9) 0%, 
        rgba(34, 139, 34, 0.7) 50%,
        rgba(184, 134, 11, 0.5) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Depoimentos */
.testimonial-card {
    background: var(--creme);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border-left: 5px solid var(--verde-floresta);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 100, 0, 0.1);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: var(--verde-floresta);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

/* Formulários */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--branco);
}

.form-input:focus {
    outline: none;
    border-color: var(--verde-floresta);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--branco);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--verde-floresta);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 16px;
    background-color: var(--branco);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--verde-floresta);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

/* Checkbox personalizado */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: var(--branco);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--verde-floresta);
    border-color: var(--verde-floresta);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

/* Seções com fundos personalizados */
.section-gradient {
    background: linear-gradient(135deg, 
        var(--creme) 0%, 
        rgba(255, 248, 220, 0.8) 50%, 
        rgba(240, 213, 213, 0.3) 100%);
}

.section-verde {
    background: linear-gradient(135deg, 
        var(--verde-floresta) 0%, 
        var(--verde-claro) 100%);
}

/* Efeitos de hover para ícones */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--dourado-suave);
}

/* Animações de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge de sucesso/erro */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(0, 100, 0, 0.1);
    border-left-color: var(--verde-floresta);
    color: var(--verde-floresta);
}

.alert-error {
    background-color: rgba(220, 38, 127, 0.1);
    border-left-color: #dc2626;
    color: #dc2626;
}

.alert-warning {
    background-color: rgba(184, 134, 11, 0.1);
    border-left-color: var(--dourado-suave);
    color: var(--dourado-suave);
}

/* Responsividade específica */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .section-padding {
        padding: 3rem 0 !important;
    }
    
    .container-mobile {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1.1rem !important;
    }
    
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Scroll para topo */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--verde-floresta);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    background: var(--verde-claro);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
}

/* Slider de antes/depois */
.before-after-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.3s ease;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--branco);
    border: 3px solid var(--verde-floresta);
    border-radius: 50%;
    cursor: ew-resize;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--verde-floresta);
    transform: translateX(-50%);
    z-index: 9;
}

/* Filtros de portfólio */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--verde-floresta);
    color: var(--verde-floresta);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--verde-floresta);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* Melhorias no footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer a:hover {
    color: var(--dourado-suave) !important;
}

/* Transições globais */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Otimizações para performance */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Lazy loading placeholder */
.img-lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Melhorias de acessibilidade */
:focus-visible {
    outline: 3px solid var(--dourado-suave);
    outline-offset: 2px;
}

/* Media queries para telas muito pequenas */
@media (max-width: 320px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .whatsapp-float,
    .scroll-to-top {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}