/* ═══════════════════════════════════════════════════════
   ZALEA ECUESTRE — Landing Page Styles
   Premium equestrian brand hype page
   ═══════════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
  color: #f5f0eb;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── VIDEO BACKGROUND ─── */
.video-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight scale to prevent edges showing during subtle movement */
  transform: scale(1.05);
}

/* Dark overlay on top of the video */
.video-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Radial vignette effect */
    radial-gradient(
      ellipse at center,
      rgba(5, 5, 5, 0.35) 0%,
      rgba(5, 5, 5, 0.65) 60%,
      rgba(5, 5, 5, 0.85) 100%
    ),
    /* Base darkening */
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.5) 0%,
      rgba(5, 5, 5, 0.3) 40%,
      rgba(5, 5, 5, 0.5) 100%
    );
  z-index: 1;
}

/* ─── PARTICLES CANVAS ─── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

/* ─── CORNER DECORATIONS ─── */
.corner-decor {
  position: fixed;
  width: clamp(40px, 6vw, 80px);
  height: clamp(40px, 6vw, 80px);
  z-index: 3;
  opacity: 0;
  animation: cornerFadeIn 1.8s ease-out forwards;
  animation-delay: 2.5s;
}

.corner-decor::before,
.corner-decor::after {
  content: '';
  position: absolute;
  background: rgba(212, 195, 170, 0.25);
}

/* Horizontal line */
.corner-decor::before {
  height: 1px;
  width: 100%;
}

/* Vertical line */
.corner-decor::after {
  width: 1px;
  height: 100%;
}

.corner-tl {
  top: clamp(20px, 4vw, 50px);
  left: clamp(20px, 4vw, 50px);
}
.corner-tl::before { top: 0; left: 0; }
.corner-tl::after  { top: 0; left: 0; }

.corner-tr {
  top: clamp(20px, 4vw, 50px);
  right: clamp(20px, 4vw, 50px);
}
.corner-tr::before { top: 0; right: 0; }
.corner-tr::after  { top: 0; right: 0; }

.corner-bl {
  bottom: clamp(20px, 4vw, 50px);
  left: clamp(20px, 4vw, 50px);
}
.corner-bl::before { bottom: 0; left: 0; }
.corner-bl::after  { bottom: 0; left: 0; }

.corner-br {
  bottom: clamp(20px, 4vw, 50px);
  right: clamp(20px, 4vw, 50px);
}
.corner-br::before { bottom: 0; right: 0; }
.corner-br::after  { bottom: 0; right: 0; }

/* ─── LOGO ─── */
.logo-container {
  position: relative;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  opacity: 0;
  animation: logoReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.logo {
  width: clamp(120px, 20vmin, 240px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(212, 195, 170, 0.15))
          drop-shadow(0 0 120px rgba(212, 195, 170, 0.06));
  transition: filter 0.6s ease;
}

/* Subtle pulsating glow on logo */
.logo-container::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 195, 170, 0.06) 0%,
    transparent 70%
  );
  animation: logoPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* ─── BRAND NAME ─── */
.brand-name {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 300;
  /*
   * Use vmin so the text scales proportionally on both
   * portrait phones and landscape desktops.
   * 2.2rem min keeps it readable on 320px screens,
   * 5.5rem max caps it on ultra-wides.
   */
  font-size: clamp(2.2rem, 10vmin, 5.5rem);
  letter-spacing: clamp(0.5rem, 2.5vw, 2rem);
  text-transform: uppercase;
  color: #f5f0eb;
  margin-bottom: clamp(0.4rem, 1vh, 0.8rem);
  line-height: 1;
  /* Offset the extra trailing letter-spacing so it looks truly centred */
  padding-left: clamp(0.5rem, 2.5vw, 2rem);
  /* Prevent the word from wrapping — it must always stay on one line */
  white-space: nowrap;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: letterIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.8s + var(--i) * 0.12s);
}

/* ─── TAGLINE ─── */
.tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(0.55rem, 1.4vmin, 0.9rem);
  letter-spacing: clamp(0.25rem, 1.2vw, 0.8rem);
  color: rgba(212, 195, 170, 0.7);
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  padding-left: clamp(0.25rem, 1.2vw, 0.8rem);
  white-space: nowrap;
  opacity: 0;
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.6s;
}

/* ─── DIVIDER ─── */
.divider {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  opacity: 0;
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 2s;
}

.divider-line {
  display: block;
  width: clamp(24px, 7vw, 80px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 195, 170, 0.4),
    transparent
  );
}

.divider-diamond {
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(212, 195, 170, 0.5);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ─── COMING SOON ─── */
.coming-soon {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(0.5rem, 1.2vmin, 0.8rem);
  letter-spacing: clamp(0.2rem, 0.9vw, 0.6rem);
  color: rgba(212, 195, 170, 0.5);
  text-transform: uppercase;
  padding-left: clamp(0.2rem, 0.9vw, 0.6rem);
  white-space: nowrap;
  opacity: 0;
  animation: fadeSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 2.3s;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes logoPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes letterIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

@keyframes cornerFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — fine-tuned breakpoints
   ═══════════════════════════════════════════════════════ */

/* ── Very small phones (≤ 360px, e.g. iPhone SE, Galaxy S) ── */
@media (max-width: 360px) {
  .hero {
    padding: 1.2rem;
  }

  .logo {
    width: 100px;
  }

  .logo-container {
    margin-bottom: 1.2rem;
  }

  .brand-name {
    font-size: 1.8rem;
    letter-spacing: 0.4rem;
    padding-left: 0.4rem;
  }

  .tagline {
    font-size: 0.5rem;
    letter-spacing: 0.2rem;
    padding-left: 0.2rem;
    margin-bottom: 1.2rem;
  }

  .coming-soon {
    font-size: 0.45rem;
    letter-spacing: 0.18rem;
    padding-left: 0.18rem;
  }

  .divider-line {
    width: 20px;
  }
}

/* ── Standard phones (361px – 480px) ── */
@media (min-width: 361px) and (max-width: 480px) {
  .logo {
    width: 120px;
  }

  .brand-name {
    font-size: 2.2rem;
    letter-spacing: 0.5rem;
    padding-left: 0.5rem;
  }

  .tagline {
    font-size: 0.55rem;
    letter-spacing: 0.25rem;
    padding-left: 0.25rem;
  }

  .coming-soon {
    font-size: 0.5rem;
    letter-spacing: 0.2rem;
    padding-left: 0.2rem;
  }
}

/* ── Large phones / small tablets (481px – 768px) ── */
@media (min-width: 481px) and (max-width: 768px) {
  .logo {
    width: 150px;
  }

  .brand-name {
    font-size: 3rem;
    letter-spacing: 0.8rem;
    padding-left: 0.8rem;
  }

  .tagline {
    font-size: 0.65rem;
    letter-spacing: 0.4rem;
    padding-left: 0.4rem;
  }

  .coming-soon {
    font-size: 0.6rem;
    letter-spacing: 0.3rem;
    padding-left: 0.3rem;
  }
}

/* ── Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 1rem;
    gap: 0;
  }

  .logo-container {
    margin-bottom: 0.8rem;
  }

  .logo {
    width: 80px;
  }

  .brand-name {
    font-size: 2rem;
    letter-spacing: 0.6rem;
    padding-left: 0.6rem;
    margin-bottom: 0.3rem;
  }

  .tagline {
    margin-bottom: 1rem;
    font-size: 0.5rem;
  }

  .divider {
    margin-bottom: 0.8rem;
  }
}

/* ── Large screens (≥ 1200px) ── */
@media (min-width: 1200px) {
  .logo {
    width: 240px;
  }

  .brand-name {
    font-size: 5.5rem;
    letter-spacing: 2rem;
    padding-left: 2rem;
  }

  .tagline {
    font-size: 0.9rem;
    letter-spacing: 0.8rem;
    padding-left: 0.8rem;
  }

  .coming-soon {
    font-size: 0.8rem;
    letter-spacing: 0.6rem;
    padding-left: 0.6rem;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
