/* ==========================================================
   Scenic Iceland — 首页英雄轮播与信任条
   ========================================================== */

.hero {
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse 50% 35% at 10% 100%, rgba(199, 233, 176, 0.35), transparent 65%),
    var(--color-paper);
}
.hero-offset { height: 64px; }

.hero-slider {
  position: relative;
  height: 620px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 62, 84, 0.18);
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  transition: transform 8s ease-out;
}
.hero-slide.is-active img { transform: scale(1.06); }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 62, 84, 0.05) 0%,
    rgba(15, 62, 84, 0.15) 50%,
    rgba(15, 62, 84, 0.75) 100%);
}

.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-6) max(3rem, calc((100vw - var(--container)) / 2 + 2rem));
  z-index: 2; color: var(--color-white);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
}
.hero-cat {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.hero-cat.cat-tour     { background: var(--color-grass);         color: var(--color-white); }
.hero-cat.cat-day      { background: var(--color-accent-bright); color: var(--color-white); }
.hero-cat.cat-activity { background: var(--color-sun);           color: #5a3a00; }

.hero-title {
  font-size: clamp(1.6rem, 0.5rem + 2vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 0.75rem; max-width: 640px;
  color: var(--color-white);
}
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

.hero-meta {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.hero-cta {
  flex-shrink: 0;
  padding: 1rem 1.75rem;
  background: var(--gradient-cta);
  color: var(--color-white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.95rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(77, 149, 48, 0.4);
  transition: var(--transition);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(77, 149, 48, 0.55);
  color: var(--color-white);
}

.hero-nav {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex; justify-content: space-between;
  padding: 0 var(--space-4);
  pointer-events: none; z-index: 3;
}
.hero-arrow {
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: none; border-radius: 50%;
  cursor: pointer; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 62, 84, 0.2);
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--color-white); transform: scale(1.08); }
.hero-arrow svg { width: 18px; height: 18px; stroke: var(--color-text); stroke-width: 2.5; fill: none; }

.hero-dots {
  position: absolute; bottom: var(--space-3); right: var(--space-6);
  display: flex; gap: 0.5rem; z-index: 4;
}
.hero-dot {
  height: 4px; width: 20px;
  border: none; border-radius: 2px; padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}
.hero-dot.is-active { width: 40px; background: var(--color-white); }

.hero-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255, 255, 255, 0.15); z-index: 3;
}
.hero-progress-fill {
  height: 100%; width: 0;
  background: var(--color-grass);
  transition: width 0.1s linear;
}

/* ---------- 信任条 ---------- */

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2); margin-top: var(--space-2);
}
.trust-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 1.25rem 0.7rem 0.7rem;
  background: var(--color-sky-soft);
  border-radius: 100px;
  transition: var(--transition);
}
.trust-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(42, 122, 150, 0.15); }
.trust-item.is-tripadvisor { background: linear-gradient(135deg, #b8d8c9 0%, #cfe4d4 100%); }
.trust-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  border-radius: 50%; background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.trust-item.is-tripadvisor .trust-icon { background: #34e0a1; }
.trust-icon svg {
  width: 22px; height: 22px;
  stroke: var(--color-text); stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.trust-item.is-tripadvisor .trust-icon svg { stroke: none; }
.trust-text {
  font-size: 0.92rem; font-weight: 700;
  color: var(--color-text); line-height: 1.25; letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-slider { height: 420px; }
  .hero-content {
    padding: var(--space-3);
    flex-direction: column; align-items: flex-start; gap: var(--space-2);
  }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-dots { right: var(--space-3); }
  .trust { gap: 0.75rem; }
  /* 窄屏下文案竖排、占掉大半个高度，箭头留在垂直中线会压在
     分类标签上。上移到上三分之一处避开内容。 */
  .hero-nav { padding: 0 var(--space-1); top: 32%; }
  .hero-arrow { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
}
