@import url(https://use.typekit.net/txu1ils.css);

@font-face {
  font-family: "HWTArtzHWTArtz";
  src: url("font.woff2") format("woff2"), url("font.woff") format("woff");
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: poynter-gothic-text, Helvetica, Arial, sans-serif;
}

body {
  background-image: url(bg_blurred.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
}

h1, h2, h3, h4, h5 {
  font-family: "HWTArtzHWTArtz", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  height: 65px;
}

.logo {
  position: relative;
  z-index: 1001;
}

.logo img {
  height: auto;
  max-height: 90px;
  width: auto;
  position: relative;
  top: 30px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo img:hover { transform: translateY(-5px); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #004e43;
  background: rgba(0, 78, 67, 0.1);
}

.nav-links .doneer-nav {
  background-color: #004e43;
  color: white !important;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links .doneer-nav:hover {
  background-color: #1AB567;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 78, 67, 0.3);
}

/* Shared container */
.coming {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 110px 30px 30px;
  text-align: left;
}

/* Variant: top-aligned content (no vertical centering) */
.coming--top {
  justify-content: flex-start;
  min-height: auto;
}

.contain {
  margin: 30px;
  padding: 5px 30px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  color: black;
  max-width: 600px;
  box-sizing: border-box;
}

/* Make fotos page container wider on larger screens */
.page-fotos .contain { max-width: 1200px; }

.contain h1 { margin: 0 0 15px; padding: 0; font-size: 36px; list-style: normal; }
.contain h2 { margin: 30px 0 15px; }
.contain h3 { margin: 30px 0 15px; }
.contain img { display: block; width: 100%; height: auto; margin: 0 0 30px; }

.intro {
  font-family: "HWTArtzHWTArtz", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 21px;
  letter-spacing: 0.05rem;
}

.contain a { color: #004e43; }

.doneer {
  display: block;
  background-color: #004e43;
  color: white !important;
  font-size: 24px;
  padding: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.doneer:hover { background-color: #1AB567; }

/* Live page */
.live { position: fixed; top: 65px; left: 0; right: 0; bottom: 0; z-index: 1; }
.live iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.live #map { width: 100%; height: 100%; display: block; background: #fff; }

/* Fotos page */
.gallery { margin: 0 auto; padding: 20px 0;}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.grid a { display: block; border-radius: 10px; overflow: hidden; background: #59bd95; background: linear-gradient(166deg,rgba(89, 189, 149, 1) 0%, rgba(12, 82, 30, 1) 100%); box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.grid a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Blur-up loading effect */
.blur-up { filter: blur(12px); transform: scale(1.02); opacity: 0.9; transition: filter 0.35s ease, transform 0.35s ease, opacity 0.25s ease; }
.blur-up.is-loaded { filter: blur(0); transform: scale(1); opacity: 1; }

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced lazy loading styles */
.lazy-image {
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%, #e0e0e0);
    background-size: 20px 20px;
    animation: shimmer 1.5s infinite linear;
    transition: all 0.3s ease;
}

.lazy-image.is-loading {
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%, #e0e0e0);
    background-size: 20px 20px;
    animation: shimmer 1.5s infinite linear;
    filter: blur(8px);
    opacity: 0.7;
}

.lazy-image.is-loaded {
    background: none;
    animation: none;
    filter: blur(0);
    opacity: 1;
}

.lazy-image.is-error {
    background: #ffebee;
    border: 2px solid #f44336;
    position: relative;
}

.lazy-image.is-error::after {
    content: "⚠️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #f44336;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Loading skeleton for better UX */
.grid a:has(.lazy-image.is-loading) {
    background: rgba(255, 255, 255, 0.6);
    animation: pulse 2s infinite;
}

/* Fallback for browsers that don't support :has() */
.grid a.loading-skeleton {
    background: rgba(255, 255, 255, 0.6);
    animation: pulse 2s infinite;
}

/* Loading progress indicator */
.loading-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 78, 67, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #004e43, #1AB567);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; }
.lightbox.is-visible { opacity: 1; visibility: visible; }
.lightbox__content { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.4); background: #000; display: flex; align-items: center; justify-content: center; }
.lightbox__content img { display: block; max-width: 95vw; max-height: 85vh; width: auto; height: auto; object-fit: contain; background: #000; }
.lightbox__close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.9); color: #222; border: 0; border-radius: 999px; width: 36px; height: 36px; font-size: 21px; cursor: pointer; }

/* Mobile */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; height: 60px; flex-wrap: nowrap; row-gap: 0.4rem; }
  .logo img { height: auto; max-height: 65px; top: 10px; }
  .hidden-on-mobile { display: none; }
  .nav-links { display: flex; position: static; background: transparent; flex-direction: row; flex-wrap: nowrap; gap: 0.5rem; padding: 0; box-shadow: none; margin-top: 0; width: auto; margin-left: auto; justify-content: flex-end; }
  .nav-links a { font-size: 0.95rem; padding: 0.4rem 0.6rem; }
  .nav-links .doneer-nav { padding: 0.45rem 0.7rem; }

  .live { top: 60px; }

  .coming { padding: 90px 12px 20px; }
  .contain { margin: 15px; padding: 5px 20px; }
}


