/* ===========================================================
   The menu: everything the header no longer holds, behind one
   button. Frosted glass over the page, thin rules, the theme's
   spaced capitals; gold only for the ways into the world.
   =========================================================== */

/* The button, in the header's own box. */
#header nav ul li.nav-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 7.5rem;
  height: 2.75rem;
  padding: 0 1.25rem 0 1.45rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  line-height: 2.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#header nav ul li.nav-menu button:hover { background-color: rgba(255, 255, 255, 0.075); }
#header nav ul li.nav-menu button:active { background-color: rgba(255, 255, 255, 0.175); }
.menu-bars { position: relative; width: 1rem; height: 0.7rem; flex: none; }
.menu-bars i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-bars i:nth-child(1) { top: 0; }
.menu-bars i:nth-child(2) { top: 50%; }
.menu-bars i:nth-child(3) { bottom: 0; }

#header nav ul li.nav-divan a { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; }
#header nav ul li.nav-divan a svg { width: 0.95rem; height: 0.95rem; flex: none; opacity: 0.85; }

@media screen and (max-width: 480px) {
  #header nav ul li.nav-menu button { width: 100%; height: 3rem; line-height: 3rem; min-width: 0; }
}

/* ---- the glass ---- */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 2rem;
  background: rgba(14, 16, 26, 0.34);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  overflow-y: auto;
}
.site-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-menu { background: rgba(14, 16, 26, 0.9); }
}

.site-menu__close {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: solid 1px rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.3s ease;
}
.site-menu__close:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
.site-menu__close svg { width: 1rem; height: 1rem; display: block; margin: auto; }

.site-menu { background: rgba(32, 18, 13, 0.55); }

/* ---- the panel: a feature, four tiles, three pictures, a line of links ---- */
.site-menu__panel {
  width: min(64rem, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-menu.is-open .site-menu__panel { transform: none; }
.site-menu a { border-bottom: 0 !important; text-decoration: none; }

/* The way into the world: the one large, warm card. */
.site-menu .mfeature {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.55rem;
  min-height: 15.5rem; padding: 1.6rem 1.7rem; border-radius: 20px; overflow: hidden; color: #fff8ee;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(240, 199, 122, 0.35), transparent 55%),
    linear-gradient(150deg, #a3262a 0%, #6b3424 55%, #2a1712 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.site-menu .mfeature::before {
  content: ''; position: absolute; right: -2.5rem; top: -2.5rem; width: 13rem; height: 13rem; opacity: 0.18;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23f0c77a' stroke-width='1.6'%3E%3Cpath d='M40 4 49 31 76 40 49 49 40 76 31 49 4 40 31 31Z'/%3E%3Cpath d='M15 15 40 25 65 15 55 40 65 65 40 55 15 65 25 40Z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.site-menu .mfeature:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); color: #fff; }
.mf-kicker { font-size: 0.68rem; letter-spacing: 0.25rem; text-transform: uppercase; color: #f0c77a; }
.site-menu .mfeature b { font-size: 1.7rem; letter-spacing: 0.06rem; font-weight: 600; line-height: 1.15; text-transform: none; }
.site-menu .mfeature small { font-size: 0.85rem; line-height: 1.6; color: rgba(255, 248, 238, 0.82); max-width: 26rem; letter-spacing: 0; text-transform: none; }
.mf-go { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.5rem; margin-top: 0.4rem; padding: 0.5rem 1rem; border-radius: 99px; background: #d9952b; color: #2a1712; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12rem; text-transform: uppercase; }
.mf-go svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.mfeature:hover .mf-go svg { transform: translateX(3px); }

/* Four tiles: each a door, with its own colour. */
.mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.site-menu .mtile {
  display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.05rem; border-radius: 18px; color: #fff8ee;
  background: rgba(255, 248, 238, 0.07); border: 1px solid rgba(255, 248, 238, 0.14) !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.site-menu .mtile:hover, .site-menu .mtile:focus-visible { transform: translateY(-2px); background: rgba(255, 248, 238, 0.13); border-color: rgba(240, 199, 122, 0.55) !important; outline: 0; color: #fff; }
.mt-ic { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 14px; display: grid; place-items: center; }
.mt-ic svg { width: 1.35rem; height: 1.35rem; }
.t-pom .mt-ic { background: rgba(163, 38, 42, 0.35); color: #ffb3a6; }
.t-saf .mt-ic { background: rgba(217, 149, 43, 0.3); color: #f6cf85; }
.t-tur .mt-ic { background: rgba(31, 138, 134, 0.32); color: #8fe0d9; }
.t-brk .mt-ic { background: rgba(181, 86, 45, 0.33); color: #f3b38e; }
.mt-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mt-tx b { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04rem; text-transform: none; }
.mt-tx small { font-size: 0.74rem; color: rgba(255, 248, 238, 0.62); letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-go { width: 1.1rem; height: 1.1rem; flex: none; opacity: 0.4; transition: opacity 0.2s ease, transform 0.2s ease; }
.mtile:hover .mt-go { opacity: 1; transform: translateX(3px); }

/* Explore Iran: three pictures. */
.msection { grid-column: 1 / -1; }
.site-menu .msection h2 { margin: 0.3rem 0 0.75rem; padding: 0; border: 0; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.32rem; text-transform: uppercase; color: rgba(240, 199, 122, 0.85); }
.site-menu .msection h2::after { display: none; }
.mpics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.site-menu .mpic {
  position: relative; display: flex; align-items: flex-end; height: 8.5rem; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center; color: #fff; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.site-menu .mpic::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 23, 18, 0) 30%, rgba(42, 23, 18, 0.88)); transition: background 0.25s ease; }
.site-menu .mpic:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.site-menu .mpic:hover::before { background: linear-gradient(180deg, rgba(163, 38, 42, 0.1) 20%, rgba(42, 23, 18, 0.9)); }
.mpic span { position: relative; padding: 0.9rem 1rem; display: flex; flex-direction: column; }
.mpic b { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.1rem; text-transform: uppercase; }
.mpic small { font-size: 0.74rem; color: rgba(255, 248, 238, 0.75); letter-spacing: 0; text-transform: none; }

/* A line of quieter links. */
.mlinks { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.2rem; }
.site-menu .mlinks a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border-radius: 99px; color: rgba(255, 248, 238, 0.85); background: rgba(255, 248, 238, 0.06); font-size: 0.8rem; letter-spacing: 0.04rem; transition: background 0.2s ease; }
.site-menu .mlinks a:hover { background: rgba(255, 248, 238, 0.14); color: #fff; }
.mlinks svg { width: 1rem; height: 1rem; }
.mmotto { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.3rem; text-transform: uppercase; color: rgba(255, 248, 238, 0.4); }

body.menu-open { overflow: hidden; }
body.menu-open #wrapper { filter: blur(2px); transition: filter 0.35s ease; }

@media screen and (max-width: 860px) {
  .site-menu { align-items: flex-start; padding: 4.8rem 1rem 1.5rem; }
  .site-menu__panel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .site-menu .mfeature { min-height: 0; padding: 1.3rem 1.3rem 1.2rem; }
  .site-menu .mfeature b { font-size: 1.35rem; }
  .mtiles { gap: 10px; }
  .site-menu .mtile { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.95rem; }
  .mt-go { display: none; }
  .mpics { gap: 10px; }
  .site-menu .mpic { height: 6.5rem; }
  .mpic span { padding: 0.65rem 0.75rem; }
  .mpic b { font-size: 0.85rem; letter-spacing: 0.06rem; }
  .mpic small { display: none; }
  .mmotto { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu, .site-menu__panel, .site-menu__close, .site-menu a { transition: none; }
}
.site-menu[hidden] { display: none; }

/* Four boxes of one width, so the theme's centre line falls between the middle two. */
@media screen and (min-width: 481px) {
  #header nav ul li > a,
  #header nav ul li.nav-menu button { width: 10.5rem; min-width: 0; }
}

/* The credit line was 8.8px — too small to read on a phone. */
#footer .copyright { font-size: 12.5px; }
