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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.hidden {
    display: none;
}

.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Layout */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-12 {
    width: 3rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-64 {
    height: 16rem;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Spacing */
.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Margin */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Filtros de Categoria */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid #D4AF37; /* dourado */
    background: white;
    color: #D4AF37;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active {
    background: #D4AF37; /* dourado */
    color: white;
    transform: scale(1.05);
}

.filter-btn:hover {
    background: #fff7e6; /* leve dourado ao passar */
}

.filter-btn.active:hover {
    background: #B8860B; /* dourado escuro */
}

/* Produtos Section */

.mb-16 {
    margin-bottom: 4rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-8 {
    padding-top: 2rem;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.text-center {
    text-align: center;
}

/* Colors */
.text-white {
    color: #ffffff;
}

.text-gray-200 {
    color: #e6e6e6; /* claro para uso sobre fundos escuros */
}

.text-gray-400 {
    color: #bdbdbd;
}

.text-gray-600 {
    color: #6b6b6b;
}

.text-gray-700 {
    color: #4f4f4f;
}

.text-gray-800 {
    color: #2f2f2f;
}

/* Paleta principal: dourado */
.text-blue-400 {
    color: #D4AF37; /* dourado claro */
}

.text-blue-600 {
    color: #B8860B; /* dourado escuro */
}

.text-blue-800 {
    color: #8B5E02; /* dourado profundo */
}

.text-green-600 {
    color: #16a34a;
}

.text-purple-600 {
    color: #9333ea;
}

.text-orange-600 {
    color: #ea580c;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-800 {
    color: #991b1b;
}

.text-indigo-600 {
    color: #4f46e5;
}

.text-yellow-800 {
    color: #92400e;
}


/* Background Colors */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f5f5f5;
}

.bg-gray-100 {
    background-color: #eeeeee;
}

.bg-gray-700 {
    background-color: #3b3b3b;
}

.bg-gray-800 {
    background-color: #2a2a2a;
}

.bg-gray-900 {
    background-color: #0f0f0f;
}

/* Tons dourados para substituir os azuis originais */
.bg-blue-100 {
    background-color: #fff8e1; /* leve tom dourado para labels e bg */
}

.bg-blue-600 {
    background-color: #D4AF37; /* dourado principal */
}

.bg-blue-700 {
    background-color: #B8860B; /* dourado escuro */
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-purple-100 {
    background-color: #e9d5ff;
}

.bg-orange-100 {
    background-color: #fed7aa;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.bg-yellow-100 {
    background-color: #fef3c7;
}

.bg-black {
    background-color: #000000;
}

.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

.bg-no-repeat {
    background-repeat: no-repeat;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-700 {
    border-color: #374151;
}

.border-white {
    border-color: #ffffff;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Object */
.object-cover {
    object-fit: cover;
}

.overflow-hidden {
    overflow: hidden;
}

/* Forms */
input, select, textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

button {
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Transitions */
.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}


/* Hover Effects (azuis originais mapeados para dourado) */
.hover\:text-blue-600:hover {
    color: #B8860B; /* dourado escuro */
}

.hover\:text-blue-700:hover {
    color: #8B5E02; /* dourado profundo */
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:bg-blue-700:hover {
    background-color: #B8860B; /* dourado escuro */
}

.hover\:bg-gray-800:hover {
    background-color: #2a2a2a;
}

.hover\:bg-gray-900:hover {
    background-color: #0f0f0f;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* Custom Styles */
.top-0 {
    top: 0;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* Button Inline Blocks */
.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

/* Logo and Images */
img {
    max-width: 100%;
    height: auto;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom styles for specific elements */
.stroke-width-2 {
    stroke-width: 2;
}

.stroke-linecap-round {
    stroke-linecap: round;
}

.stroke-linejoin-round {
    stroke-linejoin: round;
}

/* Header padding to account for fixed positioning */
#inicio {
    padding-top: 80px;
    margin-top: -80px;
}

#sobre, #produtos, #servicos, #contato {
    scroll-margin-top: 80px;
}

/* Correção: garantir que a seção de localização tenha altura (evita que o iframe absolu-to sobreponha o footer)
   As classes h-[500px] / md:h-[600px] usadas no HTML são do Tailwind e não existem aqui, então definimos uma
   altura mínima em CSS para preservar layout em todos os navegadores. */
#localizacao {
    position: relative; /* já estava como classe 'relative', reforçamos */
    min-height: 500px;
}

@media (min-width: 768px) {
    #localizacao {
        min-height: 600px;
    }
}

/* Garantir que o iframe ocupe toda a área da seção sem extrapolar */
#localizacao iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 0;
}

/* Garantir que o footer fique acima do mapa caso haja qualquer sobreposição inesperada */
footer {
    position: relative;
    z-index: 2;
}

/* Map container styles */
#localizacao {
    position: relative;
    width: 100%;
    height: 450px;  /* Fixed height for widescreen look */
    overflow: hidden;
}

#localizacao iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    #localizacao {
        height: 550px;  /* Taller on larger screens */
    }
}

/* Ensure map container is centered */
.flex.items-center.justify-center {
    display: flex;
    align-items: center;
    justify-content: center;
}