/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-luxury), 
              transform 0.8s var(--ease-luxury);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-luxury), 
              transform 0.8s var(--ease-luxury);
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* === IMAGE REVEAL (cinematic) === */
.reveal-image {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-luxury);
}
.reveal-image.revealed {
  clip-path: inset(0% 0 0 0);
}

/* === PREMIUM HOVER EFFECTS === */
.hover-lift {
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
  position: relative;
  overflow: hidden;
}
.hover-glow::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(201,169,110,0.15) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.75s var(--ease-luxury);
  z-index: 1;
  pointer-events: none;
}
.hover-glow:hover::before {
  left: 150%;
}

/* === REDUCED MOTION (ALWAYS include this) === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal-image {
    clip-path: none !important;
  }
}

/* === LUXURY NATIVE LIGHTBOX === */
dialog.luxury-lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  overflow: visible;
  outline: none;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.5s var(--ease-luxury), 
              transform 0.5s var(--ease-luxury), 
              display 0.5s allow-discrete, 
              overlay 0.5s allow-discrete;
}

dialog.luxury-lightbox[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog.luxury-lightbox[open] {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
}

dialog.luxury-lightbox::backdrop {
  background-color: rgba(20, 18, 16, 0);
  backdrop-filter: blur(0px);
  transition: background-color 0.5s var(--ease-luxury), 
              backdrop-filter 0.5s var(--ease-luxury), 
              display 0.5s allow-discrete, 
              overlay 0.5s allow-discrete;
}

dialog.luxury-lightbox[open]::backdrop {
  background-color: rgba(20, 18, 16, 0.85);
  backdrop-filter: blur(12px);
}

@starting-style {
  dialog.luxury-lightbox[open]::backdrop {
    background-color: rgba(20, 18, 16, 0);
    backdrop-filter: blur(0px);
  }
}

.lightbox-content-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 70vh;
  display: flex;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  color: var(--color-white);
  border: none;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.lightbox-close-btn:hover {
  color: var(--color-champagne);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 24, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s var(--ease-luxury);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--color-champagne);
  border-color: var(--color-champagne);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.lightbox-nav-btn--prev { left: -66px; }
.lightbox-nav-btn--next { right: -66px; }

.lightbox-caption-text {
  color: var(--color-white);
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  text-align: center;
  letter-spacing: 0.02em;
}

.lightbox-inquiry-box {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.lightbox-inquiry-btn {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: var(--color-white) !important;
  font-size: 11px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.lightbox-inquiry-btn:hover {
  background: #20ba59 !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.lightbox-inquiry-tag {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

@media (max-width: 1024px) {
  .lightbox-nav-btn--prev { left: 10px; }
  .lightbox-nav-btn--next { right: 10px; }
  .lightbox-close-btn { right: 10px; top: -50px; }
}

/* === IMAGE HOVER MICRO-CTAS === */
.portfolio-card__image-wrap,
.commercial-card,
.project-card,
.service-card__image-wrap,
.service-slab__media {
  position: relative;
  overflow: hidden;
}

.image-inquiry-trigger {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(26, 24, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-champagne);
  color: var(--color-champagne);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-luxury);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  pointer-events: auto;
}

.portfolio-card__image-wrap:hover .image-inquiry-trigger,
.commercial-card:hover .image-inquiry-trigger,
.project-card:hover .image-inquiry-trigger,
.service-card__image-wrap:hover .image-inquiry-trigger,
.service-slab__media:hover .image-inquiry-trigger {
  opacity: 1;
  transform: translateY(0);
}

.image-inquiry-trigger:hover {
  background: var(--color-champagne);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(201, 169, 110, 0.35);
  transform: translateY(-2px);
}

/* === CONCIERGE WHATSAPP WIDGET === */
.whatsapp-concierge-container {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 9990;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.whatsapp-concierge-card {
  background: rgba(26, 24, 22, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--card-radius);
  width: 290px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.45s var(--ease-luxury);
  transform-origin: bottom right;
  pointer-events: auto;
}

.whatsapp-concierge-container.active .whatsapp-concierge-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.concierge-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.concierge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-champagne);
  object-fit: cover;
}

.concierge-meta {
  display: flex;
  flex-direction: column;
}

.concierge-name {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.concierge-role {
  color: var(--color-champagne);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.concierge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #25D366;
  border-radius: 50%;
  animation: statusPulse 2s infinite ease-in-out;
}

.concierge-body {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: var(--lh-body);
  margin-bottom: 16px;
}

.concierge-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: var(--color-white);
  border: none;
  padding: 10px 14px;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.concierge-btn:hover {
  background: #20ba59;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .whatsapp-concierge-container {
    display: none !important;
  }
}

/* === PHASE 4: ACCESSIBILITY, FOCUS STATES & TOUCH OPTIMIZATIONS === */

/* Premium WCAG Focus Outline */
*:focus-visible {
  outline: 2px solid var(--color-champagne) !important;
  outline-offset: 4px !important;
}

/* Enforce Minimum Touch Target Spacing (48px recommendation) */
.navbar__link,
.navbar__logo,
.navbar__hamburger,
.filter-btn,
.faq-item__question,
.lightbox-close-btn,
.lightbox-nav-btn,
.whatsapp-float,
.scroll-top-btn,
.mobile-cta-bar__btn,
.btn,
.blog-card__link {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Tactile Active feedback for high-speed touch response */
.btn:active,
.filter-btn:active,
.faq-item__question:active,
.lightbox-nav-btn:active,
.whatsapp-float:active {
  transform: scale(0.97);
  opacity: 0.9;
  transition: transform 0.1s ease;
}

/* Scroll Snap Optimization */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for sticky header */
}

/* Prevent text layout shift during load */
img {
  content-visibility: auto; /* Browser optimizes rendering budget */
}


