/**
 * E&S Services WordPress Theme
 * Datei: luxury.css
 * Beschreibung: Futuristic Dark Luxury Design - 2025 Cinematic Animations
 */

/* ===== HERO LUXURY ===== */
.hero--luxury {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero--luxury .hero__container {
  position: relative;
  z-index: 2;
}

.hero__title--typewriter {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  margin-bottom: var(--space-8);
}

.hero__title-text {
  display: inline-block;
}

.hero__cursor {
  display: inline-block;
  color: var(--color-primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero__line {
  width: 100%;
  max-width: 400px;
  height: 2px;
  margin: 0 auto var(--space-8);
  display: block;
}

.hero__line-stroke {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 1.5s ease-out forwards;
  animation-delay: 2s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__subtitle--fade {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 3.5s;
}

.hero__actions--fade {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===== LUXURY BUTTON ===== */
.btn--luxury {
  position: relative;
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: var(--space-4) var(--space-8);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  overflow: hidden;
  transition: color var(--transition-normal);
}

.btn__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: -1;
  transition: width var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--luxury:hover .btn__fill {
  width: 100%;
}

.btn--luxury:hover {
  color: var(--color-text-inverse);
}

.btn__text {
  position: relative;
  z-index: 1;
}

/* Pulse Animation für CTA Button */
.btn--pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(201, 168, 76, 0);
  }
}

/* ===== COUNTER MARQUEE ===== */
.counter--marquee {
  background-color: var(--color-secondary);
  padding: var(--space-24) 0;
  overflow: hidden;
}

.counter__marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.counter__marquee-inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  animation: marquee 40s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.counter__marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.counter__number {
  font-size: var(--text-6xl);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.counter__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.counter__separator {
  color: var(--color-primary);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.counter__content {
  margin-top: var(--space-16);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.counter__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* Pause marquee on hover */
@media (hover: hover) {
  .counter__marquee:hover .counter__marquee-inner {
    animation-play-state: paused;
  }
}

/* ===== PROCESS TIMELINE ===== */
.process--timeline {
  background-color: var(--color-surface);
  position: relative;
}

.process__timeline {
  position: relative;
  padding-left: var(--space-16);
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .process__timeline {
    padding-left: var(--space-24);
  }
}

.process__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--color-border);
}

.process__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--color-primary);
  transition: height 0.3s ease-out;
}

.process__step {
  position: relative;
  margin-bottom: var(--space-24);
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process__step.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.process__step-number {
  position: absolute;
  left: calc(-1 * var(--space-16) - 80px);
  top: 0;
  font-size: 120px;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: transparent;
  -webkit-text-stroke: 1px var(--color-primary);
  opacity: 0.3;
  line-height: 1;
}

@media (max-width: 767px) {
  .process__step-number {
    font-size: 60px;
    left: calc(-1 * var(--space-16) - 40px);
  }
}

.process__step-content {
  padding-left: var(--space-8);
}

.process__step-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.process__step-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* ===== TESTIMONIAL LUXURY ===== */
.testimonial--luxury {
  background-color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.testimonial--luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial__quote-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.05;
  z-index: 0;
  line-height: 1;
  pointer-events: none;
}

@media (min-width: 768px) {
  .testimonial__quote-bg {
    font-size: 400px;
  }
}

.testimonial__container {
  position: relative;
  z-index: 1;
}

.testimonial__quote--large {
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  line-height: var(--leading-loose);
  color: var(--color-primary);
  font-style: italic;
  font-weight: var(--weight-medium);
  text-align: center;
  max-width: 80%;
  margin: 0 auto var(--space-8);
}

.testimonial__divider {
  width: 100px;
  height: 2px;
  background-color: var(--color-primary);
  margin: var(--space-8) auto;
}

.testimonial__author {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  text-align: center;
  margin-bottom: var(--space-2);
}

.testimonial__position {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== TEAM LUXURY ===== */
.team--luxury {
  background-color: var(--color-surface);
}

.team__grid--asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .team__grid--asymmetric {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .team__grid--asymmetric {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.team-card--luxury {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: transparent;
}

.team-card--luxury .team-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition-normal);
}

.team-card--luxury:hover .team-card__image-wrap {
  border-color: var(--color-primary);
}

.team-card--luxury .team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card--luxury:hover .team-card__image {
  transform: scale(1.05);
}

.team-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(201, 168, 76, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.team-card--luxury:hover .team-card__overlay {
  opacity: 1;
}

.team-card__overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.team-card--luxury:hover .team-card__overlay-content {
  transform: translateY(0);
}

.team-card--luxury .team-card__name {
  font-size: var(--text-2xl);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.team-card--luxury .team-card__position {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ===== CTA FULLSCREEN ===== */
.cta--fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-secondary);
  overflow: hidden;
}

.cta__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.05) 0%,
    transparent 50%,
    rgba(201, 168, 76, 0.05) 100%
  );
  animation: gradientShift 10s ease-in-out infinite;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.cta--fullscreen .cta__container {
  position: relative;
  z-index: 1;
}

.cta__title--huge {
  font-size: clamp(var(--text-5xl), 12vw, 10rem);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  animation: slowFade 2s ease-out;
}

@keyframes slowFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta__text--subtle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  animation: slowFade 2s ease-out 0.5s backwards;
}

/* ===== SERVICES LUXURY ===== */
.services--luxury {
  background-color: var(--color-secondary);
}

.service-card--luxury {
  position: relative;
  background-color: transparent;
  padding: var(--space-8);
  border: none;
  border-radius: 0;
  transition: background-color var(--transition-normal);
}

.service-card--luxury:hover {
  background-color: rgba(201, 168, 76, 0.03);
  transform: none;
  box-shadow: none;
}

.service-card__border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  clip-path: polygon(
    0 0,
    0 0,
    0 100%,
    0 100%
  );
  transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
}

.service-card--luxury:hover .service-card__border {
  opacity: 1;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.service-card--luxury .service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-6);
  fill: var(--color-text-muted);
  stroke: var(--color-text-muted);
  transition: fill var(--transition-normal), stroke var(--transition-normal), transform var(--transition-normal);
}

.service-card--luxury:hover .service-card__icon {
  fill: var(--color-primary);
  stroke: var(--color-primary);
  transform: scale(1.1);
  filter: none;
}

.service-card--luxury .service-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  transition: color var(--transition-normal);
}

.service-card--luxury:hover .service-card__title {
  color: var(--color-primary);
}

.service-card--luxury .service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .counter__marquee-inner {
    animation: none;
  }

  .btn--pulse {
    animation: none;
  }

  .cta__background {
    animation: none;
  }
}
