/*
  Edelweiss Mongolia – custom theme
  Primary brand colour: #0071a7 (Mongolia sky blue)
*/

:root {
  --color-primary1: #0071a7;
  --color-primary-dark: #005f8e;
  --color-ink: #222;
  --color-muted: #777;
  --color-footer: #1a2a3a;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary1);
  color: #fff;
  padding: 10px 16px;
  z-index: 3000;
}
.skip-link:focus { left: 0; }

/* ── Navbar right: contact + socials ── */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.navbar__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.navbar__contact a {
  color: var(--color-text, #444);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.navbar__contact a i { color: var(--color-primary1); margin-right: 6px; }
.navbar__contact a:hover { color: var(--color-primary1); }
/* Contact lines take too much room on small screens; icons remain in the footer. */
@media (max-width: 1100px) {
  .navbar__contact { display: none; }
}

/* ── Brand / Logo ── */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo {
  /* Larger than the 64px row; negative margins cancel the extra height so
     the header itself doesn't grow. */
  height: 84px;
  width: auto;
  display: block;
  margin: -10px 0;
}
@media (max-width: 600px) {
  .brand__logo { height: 56px; margin: -6px 0; }
}

/* ── Navbar ── */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary1);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── Main navigation ── */
.main-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__close { display: none; }
.main-nav__list li { position: relative; }
.main-nav__list a {
  display: block;
  padding: 20px 14px;
  color: #333;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}
.main-nav__list a:hover { color: var(--color-primary1); }

.has-submenu > a::after {
  content: '\f0d7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  margin-left: 5px;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e3e9ee;
  border-top: 3px solid var(--color-primary1);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  z-index: 1000;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
}
.submenu a { color: #444; padding: 10px 18px; white-space: nowrap; font-size: 0.88rem; }
.submenu a:hover { background: #f0f7fb; color: var(--color-primary1); }

/* Wide tours dropdown with category headings */
.submenu--wide { min-width: 240px; }
.submenu__heading {
  padding: 10px 18px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-primary1);
  border-top: 1px solid #eef2f5;
}
.submenu__heading:first-child { border-top: none; }
.submenu__all {
  border-top: 1px solid #eef2f5;
  margin-top: 4px;
}
.submenu__all a { font-weight: 600; color: var(--color-primary1); }

/* ── Social icons ── */
.social { display: flex; gap: 12px; }
.social a {
  color: #888;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.social a:hover { color: var(--color-primary1); }
.social--footer a { color: #aaa; }
.social--footer a:hover { color: var(--color-primary1); }
.social__label {
  margin: 16px 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #aaa;
}

/* ── Page banner ── */
.page-banner {
  height: 280px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(120deg, rgba(0,113,167,.55), rgba(26,42,58,.55)),
    url('https://images.unsplash.com/photo-1605649487212-47bdab064df7?w=1600&q=80');
  background-size: cover;
  background-position: center;
}
.page-banner__title {
  color: #fff;
  font-size: 2rem;
  margin-left: 5%;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}
.card h2, .card h3 { color: var(--color-ink); }
.card a:not(.button) { color: var(--color-primary1); text-decoration: none; }
.card a:not(.button):hover { text-decoration: underline; }

/* ── Buttons ── */
.button {
  display: inline-block;
  background: var(--color-primary1);
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.button:hover { background: var(--color-primary-dark); color: #fff; }
.button--small { padding: 8px 18px; font-size: 0.85rem; }
.button--block { display: block; text-align: center; }

/* ── Section titles ── */
.section-title {
  color: var(--color-ink);
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid var(--color-primary1);
  padding-bottom: 8px;
  margin: 1.5rem 0 1rem;
  display: inline-block;
}

/* ── Sidebar / widgets ── */
.sidebar { padding-left: 24px; }
.widget { margin-bottom: 1.75rem; }
.widget__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-primary1);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.widget__list { list-style: none; padding: 0; margin: 0; }
.widget__list li {
  padding: 6px 0;
  border-bottom: 1px dotted #eee;
  font-size: 0.9rem;
  color: #555;
}
.widget__list li i { color: var(--color-primary1); margin-right: 6px; }
.widget__list a { color: #555; text-decoration: none; }
.widget__list a:hover { color: var(--color-primary1); }
.widget__note {
  font-size: 0.8rem;
  font-style: italic;
  color: #888;
  padding: 2px 0 10px !important;
  border-bottom: 1px dotted #eee;
}

/* ── Search ── */
.search__field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  margin-bottom: 6px;
}
.search__submit { width: 100%; }

/* ── Footer logo ── */
.footer-logo-wrap { display: inline-block; }
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity .2s;
  /* Logo is dark line-art; render it white so it reads on the dark footer. */
  filter: brightness(0) invert(1);
}
.footer-logo-wrap:hover .footer-logo { opacity: 1; }

/* ── Footer ── */
.site-footer {
  background: var(--color-footer);
  color: #ccc;
  padding-top: 24px;
}
.site-footer .widget__title { color: #fff; }
.site-footer .widget__list li,
.site-footer p { color: #aaa; font-size: 0.88rem; border-bottom: none; }
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: var(--color-primary1); }
.footer-newsletter {
  background: #1a2e3f;
  padding: 28px 0;
  margin-top: 10px;
}
.footer-newsletter__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-newsletter__text { flex: 1 1 280px; }
.footer-newsletter__text h3 { color: #fff; margin: 0 0 4px; font-size: 1.1rem; }
.footer-newsletter__text p  { color: #aaa; font-size: 0.85rem; margin: 0; }
.footer-newsletter__form { display: flex; gap: 8px; flex: 1 1 320px; }
.footer-newsletter__form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #3a5068;
  border-radius: 4px;
  background: #0e1d29;
  color: #fff;
  font-size: 0.9rem;
}
.footer-newsletter__form input::placeholder { color: #666; }
.footer-newsletter__form input:focus { outline: none; border-color: var(--color-primary1); }
.footer-newsletter__msg { color: var(--color-primary1); font-size: 0.85rem; margin: 8px 0 0; width: 100%; }

.site-footer__copyright {
  background: #111d27;
  padding: 12px 0;
}
.site-footer__copyright p { color: #888; font-size: 0.82rem; margin: 0; text-align: center; }

/* ── Back to top ── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 4px;
  background: var(--color-primary1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 999;
}
.scroll-top:hover { background: var(--color-primary-dark); }

/* ── Mobile ── */
@media (max-width: 991px) {
  .navbar__toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #1a2a3a;
    overflow: hidden;
    transition: width 0.3s;
    z-index: 2000;
    padding-top: 60px;
  }
  .main-nav.is-open { width: 280px; }
  .main-nav__list { flex-direction: column; }
  .main-nav__list a { color: #e8f0f5; padding: 13px 20px; }
  .main-nav__list a:hover { color: #8aad1a; }
  .main-nav__close {
    display: block;
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 16px;
  }
  .submenu a { color: #b0c8d8; }
  .submenu__heading { color: #8aad1a; }
  .sidebar { padding-left: 0; margin-top: 30px; }
  .page-banner { height: 200px; }
  .page-banner__title { font-size: 1.5rem; }
}

/* ── Festival departure booking-status pills ── */
.status-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;
  white-space: nowrap;
}
.status-pill--open { background: #e4f5ea; color: #1c7a3f; }
.status-pill--confirmed { background: #e5f0fb; color: #1c5fa8; }
.status-pill--almost { background: #fdf1dc; color: #a56a08; }
.status-pill--closed { background: #fbe6e4; color: #b12a1c; }
.status-pill--ongoing { background: #ecedef; color: #5a6472; }

/* Featured "Festival Departures" link at the top of the Tours dropdown */
.submenu__departures {
  border-bottom: 1px solid #eef2f5;
  margin-bottom: 4px;
}
.submenu__departures a {
  font-weight: 700;
  color: #c8881a;
}
.submenu__departures i { margin-right: 6px; }
