/* ============================================================
   EALDM Homepage CSS — Layout Editorial Magazine
   Arquivo: redesign-2026/homepage.css

   Contém APENAS componentes da homepage.
   Dependências: design-tokens.css + base.css
   ============================================================ */

/* ═══════════ HERO ═══════════ */
.ealdm-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
}

.ealdm-hero__accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--ealdm-coral) 0%,
    var(--ealdm-golden) 30%,
    var(--ealdm-horizon) 60%,
    var(--ealdm-jungle) 100%);
  z-index: 5;
}

.ealdm-hero__content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.ealdm-hero__eyebrow {
  font-family: var(--ealdm-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ealdm-coral);
  margin-bottom: 1.25rem;
}

.ealdm-hero__title {
  font-family: var(--ealdm-font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.06;
  color: var(--ealdm-charcoal);
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
}

.ealdm-hero__title .highlight {
  color: var(--ealdm-horizon);
  position: relative;
}

.ealdm-hero__title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 6px;
  background: var(--ealdm-golden);
  opacity: 0.3;
  border-radius: 3px;
}

.ealdm-hero__subtitle {
  font-family: var(--ealdm-font-editorial);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--ealdm-text-mid);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* Search */
.ealdm-hero__search {
  max-width: 520px;
  margin: 0 auto 2rem;
  display: flex;
  background: #fff;
  border: 2px solid var(--ealdm-border);
  border-radius: var(--ealdm-radius-full);
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.ealdm-hero__search:focus-within {
  border-color: var(--ealdm-horizon);
  box-shadow: 0 4px 20px rgba(11,107,173,0.12);
}

.ealdm-hero__search input {
  flex: 1;
  padding: 14px 24px;
  border: none;
  background: transparent;
  font-family: var(--ealdm-font-body);
  font-size: 15px;
  color: var(--ealdm-text);
  outline: none;
}

.ealdm-hero__search input::placeholder { color: var(--ealdm-text-soft); }

.ealdm-hero__search button {
  padding: 14px 28px;
  background: var(--ealdm-horizon);
  color: #fff;
  border: none;
  font-family: var(--ealdm-font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0 var(--ealdm-radius-full) var(--ealdm-radius-full) 0;
  transition: background 150ms;
  white-space: nowrap;
}

.ealdm-hero__search button:hover { background: var(--ealdm-horizon-deep); }
.ealdm-hero__search button:active {
  transform: scale(0.96);
  transition: transform 80ms;
}

/* Stats */
.ealdm-hero__stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.ealdm-hero__stat-value {
  font-family: var(--ealdm-font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--ealdm-charcoal);
  line-height: 1.2;
}

.ealdm-hero__stat-label {
  font-family: var(--ealdm-font-display);
  font-weight: 400;
  font-size: 11px;
  color: var(--ealdm-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════ METHODOLOGY STRIP ═══════════ */
.ealdm-metodo {
  background: var(--ealdm-charcoal);
  padding: 2rem;
}

.ealdm-metodo__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ealdm-metodo__item {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.ealdm-metodo__item:hover {
  transform: scale(1.03);
}

.ealdm-metodo__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.ealdm-metodo__num {
  font-family: var(--ealdm-font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.2;
}

.ealdm-metodo__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

.ealdm-metodo__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.08);
}

/* ═══════════ SECTION HEADERS ═══════════ */
.ealdm-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.ealdm-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.ealdm-section__tag {
  font-family: var(--ealdm-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ealdm-coral);
  background: var(--ealdm-coral-light);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.ealdm-section__title {
  font-family: var(--ealdm-font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--ealdm-charcoal);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.ealdm-section__link {
  font-family: var(--ealdm-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ealdm-coral) !important;
  text-decoration: none;
  transition: gap 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ealdm-section__link:hover {
  gap: 6px;
}

/* ═══════════ DESTINOS GRID ═══════════ */
.ealdm-destinos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.ealdm-destino {
  position: relative;
  border-radius: var(--ealdm-radius-lg);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.ealdm-destino--featured { grid-row: span 2; min-height: 380px; }
.ealdm-destino:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(28,28,30,0.12); }

.ealdm-destino__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.ealdm-destino:hover .ealdm-destino__bg { transform: scale(1.03); }

.ealdm-destino__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
  background: linear-gradient(transparent, rgba(28,28,30,0.56));
}

.ealdm-destino__continent {
  font-family: var(--ealdm-font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ealdm-destino__name {
  font-family: var(--ealdm-font-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin: 4px 0 8px;
  letter-spacing: -0.3px;
}

.ealdm-destino--featured .ealdm-destino__name { font-size: 30px; }

.ealdm-destino__stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

.ealdm-destino__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--ealdm-font-display);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 3;
}

.ealdm-destino:hover .ealdm-destino__badge {
  animation: ealdmBadgePulse 0.5s ease;
}

@keyframes ealdmBadgePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Ancoragem — Preço riscado */
.ealdm-destino__price-anchor {
  font-family: var(--ealdm-font-display);
  font-weight: 400;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  display: block;
  line-height: 1;
  margin-bottom: 1px;
}

/* Escassez — Micro-labels */
.ealdm-destino__scarcity {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--ealdm-font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(232,96,58,0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 3;
  animation: ealdmScarcityPulse 3s ease-in-out infinite;
}

@keyframes ealdmScarcityPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* Filters */
.ealdm-filter {
  transition: all 0.2s ease;
}
.ealdm-filter:active {
  transform: scale(0.95);
}

/* ═══════════ MANIFESTO (homepage section) ═══════════ */
.ealdm-manifesto {
  background: var(--ealdm-sand-dark);
  padding: 4rem 2rem;
  text-align: center;
}

.ealdm-manifesto__inner { max-width: 700px; margin: 0 auto; }

.ealdm-manifesto__mark {
  font-family: var(--ealdm-font-editorial);
  font-size: 72px;
  color: var(--ealdm-coral);
  line-height: 0;
  position: relative;
  top: 24px;
  opacity: 0.4;
}

.ealdm-manifesto__quote {
  font-family: var(--ealdm-font-editorial);
  font-weight: 300;
  font-size: clamp(22px, 3.5vw, 30px);
  line-height: 1.5;
  color: var(--ealdm-charcoal);
}

.ealdm-manifesto__quote em { color: var(--ealdm-coral); }

.ealdm-manifesto__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
  font-size: 13px;
  color: var(--ealdm-text-soft);
}

.ealdm-manifesto__line {
  width: 32px;
  height: 1px;
  background: var(--ealdm-text-soft);
}

/* ═══════════ COMO FUNCIONA ═══════════ */
.ealdm-cf-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 0.5rem;
}

.ealdm-cf-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ealdm-cf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,28,30,0.08);
}

.ealdm-cf-card__badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ealdm-cf-card__title {
  font-family: var(--ealdm-font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 0.75rem;
}

.ealdm-cf-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ealdm-text-mid);
  font-weight: 300;
}

.ealdm-cf-card__tag {
  margin-top: 1rem;
  font-family: var(--ealdm-font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ealdm-text-soft);
  letter-spacing: 0.5px;
}

/* ═══════════ PROVA SOCIAL ═══════════ */
.ealdm-social-proof {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.ealdm-social-proof__header {
  text-align: center;
  margin-bottom: 2rem;
}

.ealdm-social-proof__counter {
  font-family: var(--ealdm-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ealdm-charcoal);
  margin-bottom: 0.25rem;
}

.ealdm-social-proof__counter span {
  color: var(--ealdm-horizon);
}

.ealdm-social-proof__subtitle {
  font-family: var(--ealdm-font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--ealdm-text-soft);
}

.ealdm-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.ealdm-testimonial {
  background: #fff;
  border-radius: var(--ealdm-radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--ealdm-border);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ealdm-testimonial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,28,30,0.08);
}

.ealdm-testimonial__stars {
  color: var(--ealdm-golden);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.ealdm-testimonial__text {
  font-family: var(--ealdm-font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ealdm-text-mid);
  margin-bottom: 1rem;
}

.ealdm-testimonial__author {
  font-family: var(--ealdm-font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--ealdm-charcoal);
}

.ealdm-testimonial__meta {
  font-family: var(--ealdm-font-body);
  font-size: 11px;
  color: var(--ealdm-text-soft);
  margin-top: 2px;
}

/* ═══════════ TRUST BADGES ═══════════ */
.ealdm-trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.ealdm-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ealdm-font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--ealdm-text-soft);
  background: rgba(28,28,30,0.04);
  padding: 6px 12px;
  border-radius: var(--ealdm-radius-full);
  border: 1px solid var(--ealdm-border);
}

.ealdm-trust-badge__icon {
  font-size: 13px;
}

/* ═══════════ RESPONSIVE — HOMEPAGE ═══════════ */
@media (max-width: 768px) {
  .ealdm-hero { min-height: 85vh; padding: 3.5rem 1.5rem 3rem; }
  .ealdm-hero__title { font-size: 32px; letter-spacing: -0.5px; }
  .ealdm-hero__stats { gap: 1.5rem; }
  .ealdm-hero__stat-value { font-size: 20px; }
  .ealdm-metodo__divider { display: none; }
  .ealdm-metodo__inner { gap: 1.5rem; }
  .ealdm-destinos-grid { grid-template-columns: 1fr 1fr; }
  .ealdm-destino--featured { grid-row: auto; min-height: 220px; }
  .ealdm-cf-cards { grid-template-columns: 1fr; }
  .ealdm-testimonials { grid-template-columns: 1fr; }
  .ealdm-trust-badges { gap: 0.75rem; }
  .ealdm-trust-badge { font-size: 10px; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .ealdm-hero__search {
    flex-direction: column;
    border-radius: var(--ealdm-radius-md);
  }
  .ealdm-hero__search input {
    border-radius: var(--ealdm-radius-md) var(--ealdm-radius-md) 0 0;
    text-align: center;
  }
  .ealdm-hero__search button {
    border-radius: 0 0 var(--ealdm-radius-md) var(--ealdm-radius-md);
    padding: 14px;
  }
  .ealdm-destinos-grid { grid-template-columns: 1fr; }
  .ealdm-hero__stats { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
}
