/* ============================================================
   YourWayTrek — עלון מסלולים וטרקים (משותף לכל דפי /trails-hike)
   פלטת הקרחון הקנונית (docs/DESIGN_LANGUAGE.md). נטען בכתובת מוחלטת
   /trails-hike/trails.css כדי שיפעל גם בלי trailing slash.
   ============================================================ */
:root {
  --navy: #155A7D;
  --navy-deep: #0B3550;
  --azure: #8FD6EC;
  --green: #9CC7A6;
  --green-deep: #4E8A5F;
  --sun: #F5B920;
  --ice: #EAF6FB;
  --paper: #FAFDFE;
  --line: #D6E9F1;
  --dark: #10222E;
  --mid: #48606E;
  --card-shadow: 0 16px 48px -16px rgba(11, 53, 80, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: 'Heebo', sans-serif;
  color: var(--dark); direction: rtl; text-align: right;
  background: var(--paper);
  line-height: 1.6;
}
a { color: var(--navy); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 57, 92, 0.12);
  padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.nav-logo {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 20px; font-weight: 500; color: var(--navy);
  text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;  /* יעד לחיצה 44px (קישור לדף הבית) */
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  background: var(--navy); color: #fff; padding: 0 18px;
  border-radius: 8px; font-size: 14px; text-decoration: none;
  transition: background .2s, transform .2s; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;  /* יעד לחיצה 44px */
}
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }

/* ── TRAILS DISCLOSURE DROPDOWN (ניווט, לא תפריט יישומי) ── */
.trails-nav { position: relative; display: flex; }
.trails-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--mid); cursor: pointer;
  background: none; border: none; font-family: inherit;
  padding: 0 4px; min-height: 44px;  /* יעד לחיצה 44px */
  transition: color .2s;
}
.trails-trigger:hover,
.trails-trigger[aria-expanded="true"] { color: var(--green-deep); }
.trails-caret { font-size: .62em; transition: transform .2s; }
.trails-trigger[aria-expanded="true"] .trails-caret { transform: rotate(180deg); }
.trails-menu {
  display: none; position: absolute; top: calc(100% + 14px);
  inset-inline-end: 0; min-width: 268px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 53, 80, .16); z-index: 300; padding: 6px;
}
.trails-menu.open { display: block; }
.trails-hub {
  display: block; text-align: center; text-decoration: none;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: var(--ice); border-radius: 8px; padding: 9px 12px; margin-bottom: 4px;
}
.trails-hub:hover { background: rgba(21, 90, 125, .12); }
.trails-divider { height: 1px; background: var(--line); margin: 4px 6px; }
.trails-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px; border-radius: 8px; text-decoration: none; transition: background .12s;
}
a.trails-link:hover { background: var(--ice); }
.trails-link[aria-current="page"] { background: var(--ice); }
.trails-name { font-size: 14px; font-weight: 600; color: var(--navy-deep); }
.trails-sub { font-size: 11.5px; color: var(--mid); font-weight: 400; }
.trails-link.soon { cursor: default; }
.trails-link.soon .trails-name { color: #9AA7B1; font-weight: 500; }
.trails-link.soon .trails-sub { color: #B4C0C9; }
.soon-tag {
  font-size: 10px; font-weight: 700; color: var(--sun);
  background: rgba(245, 185, 32, .16); border-radius: 6px;
  padding: 1px 7px; margin-inline-start: 6px; vertical-align: 1px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%, #2E7FA6 100%);
  color: #fff; padding: 56px 24px 48px; text-align: center;
}
.hero .badge {
  display: inline-block; background: rgba(143, 214, 236, 0.18);
  border: 1px solid rgba(143, 214, 236, 0.45); color: var(--azure);
  padding: 5px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Frank Ruhl Libre', serif; font-weight: 400;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.2; margin-bottom: 12px;
}
.hero .lead { font-size: 17px; color: rgba(255, 255, 255, 0.8); max-width: 640px; margin: 0 auto; font-weight: 300; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: 28px; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat b { display: block; font-family: 'Frank Ruhl Libre', serif; font-size: 26px; font-weight: 500; color: #fff; }
.hero-stats .stat span { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }

/* ── SECTIONS ── */
section.block { padding: 44px 0; }
.block h2 {
  font-family: 'Frank Ruhl Libre', serif; font-weight: 400;
  font-size: clamp(22px, 3.4vw, 30px); color: var(--navy-deep); margin-bottom: 16px;
}
.block p { color: var(--mid); margin-bottom: 12px; }

/* ── HUT TABLE ── */
.hut-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.huts { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.huts th, table.huts td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); }
table.huts thead th { background: var(--ice); color: var(--navy-deep); font-weight: 700; font-size: 13px; }
table.huts tbody tr:last-child td { border-bottom: none; }
table.huts .num { color: var(--mid); font-size: 13px; white-space: nowrap; }
.day-pill {
  display: inline-block; background: var(--ice); color: var(--navy);
  border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.book-link { color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.book-link:hover { text-decoration: underline; }
.phone-pill { color: var(--mid); font-size: 12.5px; white-space: nowrap; }

/* ── TRACK CARDS (hub) ── */
.trek-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.trek-card {
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  padding: 22px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 10px;
}
.trek-card h3 { font-family: 'Frank Ruhl Libre', serif; font-weight: 500; font-size: 20px; color: var(--navy-deep); }
.trek-card .meta { font-size: 13px; color: var(--mid); }
.trek-card .desc { font-size: 14px; color: var(--mid); flex: 1; }
.trek-card .go {
  align-self: flex-start; background: var(--navy); color: #fff; text-decoration: none;
  padding: 8px 18px; border-radius: 8px; font-size: 14px; transition: background .2s;
}
.trek-card .go:hover { background: var(--navy-deep); }
.trek-card.soon { opacity: .78; }
.trek-card.soon h3 { color: #6b7b86; }
.trek-card .soon-flag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--sun);
  background: rgba(245, 185, 32, .16); border-radius: 6px; padding: 3px 10px;
}

/* ── CTA BANNER (במקום "זמינות Live") ── */
.cta-banner {
  background: var(--ice); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; text-align: center;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.cta-banner .btn {
  text-decoration: none; padding: 11px 22px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
}
.cta-banner .btn-primary { background: var(--navy); color: #fff; }
.cta-banner .btn-primary:hover { background: var(--navy-deep); }
.cta-banner .btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.cta-banner .btn-ghost:hover { background: var(--navy); color: #fff; }

/* ── מסלולים נוספים (ניווט צולב) ── */
.more-trails { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.more-trails a {
  text-decoration: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--navy);
  background: #fff; transition: background .15s;
}
.more-trails a:hover { background: var(--ice); }

/* ── FOOTER ── */
footer {
  background: var(--navy-deep); color: rgba(255, 255, 255, 0.6);
  padding: 32px 24px; text-align: center; font-size: 13px; margin-top: 40px;
}
footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
footer a:hover { color: #fff; }

/* ── MOBILE ── */
@media (max-width: 680px) {
  .nav-right { gap: 12px; }
  .hero { padding: 40px 20px 34px; }
  .hero-stats { gap: 12px 20px; }
}
/* מסכים צרים (≤400px, כולל 320/360): מונע overflow/חפיפה בהדר, שומר
   יעדי לחיצה 44px */
@media (max-width: 400px) {
  nav { padding: 6px 10px; gap: 6px; }
  .nav-logo { font-size: 16px; }
  .nav-right { gap: 8px; }
  .trails-trigger { font-size: 12.5px; padding: 0 2px; gap: 3px; }
  .nav-cta { font-size: 12.5px; padding: 0 12px; }
}
