/* ============================================================
   Grupo Bahia - Bootstrap 5 Custom Overrides
   Replaces Tailwind utility classes formerly loaded via CDN
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');

/* ---------- HERO GRADIENT ---------- */
.hero-gradient {
    background: linear-gradient(to right, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.2) 60%, transparent 100%);
}

/* ---------- TEXT GLOW ---------- */
.text-glow {
    text-shadow: 0 0 20px rgba(218, 195, 117, 0.15);
}

/* ---------- BRAND COLORS ---------- */
.bg-stark-white { background-color: #FFFFFF; }
.text-stark-white { color: #FFFFFF; }
.bg-deep-onyx { background-color: #0A0A0A; }
.text-deep-onyx { color: #0A0A0A; }
.bg-heritage-gold { background-color: #DAC375; }
.text-heritage-gold { color: #DAC375; }
.border-heritage-gold { border-color: #DAC375; }
.bg-primary { background-color: #6e5d1a; }
.text-primary { color: #6e5d1a !important; }
.text-secondary { color: #5f5e5e; }
.bg-surface { background-color: #fff8ef; }
.bg-surface-container-low { background-color: #f9f3e9; }
.bg-surface-container { background-color: #f3ede4; }
.bg-surface-container-high { background-color: #eee7de; }
.bg-surface-container-highest { background-color: #e8e2d9; }
.text-on-surface-variant { color: #4b4639; }
.border-muted-silver { border-color: #E0E0E0; }
.text-muted-silver { color: #E0E0E0; }
.text-red-600 { color: #dc2626; }

/* Opacity variants */
.text-deep-onyx\/60 { color: rgba(10, 10, 10, 0.6); }
.text-deep-onyx\/50 { color: rgba(10, 10, 10, 0.5); }
.text-deep-onyx\/70 { color: rgba(10, 10, 10, 0.7); }
.text-secondary\/60 { color: rgba(95, 94, 94, 0.6); }
.text-secondary\/70 { color: rgba(95, 94, 94, 0.7); }

/* Hover color variants */
.hover\:text-heritage-gold:hover { color: #DAC375; }
.hover\:text-primary:hover { color: #6e5d1a; }
.hover\:bg-heritage-gold:hover { background-color: #DAC375; }
.hover\:bg-deep-onyx:hover { background-color: #0A0A0A; }
.hover\:border-muted-silver:hover { border-color: #E0E0E0; }
.hover\:border-primary:hover { border-color: #6e5d1a; }
.hover\:bg-surface-container:hover { background-color: #f3ede4; }
.hover\:bg-surface-container-low:hover { background-color: #f9f3e9; }
.hover\:bg-stark-white:hover { background-color: #FFFFFF; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.border-primary { border-color: #6e5d1a !important;}

/* Accent color for checkboxes */
.accent-heritage-gold { accent-color: #DAC375; }

/* ---------- TYPOGRAPHY ---------- */
.font-headline-xl,
.font-headline-lg,
.font-headline-md,
.font-headline-sm { font-family: 'EB Garamond', serif; }

.font-body-lg,
.font-body-md,
.font-body-sm { font-family: 'Hanken Grotesk', sans-serif; }

.font-label-lg,
.font-label-md { font-family: 'Hanken Grotesk', sans-serif; }

.text-headline-xl { font-size: 64px; line-height: 72px; letter-spacing: -0.02em; font-weight: 500; }
.text-headline-lg { font-size: 48px; line-height: 56px; letter-spacing: -0.01em; font-weight: 500; }
@media (max-width: 767.98px) {
    .text-headline-lg { font-size: 36px; line-height: 44px; }
}
.text-headline-md { font-size: 32px; line-height: 40px; font-weight: 500; }
.text-headline-sm { font-size: 24px; line-height: 32px; font-weight: 600; }

.text-body-lg { font-size: 18px; line-height: 28px; font-weight: 400; }
.text-body-md { font-size: 16px; line-height: 24px; font-weight: 400; }
.text-body-sm { font-size: 14px; line-height: 20px; font-weight: 400; }

.text-label-lg { font-size: 14px; line-height: 16px; letter-spacing: 0.1em; font-weight: 600; }
.text-label-md { font-size: 12px; line-height: 14px; letter-spacing: 0.05em; font-weight: 600; }
.text-label-sm { font-size: 11px; line-height: 13px; letter-spacing: 0.04em; font-weight: 600; }
.text-label-xl { font-size: 16px; line-height: 18px; font-weight: 600; }

/* Letter spacing helpers */
.tracking-wider { letter-spacing: 0.2em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Line height helpers */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }

/* ---------- SPACING ---------- */
.px-margin-edge { padding-left: 40px; padding-right: 40px; }
.py-section-padding { padding-top: 120px; padding-bottom: 120px; }
.pb-section-padding { padding-bottom: 120px; }
.p-stack-md { padding: 24px; }
.mb-stack-md { margin-bottom: 24px; }
.mt-stack-md { margin-top: 24px; }
.pt-stack-md { padding-top: 24px; }
.pb-stack-md { padding-bottom: 24px; }
.mb-stack-lg { margin-bottom: 64px; }
.mt-stack-lg { margin-top: 64px; }
.gap-gutter { gap: 32px; }
.gap-stack-md { gap: 24px; }
.gap-stack-sm { gap: 8px; }
.max-w-container-max { max-width: 1280px; }
.space-y-stack-md > * + * { margin-top: 24px; }
.row-gap-gutter { --bs-gutter-x: 32px; }

/* ---------- POSITION & DISPLAY (CMS blocks) ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.flex { display: flex; }
.grid { display: grid; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.bottom-0 { bottom: 0; }
.right-0 { right: 0; }
.-top-10 { top: -2.5rem; }
.-left-10 { left: -2.5rem; }

/* ---------- FLEXBOX UTILITIES (CMS blocks) ---------- */
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* ---------- GRID UTILITIES (CMS blocks) ---------- */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
.col-span-1 { grid-column: span 1; }
.col-span-6 { grid-column: span 6; }

/* ---------- CMS SPACING ---------- */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-gutter { margin-left: 32px; margin-right: 32px; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ---------- CMS SIZING ---------- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-40 { width: 10rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.h-40 { height: 10rem; }
.h-\[400px\] { height: 400px; }
.h-\[500px\] { height: 500px; }
.h-\[600px\] { height: 600px; }
.min-h-\[500px\] { min-height: 500px; }
.max-w-xl { max-width: 36rem; }
.max-w-xs { max-width: 20rem; }

/* ---------- CMS TYPOGRAPHY ---------- */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.italic { font-style: italic; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- CMS COLORS ---------- */
.text-stark-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-stark-white\/70 { color: rgba(255, 255, 255, 0.7); }
.opacity-60 { opacity: 0.6; }
.opacity-90 { opacity: 0.9; }
.bg-muted-silver { background-color: #E0E0E0; }
.text-black { color: #000000; }
.border-stark-white { border-color: #FFFFFF; }

/* ---------- CMS SHADOWS ---------- */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* ---------- CMS GRADIENTS ---------- */
.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
}
.from-deep-onyx\/90,
.to-transparent,
.via-transparent,
.from-transparent { /* handled by bg-gradient-to-t on same element */ }

/* ---------- CMS ARBITRARY VALUES ---------- */
.bg-\[\#dac375\] { background-color: #dac375; }
.hover\:bg-\[\#000000\]:hover { background-color: #000000; }
.hover\:text-\[\#FFFFFF\]:hover { color: #FFFFFF; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

/* ---------- ADDITIONAL HOVER & TRANSFORM ---------- */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.scale-100 { transform: scale(1); }

/* ---------- Z-INDEX ---------- */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

/* ---------- RESPONSIVE: md: (min-width: 768px) ---------- */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:block { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
    .md\:col-span-1 { grid-column: span 1; }
    .md\:col-span-3 { grid-column: span 3; }
    .md\:col-span-6 { grid-column: span 6; }
    .md\:h-auto { height: auto; }
    .md\:text-\[48px\] { font-size: 48px; }
}

/* ---------- TAILWIND SPACING OVERRIDES ---------- */
/* These override Bootstrap's spacing scale to match the original Tailwind design */
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.pb-1 { padding-bottom: 0.25rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-10 { gap: 2.5rem; }

/* ---------- SIZING ---------- */
.h-20 { height: 80px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-px { height: 1px; }
.h-400 { height: 400px; }
.w-24 { width: 96px; }
.w-16 { width: 64px; }
.min-w-0 { min-width: 0; }
.min-w-\[200px\] { min-width: 200px; }
.max-w-4xl { max-width: 56rem; }
.max-w-lg { max-width: 32rem; }

/* ---------- OBJECT FIT ---------- */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ---------- TRANSITIONS ---------- */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.duration-700 { transition-duration: 0.7s; }

/* ---------- GROUP HOVER ---------- */
.group { position: relative; }
.group:hover .group-hover\:text-primary { color: #6e5d1a; }
.group:hover .group-hover\:translate-x-2 { transform: translateX(0.5rem); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }
.group:hover .group-hover\:shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }

/* ---------- SCROLL ANIMATION ---------- */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }
.translate-y-0 { transform: translateY(0); }
.translate-y-10 { transform: translateY(2.5rem); }

/* ---------- ACTIVE STATE ---------- */
.active\:scale-95:active { transform: scale(0.95); }

/* ---------- Z-INDEX ---------- */
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* ---------- ROTATED CHEVRON ---------- */
.rotated { transform: rotate(180deg); }

/* ---------- DROPDOWN ANIMATION ---------- */
.dropdown-menu {
    border: 1px solid #E0E0E0;
    border-radius: 0;
    margin-top: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 0;
}
.dropdown-item {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #5f5e5e;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}
.dropdown-item:hover {
    background-color: #f3ede4;
    color: #6e5d1a;
}

/* ---------- PAGINATION BRAND STYLES ---------- */
.pagination {
    --bs-pagination-color: #6e5d1a;
    --bs-pagination-bg: #ffffff;
    --bs-pagination-border-color: #E0E0E0;
    --bs-pagination-hover-color: #0A0A0A;
    --bs-pagination-hover-bg: #f9f3e9;
    --bs-pagination-hover-border-color: #DAC375;
    --bs-pagination-focus-color: #6e5d1a;
    --bs-pagination-focus-bg: #f9f3e9;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(110, 93, 26, 0.25);
    --bs-pagination-active-color: #FFFFFF;
    --bs-pagination-active-bg: #6e5d1a;
    --bs-pagination-active-border-color: #6e5d1a;
    --bs-pagination-disabled-color: #E0E0E0;
    --bs-pagination-disabled-bg: #ffffff;
    --bs-pagination-disabled-border-color: #E0E0E0;
    gap: 0.25rem;
}

.page-link {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    min-width: 2.5rem;
    text-align: center;
}
