/* ═══════════════════════════════════════════════
   X The Gap — Coming Soon Landing
   ═══════════════════════════════════════════════
   Design system: dark, elegant, minimal.
   Typography: Inter (UI) + Playfair Display (headlines).
   Layout: CSS Grid, mobile-first.
   ═══════════════════════════════════════════════ */


/* ── CSS Custom Properties ─────────────────── */
:root {
  /* Palette */
  --color-black:       #0a0a0a;
  --color-dark:        #111111;
  --color-gray-900:    #1a1a1a;
  --color-gray-700:    #333333;
  --color-gray-500:    #666666;
  --color-gray-300:    #999999;
  --color-gray-100:    #cccccc;
  --color-white:       #f5f5f5;
  --color-pure-white:  #ffffff;

  /* Accent (subtle warm white / gold hint) */
  --color-accent:      #a7c403;
  --color-accent-soft: rgba(212, 168, 83, 0.15);

  /* WhatsApp */
  --color-wa:          #25D366;
  /* --color-wa-dark:     #128C7E; */
  --color-wa-dark:     #a7c403;

  /* Typography */
  --font-ui:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:      'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Layout */
  --container-max:     1100px;
  --container-padding: 1.5rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 0.3s var(--ease-out-quad);
  --transition-slow: 0.6s var(--ease-out-expo);

  /* Overlay */
  --overlay-opacity: 0.88;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--color-white);
  background-color: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

::selection {
  background: var(--color-accent);
  color: var(--color-black);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ── Background Gallery ────────────────────── */
.bg-gallery {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-swiper {
  width: 100%;
  height: 100%;
}

.bg-swiper .swiper-wrapper {
  /* Swiper handles this, but ensure full height */
}

.bg-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Ken Burns subtle zoom */
  transform: scale(1.08);
  animation: kenBurns 12s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -1%); }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, calc(var(--overlay-opacity) + 0.1)) 0%,
    rgba(10, 10, 10, var(--overlay-opacity)) 40%,
    rgba(10, 10, 10, calc(var(--overlay-opacity) + 0.1)) 100%
  );
  z-index: 1;
  /* Subtle grain texture via SVG noise */
  backdrop-filter: brightness(0.95);
}

/* Noise grain overlay (pure CSS) */
.bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}


/* ── Decorative Grid Lines ─────────────────── */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: space-evenly;
}

.grid-lines span {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.03) 80%,
    transparent 100%
  );
}


/* ── Main Landing ──────────────────────────── */
.landing {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-xl) var(--container-padding);
}

.landing__container {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}


/* ── Header / Logo ─────────────────────────── */
.landing__header {
  text-align: center;
}

.logo {
  display: inline-block;
}

.logo__img {
  height: 59px;
  width: auto;
}

.logo__img:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .logo__img {
    height: 40px;
  }
}


/* ── Tagline ───────────────────────────────── */
.landing__tagline {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.tagline__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.tagline__line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s var(--ease-out-expo) forwards;
}

.tagline__line--1 {
  color: var(--color-gray-100);
  animation-delay: 0.3s;
}

.tagline__line--2 {
  color: var(--color-pure-white);
  font-style: italic;
  animation-delay: 0.6s;
}

.tagline__sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--color-gray-300);
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.9s forwards;
}

.tagline__sub strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* Divider */
.tagline__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.divider__line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gray-500), transparent);
}

.divider__dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}


/* ── Contact Section ───────────────────────── */
.landing__contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.4s forwards;
}

@media (min-width: 768px) {
  .landing__contact {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.contact__heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}


/* ── Contact Form ──────────────────────────── */
.contact__form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-base);
}

.contact__form-wrap:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Floating label input groups */
.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: var(--space-md) 0 var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-pure-white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-gray-700);
  outline: none;
  transition: border-color var(--transition-base);
  resize: none;
}

.form-input:focus {
  border-bottom-color: var(--color-accent);
}

.form-label {
  position: absolute;
  left: 0;
  top: var(--space-md);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-gray-500);
  pointer-events: none;
  transition: all var(--transition-base);
  transform-origin: left;
}

/* Float label when input has value or focus */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -4px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Animated bottom line */
.form-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: all 0.4s var(--ease-out-expo);
  transform: translateX(-50%);
}

.form-input:focus ~ .form-line {
  width: 100%;
}

/* Textarea specifics */
.form-input--textarea {
  min-height: 80px;
  line-height: 1.5;
}

/* Submit button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn--submit {
  background: var(--color-pure-white);
  color: var(--color-black);
  align-self: flex-start;
}

.btn--submit:hover {
  background: var(--color-accent);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.25);
}

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

.btn__icon {
  display: flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.btn--submit:hover .btn__icon {
  transform: translateX(3px) translateY(-3px);
}

/* Form success state */
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 12px;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeSlideUp 0.5s var(--ease-out-expo);
}

.form-success.is-visible {
  display: flex;
}

/* Error state */
.form-error {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: 12px;
  color: #f87171;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeSlideUp 0.5s var(--ease-out-expo);
}

.form-error.is-visible {
  display: flex;
}

/* Input error state */
.form-input.is-error {
  border-bottom-color: #f87171;
}

.form-input.is-error ~ .form-label {
  color: #f87171;
}

.form-input.is-error ~ .form-line {
  width: 100%;
  background: #f87171;
}


/* ── WhatsApp CTA ──────────────────────────── */
.contact__whatsapp-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.whatsapp__text {
  font-size: 0.95rem;
  color: var(--color-gray-300);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.btn--whatsapp {
  background: var(--color-wa);
  color: var(--color-pure-white);
  padding: var(--space-md) var(--space-2xl);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background: var(--color-wa-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:active {
  transform: translateY(-1px);
}

.btn__icon--wa {
  display: flex;
  align-items: center;
}

.whatsapp__hint {
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Pulsing dot before hint */
.whatsapp__hint::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-wa);
  margin-right: var(--space-xs);
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}


/* ── Footer ────────────────────────────────── */
.landing__footer {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.landing__footer p {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-weight: 400;
  letter-spacing: 0.03em;
}


/* ── Animations ────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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


/* ── Responsive ────────────────────────────── */
@media (max-width: 767px) {

  .landing {
    padding: var(--space-lg) var(--container-padding);
    justify-content: flex-start;
    padding-top: var(--space-3xl);
  }

  .landing__container {
    gap: var(--space-lg);
  }

  .contact__form-wrap,
  .contact__whatsapp-wrap {
    padding: var(--space-lg);
  }

  .btn--whatsapp {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.85rem;
  }
  .logo__img {
    height: 40px !important;
  }
  .landing__header {
    margin-bottom: 20px;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-max: 1200px;
  }
}


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

  .bg-slide {
    animation: none;
    transform: scale(1);
  }
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.form-input:focus-visible {
  outline: none; /* handled by form-line */
}

.grecaptcha-badge {
  opacity: 0 !important;
}
