/**
 * The Recollection 2026 - Landing Page Styles
 * Fiel ao design do Figma
 *
 * @package Daslu_Child
 */

/* Google Fonts - EB Garamond */
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap");

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  --tr-color-black: #000000;
  --tr-color-white: #ffffff;
  --tr-color-text-light: rgba(255, 255, 255, 0.9);
  --tr-color-text-muted: rgba(255, 255, 255, 0.7);
  --tr-color-input-border: #cccccc;
  --tr-color-input-text: #333333;

  --tr-font-serif: "EB Garamond", "Times New Roman", Georgia, serif;
  --tr-font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.the-recollection-page {
  font-family: var(--tr-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tr-color-white);
  background-color: var(--tr-color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */

.tr-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 1.5s ease-out forwards;
}

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

/* ==========================================================================
   Hero Section (Imagem)
   ========================================================================== */

.tr-hero {
  position: relative;
  height: 60vh;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
}

.tr-hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tr-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Gradiente para proteger legibilidade do texto */
.tr-hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

.tr-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

/* Screen Reader Only - SEO text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header/Title */
.tr-header__title {
  margin-bottom: 16px;
}

.tr-header__title-svg {
  width: 358.99px;
  height: 28.26px;
  max-width: 100%;
}

.tr-header__subtitle {
  margin-bottom: 12px;
}

.tr-header__subtitle-svg {
  width: 309px;
  height: 92px;
  max-width: 100%;
}

.tr-header__arrow {
  color: var(--tr-color-text-muted);
  animation: bounce 2s infinite;
}

.tr-header__arrow svg {
  width: 20px;
  height: 12px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* ==========================================================================
   Form Section (Base Preta)
   ========================================================================== */

.tr-form-section {
  flex: 1;
  background-color: var(--tr-color-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 40px;
  position: relative;
}

/* ==========================================================================
   Form Container
   ========================================================================== */

.tr-form-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--tr-color-white);
  padding: 40px 50px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.tr-form {
  display: flex;
  flex-direction: column;
}

.tr-form__group {
  display: flex;
  align-items: baseline;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tr-color-input-border);
  padding-bottom: 8px;
}

.tr-form__label {
  flex-shrink: 0;
  min-width: 80px;
  font-family: var(--tr-font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  font-style: normal;
  color: var(--tr-color-input-text);
  margin-right: 8px;
  white-space: nowrap;
}

.tr-form__input {
  flex: 1;
  width: 100%;
  padding: 0;
  font-family: var(--tr-font-sans);
  font-size: 0.875rem;
  color: var(--tr-color-input-text);
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

.tr-form__input:focus {
  box-shadow: none !important;
}

.tr-form__group:focus-within {
  border-bottom-color: var(--tr-color-black);
}

.tr-form__input::placeholder {
  color: transparent;
}

.tr-form__input.is-invalid {
  border-bottom-color: #c00;
}

/* Required Text */
.tr-form__required-text {
  font-family: var(--tr-font-serif);
  font-size: 0.875rem;
  font-style: normal;
  color: #666;
  margin-bottom: 24px;
}

/* Submit Button */
.tr-form__submit {
  width: 100%;
  padding: 16px;
  font-family: var(--tr-font-serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tr-color-white);
  background-color: var(--tr-color-black);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tr-form__submit:hover,
.tr-form__submit:focus,
.tr-form__submit:focus-visible,
.tr-form__submit:focus-within,
.tr-form__submit:active {
  opacity: 0.8 !important;
  background-color: var(--tr-color-black) !important;
  color: var(--tr-color-white) !important;
  outline: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.tr-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Message */
.tr-form__message {
  margin-top: 16px;
  padding: 12px;
  font-size: 0.875rem;
  text-align: center;
}

.tr-form__message--success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.tr-form__message--error {
  background-color: #ffebee;
  color: #c62828;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tr-footer {
  width: 100%;
  max-width: 800px;
  margin-top: auto;
  padding-top: 40px;
  text-align: left;
}

.tr-footer__logo {
  margin-bottom: 20px;
  text-align: center;
}

.tr-footer__logo-svg {
  width: 193px;
  height: 64px;
}

.tr-footer__legal {
  font-size: 0.625rem;
  line-height: 1.6;
  color: var(--tr-color-text-muted);
  text-align: left;
}

/* ==========================================================================
   Mobile Styles
   ========================================================================== */

@media (max-width: 768px) {
  .tr-hero {
    height: 50vh;
    min-height: 400px;
    padding-bottom: 44px;
  }

  .tr-hero__image {
    object-position: center -91px;
  }

  .tr-header__title-svg {
    width: 149.01px;
    height: 11.73px;
  }

  .tr-header__subtitle-svg {
    width: 128.3px;
    height: 38.2px;
  }

  .tr-form-container {
    padding: 30px 25px;
    margin-top: -30px;
  }

  .tr-form__group {
    margin-bottom: 20px;
  }

  .tr-form__label {
    font-size: 1rem;
  }

  .tr-form__submit {
    padding: 14px;
  }

  .tr-footer {
    padding: 30px 20px 20px;
  }

  .tr-footer__logo-svg {
    width: 95px;
    height: 32px;
  }

  .tr-footer__legal {
    font-size: 0.6rem;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Hide external content
   ========================================================================== */

.the-recollection-page .elementor,
.the-recollection-page [data-elementor-type] {
  display: none !important;
}
