html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; background-color: #FFFFFF; color: #333333; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.text-gradient { background: linear-gradient(135deg, #333333 0%, #D72630 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.site-navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; transition: opacity 350ms cubic-bezier(0.4, 0, 0.2, 1), transform 350ms cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity, transform; }
.site-navbar.nav-hidden { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.site-navbar .container { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; justify-content: center; }
.site-surface { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #ffffff; color: #333333; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 8px 12px; position: relative; }
.site-surface.island { border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,0.08); padding: 10px 18px; transition: transform 1s cubic-bezier(0.45, 0, 0.55, 1), box-shadow 1s cubic-bezier(0.45, 0, 0.55, 1), border-radius 1s cubic-bezier(0.45, 0, 0.55, 1), width 1s cubic-bezier(0.45, 0, 0.55, 1); max-width: 960px; width: calc(100% - 32px); margin: 6px auto; backdrop-filter: blur(10px); background: rgba(255,255,255,0.85); }
.island-scrolled .site-surface.island { transform: translateY(-8px); }
.site-surface.island.island-hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.island-collapse .site-surface.island { padding: 6px 14px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); transform: translateY(-10px) scale(0.98); }
.island-collapse .site-brand img { height: 28px; transition: height 1s cubic-bezier(0.45, 0, 0.55, 1); }
.site-brand { display: inline-flex; align-items: center; gap: 8px; color: #333333; text-decoration: none; }
.site-brand img { height: 40px; width: auto; display: block; }
.site-nav-toggle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.site-toggle-btn { display: none; width: 36px; height: 28px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.site-toggle-btn span { display: block; width: 26px; height: 2px; background: #333333; border-radius: 2px; transition: all 0.3s ease; }
.site-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; }
.site-link { color: #333333; text-decoration: none; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; padding: 10px 10px; position: relative; visibility: visible; opacity: 1; z-index: 1; transition: all 0.3s ease; border-radius: 10px; }
.site-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: transparent; transition: background-color 0.3s ease, transform 0.3s ease; transform: scaleX(0); }
.site-link:hover::after { background: #D72630; transform: scaleX(1); }
.site-link:hover { color: #D72630; background: rgba(0,0,0,0.03); }
.site-link.is-active { color: #D72630; }
.site-link.is-active::after { background: #D72630; transform: scaleX(1); }
.site-actions { display: flex; align-items: center; gap: 12px; }
.action-link { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #333333; background: #F7F7F7; transition: all 0.3s ease; }
.action-link:hover { color: #D72630; background: #F0F0F0; }
.action-link { position: relative; }
.has-sub { position: relative; }
.submenu { list-style: none; margin: 0; padding: 8px; display: none; position: absolute; top: 100%; left: 0; background: #FFFFFF; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); min-width: 240px; gap: 4px; }
.site-sublink { display: block; padding: 8px 10px; border-radius: 8px; color: #333333; text-decoration: none; transition: all 0.3s ease; }
.site-sublink:hover { background: rgba(0,0,0,0.04); color: #D72630; }
.has-sub:hover .submenu { display: grid; }
.site-sub-toggle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.site-sub-indicator { display: none; width: 24px; height: 24px; align-items: center; justify-content: center; margin-left: -4px; }

._island-droplet { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; height: 56px; min-width: 120px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,0.9); box-shadow: 0 10px 28px rgba(0,0,0,0.14); backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.06); gap: 8px; opacity: 0.98; will-change: transform, opacity; transition: transform 1s cubic-bezier(0.45, 0, 0.55, 1), opacity 1s cubic-bezier(0.45, 0, 0.55, 1), background-color 250ms linear, color 250ms linear, box-shadow 250ms linear; }
._island-droplet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at top, rgba(255,255,255,0.35), transparent 60%); opacity: 0.8; pointer-events: none; transition: opacity 250ms linear; }
._island-droplet ._droplet-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: none; background: transparent; color: #333333; font-weight: 600; font-size: 0.95rem; line-height: 1; cursor: pointer; transition: transform 1s cubic-bezier(0.45, 0, 0.55, 1), opacity 1s cubic-bezier(0.45, 0, 0.55, 1), color 250ms linear, background-color 250ms linear; will-change: transform, opacity; }
._island-droplet ._droplet-icon { font-size: 1rem; }
._island-droplet ._droplet-text { letter-spacing: 0.01em; }
._island-droplet:hover { transform: translateX(-50%) scale(1.06); opacity: 1; }
._island-droplet:hover::after { opacity: 0.9; }
._island-droplet.active { transform: translateX(-50%) scale(1.08); opacity: 1; }
._island-droplet:focus-within { outline: none; box-shadow: 0 12px 32px rgba(0,0,0,0.16); }
._droplet-btn:focus-visible { outline: 3px solid rgba(215,38,48,0.3); outline-offset: 2px; }
._droplet-btn[aria-expanded="true"] { opacity: 1; }
@keyframes _islandPulse { 
  0% { transform: translateX(-50%) translateY(-1px) scale(0.98); opacity: 0.96; } 
  50% { transform: translateX(-50%) translateY(1px) scale(1.02); opacity: 0.98; } 
  100% { transform: translateX(-50%) translateY(-1px) scale(0.98); opacity: 0.96; } 
}
._island-droplet { animation: _islandPulse 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.island-collapse ._island-droplet { opacity: 0; transform: translateX(-50%) scale(0.92); visibility: hidden; pointer-events: none; }

@media (max-width: 991.98px) {
  .site-toggle-btn { display: flex; }
  .site-menu { display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; z-index: 1999; }
  .site-nav-toggle:checked + .site-toggle-btn + .site-menu { display: flex; }
  .site-sub-indicator { display: inline-flex; }
  .has-sub { width: 100%; }
  .submenu { position: static; display: none; background: #F7F7F7; border-radius: 12px; box-shadow: none; padding: 8px; }
  .site-sub-toggle:checked ~ .submenu { display: grid; }
  .site-surface.island { width: calc(100% - 24px); }
  .site-toggle-btn span:nth-child(1) { transform-origin: center; }
  .site-toggle-btn span:nth-child(3) { transform-origin: center; }
  .site-nav-toggle:checked + .site-toggle-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-nav-toggle:checked + .site-toggle-btn span:nth-child(2) { opacity: 0; }
  .site-nav-toggle:checked + .site-toggle-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 767.98px) {
  ._island-droplet { height: 48px; width: 80%; min-width: 0; padding: 8px 12px; }
  ._island-droplet ._droplet-btn { padding: 10px 14px; }
}
 
.btn-bamen { background-color: #D72630; color: #FFFFFF; padding: 12px 32px; border-radius: 50px; font-weight: 600; border: 2px solid #D72630; transition: all 0.3s ease; }
.btn-bamen:hover { background-color: transparent; color: #D72630; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(215, 38, 48, 0.15); }
.btn-outline-bamen { background-color: transparent; color: #333333; padding: 12px 32px; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; border: 2px solid #E5E5E5; }
.btn-outline-bamen:hover { border-color: #333333; background-color: #333333; color: #FFFFFF; }

.navbar { backdrop-filter: blur(20px); padding-top: 1rem; padding-bottom: 1rem; z-index: 1040; }
.navbar-brand { font-weight: 700; }
.nav-link { font-weight: 500; font-size: 0.95rem; margin-left: 0; transition: all 0.2s ease; text-decoration: none; }
.navbar-nav { gap: 1rem; }
.nav-link:hover, .nav-link.active { color: #FFFFFF !important; text-decoration: underline; text-decoration-color: #D72630; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-link:focus { color: #FFFFFF !important; text-decoration: underline; text-decoration-color: #D72630; text-decoration-thickness: 2px; text-underline-offset: 6px; outline: none; }
@media (min-width: 992px) { #navbarNav { display: flex !important; } }
.dropdown-item { transition: all 0.2s ease; }
.dropdown-item:hover, .dropdown-item:focus { color: #FFFFFF !important; background-color: rgba(255, 255, 255, 0.1); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Dark navbar hover effects */
.hover-bg-white-10:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

.hero-animate-up { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; transform: translateY(30px); }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-carousel { background: #0f0f0f; }
.hero-carousel-img { height: 560px; object-fit: cover; image-rendering: auto; -webkit-optimize-contrast: auto; }
@media (max-width: 991.98px) {
  .hero-carousel-img { height: 400px; }
}
@media (max-width: 575.98px) {
  .hero-carousel-img { height: 300px; }
}

.feature-card { transition: all 0.3s ease; border: 1px solid #f0f0f0; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: transparent; }
.icon-box { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: #FFF5F5; color: #D72630; margin-bottom: 1.5rem; }

.page-header { background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%); padding: 120px 0 80px; }
.value-card { transition: all 0.3s ease; border-left: 4px solid transparent; }
.value-card:hover { transform: translateX(10px); border-left-color: #D72630; }

.project-card { border: none; border-radius: 16px; overflow: hidden; transition: all 0.4s ease; background: #FFFFFF; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.project-img-wrapper { height: 260px; overflow: hidden; position: relative; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img { transform: scale(1.05); }
.filter-btn { border: 1px solid #E5E5E5; color: #666666; padding: 8px 24px; border-radius: 50px; background: transparent; transition: all 0.3s ease; font-weight: 500; }
.filter-btn:hover, .filter-btn.active { background: #D72630; color: #FFFFFF; border-color: #D72630; }

.form-control { border: 1px solid #E5E5E5; padding: 1rem 1.5rem; border-radius: 12px; font-size: 0.95rem; transition: all 0.3s ease; background-color: #FAFAFA; }
.form-control:focus { border-color: #D72630; box-shadow: 0 0 0 4px rgba(215, 38, 48, 0.1); background-color: #FFFFFF; }
.contact-icon { width: 48px; height: 48px; background: #FFF5F5; color: #D72630; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.25rem; margin-right: 1rem; flex-shrink: 0; }

.cookie-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 960px; background: #FFFFFF; border: 1px solid #E5E5E5; box-shadow: 0 10px 28px rgba(0,0,0,0.08); border-radius: 16px; padding: 16px; z-index: 3000; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.cookie-banner p { margin: 0; color: #666666; font-size: 0.95rem; }
.cookie-actions { display: flex; gap: 8px; align-items: center; }
.btn-cookie { padding: 10px 14px; border-radius: 10px; border: 1px solid #E5E5E5; background: #FFFFFF; color: #333333; font-weight: 600; cursor: pointer; transition: all 0.25s ease; }
.btn-cookie:hover { background: #F7F7F7; }
.btn-cookie-primary { background: #D72630; color: #FFFFFF; border-color: #D72630; }
.btn-cookie-primary:hover { filter: brightness(1.08); }
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; align-items: center; justify-content: center; z-index: 3100; }
.cookie-modal.show { display: flex; }
.cookie-dialog { width: min(720px, 92vw); background: #FFFFFF; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,0.18); border: 1px solid #E5E5E5; }
.cookie-dialog .cookie-header { padding: 16px 18px; border-bottom: 1px solid #F0F0F0; display: flex; justify-content: space-between; align-items: center; }
.cookie-dialog .cookie-body { padding: 16px 18px; display: grid; gap: 12px; }
.cookie-dialog .cookie-footer { padding: 14px 18px; border-top: 1px solid #F0F0F0; display: flex; justify-content: flex-end; gap: 8px; }
.cookie-switch { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #F0F0F0; border-radius: 12px; }
.cookie-switch label { font-weight: 600; color: #333333; }
.cookie-switch .desc { color: #666666; font-size: 0.9rem; }
.cookie-toggle { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #E5E5E5; position: relative; cursor: pointer; transition: all 0.25s ease; }
.cookie-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; transition: all 0.25s ease; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.cookie-toggle:checked { background: #D72630; }
.cookie-toggle:checked::after { left: 21px; }
.brand-outline { position: relative; color: #E84A54; }
.brand-outline-title { position: relative; z-index: 2; }
.brand-outline-bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(60vw, 520px); height: auto; z-index: 1; }
.brand-outline-bg path, .brand-outline-bg polyline, .brand-outline-bg line { stroke: currentColor; stroke-width: 2; fill: none; }
@media (max-width: 767.98px) {
  .brand-outline-bg { width: min(80vw, 360px); }
}
 
.cookie-fab { position: fixed; right: 16px; bottom: 16px; z-index: 3200; }
.cookie-fab-btn { width: 52px; height: 52px; border-radius: 50%; border: none; background: #D72630; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px rgba(0,0,0,0.18); cursor: pointer; transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), filter 200ms linear; }
.cookie-fab-btn:hover { transform: scale(1.06); filter: brightness(1.08); }
.cookie-fab-btn:focus-visible { outline: 3px solid rgba(215,38,48,0.28); outline-offset: 2px; }
.cookie-fab-btn svg { width: 24px; height: 24px; }
 
.cookie-banner.compact { grid-template-columns: 1fr auto; padding: 12px; max-width: 640px; }
.cookie-banner.expanded { grid-template-columns: 1fr auto; padding: 16px; max-width: 960px; }
.cookie-policy { margin-top: 8px; color: #666666; font-size: 0.9rem; }
.cookie-lang { border: 1px solid #E5E5E5; border-radius: 8px; padding: 6px 8px; background: #FFFFFF; color: #333333; }

.preloader { position: fixed; inset: 0; background: #FFFFFF; display: flex; align-items: center; justify-content: center; z-index: 5000; opacity: 0; animation: preloaderFade 2s ease-in-out forwards; }
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { width: clamp(200px, 28vw, 340px); height: auto; filter: grayscale(100%); opacity: 0.98; object-fit: contain; }
@keyframes preloaderFade { 
  0% { opacity: 0; } 
  10% { opacity: 1; } 
  85% { opacity: 1; } 
  100% { opacity: 0; } 
}
.preloader-box { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; text-align: center; }
.preloader-message { font-weight: 700; color: #333333; letter-spacing: -0.01em; }
.preloader-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #E5E5E5; border-top-color: #D72630; animation: preloaderSpin 0.9s linear infinite; }
@keyframes preloaderSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.preloader-close { padding: 8px 16px; border: 1px solid #E5E5E5; background: #FFFFFF; color: #333333; border-radius: 999px; font-weight: 600; }

/* Tailwind CDN replacement utilities (minimal set used by pages) */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.font-semibold { font-weight: 600; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-16 { padding-top: 4rem; }
.pt-8 { padding-top: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-8 { padding-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.z-10 { z-index: 10; }
.opacity-10 { opacity: 0.1; }
.bg-bamen-dark { background-color: #333333 !important; }
.bg-bamen-light { background-color: #F5F5F7 !important; }
.bg-red-50 { background-color: #FEF2F2; }
.text-bamen-red { color: #D72630 !important; }
.text-bamen-dark { color: #333333 !important; }
.text-bamen-gray { color: #666666 !important; }
.text-gray-400 { color: #9CA3AF !important; }
.text-gray-500 { color: #6B7280 !important; }
.border-gray-100 { border-color: #F3F4F6 !important; }
.border-gray-200 { border-color: #E5E7EB !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.transition-all { transition: all 0.2s ease; }
.object-cover { object-fit: cover; }
.top-3 { top: 1rem; }
.end-3 { right: 1rem; }
.hover\:text-bamen-red:hover { color: #D72630 !important; }
.hover\:text-red-700:hover { color: #B91C1C !important; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6 !important; }
