/* UAE Calcs - header, footer and call-to-action band. Colours come from UAE Calcs -> Design. */
.ucx-chrome, .ucx-chrome *, .ucx-chrome *::before, .ucx-chrome *::after { box-sizing: border-box; }
.ucx-chrome { font-family: var(--uc-font, inherit); line-height: 1.5; }
.ucx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ucx-chrome ul { list-style: none; margin: 0; padding: 0; }
.ucx-chrome a { text-decoration: none; box-shadow: none; }
.ucx-i { flex: none; display: block; }

/* ---------- announcement bar ---------- */
.ucx-topbar { background: var(--uc-accent); color: var(--ucx-on-accent); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 0; }
.ucx-topbar a { color: inherit !important; }
.ucx-topbar a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.ucx-header { background: var(--ucx-header-bg); color: var(--ucx-header-fg); border-bottom: 1px solid rgba(120, 140, 145, .22); position: relative; z-index: 1000; transition: box-shadow .2s; width: 100%; }
.ucx-header.is-sticky { position: sticky; top: 0; }
.admin-bar .ucx-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .ucx-header.is-sticky { top: 46px; } }
.ucx-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 40, 46, .12); }
.ucx-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.ucx-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; color: inherit !important; min-width: 0; }
.ucx-mark { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--uc-primary), var(--uc-primary-dark)); box-shadow: 0 4px 12px rgba(8, 40, 46, .25); }
.ucx-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1.15; align-self: end; }
.ucx-tag { grid-column: 2; font-size: 12px; opacity: .65; line-height: 1.2; align-self: start; }
.ucx-brand .ucx-mark:last-child, .ucx-brand .ucx-name:last-child { align-self: center; }
.ucx-logo { display: block; max-height: 44px; width: auto; max-width: 200px; grid-column: 1 / -1; }

.ucx-nav { display: flex; align-items: center; gap: 12px; }
.ucx-menu { display: flex; align-items: center; gap: 2px; }
.ucx-item { position: relative; }
.ucx-chrome .ucx-link, .ucx-chrome button.ucx-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ucx-header-fg) !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; cursor: pointer; text-transform: none; letter-spacing: normal;
}
.ucx-chrome .ucx-link:hover, .ucx-chrome button.ucx-link:hover, .ucx-item.is-open > button.ucx-link, .ucx-item:focus-within > .ucx-link {
  background: rgba(120, 140, 145, .14) !important; color: var(--uc-primary) !important; }
.ucx-item.is-current > .ucx-link { color: var(--uc-primary) !important; box-shadow: inset 0 -3px 0 var(--uc-accent) !important; border-radius: 10px 10px 0 0; }
.ucx-sub-toggle .ucx-i { width: 16px; height: 16px; transition: transform .2s; }
.ucx-item.is-open > .ucx-sub-toggle .ucx-i { transform: rotate(180deg); }

.ucx-sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; padding: 8px; background: #fff; border: 1px solid #dbe5e8; border-radius: 16px;
  box-shadow: 0 18px 48px rgba(8, 40, 46, .18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 5; }
.ucx-bar { position: relative; }
.ucx-item.ucx-mega { position: static; }
.ucx-mega > .ucx-sub { left: auto; right: 20px; width: min(640px, calc(100vw - 40px)); }
.ucx-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 0; }
.ucx-item.is-open > .ucx-sub, .ucx-item:hover > .ucx-sub { opacity: 1; visibility: visible; transform: none; }
.ucx-sub .ucx-link { display: flex; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #1b2a30 !important; }
.ucx-sub .ucx-link:hover { background: #eaf3f4 !important; color: var(--uc-primary) !important; }
.ucx-sub .is-current > .ucx-link { box-shadow: none !important; background: #eaf3f4 !important; color: var(--uc-primary) !important; border-radius: 10px; }

.ucx-chrome .ucx-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; white-space: nowrap;
  background: var(--uc-accent) !important; color: var(--ucx-on-accent) !important; font-weight: 800; font-size: 15px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  transition: transform .12s, background .15s; }
.ucx-chrome .ucx-cta:hover { background: var(--uc-accent-dark) !important; transform: translateY(-1px); }
.ucx-chrome .ucx-cta-lg { padding: 14px 28px; font-size: 16px; }

.ucx-chrome button.ucx-burger { display: none; width: 46px; height: 46px; padding: 0; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent !important; border: 1px solid rgba(120, 140, 145, .4) !important; box-shadow: none !important; }
.ucx-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ucx-header-fg); transition: transform .2s, opacity .2s; }
.ucx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ucx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ucx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .ucx-chrome button.ucx-burger { display: inline-flex; }
  .ucx-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 10px 20px 22px; background: var(--ucx-header-bg); border-bottom: 1px solid rgba(120, 140, 145, .22);
    max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 16px 32px rgba(8, 40, 46, .14); }
  .ucx-nav.is-open { display: flex; }
  .ucx-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .ucx-chrome .ucx-link, .ucx-chrome button.ucx-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 16px; }
  .ucx-item.is-current > .ucx-link { box-shadow: none !important; background: rgba(120, 140, 145, .14) !important; border-radius: 10px; }
  .ucx-mega > .ucx-sub { width: auto; right: auto; }
  .ucx-sub, .ucx-sub-grid { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 2px 0 6px 12px; background: transparent; grid-template-columns: 1fr; }
  .ucx-item.is-open > .ucx-sub { display: block; }
  .ucx-item:hover > .ucx-sub { display: none; }
  .ucx-item.is-open:hover > .ucx-sub { display: block; }
  .ucx-sub .ucx-link { color: var(--ucx-header-fg) !important; }
  .ucx-chrome .ucx-cta { width: 100%; }
}

/* ---------- call-to-action band ---------- */
.ucx-band { background: linear-gradient(120deg, var(--uc-primary), var(--uc-primary-dark)); color: #fff; margin-top: 48px; }
.ucx-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 38px; padding-bottom: 38px; flex-wrap: wrap; }
.ucx-band h2 { margin: 0 0 6px; color: #fff; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; }
.ucx-band p { margin: 0; opacity: .9; font-size: 16px; max-width: 560px; }

/* ---------- footer ---------- */
.ucx-footer { background: var(--ucx-footer-bg); color: var(--ucx-footer-fg); font-size: 15px; }
.ucx-band + .ucx-footer { margin-top: 0; }
.ucx-footer a { color: inherit !important; }
.ucx-fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr .8fr; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
.ucx-fbrand p { margin: 14px 0 0; opacity: .8; max-width: 340px; }
.ucx-fcol h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--uc-accent); font-weight: 800; }
.ucx-fcol li { margin: 0 0 9px; }
.ucx-fcol li a { opacity: .82; transition: opacity .15s, padding-left .15s; }
.ucx-fcol li a:hover { opacity: 1; padding-left: 4px; color: var(--uc-accent) !important; }
.ucx-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ucx-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  transition: background .15s, transform .15s, border-color .15s; }
.ucx-social a:hover { background: var(--uc-accent); border-color: var(--uc-accent); color: var(--ucx-on-accent) !important; transform: translateY(-2px); }
.ucx-bottom { border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; }
.ucx-bottom-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; }
.ucx-note { opacity: .7; flex: 1 1 280px; }
.ucx-chrome a.ucx-top { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); }
.ucx-chrome a.ucx-top:hover { background: var(--uc-accent); color: var(--ucx-on-accent) !important; }

@media (max-width: 980px) { .ucx-fgrid { grid-template-columns: 1fr 1fr; padding-top: 40px; } .ucx-fbrand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .ucx-fgrid { grid-template-columns: 1fr; gap: 26px; }
  .ucx-bottom-in { flex-direction: column; align-items: flex-start; }
  .ucx-chrome a.ucx-top { margin-left: 0; }
  .ucx-band-in .ucx-cta { width: 100%; }
}
/* keep the floating WhatsApp button clear of the footer text on phones */
.ucx-footer { padding-bottom: 0; }
@media (max-width: 560px) { .ucx-bottom { padding-bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .ucx-chrome * { transition: none !important; } }
