/* ===========================
   HERO — Full-screen Cinematic
   Ken Burns background slideshow
   Centered content over dark overlay
   3D parallax on scroll + mousemove
   =========================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* ===========================
   BACKGROUND SLIDESHOW
   =========================== */
.hero-bg {
  position: absolute;
  inset: -8%;     /* extra room for Ken Burns movement */
  z-index: 0;
  will-change: transform;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: transform, opacity;
}

.hero-bg-slide.active  { opacity: 1; }
.hero-bg-slide.leaving { opacity: 0; transition: opacity 1.8s ease; }

/* Ken Burns — unique motion per slide */
.hero-bg-slide:nth-child(1) { animation: kb1 16s ease-in-out infinite; }
.hero-bg-slide:nth-child(2) { animation: kb2 16s ease-in-out infinite; }
.hero-bg-slide:nth-child(3) { animation: kb3 16s ease-in-out infinite; }
.hero-bg-slide:nth-child(4) { animation: kb4 16s ease-in-out infinite; }
.hero-bg-slide:nth-child(5) { animation: kb5 16s ease-in-out infinite; }

@keyframes kb1 {
  0%   { transform: scale(1.05) translate(0%,   0%); }
  50%  { transform: scale(1.14) translate(-2%,  -1%); }
  100% { transform: scale(1.05) translate(0%,   0%); }
}
@keyframes kb2 {
  0%   { transform: scale(1.10) translate(1%,   1%); }
  50%  { transform: scale(1.18) translate(-1.5%,-2%); }
  100% { transform: scale(1.10) translate(1%,   1%); }
}
@keyframes kb3 {
  0%   { transform: scale(1.08) translate(-1%, -0.5%); }
  50%  { transform: scale(1.16) translate(2%,   1%); }
  100% { transform: scale(1.08) translate(-1%, -0.5%); }
}
@keyframes kb4 {
  0%   { transform: scale(1.12) translate(0%,   1%); }
  50%  { transform: scale(1.06) translate(-1.5%, -1.5%); }
  100% { transform: scale(1.12) translate(0%,   1%); }
}
@keyframes kb5 {
  0%   { transform: scale(1.07) translate(-2%,  0%); }
  50%  { transform: scale(1.14) translate(1%,  -1.5%); }
  100% { transform: scale(1.07) translate(-2%,  0%); }
}

/* ===========================
   CINEMATIC OVERLAYS
   =========================== */

/* Primary dark overlay — warm charcoal gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(175deg,
      rgba(20, 15, 12, 0.80) 0%,
      rgba(30, 22, 16, 0.50) 45%,
      rgba(22, 16, 12, 0.78) 100%
    );
}

/* Vignette — dramatic edge darkening */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 30%,
    rgba(0, 0, 0, 0.60) 100%
  );
  pointer-events: none;
}

/* Film grain */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* Horizontal cinematic letter-box bars */
.hero-letterbox-top,
.hero-letterbox-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.hero-letterbox-top    { top: 0; }
.hero-letterbox-bottom { bottom: 0; }

/* ===========================
   CENTERED CONTENT
   =========================== */
.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 72px) 0 140px;
}

.hero-content {
  max-width: 860px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
  width: fit-content;
  animation: fadeDrop 0.8s var(--ease-out) 0.15s both;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C9A07A;
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 160, 122, 0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(201, 160, 122, 0.08); }
}

/* Headline — always white on dark bg */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  animation: fadeDrop 0.8s var(--ease-out) 0.30s both;
  will-change: transform;
}

/* Sub-text */
.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.78;
  animation: fadeDrop 0.8s var(--ease-out) 0.45s both;
}

/* CTA buttons */
.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeDrop 0.8s var(--ease-out) 0.58s both;
}

/* Ghost btn override for dark bg */
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Service tags */
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeDrop 0.8s var(--ease-out) 0.70s both;
}
.hero-tags span {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.28s var(--spring);
  cursor: default;
}
.hero-tags span:hover {
  background: rgba(107, 79, 58, 0.40);
  border-color: rgba(201, 160, 122, 0.60);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* ===========================
   BOTTOM SLIDE UI
   =========================== */
.hero-bottom {
  position: absolute;
  bottom: 72px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeDrop 1s var(--ease-out) 1s both;
}

/* Current service label */
.hero-service-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 50px;
  background: rgba(107, 79, 58, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 160, 122, 0.35);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hero-service-label .svc-icon { font-size: 0.85rem; }

/* Slide dots */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s var(--spring);
}
.hero-dot.active {
  width: 26px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
}
.hero-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1.2);
}

/* ===========================
   SCROLL INDICATOR
   =========================== */
.hero-scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  z-index: 6;
  animation: fadeDrop 1s var(--ease-out) 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.30; transform: scaleY(0.50); }
}

@keyframes fadeDrop {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
