/* Custom styles & refinements for Očná Optika Martinkovič */
/* Color scheme inspired by original Martinkovič / Webnode Danube & Navy palette */

:root {
  --primary-navy: #141c2d;
  --danube-blue: #2e4371;
  --danube-hover: #24355a;
  --danube-light: #4261a3;
  --accent-cyan: #129fea;
  --accent-sky: #38bdf8;
  --bg-cool: #f8fafc;
  --bg-blue-tint: #f0f4fa;
  --text-dark: #141c2d;
  --text-muted: #5a667d;
  --card-bg: #ffffff;
}

html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-cool);
  overflow-x: clip;
}

h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(219, 228, 240, 0.9);
}

/* Danube Blue Button (Original Webnode blue aesthetic) */
.btn-blue, .btn-gold {
  background: linear-gradient(135deg, #2e4371 0%, #1e3a8a 55%, #1d4ed8 100%);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px 0 rgba(46, 67, 113, 0.32);
}

.btn-blue:hover, .btn-gold:hover {
  background: linear-gradient(135deg, #24355a 0%, #1a3275 55%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(46, 67, 113, 0.44);
}

/* Soft Blue Secondary Button */
.btn-outline-blue {
  border: 1.5px solid #2e4371;
  color: #2e4371;
  background-color: transparent;
  transition: all 0.25s ease;
}
.btn-outline-blue:hover {
  background-color: #2e4371;
  color: #ffffff;
}

/* Image Card Hover Zoom */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-container:hover img {
  transform: scale(1.06);
}

/* Gallery Lightbox */
#lightbox {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Section styling decorations with Danube Blue */
.section-tag {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
  color: #2e4371;
}

/* Custom scrollbar with subtle cool-slate tones */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ========================================================
   HERO SCROLL-FOCUS (OPTICAL SHARPENING EFFECT)
   ======================================================== */

.hero-scroll-track {
  position: relative;
  min-height: calc(100vh + 320px);
}

.hero-sticky-section {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 660px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #141c2d;
  overflow: hidden;
}

/* Initial state: 8px blur with hardware acceleration */
.hero-focus-container {
  filter: blur(8px);
  will-change: filter, transform;
  transform: translateZ(0);
  transition: filter 0.05s linear;
}

.hero-bg-image {
  will-change: filter, transform;
  transform: translateZ(0) scale(1.04);
  transition: filter 0.05s linear;
}

/* Initial Teaser Overlay & Scroll Prompt */
.hero-teaser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: auto;
  cursor: pointer;
  padding: 1.5rem;
  transition: opacity 0.2s ease-out;
}

/* Headline focus highlight state */
#hero-headline {
  transition: text-shadow 0.4s ease, transform 0.4s ease;
}

#hero-headline.is-focused {
  text-shadow: 0 0 35px rgba(56, 189, 248, 0.45);
}

/* Scroll indicator animation */
@keyframes scrollWheelAnim {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(9px); opacity: 0.15; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-wheel-anim {
  animation: scrollWheelAnim 1.7s infinite ease-in-out;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-track {
    min-height: auto;
  }
  .hero-sticky-section {
    position: relative;
    height: auto;
    min-height: 88vh;
  }
  .hero-focus-container,
  .hero-bg-image {
    filter: none !important;
  }
  .hero-teaser-overlay {
    display: none !important;
  }
}

