/* ==========================================================================
   European Umbrella — Custom Styles
   Supplements Tailwind CSS CDN. Contains: keyframes, glassmorphism,
   scroll-fade transitions, focus utilities, section backgrounds.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Base Resets & Defaults
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0A0F1E;
  color: #D1D5DB; /* gray-300 — WCAG AA compliant on dark backgrounds */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

/* Orange alert pulse — scale + opacity, 2s loop */
@keyframes eu-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

.eu-pulse {
  animation: eu-pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Glassmorphism Panel
   -------------------------------------------------------------------------- */
.glass-panel {
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.15);
}

/* --------------------------------------------------------------------------
   Section Backgrounds
   -------------------------------------------------------------------------- */
#hero {
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
}

#contact {
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(59, 130, 246, 0.07) 0%,
    transparent 70%
  );
}

/* --------------------------------------------------------------------------
   Scroll-triggered Fade-in (IntersectionObserver)
   -------------------------------------------------------------------------- */
.js-fade {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Focus Utilities
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Navbar Scroll State
   -------------------------------------------------------------------------- */
.navbar-scrolled {
  background-color: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1F2937;
}

/* --------------------------------------------------------------------------
   Mobile Navigation
   -------------------------------------------------------------------------- */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-nav.is-open {
  max-height: 400px;
}

/* --------------------------------------------------------------------------
   Map Image Constraint (16:9 widescreen)
   -------------------------------------------------------------------------- */
.map-container img {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Scroll-to-top button
   -------------------------------------------------------------------------- */
#scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}
