/* Rewa Tour — site footer */

.rewa-footer {
  --ft-bg: #0a333c;
  --ft-bg-mid: #0c3b46;
  --ft-bg-soft: #0e4552;
  --ft-text: #a9cdd4;
  --ft-muted: #7fa3aa;
  --ft-accent: #5fd0e0;
  --ft-primary: #0e7490;
  --ft-primary-light: #0891b2;
  --ft-gold: #e0a44e;
  position: relative;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(8, 145, 178, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(14, 116, 144, 0.14), transparent 50%),
    linear-gradient(165deg, var(--ft-bg) 0%, var(--ft-bg-mid) 45%, var(--ft-bg-soft) 100%);
  padding: 72px 0 0;
  overflow: visible;
}

.rewa-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ft-primary), var(--ft-primary-light), var(--ft-gold), var(--ft-primary-light), var(--ft-primary));
  background-size: 200% 100%;
}

.rewa-footer__inner {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, 72px);
}

.rewa-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 48px clamp(32px, 4vw, 80px);
  align-items: start;
  width: 100%;
  padding-bottom: 48px;
}

.rewa-footer__menus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  min-width: 0;
  width: 100%;
}

.rewa-footer__grid.is-from-menu.rewa-footer-grid--columns-3 .rewa-footer__menus,
.rewa-footer__grid.is-from-menu.rewa-footer-grid--columns-4 .rewa-footer__menus,
.rewa-footer__grid.is-from-menu.rewa-footer-grid--columns-5 .rewa-footer__menus {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.rewa-footer__grid.is-from-menu.rewa-footer-grid--stacked,
.rewa-footer__grid.is-from-menu.rewa-footer-grid--centered {
  grid-template-columns: 1fr;
}
.rewa-footer__grid.is-from-menu.rewa-footer-grid--centered .rewa-footer__menus,
.rewa-footer__grid.is-from-menu.rewa-footer-grid--stacked .rewa-footer__menus {
  grid-template-columns: 1fr;
}
.rewa-footer__grid.is-from-menu.rewa-footer-grid--centered {
  text-align: center;
}
.rewa-footer__grid.is-from-menu.rewa-footer-grid--centered .rewa-footer__brand,
.rewa-footer__grid.is-from-menu.rewa-footer-grid--centered .rewa-footer__social,
.rewa-footer__grid.is-from-menu.rewa-footer-grid--centered .rewa-footer__links {
  justify-content: center;
  margin-inline: auto;
}

.rewa-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}

.rewa-footer__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.rewa-footer__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 3px;
}

.rewa-footer__brand-name {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.3px;
  color: #fff;
}

.rewa-footer__brand-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ft-muted);
  letter-spacing: 0.35px;
}

.rewa-footer__desc {
  color: var(--ft-text);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: none;
}

.rewa-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rewa-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
}

.rewa-footer__social-link:hover {
  background: rgba(95, 208, 224, 0.16);
  border-color: rgba(95, 208, 224, 0.35);
  color: var(--ft-accent);
  transform: translateY(-2px);
}

.rewa-footer__social-link:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 2px;
}

.rewa-footer__title {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rewa-footer__title::before {
  content: "";
  flex: 0 0 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ft-accent);
}

.rewa-footer__title::after {
  display: none;
}

.rewa-footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rewa-footer__link {
  color: var(--ft-text);
  text-decoration: none;
  font-size: 14.5px;
  padding: 7px 0;
  transition: color 0.2s, padding-inline-start 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.rewa-footer__link::before {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ft-accent);
  transition: width 0.2s;
  flex-shrink: 0;
}

.rewa-footer__link:hover {
  color: var(--ft-accent);
  padding-inline-start: 4px;
}

.rewa-footer__link:hover::before {
  width: 10px;
}

.rewa-footer__link:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.rewa-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rewa-footer__contact--brand {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rewa-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ft-text);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.45;
  transition: color 0.2s;
}

a.rewa-footer__contact-item:hover {
  color: var(--ft-accent);
}

a.rewa-footer__contact-item:hover .rewa-footer__contact-icon {
  background: rgba(95, 208, 224, 0.22);
  border-color: rgba(95, 208, 224, 0.4);
}

.rewa-footer__contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ft-accent);
  font-size: 17px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.rewa-footer__contact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
  min-width: 0;
}

.rewa-footer__contact-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ft-muted);
  letter-spacing: 0.02em;
}

.rewa-footer__contact-value {
  color: inherit;
  word-break: break-word;
}

.rewa-footer__contact-value[dir="ltr"] {
  unicode-bidi: isolate;
}

.rewa-footer__cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: fit-content;
}

.rewa-footer__cta-title {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  color: #fff;
  line-height: 1.35;
}

.rewa-footer__cta-text {
  margin: 0;
  color: var(--ft-text);
  font-size: 13.5px;
  line-height: 1.6;
}

.rewa-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ft-primary), var(--ft-primary-light));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rewa-footer__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(14, 116, 144, 0.45);
}

.rewa-footer__cta-btn:focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 3px;
}

.rewa-footer__cta-btn i {
  font-size: 18px;
  line-height: 1;
}

.rewa-footer__bottom {
  position: relative;
  z-index: 8;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 20px clamp(24px, 5vw, 72px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  overflow: visible;
}

.rewa-footer__copy {
  color: var(--ft-muted);
  font-size: 13.5px;
  margin: 0;
}

.rewa-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
}
.rewa-footer__legal a {
  color: var(--ft-muted);
  text-decoration: none;
  font-weight: 700;
}
.rewa-footer__legal a:hover { color: var(--ft-accent, #0e7490); }

.rewa-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--ft-muted);
  font-size: 13px;
}

.rewa-footer__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rewa-footer__meta-item i {
  color: var(--ft-accent);
  font-size: 14px;
}

/* Country switcher */
.rewa-footer__country {
  position: relative;
  z-index: 9;
}

.rewa-footer__country-menu {
  position: fixed;
  z-index: 90;
  width: min(320px, 86vw);
  padding: 10px;
  border-radius: 16px;
  background: #0c3b46;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.rewa-footer__country-menu[hidden] {
  display: none !important;
}

.rewa-footer__country-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.rewa-footer__country-btn:hover,
.rewa-footer__country-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(95, 208, 224, 0.45);
}

.rewa-footer__country-flag {
  display: inline-flex;
  width: 22px;
  height: 16px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.rewa-footer__country-flag img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.rewa-footer__country-hint {
  margin: 0 6px 8px;
  color: var(--ft-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rewa-footer__country-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  text-align: start;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.rewa-footer__country-item:hover,
.rewa-footer__country-item.is-active {
  background: rgba(8, 145, 178, 0.28);
}

.rewa-footer__country-item-flag {
  font-size: 18px;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.rewa-footer__country-item-flag img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.rewa-footer__country-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.rewa-footer__country-item-name {
  font-weight: 700;
  font-size: 14px;
}

.rewa-footer__country-item-meta {
  color: var(--ft-muted);
  font-size: 11.5px;
}

.rewa-footer__country-item .ph-check {
  color: var(--ft-accent);
}

.rewa-wa-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25a65d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  animation: waPulse 2.4s infinite;
  box-shadow: 0 10px 26px rgba(37, 166, 93, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rewa-wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(37, 166, 93, 0.5);
}

.rewa-wa-float:focus-visible {
  outline: 3px solid #e0a44e;
  outline-offset: 3px;
}

.rewa-wa-float i {
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .rewa-footer__grid {
    grid-template-columns: 1fr;
    gap: 40px 32px;
  }

  .rewa-footer__menus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .rewa-footer {
    padding: 56px 0 0;
  }

  .rewa-footer__grid,
  .rewa-footer__menus {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .rewa-footer__grid {
    padding-bottom: 36px;
  }

  .rewa-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 24px;
    text-align: start;
  }
}

@media (max-width: 480px) {
  .rewa-footer {
    padding: 48px 0 0;
  }

  .rewa-footer__grid {
    gap: 32px;
    padding-bottom: 28px;
  }

  .rewa-footer__copy,
  .rewa-footer__meta {
    font-size: 12.5px;
  }

  .rewa-wa-float {
    width: 52px;
    height: 52px;
    inset-inline-end: 16px;
    bottom: 16px;
  }

  .rewa-wa-float i {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .rewa-footer {
    padding: 40px 12px 0;
  }
}

@supports (padding: max(0px)) {
  .rewa-footer {
    padding-bottom: 0;
  }

  .rewa-footer__bottom {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .rewa-wa-float {
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rewa-wa-float {
    animation: none;
  }

  .rewa-footer__social-link,
  .rewa-footer__link,
  .rewa-footer__cta-btn,
  .rewa-wa-float {
    transition: none;
  }
}
