/* ==========================================================================
   TRISOLARIS LUXURY EYEWEAR - SPLASH PAGE STYLES
   Desenvolvido por Nexo - www.agnexo.com.br
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  --color-bg: #050505;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-muted: rgba(255, 255, 255, 0.45);

  --glass-bg: rgba(12, 12, 14, 0.45);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-hover: rgba(255, 255, 255, 0.35);
  --glass-blur: blur(20px);

  --accent-glow: rgba(255, 255, 255, 0.08);

  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --slide-duration: 7000ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Background Slideshow (Ken Burns & Crossfade)
   -------------------------------------------------------------------------- */
.slideshow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #030303;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s var(--ease-in-out), transform 8s var(--ease-luxury);
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 40%,
      rgba(5, 5, 5, 0.15) 0%,
      rgba(5, 5, 5, 0.65) 70%,
      rgba(5, 5, 5, 0.92) 100%),
    linear-gradient(to bottom,
      rgba(5, 5, 5, 0.7) 0%,
      rgba(5, 5, 5, 0.2) 30%,
      rgba(5, 5, 5, 0.3) 60%,
      rgba(5, 5, 5, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Page Layout & Wrapper
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3.5rem;
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 1.8rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Header / Logo
   -------------------------------------------------------------------------- */
.header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 1rem;
}

.brand-logo {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.5s var(--ease-luxury), opacity 0.5s var(--ease-luxury);
}

.brand-logo:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 32px;
  }
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.content-container {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Hero Typography
   -------------------------------------------------------------------------- */
.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kicker-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.headline {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.headline span {
  display: block;
}

@media (max-width: 768px) {
  .headline {
    font-size: 2.35rem;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 1.95rem;
  }

  .kicker-tag {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
}

/* --------------------------------------------------------------------------
   Countdown Timer (Luxury Architectural Module)
   -------------------------------------------------------------------------- */
.countdown-section {
  display: flex;
  align-items: center;
}

.countdown-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.65rem;
  width: fit-content;
  padding: 0.85rem 1.25rem 0.95rem;
  background: rgba(12, 12, 15, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury), box-shadow 0.4s ease;
}

.countdown-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.countdown-subtle-caption {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  text-align: center;
  width: 100%;
}

.timer-columns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
}

.timer-digit {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s var(--ease-luxury), opacity 0.3s ease;
}

.timer-label {
  font-family: var(--font-sans);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.col-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.15rem;
}

@media (max-width: 480px) {
  .countdown-card {
    padding: 0.7rem 0.9rem 0.8rem;
    gap: 0.5rem;
  }

  .timer-columns {
    gap: 0.4rem;
  }

  .timer-col {
    min-width: 38px;
  }

  .timer-digit {
    font-size: 1.55rem;
  }

  .timer-label {
    font-size: 0.48rem;
  }

  .col-divider {
    height: 22px;
  }
}

/* --------------------------------------------------------------------------
   VIP Newsletter Form (Minimalist Luxury Button)
   -------------------------------------------------------------------------- */
.newsletter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 480px;
  width: 100%;
}

.newsletter-form {
  position: relative;
  width: 100%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.input-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-text-primary);
  letter-spacing: 0.03em;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  border: none;
  border-left: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: background-color 0.35s var(--ease-luxury), color 0.35s var(--ease-luxury), border-color 0.35s ease;
}

.submit-btn:hover {
  background: #FFFFFF;
  color: #050505;
  border-left-color: #FFFFFF;
}

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

.submit-btn:active {
  opacity: 0.9;
}

.btn-icon {
  display: flex;
  align-items: center;
  transition: transform 0.35s var(--ease-luxury);
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.submit-btn:hover .btn-spinner {
  border-color: rgba(0, 0, 0, 0.2);
  border-top-color: #000;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

.form-feedback {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  min-height: 1.2rem;
  margin-top: 0.4rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.form-feedback.active {
  display: block;
}

.form-feedback.success {
  color: #A3E635;
}

.form-feedback.error {
  color: #F87171;
}

.privacy-note {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  padding-left: 0.25rem;
}

@media (max-width: 600px) {

  /* Header centralizado */
  .header {
    justify-content: center;
  }

  /* Conteúdo principal centralizado */
  .main-content {
    align-items: center;
  }

  .content-container {
    align-items: center;
    text-align: center;
  }

  /* Textos hero */
  .hero-text-block {
    align-items: center;
  }

  .headline {
    align-items: center;
  }

  /* Contador: tamanho compacto + timer-columns centralizado */
  .countdown-section {
    justify-content: center;
    width: 100%;
  }

  .countdown-card {
    width: 100%;
    max-width: 300px;
    align-items: center;
  }

  .timer-columns {
    justify-content: center;
  }

  /* Formulário: mesma largura do countdown-card */
  .newsletter-section {
    align-items: center;
    width: 100%;
  }

  .newsletter-form {
    width: 100%;
    max-width: 300px;
  }

  .input-wrapper {
    flex-direction: column;
    padding: 6px;
    gap: 8px;
    width: 100%;
  }

  .newsletter-input {
    text-align: center;
  }

  .submit-btn {
    width: 100%;
    padding: 0.95rem;
    border-left: none;
    border-top: none;
  }

  /* Ocultar slider-indicator no mobile */
  .slider-indicator {
    display: none;
  }

  /* Ocultar footer-controls inteiro no mobile */
  .footer-controls {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Footer Slider Controls (01 —— 02)
   -------------------------------------------------------------------------- */
.footer-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
}

.slider-indicator {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.slide-num {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.4s ease, transform 0.3s var(--ease-luxury);
}

.slide-num:hover {
  color: var(--color-text-secondary);
}

.slide-num.active {
  color: var(--color-text-primary);
  font-weight: 600;
  transform: scale(1.05);
}

.progress-bar-track {
  width: 72px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  border-radius: 2px;
}

.progress-bar-fill.animating {
  width: 100%;
  transition: width var(--slide-duration) linear;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text-primary);
  padding: 1rem 1.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury);
  pointer-events: auto;
  max-width: 360px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   Motion Choreography (/web-lou reveal on page load)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.header {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury);
}

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

.footer-controls {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury);
}

.footer-controls.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {

  .footer-controls,
  .footer-controls.revealed {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .slide {
    transition: opacity 0.5s ease !important;
    transform: none !important;
  }
}