/* ============================================
   UI REBUILD — WARM, WELCOMING, INTERACTIVE
   Overrides legacy styles with a new system.
   ============================================ */

:root {
  --ui-cream: #fff9f2;
  --ui-cream-deep: #ffe9d4;
  --ui-ink: #1a1a1a;
  --ui-ink-soft: #2b2b2b;
  --ui-muted: #5b5b5b;
  --ui-border: rgba(17, 17, 17, 0.08);
  --ui-accent: #ff7a00;
  --ui-accent-soft: #ffb36b;
  --ui-green: #2f6f5e;
  --ui-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --ui-shadow-sm: 0 6px 18px rgba(17, 17, 17, 0.06);
}

body {
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 45%, #ffffff 100%);
  color: var(--ui-ink);
}

/* Remove any section dividers or overlays from legacy effects */
body::before,
.section-gate::before {
  display: none !important;
}

.section-gate {
  background: transparent !important;
  box-shadow: none !important;
}

/* Navigation */
.nav {
  background: rgba(255, 249, 242, 0.92);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

.nav__logo {
  color: var(--ui-ink);
}

.nav__menu {
  gap: var(--space-md);
}

.nav__link {
  font-weight: 600;
  color: var(--ui-ink-soft);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: var(--ui-accent);
  transition: width 200ms ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Ensure ghost button text is visible on light hero */
.hero .btn--ghost {
  color: var(--ui-ink);
  border-color: var(--ui-border);
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.18);
}

.btn--primary {
  background: linear-gradient(135deg, #ff7a00, #ff9a3d);
  color: #ffffff;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 122, 0, 0.28);
}

.btn--ghost {
  background: #ffffff;
  color: var(--ui-ink);
  border: 2px solid var(--ui-border);
  box-shadow: var(--ui-shadow-sm);
}

.btn--ghost:hover {
  background: var(--ui-cream-deep);
  color: var(--ui-ink);
}

/* Hero */
.hero {
  background: radial-gradient(circle at 18% 18%, rgba(160, 210, 255, 0.45), transparent 55%),
              radial-gradient(circle at 70% 12%, rgba(160, 210, 255, 0.28), transparent 45%),
              radial-gradient(circle at 20% 20%, rgba(255, 122, 0, 0.08), transparent 45%),
              radial-gradient(circle at 80% 10%, rgba(47, 111, 94, 0.12), transparent 40%),
              #ffffff;
  min-height: 85vh;
}

.hero::after {
  display: none;
}

.hero--compact {
  min-height: 55vh;
}

.hero__bg {
  opacity: 0.85;
}

.hero__image {
  filter: brightness(0.95) saturate(1.05);
}

.hero__content {
  color: var(--ui-ink);
  text-align: left;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  align-items: start;
}

.hero__content {
  max-width: 520px;
}

.hero__panel {
  display: flex;
  justify-content: center;
  align-self: start;
}

.panel-card {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

.panel-title {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  color: var(--ui-ink);
}

.panel-text {
  color: var(--ui-muted);
  margin-bottom: var(--space-md);
}

.hero__note {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--ui-muted);
}

/* Keep content above fixed mountains */
.hero .container,
.section .container {
  position: relative;
  z-index: 2;
}

/* Split layouts */
.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-2xl);
  align-items: center;
}

.list-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.list-check__item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  color: var(--ui-ink-soft);
}

.list-check__icon {
  color: var(--ui-accent);
  font-weight: 700;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ui-accent);
}

.timeline-item {
  position: relative;
  padding: 0 0 var(--space-xl) var(--space-xl);
}

.timeline-marker {
  position: absolute;
  left: -4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ui-accent);
  border: 3px solid #ffffff;
  box-shadow: var(--ui-shadow-sm);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  text-align: center;
  padding: var(--space-xl);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--ui-accent);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-2xl);
}

.info-card {
  padding: var(--space-xl);
}

.info-block + .info-block {
  margin-top: var(--space-lg);
}

.info-title {
  color: var(--ui-accent);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.info-text {
  color: var(--ui-muted);
}

.hero__title,
.hero__description {
  color: var(--ui-ink);
  text-shadow: none;
}

.hero__tagline {
  color: var(--ui-accent);
}

.hero__scroll-indicator {
  color: var(--ui-ink-soft);
}

.hero::before {
  opacity: 0.35;
}

/* Remove hero bottom fade for seamless flow */
.hero::after {
  display: none;
}

/* Sections */
.section-title {
  color: var(--ui-ink);
}

.section-title--left {
  text-align: left;
}

.section-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ui-accent);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.section {
  padding: var(--space-3xl) 0;
}

.section--soft {
  background: transparent;
}

.section--panel {
  background: transparent;
  border: none;
}

/* Seamless sections (remove banding/borders) */
.trips-filters,
.trips-grid-section,
.featured-trips,
.reviews,
.why,
.cta-section,
.section--soft,
.section--panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Cards */
.why-card,
.trip-card,
.testimonial-card,
.journal-card,
.panel-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.04);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.05);
}

.why-card {
  padding: var(--space-xl);
}

.why-card__icon {
  color: var(--ui-accent);
  margin-bottom: var(--space-sm);
}

.why-card__title {
  color: var(--ui-ink);
}

.why-card__text {
  color: var(--ui-muted);
}

.trip-card__content,
.journal-card__content {
  padding: var(--space-lg);
}

.trip-card__title,
.journal-card__title {
  color: var(--ui-ink);
}

.trip-card__description,
.journal-card__excerpt {
  color: var(--ui-muted);
}

.testimonial-card {
  padding: var(--space-xl);
  background: linear-gradient(180deg, #ffffff, #fff9f2);
}

/* Interactive chips */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: var(--space-sm);
  width: 100%;
}

.choice-chip {
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: var(--ui-ink);
  background: #ffffff;
  transition: all 200ms ease;
  text-align: center;
  width: 100%;
}

.choice-chip:hover {
  transform: translateY(-2px);
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.stat-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.04);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
  text-align: center;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ui-accent);
}

.stat-card__label {
  color: var(--ui-muted);
  font-weight: 600;
}

/* Filters */
.trips-filters {
  background: #ffffff;
}

.filter-select {
  background: #ffffff;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
}

/* Forms */
.contact-form,
.form-card {
  background: #ffffff;
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--ui-shadow);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fffdf9;
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-md);
}

/* Accordion */
.accordion {
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--ui-shadow-sm);
}

.accordion__trigger {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--ui-ink);
}

.accordion__content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--ui-muted);
}

.accordion-list {
  display: grid;
  gap: var(--space-md);
}

.accordion__trigger {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  cursor: pointer;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #fff2e4, #f5fff9);
}

.cta-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow);
  padding: var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  min-height: 280px;
}

/* Footer */
.footer {
  background: #1b1b1b;
  color: #f4f4f4;
}

.cta-card__title,
.cta-card__text {
  color: var(--ui-ink);
}

.cta-card__buttons {
  margin-top: var(--space-sm);
}

/* Marquee text color */
.marquee__track span {
  color: #111111;
}

/* Remove trekking guide lines for a clean canvas */
.trek-progress-bar,
.journey-path,
.horizon-line,
.valley-shadow {
  display: none;
}

/* Sun glow over mountains */
.hero-sun {
  position: absolute;
  top: 12%;
  right: 12%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 162, 66, 0.8) 0%, rgba(255, 122, 0, 0.4) 45%, rgba(255, 122, 0, 0) 70%);
  box-shadow: 0 0 120px rgba(255, 122, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

/* Soft clouds */
.hero-clouds {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 0;
  pointer-events: none;
}

.hero-clouds::before,
.hero-clouds::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 80px;
  background: radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.5) 55%, rgba(255, 255, 255, 0) 75%);
  filter: blur(1px);
  border-radius: 999px;
  opacity: 0.8;
}

.hero-clouds::before {
  left: 6%;
  top: 16px;
  box-shadow:
    120px 20px 0 -10px rgba(255, 255, 255, 0.7),
    260px -10px 0 -20px rgba(255, 255, 255, 0.6);
}

.hero-clouds::after {
  right: 28%;
  top: 72px;
  box-shadow:
    -140px 10px 0 -12px rgba(255, 255, 255, 0.65),
    -280px -8px 0 -22px rgba(255, 255, 255, 0.55);
}

.footer__link,
.footer__tagline,
.footer__address {
  color: #d8d8d8;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__content {
    text-align: center;
  }

  .nav__menu {
    background: #fffaf5;
    border: 1px solid var(--ui-border);
  }

  .hero__panel {
    justify-content: center;
  }

  .panel-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 96px;
    min-height: 82vh;
  }

  .hero__grid {
    gap: var(--space-md);
  }

  .hero__title {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .hero__description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .panel-card {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.68);
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .panel-title {
    font-size: 1.05rem;
  }

  .panel-text {
    font-size: 0.85rem;
  }

  .choice-chip {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }

  .hero__note {
    font-size: 0.75rem;
  }

  .hero__panel {
    position: relative;
    margin-bottom: var(--space-md);
  }

  .hero__panel::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -6px;
    right: -6px;
    height: 160px;
    background:
      radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0) 70%),
      radial-gradient(circle at 75% 55%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 75%);
    z-index: -1;
    pointer-events: none;
  }

  .hero__panel::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -18px;
    right: -18px;
    height: 200px;
    background:
      radial-gradient(circle at 30% 30%, rgba(170, 215, 255, 0.45) 0%, rgba(170, 215, 255, 0.2) 45%, rgba(170, 215, 255, 0) 75%),
      radial-gradient(circle at 70% 45%, rgba(170, 215, 255, 0.35) 0%, rgba(170, 215, 255, 0.15) 50%, rgba(170, 215, 255, 0) 80%);
    z-index: -2;
    pointer-events: none;
  }
}
