/* ════════════════════════════════════════════════════════════════
   social.garden UAE — Built-in Header & Footer
   Pairs with templates/parts/header-uae.php and footer-uae.php.
   Uses the same design tokens (CSS vars) defined at the top of
   brand-homepage-uae.css — this file assumes that stylesheet is
   already enqueued first, since it relies on --garden, --forest,
   --fog, etc.
   ════════════════════════════════════════════════════════════════ */

/* ── HEADER ── */
.sg-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fog);
}

.sg-site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sg-site-logo {
  display: flex;
  align-items: center;
  color: var(--garden);
  text-decoration: none;
  flex-shrink: 0;
}

/* The logo SVG is inlined directly (see header-uae.php) so its
   fill="currentColor" paths pick up the .sg-site-logo color above.
   It's a wide wordmark (~5.2:1 aspect ratio) — height-constrained,
   width follows automatically. */
.sg-site-logo svg {
  height: 26px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .sg-site-logo svg { height: 22px; }
}

.sg-site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sg-site-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-site-nav-list a {
  font-size: 14px;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.sg-site-nav-list a:hover { color: var(--garden); }
.sg-site-nav-list a.sg-nav-secondary { color: var(--mist); font-size: 13px; }

.sg-site-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.sg-nav-cta {
  background: var(--garden);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.sg-nav-cta:hover { background: var(--forest); transform: translateY(-1px); }

.sg-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--stone);
}
.sg-mobile-toggle svg { width: 22px; height: 22px; }

.sg-mobile-nav {
  display: none;
  border-top: 1px solid var(--fog);
  background: var(--white);
}
.sg-mobile-nav.sg-open { display: block; }
.sg-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sg-mobile-nav-list a {
  display: block;
  padding: 10px 4px;
  font-size: 15px;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid var(--fog);
}
.sg-mobile-nav-list a.sg-nav-cta {
  text-align: center;
  margin-top: 8px;
  border-bottom: none;
  color: var(--white);
}

@media (max-width: 900px) {
  .sg-site-nav,
  .sg-site-header-actions .sg-nav-cta {
    display: none;
  }
  .sg-mobile-toggle { display: inline-flex; align-items: center; }
}

/* ── FOOTER ── */
.sg-site-footer {
  background: var(--ink);
  padding: 48px 24px 0;
}

.sg-site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.sg-footer-logo {
  margin-bottom: 14px;
}
.sg-footer-logo svg {
  height: 22px;
  width: auto;
  display: block;
}

.sg-footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  max-width: 240px;
  margin: 0;
}

.sg-footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 14px;
}

.sg-footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sg-footer-col-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.sg-footer-col-links a:hover { color: var(--white); }

.sg-site-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}
.sg-site-footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.sg-site-footer-bottom a:hover { color: var(--white); }

@media (max-width: 900px) {
  .sg-site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .sg-site-footer-inner {
    grid-template-columns: 1fr;
  }
  .sg-site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── RTL MIRRORING ── */
.sg-rtl .sg-site-header-inner { flex-direction: row-reverse; }
.sg-rtl .sg-site-logo { flex-direction: row-reverse; }
.sg-rtl .sg-site-nav-list { flex-direction: row-reverse; }
.sg-rtl .sg-site-header-actions { flex-direction: row-reverse; }
.sg-rtl .sg-site-footer-inner { direction: rtl; }
.sg-rtl .sg-site-footer-bottom { flex-direction: row-reverse; }
.sg-rtl .sg-footer-tagline,
.sg-rtl .sg-footer-col-links { text-align: right; }
