/* =============================================================================
   trekking.css — Ridiviaanh
   Page-specific styles for trekking.html only.
   global.css (in css/ folder) handles nav, footer, CSS variables.

   READABILITY RULES applied throughout:
   - Body/paragraph text: Jost 400, color #1C2B3A (near-black, readable)
   - Descriptive text: minimum 14px, line-height 1.8
   - Decorative Cormorant Garamond: headings and names ONLY
   - Small uppercase labels: navigation/label use only, never long text
   - Font-weight 200/300: only for labels, never body copy

   Contents:
   1. Hero
   3. Trek list + filter
   4. Trek modal (with notify-me)
   5. Newsletter popup
   6. Responsive
============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   1. HERO
───────────────────────────────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  overflow-x: hidden;
  padding-top: 80px;
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11,23,47,0.95) 0%, rgba(11,23,47,0.2) 60%, transparent 100%),
    url('/public/img/trek/trek_banner.webp') center/cover no-repeat;
  animation: hZoom 24s ease-in-out infinite alternate;
}

@keyframes hZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.07); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  width: 100%;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1.4s 0.2s cubic-bezier(0.23,1,0.32,1) forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* Hero h1 stays decorative — it's a display heading not body text */
.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 6.5vw, 90px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.06;
  opacity: 0;
  animation: fadeUp 1.4s 0.4s cubic-bezier(0.23,1,0.32,1) forwards;
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold-pale);
  display: block;
}

.hero-rule {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
  opacity: 0;
  animation: fadeUp 1.4s 0.6s cubic-bezier(0.23,1,0.32,1) forwards;
}

/* Hero sub — on dark background so lighter is fine */
.hero-sub {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(247,243,236,0.75);
  font-weight: 300;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 1.4s 0.75s cubic-bezier(0.23,1,0.32,1) forwards;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1.4s 0.9s cubic-bezier(0.23,1,0.32,1) forwards;
}

.hero-stat {
  border-left: 1px solid rgba(201,168,76,0.3);
  padding: 10px 0 10px 20px;
}

.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,243,236,0.55);
  margin-top: 4px;
  font-weight: 400;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. TREK LIST + FILTER
───────────────────────────────────────────────────────────────────────────── */
.treks-section {
  background: var(--warm-white);
  padding: 100px 64px;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.filter-btn {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(27,58,107,0.18);
  color: #3A4F63;
  padding: 10px 22px;
  background: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--royal);
  color: var(--royal);
  background: rgba(27,58,107,0.05);
}

.trek-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trek-row {
  display: grid;
  grid-template-columns: 220px 1fr 120px 130px 150px 140px;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(27,58,107,0.08);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.trek-row:hover {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 4px 24px rgba(27,58,107,0.08);
}

.trek-thumb {
  width: 220px;
  height: 130px;
  object-fit: cover;
  object-position: center 35%;
}

.trek-name-cell {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(27,58,107,0.06);
}

/* Trek name — display element, Cormorant correct */
.trek-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--royal-deep);
  margin-bottom: 5px;
  line-height: 1.3;
}

/* Route text — small label, readable weight */
.trek-route-text {
  font-size: 14px;
  color: #5C7A96;
  font-weight: 400;
  line-height: 1.5;
}

.trek-cell {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(27,58,107,0.06);
}

/* Cell label — pure navigation label, small is ok */
.trek-cell-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 6px;
  font-weight: 500;
}

/* Cell value — actual data, must read clearly */
.trek-cell-value {
  font-size: 16px;
  color: #1C2B3A;
  font-weight: 500;
}

.diff-easy     { color: #1E8449; }
.diff-moderate { color: #B7800A; }
.diff-hard     { color: #A93226; }

.trek-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.btn-trek {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--royal);
  color: var(--royal);
  padding: 11px 20px;
  background: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-trek:hover { background: var(--royal); color: var(--cream); }


/* ─────────────────────────────────────────────────────────────────────────────
   4. TREK MODAL
───────────────────────────────────────────────────────────────────────────── */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(11,23,47,0.78);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.modal-bg.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #fff;
  max-width: 540px;
  width: 92%;
  padding: 48px 44px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 40px 100px rgba(11,23,47,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-bg.open .modal-box { transform: translateY(0); }

.modal-x {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border: 1px solid rgba(91,110,130,0.25);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 13px;
  transition: all 0.3s;
}

.modal-x:hover { border-color: var(--royal); color: var(--royal); }

/* Modal label — navigation context, small ok */
.m-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 500;
  margin-bottom: 10px;
}

.m-rule { width: 28px; height: 1px; background: var(--gold); margin-bottom: 18px; }

/* Modal title — heading, Cormorant correct */
.m-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--royal-deep);
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Route — readable data */
.m-route {
  font-size: 14px;
  color: #5C7A96;
  font-weight: 400;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Description — primary reading content in modal */
.m-desc {
  font-size: 16px;
  line-height: 1.9;
  color: #1C2B3A;
  font-weight: 400;
}

/* CTA area inside modal */
.m-cta-area { margin-top: 24px; }

/* Notify-me inside modal */
.m-notify-wrap {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.03);
}

.m-notify-status {
  font-size: 13px;
  color: #A93226;
  font-weight: 500;
  margin-bottom: 8px;
}

.m-notify-body {
  font-size: 15px;
  color: #1C2B3A;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 16px;
}

.m-notify-form { display: flex; }

.m-notify-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid rgba(27,58,107,0.2);
  border-right: none;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1C2B3A;
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.m-notify-input:focus { border-color: var(--royal); }
.m-notify-input::placeholder { color: #8FA3BF; }

.m-notify-btn {
  background: var(--royal);
  color: var(--cream);
  border: none;
  padding: 11px 20px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.m-notify-btn:hover { background: var(--royal-deep); }

.m-notify-done {
  display: none;
  font-size: 13px;
  color: #1E8449;
  font-weight: 500;
  padding-top: 10px;
  line-height: 1.7;
}

.m-notify-done.show { display: block; }


/* ─────────────────────────────────────────────────────────────────────────────
   5. NEWSLETTER POPUP
───────────────────────────────────────────────────────────────────────────── */
.nl-bg {
  position: fixed;
  inset: 0;
  background: rgba(11,23,47,0.72);
  backdrop-filter: blur(5px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.nl-bg.open { opacity: 1; pointer-events: all; }

.nl-box {
  background: var(--royal-deep);
  max-width: 560px;
  width: 92%;
  padding: 56px 52px;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
  border: 1px solid rgba(201,168,76,0.12);
}

.nl-bg.open .nl-box { transform: translateY(0) scale(1); }

.nl-x {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border: 1px solid rgba(247,243,236,0.15);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,243,236,0.45);
  font-size: 12px;
  transition: all 0.3s;
}

.nl-x:hover { border-color: var(--gold); color: var(--gold); }

.nl-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 400;
}

/* Newsletter title — display heading, Cormorant correct */
.nl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 18px;
}

.nl-title em { font-style: italic; color: var(--gold-pale); }

/* Newsletter body — on dark background, lighter color ok but readable weight */
.nl-body {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(247,243,236,0.72);
  font-weight: 400;
  margin-bottom: 28px;
}

.nl-body strong { color: var(--gold-pale); font-weight: 500; }

.nl-form { display: flex; }

.nl-input {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(247,243,236,0.18);
  border-right: none;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s;
}

.nl-input::placeholder { color: rgba(247,243,236,0.3); }
.nl-input:focus { border-color: rgba(201,168,76,0.45); }

.nl-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 13px 24px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.nl-btn:hover { background: var(--gold-pale); }

.nl-fine {
  font-size: 12px;
  color: rgba(247,243,236,0.3);
  margin-top: 14px;
  font-weight: 400;
  font-style: italic;
}

.nl-done { display: none; text-align: center; padding: 24px 0; }
.nl-done.show { display: block; }
.nl-done-icon { font-size: 32px; color: var(--gold); margin-bottom: 14px; }

/* Confirmation text — readable */
.nl-done-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {

  /* Hero — tablet */
  .hero {
    height: 70vh;
    min-height: 580px;
    padding-top: 60px;
    align-items: center;
  }
  
  .hero-h1 {
    font-size: clamp(28px, 5vw, 56px);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-sub {
    font-size: 15px;
    font-weight: 400;
    max-width: 100%;
  }

  .hero-bg {
    background:
      linear-gradient(to top, rgba(11,23,47,0.95) 0%, rgba(11,23,47,0.2) 60%, transparent 100%),
      url('/img/trek/trek_banner.webp') center 30%/cover no-repeat;
  }

  .hero-content { grid-template-columns: 1fr; gap: 32px; padding: 0 32px 60px; }
  .hero-stats   { flex-direction: row; flex-wrap: wrap; gap: 20px; }


  /* Trek list — tablet */
  .treks-section { padding: 80px 32px; }

  .trek-row {
    grid-template-columns: 180px 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .trek-thumb {
    width: 180px;
    height: 100%;
    grid-row: 1 / 3;
    object-fit: cover;
    object-position: center 35%;
  }

  .trek-name-cell {
    grid-column: 2 / 4;
    border-right: none;
    border-bottom: 1px solid rgba(27,58,107,0.06);
    padding: 16px 20px;
  }

  .trek-cell {
    border-right: 1px solid rgba(27,58,107,0.06);
    padding: 14px 16px;
  }

  .trek-cta {
    grid-column: 2 / 4;
    justify-content: flex-start;
    padding: 14px 20px;
    border-top: 1px solid rgba(27,58,107,0.06);
  }

  .btn-trek { width: 100%; text-align: center; }
}

@media (max-width: 640px) {

  /* Hero — mobile */
  .hero {
  height: auto; 
  min-height: 100vh;    
  min-height: 100svh;  
  padding-top: 68px;     
  padding-bottom: 40px;
  align-items: flex-start;
  }
  
  .hero-h1 {
  font-size: clamp(26px, 8vw, 48px);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
 }
  .trek-name,
  .trek-route-text,
  .s-title {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-bg {
      background:
      linear-gradient(
        to top,
        rgba(11,23,47,0.95) 0%,
        rgba(11,23,47,0.35) 55%,
        transparent 100%
      ),
      url('/public/img/trek/trek_bannerM.webp')
      center 30% / cover no-repeat;

    animation: hZoom 24s ease-in-out infinite alternate;
  }

  .hero-content {
  padding: 0 20px 48px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100vw;
}
  .hero-stats { flex-direction: column; gap: 12px; }


  /* Trek list — mobile */
  .treks-section { padding: 60px 20px; }

  .trek-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .trek-thumb {
    width: 100%;
    height: 180px;
    grid-row: auto;
    object-fit: cover;
    object-position: center center;
  }

  .trek-name-cell {
    grid-column: 1;
    border-bottom: 1px solid rgba(27,58,107,0.06);
    padding: 16px 18px;
  }

  .trek-cell {
    border-right: none;
    border-bottom: 1px solid rgba(27,58,107,0.06);
    padding: 12px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .trek-cell-label { margin-bottom: 0; margin-right: 8px; }

  .trek-cta {
    grid-column: 1;
    padding: 16px 18px;
    border-top: none;
  }

  /* Modal + Newsletter — mobile */
  .modal-box  { padding: 32px 22px; }
  .nl-box     { padding: 40px 24px; }
  .nl-form    { flex-direction: column; }
  .nl-input   { border-right: 1px solid rgba(247,243,236,0.18); border-bottom: none; }
  .m-notify-form  { flex-direction: column; }
  .m-notify-input { border-right: 1px solid rgba(27,58,107,0.2); border-bottom: none; }
}