/* ===== Shared layout (Header + Footer) ===== */
:root{
  --navy:#081a33;
  --navy2:#0b2346;
  --gold:#d7b56d;
  --gold2:#caa353;
  --shadow2: 0 10px 24px rgba(2,8,23,.10);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; font-family: var(--sans); }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }

/* shared container used by partials */
.container{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
}

/* anchor offset for sticky header */
[id]{ scroll-margin-top: 110px; }

/* ---------- top info bar ---------- */
.topbar{
  background: var(--navy);
  color:#fff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
}
.topbar .left, .topbar .right{
  display:flex;
  align-items:center;
  gap: 16px;
  min-width: 0;
}
.topbar a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,.92);
  white-space:nowrap;
}
.topbar .badge{
  color: rgba(255,255,255,.80);
  white-space:nowrap;
}

/* IMPORTANT: SVG icon sizing */
.icon{ width:16px;height:16px; opacity:.9; }

.social{
  display:flex; align-items:center; gap:10px;
}
.social a{
  width:32px;height:32px;border-radius:10px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.14);
  transition:.18s ease;
}
.social a:hover{ background: rgba(255,255,255,.08); }

@media (max-width: 820px){
  .topbar .inner{ flex-direction:column; align-items:stretch; gap:10px; }
  .topbar .left{
    overflow-x:auto; -webkit-overflow-scrolling:touch;
    scrollbar-width:none; white-space:nowrap; padding-bottom:2px;
  }
  .topbar .left::-webkit-scrollbar{ display:none; }
  .topbar .right{ justify-content:flex-end; }
}

/* ===== ALWAYS STICKY HEADER (FIXED, RELIABLE) ===== */
#siteHeader{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.navwrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 0; /* slightly tighter */
}

/* ===== BRAND / LOGO (BIGGER) ===== */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand .logoBox{
  width: 260px;  /* bigger */
  height: 82px;  /* bigger */
  display:flex;
  align-items:center;
}
.brand img{
  max-height: 82px; /* bigger */
  width:auto;
  object-fit:contain;
  filter: brightness(0) invert(1);
}

/* ===== DESKTOP NAV (BOLDER + CLEARER) ===== */
nav.desktop{
  display:flex;
  align-items:center;
  gap: 24px;               /* more premium spacing */
  font-size: 14.5px;       /* bigger */
  letter-spacing:.07em;
  text-transform: uppercase;
}

nav.desktop a{
  padding: 12px 4px;
  font-weight: 750;                   /* bolder */
  color: rgba(255,255,255,.98);       /* cleaner white */
  opacity: 1;
  transition:.15s ease;
}

nav.desktop a:hover{ color:#fff; }

nav.desktop a.active{
  color: var(--gold);
  position:relative;
}
nav.desktop a.active::after{
  content:"";
  position:absolute;
  left:4px; right:4px; bottom:4px;   /* adjusted */
  height:2px;
  background: var(--gold);
  border-radius: 999px;
}

/* ===== NAV ACTIONS ===== */
.navActions{ display:flex; align-items:center; gap:10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding: 12px 18px;
  border-radius: 999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:.18s ease;
  font-weight:600;
  background:transparent;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.btn.primary{
  background: var(--gold);
  color:#10203a;
  box-shadow: 0 10px 24px rgba(215,181,109,.22);
}
.btn.primary:hover{ background: var(--gold2); }

.btn.light{
  border-color: rgba(2,8,23,.10);
  color:#111827;
  background:#fff;
}
.btn.light:hover{ box-shadow: var(--shadow2); transform: translateY(-1px); }

.searchBtn{
  width:42px;height:42px;border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  display:grid;place-items:center;
  cursor:pointer;
  transition:.18s ease;
  color:#fff;
}
.searchBtn:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* ===== DROPDOWN (FIXED PREMIUM) ===== */
.dd{ position:relative; display:inline-flex; align-items:center; }

.ddHead{
  display:inline-flex;
  align-items:center;
  gap: 6px;
}

.ddLink{
  padding: 12px 4px;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  font-weight: 750;
  color: rgba(255,255,255,.98);
}

/* Immigration always gold */
.ddLink.isGold{
  color: var(--gold);
}
.ddLink.isGold:hover{
  color: var(--gold2);
}

/* Caret button */
.ddToggle{
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 12px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
}
.ddToggle::-moz-focus-inner{ border:0; }
.ddToggle:focus{ outline:none; box-shadow:none; }
.ddToggle:hover{ color: var(--gold2); }

.caret{ width:10px;height:10px; opacity:.95; transform: translateY(1px); }

/* Mega menu panel */
.mega{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  top: 54px;
  width: 760px;
  background: linear-gradient(180deg, #071a36, #06152b);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(2,8,23,.22);
  padding: 18px;
  display:none;
}

/* Open state controlled by JS (dd.open) */
.dd.open .mega{ display:block; }

.mega .grid{
  display:grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 18px;
  align-items:start;
}
.mega .divider{ background: rgba(255,255,255,.16); height:100%; }

.mega a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  text-transform:none;
  letter-spacing:0;
  font-size: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.mega a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.mega small{ color: rgba(255,255,255,.65); font-size: 12px; }

/* ===== MOBILE ===== */
.burger{
  display:none;
  width:44px;height:44px;border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;height:2px;
  margin:4px auto;
  border-radius:999px;
  background:#fff;
}

.mobilePanel{
  display:none;
  border-top:1px solid rgba(255,255,255,.10);
  background: var(--navy);
}
.mobilePanel .inner{ padding: 12px 0 18px; display:grid; gap: 10px; }

.mLink{
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:700;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}

.mSub{ display:none; padding: 0 12px 12px; margin-top: -6px; }
.mSub a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  margin-top: 8px;
  font-weight: 700;
  color:#fff;
}

.mRow{ display:flex; gap: 10px; flex-wrap:wrap; padding: 8px 0 0; }

@media (max-width: 980px){
  nav.desktop{ display:none; }
  .burger{ display:block; }
  .brand{ min-width:auto; }
  .brand .logoBox{ width: 170px; height: 66px; } /* bigger than before */
  .brand img{ max-height: 66px; }
  .navActions .searchBtn{ display:none; }
}
header.menuOpen .mobilePanel{ display:block; }

/* ===== FOOTER ===== */
#siteFooter{
  background: var(--navy);
  color:#fff;
  padding: 62px 0 28px;
}

.footGridPro{
  display:grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 42px;
  align-items:start !important;
}

.footBrandPro{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:14px;
  margin-top: 0;
  padding-top: 0;
}

.brandLogoBig{
  max-height: 104px;
  width:auto;
  display:block;
  margin: 0 0 6px 0;
  filter: brightness(0) invert(1);
}

.oiscRow{ display:flex; align-items:center; gap:14px; margin-top:4px; }

.oiscBadge{
  width:auto;
  background:#fff;
  border-radius:14px;
  padding:10px;
  flex:0 0 auto;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.oiscImg{ width:72px; height:auto; display:block; filter:none !important; }

.oiscTitle{ font-weight:800; color: rgba(255,255,255,.92); font-size: 13.5px; }
.oiscReg{ margin-top: 6px; color: rgba(255,255,255,.72); font-size: 13px; }

.footAbout{
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  font-size: 13.8px;
  margin: 6px 0 0;
  max-width: 44ch;
}

.footColPro h4{
  margin: 6px 0 14px;
  font-size: 13px;
  letter-spacing:.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

.footList{ display:flex; flex-direction:column; gap: 8px; }
.footItem{ color: rgba(255,255,255,.72); font-size: 13.8px; line-height: 1.6; }
a.footItem:hover{ color:#fff; }

.footSocial{ display:flex; gap: 10px; margin-top: 14px; }
.footSocial a{
  width: 36px; height: 36px; border-radius: 12px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  transition:.18s ease;
}
.footSocial a:hover{ background: rgba(255,255,255,.10); transform: translateY(-1px); }

.footLine{ height:1px; background: rgba(255,255,255,.10); margin: 34px 0 18px; }

.copyright{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  color: rgba(255,255,255,.65);
  font-size: 12.8px;
}
.backTopLink{ color: rgba(255,255,255,.70); }
.backTopLink:hover{ color:#fff; }

@media (max-width: 980px){
  .footGridPro{ grid-template-columns: 1fr; gap: 18px; }
}
