/* ==================================================================
   layout.css
   Page skeleton: container, header/nav, page hero, sections,
   grids, footer.
   ================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 800px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-950);
  border-bottom: 1px solid rgba(219, 185, 79, 0.18);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.brand__logo {
  width: 42px;
  height: 42px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand__sub {
  font-size: 1rem;
  color: var(--gold-400);
  align-self: flex-start;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

/* Gold diamond under the active link */
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 6px;
  height: 6px;
  background: var(--gold-400);
  transform: translateX(-50%) rotate(45deg);
}

.nav__cta {
  margin-inline-start: 10px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px;
  font-size: 1.5rem;
  line-height: 0;
}

.nav-toggle__close {
  display: none;
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 22px;
    background: var(--green-950);
    border-bottom: 1px solid rgba(219, 185, 79, 0.18);
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__link {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__link.is-active::after {
    left: auto;
    inset-inline-end: 6px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
  }

  .nav__cta {
    margin-inline-start: 0;
    justify-content: center;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .site-header.is-open .nav-toggle__open {
    display: none;
  }

  .site-header.is-open .nav-toggle__close {
    display: block;
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(219, 185, 79, 0.16), transparent 60%),
    var(--green-900);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/pattern.svg') center / 96px;
  opacity: 0.07;
}

/* Scalloped arch edge at the bottom of the banner */
.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18px;
  background: radial-gradient(circle at 18px 0, transparent 17px, var(--bg) 18px) 0 0 / 36px 18px repeat-x;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__arabic {
  font-size: 1.5rem;
  color: var(--gold-400);
  direction: rtl;
}

.page-hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.page-hero__sub {
  margin: 10px auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--bg-tint);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.section > .container > .section__title {
  margin-bottom: 28px;
}

.section__sub {
  margin-top: 4px;
  color: var(--muted);
}

/* ---------- Grids ---------- */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

/* Thin repeating pattern strip at the top of the footer */
.site-footer__ornament {
  height: 14px;
  background: url('../images/pattern.svg') center / 14px repeat-x, var(--green-800);
  opacity: 0.9;
  border-bottom: 1px solid rgba(219, 185, 79, 0.3);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.2fr 0.9fr;
  gap: 36px;
  padding-top: 52px;
  padding-bottom: 36px;
}

.site-footer__tagline {
  margin-top: 14px;
  max-width: 320px;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--gold-400);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer__list--icons li {
  display: flex;
  gap: 10px;
}

.site-footer__list--icons .icon {
  margin-top: 4px;
  color: var(--gold-400);
}

.site-footer__hours li {
  display: flex;
  flex-direction: column;
}

.site-footer__hours span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__dua {
  font-size: 1.1rem;
  color: var(--gold-400);
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section {
    padding: 44px 0;
  }
}

/* ---------- Header actions: language menu + mobile toggle ---------- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 3;
}

.lang-menu {
  position: relative;
}

.lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(219, 185, 79, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.88rem;
}

.lang-menu__toggle:hover {
  border-color: var(--gold-400);
}

.lang-menu__toggle .icon {
  color: var(--gold-400);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}

.lang-menu.is-open .lang-menu__list {
  display: block;
}

.lang-menu__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  text-align: start;
}

.lang-menu__option:hover {
  background: var(--green-50);
}

.lang-menu__option.is-active {
  background: var(--green-700);
  color: #fff;
}

/* Fonts for each language name inside the menu */
.lang-menu__option[lang='ps-AF'],
.lang-menu__option[lang='fa-AF'] {
  font-family: 'Vazirmatn', var(--font-arabic);
}

.lang-menu__option[lang='ur-PK'] {
  font-family: 'Noto Nastaliq Urdu', var(--font-arabic);
}

.lang-menu__option[lang='bn-BD'] {
  font-family: 'Hind Siliguri', sans-serif;
}

/* Desktop: nav sits between brand and actions */
@media (min-width: 1001px) {
  .site-header__inner .nav {
    order: 2;
    margin-inline-start: auto;
  }

  .site-header__actions {
    margin-inline-start: 8px;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 1000px) {
  .site-header__actions {
    margin-inline-start: auto;
  }
}

@media (max-width: 420px) {
  .lang-menu__toggle span {
    display: none;
  }

  .brand__name {
    font-size: 1.05rem;
  }
}

/* ---------- Preview bar (manage-times.html → "Preview on site") ---------- */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px var(--gutter);
  background: var(--amber-50);
  color: var(--amber-700);
  border-bottom: 1px solid #f3d58b;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
