/* ==============================================
   Gabi Gebäudereinigung – Transitional Page
   style.css
   ============================================== */

/* ===== COLOR PALETTE (from logo) ===== */
:root {
  --teal: #2C5F6E;
  --sky: #7CC8E8;
  --gold: #F0BF3C;
  --bg: #FAFCFD;
  --text: #1B2D35;
  --muted: #6B8E99;
  --line: #E2EDF1;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--sky);
  color: var(--teal);
}

/* ===== PAGE CONTAINER (legacy, used inside footer) ===== */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Remove margin-top from blocks inside Bootstrap grid */
.services-block,
.contact-block {
  margin-top: 0;
  opacity: 1;
  animation: fadeUp 0.8s 0.75s ease forwards;
}

/* ===== HEADER ===== */
.site-header {
  padding: 48px 0 0;
  text-align: center;
}

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s ease forwards;
}

.site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 16px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 0.8s 0.25s ease forwards;
}

/* ===== DIVIDER ===== */
.sep {
  width: 40px;
  height: 2px;
  background: var(--sky);
  margin: 36px auto;
  border: none;
  border-radius: 1px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s ease forwards;
}

/* ===== TRANSITION NOTICE ===== */
.notice {
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease forwards;
}

.notice-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
}

.notice h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.notice p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 10px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s ease forwards;
}

.cd-unit {
  text-align: center;
  min-width: 72px;
}

.cd-num {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.cd-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 6px;
}

/* Colon separator between countdown units */
.cd-colon {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--line);
  line-height: 1;
  padding-top: 2px;
  user-select: none;
}

.cd-colon.blink {
  animation: blink 1s step-end infinite;
}

/* ===== LAUNCH DATE TAG ===== */
.launch-tag {
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s ease forwards;
}

.launch-tag span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
}

.launch-tag i {
  color: var(--gold);
  font-size: 0.7rem;
}

/* ===== SERVICES LIST ===== */
.services-block {
  margin-top: 56px;
  opacity: 0;
  animation: fadeUp 0.8s 0.75s ease forwards;
}

.services-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
}

.svc-list {
  list-style: none;
}

.svc-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}

.svc-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.svc-list li:hover {
  padding-left: 6px;
}

.svc-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sky);
  min-width: 20px;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

.svc-icon {
  color: var(--teal);
  font-size: 1rem;
  opacity: 0.55;
  width: 20px;
  text-align: center;
}

.svc-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  flex: 1;
}

/* ===== CONTACT HINT (final CTA) ===== */
.contact-hint {
  margin-top: 44px;
  text-align: center;
  padding-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s 0.95s ease forwards;
}

.contact-hint p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== CTA BUTTON ROW ===== */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-row-center {
  margin-top: 14px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
  white-space: nowrap;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Call button */
.cta-call {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44, 95, 110, 0.25);
}

.cta-call:hover {
  box-shadow: 0 8px 24px rgba(44, 95, 110, 0.35);
  color: #fff;
}

/* WhatsApp button */
.cta-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.cta-wa:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  color: #fff;
}

/* Email button */
.cta-mail {
  background: var(--sky);
  color: var(--teal);
  box-shadow: 0 4px 16px rgba(124, 200, 232, 0.25);
}

.cta-mail:hover {
  box-shadow: 0 8px 24px rgba(124, 200, 232, 0.4);
  color: var(--teal);
}

/* ===== CTA MID (between services and contact) ===== */
.cta-mid {
  margin-top: 44px;
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 0.8s 0.85s ease forwards;
}

.cta-mid p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

/* ===== CONTACT BLOCK ===== */
.contact-block {
  margin-top: 44px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-ic {
  font-size: 1.1rem;
  color: var(--teal);
  opacity: 0.6;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.contact-ic-wa {
  color: #25D366;
  opacity: 0.85;
}

.contact-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-val {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.contact-val:hover {
  border-color: var(--sky);
  color: var(--teal);
}

.contact-val-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== FLOATING WHATSAPP FAB ===== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 100;
  text-decoration: none;
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ===== MASONRY GALLERY ===== */
.gallery-block {
  margin-top: 44px;
  opacity: 0;
  animation: fadeUp 0.8s 0.88s ease forwards;
}

.masonry {
  columns: 3;
  column-gap: 14px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

/* Hover overlay with zoom icon */
.masonry-item::after {
  content: '\F52A'; /* bi-zoom-in unicode */
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(44, 95, 110, 0.45),
    rgba(124, 200, 232, 0.3)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 14px;
}

.masonry-item:hover::after {
  opacity: 1;
}

.masonry-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
  filter: saturate(0.92) brightness(0.98);
  will-change: transform;
}

.masonry-item:hover .masonry-img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.02);
}

/* Staggered reveal for individual items */
.masonry-item {
  opacity: 0;
  transform: translateY(20px);
  animation: masonryReveal 0.6s ease forwards;
}

.masonry-item:nth-child(1)  { animation-delay: 0.05s; }
.masonry-item:nth-child(2)  { animation-delay: 0.10s; }
.masonry-item:nth-child(3)  { animation-delay: 0.15s; }
.masonry-item:nth-child(4)  { animation-delay: 0.20s; }
.masonry-item:nth-child(5)  { animation-delay: 0.25s; }
.masonry-item:nth-child(6)  { animation-delay: 0.30s; }
.masonry-item:nth-child(7)  { animation-delay: 0.35s; }
.masonry-item:nth-child(8)  { animation-delay: 0.40s; }
.masonry-item:nth-child(9)  { animation-delay: 0.45s; }
.masonry-item:nth-child(10) { animation-delay: 0.50s; }
.masonry-item:nth-child(11) { animation-delay: 0.55s; }
.masonry-item:nth-child(12) { animation-delay: 0.60s; }
.masonry-item:nth-child(n+13) { animation-delay: 0.65s; }

@keyframes masonryReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive columns */
@media (max-width: 768px) {
  .masonry {
    columns: 2;
    column-gap: 10px;
  }
  .masonry-item {
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .masonry-item::after { border-radius: 12px; }
  .masonry-img { border-radius: 12px; }
}

@media (max-width: 420px) {
  .masonry {
    columns: 1;
    column-gap: 0;
  }
  .masonry-item {
    margin-bottom: 12px;
  }
}

/* ===== LIGHTBOX OVERLAY ===== */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 10, 18, 0.94);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-overlay.lb-visible {
  opacity: 1;
  visibility: visible;
}

/* Lightbox image container */
.lb-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 72px 24px;
}

.lb-content img {
  max-width: 88%;
  max-height: 84vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

/* Close button */
.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(8px);
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg) scale(1.05);
}

/* Navigation arrows */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(8px);
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Counter */
.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

@media (max-width: 600px) {
  .lb-nav {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-content { padding: 64px 12px; }
  .lb-content img {
    max-width: 96%;
    border-radius: 12px;
  }
  .lb-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    top: 12px;
    right: 12px;
  }
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .cd-unit {
    min-width: 56px;
  }

  .site-header {
    padding-top: 36px;
  }

  .cta-btn {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .wa-fab {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}
