/* Custom styles for Politermi website */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

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

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-in-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-in-out;
}

/* Delay classes */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Header styles */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* Menu styles - Uppercase */
header nav a,
header nav .menu-item a,
#mobile-menu a,
#mobile-menu .menu-item a {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Form styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Button hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

/* Main content padding to account for fixed header */
main {
    padding-top: 4rem;
}

/* Logo responsive styles */
.logo-responsive {
    height: 3rem; /* 48px */
    width: auto;
    max-width: 12rem; /* 192px */
}

.logo-footer {
    height: 6.25rem; /* 100px - aumentado para mais destaque */
    width: auto;
    max-width: 18rem; /* 288px - aumentado proporcionalmente */
    filter: brightness(1.1) contrast(1.1); /* Destaca a logo */
    transition: all 0.3s ease; /* Transição suave */
}

.logo-footer:hover {
    filter: brightness(1.2) contrast(1.2); /* Efeito hover para mais destaque */
    transform: scale(1.05); /* Leve aumento no hover */
}

@media (max-width: 768px) {
    .logo-responsive {
        height: 2.5rem; /* 40px */
        max-width: 10rem; /* 160px */
    }
    
    .logo-footer {
        height: 3.5rem; /* 56px - mantém destaque no tablet */
        max-width: 12rem; /* 192px */
    }
}

@media (max-width: 480px) {
    .logo-responsive {
        height: 2rem; /* 32px */
        max-width: 8rem; /* 128px */
    }
    
    .logo-footer {
        height: 3rem; /* 48px - mantém destaque no mobile */
        max-width: 10rem; /* 160px */
    }
}

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

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

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Background image effects */
.bg-image-overlay {
    position: relative;
    overflow: hidden;
}

.bg-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.9) 0%, rgba(21, 128, 61, 0.85) 50%, rgba(22, 163, 74, 0.9) 100%);
    z-index: 1;
}

.bg-image-overlay > * {
    position: relative;
    z-index: 2;
}

/* Background image animation */
@keyframes backgroundZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.bg-image-animate {
    animation: backgroundZoom 20s ease-in-out infinite alternate;
}

/* Enhanced overlay effects */
.overlay-gradient {
    background: linear-gradient(135deg, 
        rgba(22, 101, 52, 0.95) 0%, 
        rgba(21, 128, 61, 0.9) 25%, 
        rgba(22, 163, 74, 0.85) 50%, 
        rgba(21, 128, 61, 0.9) 75%, 
        rgba(22, 101, 52, 0.95) 100%);
}

/* Parallax effect for background images */
.bg-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .bg-parallax {
        background-attachment: scroll;
    }
}

/* Custom checkbox styles for product catalog */
.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 16px;
    width: 16px;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox:hover .checkmark {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #16a34a;
    border-color: #16a34a;
}

.checkmark:after {
    content: '';
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark:after {
    opacity: 1;
}

.custom-checkbox .ml-3 {
    margin-left: 20px;
    line-height: 1.4;
}