/* GOVR — shared site chrome (nav + footer)
 *
 * Loaded on every Astra-rendered route via inc/chrome-assets.php. Styles the
 * markup in inc/partials/site-nav.php and inc/partials/site-footer.php.
 *
 * COUNTERPART: uaep-assets/css/home-redesign.css. These two files duplicate
 * the chrome rules on purpose — home-redesign.css keeps its bare `nav` and
 * `footer` selectors because it only ever loads on a standalone template it
 * fully controls. This file loads alongside Elementor-built content, so it
 * carries no global reset and no bare element selectors: the roots are
 * .uaep-site-nav and .uaep-site-footer instead. Change one, change the other.
 */

:root {
  --gold: #B8960C;
  --gold-light: #D4AF37;
  --gold-dark: #8B7209;
  --gold-deep: #92722A;
  --gold-bg: #FBF7EC;
  --gold-bg-hover: #F5EDD6;
  --gold-border: rgba(184, 150, 12, 0.18);
  --bg: #FFFFFF;
  --bg-off: #FAFAF8;
  --bg-section: #F6F5F2;
  --surface: #FFFFFF;
  --border: #E8E6E1;
  --border-light: #F0EEEA;
  --text: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #6c6c6c;
  --green: #1B8B4D;
  --green-bg: #EDFAF2;
  --red: #D94040;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ====== NAV ====== */
.uaep-site-nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 2px solid #C08B0D;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 15px; height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .logo-img { display: block; height: 50px; width: auto; max-width: 100%; }
.logo-footer .logo-img { height: 44px; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500; padding: 8px 14px;
  border-radius: 8px; transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-section); }
.nav-links a.active { color: var(--gold-dark); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  padding: 0; margin-left: 4px;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--gold); background: var(--bg-section); }
.nav-toggle-bar {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column; gap: 2px;
  padding: 16px 24px 24px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.mobile-menu[data-open="true"] { display: flex; }
.mobile-menu-link {
  display: block;
  padding: 12px 14px;
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-link:hover, .mobile-menu-link:focus-visible {
  background: var(--bg-section); color: var(--text); outline: none;
}
.mobile-menu-link.active { color: var(--gold-dark); font-weight: 600; }

/* Weglot */
label.wgcurrent.wg-li.weglot-lang.weglot-language,
.weglot_choice { display: none; }
li.wg-li { list-style: none; }
li.wg-li.weglot-lang.weglot-language a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: background 0.2s, color 0.2s; display: inline-block;
}
li.wg-li.weglot-lang.weglot-language a:hover {
  color: var(--text); background: var(--bg-section);
}
li.wg-li.weglot-lang.weglot-language.wg-ar { font-family: "Tajawal", sans-serif; }

/* ====== FOOTER ====== */
.uaep-site-footer { background: var(--bg-off); border-top: 1px solid var(--border); padding: 48px 32px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand-text { font-size: 8.5px; color: var(--text-muted); line-height: 1.65; margin-top: 14px; max-width: 520px; }
/* Visit Ajman listing note — sits under the brand paragraph, above the socials.
   Held at 9px on every breakpoint, unlike .footer-brand-text above it. */
.footer-agency-note { font-size: 9px; color: var(--text-muted); line-height: 1.65; margin-top: 10px; max-width: 520px; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-secondary); text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold-dark); }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 11px; color: var(--text-muted); }
.footer-platform { display: inline-flex; align-items: center; gap: 6px; }
.footer-platform-icon { display: inline-block; width: 14px; height: 14px; flex-shrink: 0; }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand-text { font-size: 7px; }
  .footer-bottom p { font-size: 9px; }
  .logo .logo-img { height: 40px !important; }
  .nav-toggle { width: 35px; height: 35px; }
  .nav-toggle-bar { width: 17px; height: 1px; }
}

/* ====== ARABIC / RTL ======
 * Scoped to the chrome only. home-redesign.css applies Tajawal via
 * `html[dir="rtl"] body *`, which would restyle every Elementor block on an
 * Arabic page if it were loaded here. */
html[lang="ar"] .uaep-site-nav, html[lang="ar"] .uaep-site-nav *,
html[dir="rtl"] .uaep-site-nav, html[dir="rtl"] .uaep-site-nav *,
html[lang="ar"] .uaep-site-footer, html[lang="ar"] .uaep-site-footer *,
html[dir="rtl"] .uaep-site-footer, html[dir="rtl"] .uaep-site-footer * {
  font-family: 'Tajawal', sans-serif;
}

/* ====== RENDERING PERF ======
 * Scoped to our own footer. The bare `footer` selector in home-redesign.css
 * would otherwise hit any <footer> inside Elementor post content. */
.uaep-site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
