/* Custom Styles for Zoorural - Premium Edition */

/* Base Typography */
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc;
    color: #1e293b;
}

/* Mobile Menu Fix */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 83, 77, 0.95);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Logo Scrolled State */
#header-logo.logo-scrolled {
    height: 2rem !important; /* h-8 */
}

@media (min-width: 768px) {
    #header-logo.logo-scrolled {
        height: 2.5rem !important; /* md:h-10 */
    }
}

/* Premium Shadows & Cards */
.card-premium {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    border-color: rgba(1, 83, 77, 0.1);
}

/* Glassmorphism Header */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #01534d 0%, #00796b 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-fade-in-up.active {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #01534d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #01403b;
}

/* Form Styles */
.input-premium {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.input-premium:focus {
    background-color: #ffffff;
    border-color: #01534d;
    box-shadow: 0 0 0 4px rgba(1, 83, 77, 0.05);
    outline: none;
}

/* Glassmorphism Cards Effect */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

/* Catálogo de Produtos Styles */
.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.cat-tab:hover {
    border-color: #84BD00;
    color: #01534d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 189, 0, 0.15);
}

.cat-tab.active {
    background: #01534d;
    border-color: #01534d;
    color: white;
    box-shadow: 0 4px 12px rgba(1, 83, 77, 0.25);
}

.dot-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.cat-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.cat-panel.active {
    display: block;
}

/* Limitar largura do catálogo */
section.py-16.bg-gray-50 .container {
    max-width: 1400px;
}

.linha-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid;
}

.linha-header.verde {
    border-left-color: #52B788;
}

.linha-header.dourada {
    border-left-color: #F59E0B;
}

.linha-header.laranja {
    border-left-color: #EA580C;
}

.linha-header.amarela {
    border-left-color: #F59E0B;
}

.sac-mini {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sac-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.linha-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.linha-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.produto-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #84BD00;
}

.prod-top {
    height: 6px;
    width: 100%;
}

.prod-top.verde { background: linear-gradient(90deg, #52B788, #40916c); }
.prod-top.dourada { background: linear-gradient(90deg, #F59E0B, #d97706); }
.prod-top.laranja { background: linear-gradient(90deg, #EA580C, #dc2626); }
.prod-top.amarela { background: linear-gradient(90deg, #F59E0B, #f59e0b); }

.prod-body {
    padding: 24px;
}

.prod-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.prod-badge.verde { background: #52B78820; color: #40916c; border: 1px solid #52B78840; }
.prod-badge.dourada { background: #F59E0B20; color: #d97706; border: 1px solid #F59E0B40; }
.prod-badge.laranja { background: #EA580C20; color: #dc2626; border: 1px solid #EA580C40; }
.prod-badge.amarela { background: #F59E0B20; color: #d97706; border: 1px solid #F59E0B40; }

.produto-nome {
    font-size: 18px;
    font-weight: 700;
    color: #01534d;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.produto-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.prod-difs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.dif {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.dif:hover {
    background: #f8fafc;
    color: #374151;
    border-color: #e5e7eb;
    transform: none;
}

.comp-toggle {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.comp-toggle:hover {
    background: #01534d;
    color: white;
    border-color: #01534d;
    transform: translateY(-1px);
}

.comp-toggle.verde:hover { background: #52B788; border-color: #52B788; }
.comp-toggle.dourada:hover { background: #F59E0B; border-color: #F59E0B; }
.comp-toggle.laranja:hover { background: #EA580C; border-color: #EA580C; }
.comp-toggle.amarela:hover { background: #F59E0B; border-color: #F59E0B; }

.comp-list {
    display: none;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease-out;
}

.comp-list.open {
    display: block;
}

.comp-list p {
    font-size: 12px;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

.prod-ind {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #84BD00;
}

.prod-cta {
    display: inline-block;
    padding: 0;
    background: none;
    color: #01534d;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
    margin-top: 12px;
}

.prod-cta:hover {
    transform: none;
    box-shadow: none;
    text-decoration: underline;
    color: #84BD00;
}

.prod-cta.verde { color: #52B788; }
.prod-cta.verde:hover { color: #40916c; }

.prod-cta.dourada { color: #F59E0B; }
.prod-cta.dourada:hover { color: #d97706; }

.prod-cta.laranja { color: #EA580C; }
.prod-cta.laranja:hover { color: #dc2626; }

.prod-cta.amarela { color: #F59E0B; }
.prod-cta.amarela:hover { color: #d97706; }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

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

/* Dark Glass Cards for Identity Section */
.card-glass-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass-dark:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
}

/* Hero Slider Animations - Ken Burns Effect */
.slide-image {
    will-change: transform, opacity;
}

.ken-burns-active {
    opacity: 0.7;
    animation: kenBurns 12s ease-out forwards;
}

.ken-burns-inactive {
    opacity: 0;
    transform: scale(1.2);
}

@keyframes kenBurns {
    0% {
        transform: scale(1.1) translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
        transform: scale(1.3) translateX(-2%) translateY(-1%);
    }
    100% {
        opacity: 0;
        transform: scale(1.35) translateX(-3%) translateY(-2%);
    }
}

/* Smooth transition classes */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-3000 {
    transition-duration: 3000ms;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
