/* ================================================================== */
/* Site footer — wave edge + responsive layout (site-wide)            */
/* Colors mirror tailwind.config.js (ink / gold / sun / lagoon).       */
/* ================================================================== */

.site-footer {
  --footer-bg: #071827;          /* ink.deep */
  --edge-h: clamp(36px, 5vw, 80px);
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  color: #fff;
}

/* ---------- Wave top edge ---------- */
/* Rises into whatever sits above the footer, so there is no gap or seam. */
.footer-edge {
  position: relative;
  z-index: 3;
  height: var(--edge-h);
  margin-top: calc(-1 * var(--edge-h));
  pointer-events: none;
}
.footer-edge svg { display: block; width: 100%; height: 100%; }
/* The curve itself is cut out of .footer-body below (so its background and
   star pattern run right up to the line); the SVG only draws the gold line. */
.footer-edge-fill { display: none; }

/* Page ends on a dark banner (e.g. About CTA): no gap. Matches the last
   <section>, so modals/scripts after it (e.g. hotels.php) don't break it. */
main:has(> section.bg-ink:last-of-type) + .site-footer { margin-top: 0; }
/* Same for pages ending on a light-grey band (contact FAQ, blog "more posts"):
   the curve rises straight out of it instead of leaving a cream strip. */
main:has(> section:is(.faq-section-soft, .bd-more):last-of-type) + .site-footer { margin-top: 0; }

/* ---------- Body ---------- */
.footer-body {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C 240 10, 480 10, 720 42 C 960 74, 1200 74, 1440 30 L1440 80 L0 80 Z'/%3E%3C/svg%3E");
  margin-top: calc(-1 * var(--edge-h));
  padding-top: var(--edge-h);
  background: var(--footer-bg);
  /* wave-shaped top + solid below (1px overlap avoids a hairline seam) */
  -webkit-mask: var(--wave) top / 100% var(--edge-h) no-repeat, linear-gradient(#000, #000) 0 calc(var(--edge-h) - 1px) / 100% 100% no-repeat;
          mask: var(--wave) top / 100% var(--edge-h) no-repeat, linear-gradient(#000, #000) 0 calc(var(--edge-h) - 1px) / 100% 100% no-repeat;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) { .footer-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .footer-container { padding-left: 2rem; padding-right: 2rem; } }

/* Mobile: brand full width, the two link lists side by side, contact full width */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand, .footer-contact-col { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .footer-grid { gap: 2.75rem 2.5rem; padding-top: 3rem; }
  .footer-brand { grid-column: 1 / -1; max-width: 32rem; }
  .footer-contact-col { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.9fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
  .footer-brand { grid-column: auto; max-width: none; }
}

.footer-logo { height: 2.75rem; width: auto; margin-bottom: 1.1rem; }
.footer-about {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 24rem;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.footer-wa svg { width: 1.1rem; height: 1.1rem; color: #25d366; transition: color 0.2s; }
.footer-wa:hover { background: #25d366; border-color: #25d366; }
.footer-wa:hover svg { color: #fff; }

.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-socials a:hover { background: #f47c0b; border-color: #f47c0b; transform: translateY(-2px); }

.footer-heading {
  position: relative;
  margin: 0 0 1.35rem;
  padding-bottom: 0.7rem;
  font-size: 1.15rem;
  color: #fff;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f47c0b, #ffb703);
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0.7rem; }
.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #f47c0b;
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  transition: opacity 0.2s, transform 0.2s;
}
.footer-links a:hover { color: #ff9433; transform: translateX(0.9rem); }
.footer-links a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
@media (min-width: 480px) and (max-width: 767px) {
  .footer-contact { grid-template-columns: 1fr 1fr; }
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.footer-contact a { color: #cbd5e1; text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s; }
.footer-contact a:hover { color: #ff9433; }
.footer-ic {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  color: #ffb703;
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.18);
}
.footer-ic svg { width: 1rem; height: 1rem; }

/* ---------- Bottom bar ---------- */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}
.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner span { color: #ffb703; }
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}



/* ---------- Designer credit (bottom bar) ---------- */
.footer-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.45rem 0.4rem 0.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 183, 3, 0.22);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.footer-credit::before {
  /* light sweep across the pill every few seconds */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  z-index: -1;
  background: linear-gradient(110deg, transparent, rgba(255, 183, 3, 0.18), transparent);
  transform: skewX(-20deg);
  animation: footer-credit-sweep 5s ease-in-out infinite;
}
@keyframes footer-credit-sweep {
  0%, 60% { left: -40%; }
  100% { left: 130%; }
}
.footer-credit:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 10px 28px -12px rgba(37, 211, 102, 0.6), 0 0 0 4px rgba(37, 211, 102, 0.08);
}
.footer-credit span { color: inherit; } /* undo the gold span colour of the bottom bar */
.footer-credit-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  color: #0b1f33 !important;
  background: linear-gradient(135deg, #ffd166, #ffb703 50%, #f47c0b);
  box-shadow: 0 4px 12px -4px rgba(244, 124, 11, 0.8);
}
.footer-credit-code svg { width: 0.95rem; height: 0.95rem; }
.footer-credit-text { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; line-height: 1.3; }
.footer-credit-text b {
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #ffd166, #ffb703, #f47c0b, #ffb703, #ffd166);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: footer-credit-shimmer 4s linear infinite;
}
@keyframes footer-credit-shimmer { to { background-position: -200% 0; } }
.footer-credit-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  color: #25d366 !important;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.footer-credit-wa svg { width: 0.95rem; height: 0.95rem; }
.footer-credit:hover .footer-credit-wa { color: #fff !important; background: #25d366; transform: rotate(-10deg) scale(1.08); }
.footer-credit-short { display: none; }
@media (max-width: 639px) {
  .footer-credit-full { display: none; }
  .footer-credit-short { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-credit::before, .footer-credit-text b { animation: none; }
}

/* Saudi helplines in "Get in Touch" */
.footer-helpline { display: flex; flex-direction: column; line-height: 1.35; }
.footer-helpline small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb703; }
