/* ═══════════════════════════════════════════
   ORBIS IMMIGRATION SERVICES — SHARED STYLES
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Oxford Blue palette */
  --oxford:        #002147;
  --oxford-dark:   #001530;
  --oxford-mid:    #0a2d5e;
  --oxford-light:  #1a3d6e;
  --oxford-faint:  #213a5c;
  /* Gold — accent only */
  --gold:          #C9A84C;
  --gold-bright:   #E8C96A;
  --gold-dark:     #A87832;
  --gold-muted:    #7a5c28;
  /* Light sections */
  --light-bg:      #F5F7FA;
  --light-surface: #FFFFFF;
  --light-border:  #DDE3EC;
  --light-mid:     #E8EDF5;
  /* Text */
  --text-dark:     #0d1f38;
  --text-mid:      #3a4a60;
  --text-light:    #6a7a8e;
  --text-faint:    #9aa6b8;
  --white:         #ffffff;
  --body-on-dark:  #8fa8c8;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--oxford-dark);
  color: var(--body-on-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: 96px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--oxford-dark);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ── GOLD TOP BAR ── */
.gold-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark) 20%, var(--gold) 40%, var(--gold-bright) 50%, var(--gold) 60%, var(--gold-dark) 80%, transparent);
}

/* ── UPL BANNER ── */
.upl-banner {
  background: var(--oxford-dark);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 8px 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(143,168,200,0.75);
  letter-spacing: 0.3px;
  text-align: center;
}
.upl-banner i       { color: var(--gold); font-size: 11px; flex-shrink: 0; }
.upl-banner strong  { color: rgba(143,168,200,0.95); font-weight: 500; }

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(0,21,48,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition: background 0.3s, border-color 0.3s;
}
.partial-error {
  background: var(--oxford-dark);
  color: var(--gold-bright);
  padding: 1rem 5vw;
  text-align: center;
  font-size: 13px;
}
.nav-logo  { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-img {
  display: block;
  width: 150px;
  height: auto;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,168,76,0.28);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 1px;
  background: var(--gold-bright);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 700;
  color: var(--gold); letter-spacing: 6px;
  line-height: 1; display: block;
}
.nav-sub {
  font-size: 7.5px; color: var(--gold-muted);
  letter-spacing: 3.5px; display: block; margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 10.5px; font-weight: 500; letter-spacing: 2px;
  color: rgba(143,168,200,0.7); text-decoration: none;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-bright); }
.btn-nav {
  background: var(--gold) !important;
  color: var(--oxford-dark) !important;
  padding: 10px 24px; font-weight: 600;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--gold-bright) !important; }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-block;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  background: var(--gold); color: var(--oxford-dark);
  padding: 15px 40px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer; border: none;
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }

.btn-outline-gold {
  display: inline-block;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  border: 1px solid rgba(201,168,76,0.5); color: var(--gold);
  padding: 14px 36px; text-decoration: none; background: transparent;
  transition: border-color 0.2s, background 0.2s, transform 0.15s; cursor: pointer;
}
.btn-outline-gold:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.07);
  transform: translateY(-2px);
}

.btn-oxford {
  display: inline-block;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  background: var(--oxford); color: var(--white);
  padding: 15px 40px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer; border: none;
}
.btn-oxford:hover { background: var(--oxford-mid); transform: translateY(-2px); }

.btn-outline-oxford {
  display: inline-block;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  border: 1px solid rgba(0,33,71,0.35); color: var(--text-mid);
  padding: 14px 36px; text-decoration: none; background: transparent;
  transition: border-color 0.2s, background 0.2s, transform 0.15s; cursor: pointer;
}
.btn-outline-oxford:hover {
  border-color: var(--oxford);
  background: rgba(0,33,71,0.04);
  transform: translateY(-2px);
}

/* ── SHARED TYPOGRAPHY ── */
.eyebrow-dark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 3.5px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1.2rem;
}
.eyebrow-dark::before { content: ''; width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }

.eyebrow-light {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 3.5px;
  color: var(--gold-dark); text-transform: uppercase; margin-bottom: 1.2rem;
}
.eyebrow-light::before { content: ''; width: 24px; height: 1px; background: var(--gold-dark); flex-shrink: 0; }

.title-dark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.5vw, 52px); font-weight: 300;
  color: var(--white); line-height: 1.1;
}
.title-dark em { font-style: italic; color: var(--gold-bright); font-weight: 300; }

.title-light {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.5vw, 52px); font-weight: 300;
  color: var(--text-dark); line-height: 1.1;
}
.title-light em { font-style: italic; color: var(--gold-dark); font-weight: 300; }

/* ── IMAGE FRAMES ── */
.img-ph {
  background: var(--oxford-mid);
  border: 1px dashed rgba(201,168,76,0.2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; overflow: hidden; position: relative;
}
.img-ph i { font-size: 30px; color: rgba(201,168,76,0.3); }
.img-ph-label {
  font-size: 10.5px; letter-spacing: 1.5px;
  color: rgba(201,168,76,0.4); text-transform: uppercase;
  text-align: center; max-width: 200px; line-height: 1.65;
}
.img-ph-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,21,48,0.75);
  font-size: 9.5px; letter-spacing: 1px;
  color: rgba(201,168,76,0.6); padding: 8px 14px; text-transform: uppercase;
}

.img-ph-light {
  background: var(--light-mid);
  border: 1px dashed rgba(0,33,71,0.2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; overflow: hidden; position: relative;
}
.img-ph-light i            { font-size: 30px; color: rgba(0,33,71,0.2); }
.img-ph-light .img-ph-label   { color: rgba(0,33,71,0.35); }
.img-ph-light .img-ph-caption { background: rgba(232,237,245,0.9); color: rgba(0,33,71,0.55); }

/* ── REVEAL ANIMATIONS ── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

.js .reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.js .reveal-left.visible { opacity: 1; transform: translateX(0); }

.js .reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.js .reveal-right.visible { opacity: 1; transform: translateX(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}

/* ── SECTION BACKGROUNDS ── */
.s-light         { background: var(--light-bg);      padding: 7rem 8vw; position: relative; overflow: hidden; }
.s-light-surface { background: var(--light-surface); padding: 7rem 8vw; position: relative; overflow: hidden; }
.s-dark          { background: var(--oxford);        padding: 7rem 8vw; position: relative; overflow: hidden; }
.s-darker        { background: var(--oxford-dark);   padding: 7rem 8vw; position: relative; overflow: hidden; }

/* ── SECTION BG NUMBERS ── */
.bg-num {
  position: absolute; top: 2.5rem; right: 4vw;
  font-family: 'Cormorant Garamond', serif;
  font-size: 100px; font-weight: 300;
  opacity: 0.03; line-height: 1;
  pointer-events: none; z-index: 0; color: var(--white);
}
.bg-num-light {
  position: absolute; top: 2.5rem; right: 4vw;
  font-family: 'Cormorant Garamond', serif;
  font-size: 100px; font-weight: 300;
  opacity: 0.04; line-height: 1;
  pointer-events: none; z-index: 0; color: var(--oxford);
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  min-height: 60vh; background: var(--oxford-dark);
  display: grid; grid-template-columns: 55% 45%;
  padding-top: 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 72px 72px; pointer-events: none;
}
.page-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 5vw 5rem 8vw; position: relative; z-index: 2;
}
.page-hero-right { position: relative; overflow: hidden; }
.page-hero-img   { width: 100%; height: 100%; }

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 5vw 5rem 8vw; position: relative; z-index: 2;
}
.hero-right { position: relative; overflow: hidden; }
.hero-img   { width: 100%; height: 100%; min-height: 420px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 1.5px;
  color: rgba(143,168,200,0.4); text-transform: uppercase;
  margin-bottom: 2rem; animation: fadeUp 0.7s ease both;
}
.breadcrumb a { color: rgba(143,168,200,0.4); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i    { font-size: 8px; }
.breadcrumb span { color: rgba(143,168,200,0.7); }

/* Hero tag (subpages) */
.page-hero-tag, .hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 600; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase;
  border: 0.5px solid rgba(201,168,76,0.25);
  padding: 8px 18px; margin-bottom: 2rem;
  width: fit-content; animation: fadeUp 0.7s 0.08s ease both;
}

.page-hero-h1, .hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 74px); font-weight: 300;
  color: var(--white); line-height: 1.06;
  margin-bottom: 1.6rem; animation: fadeUp 0.7s 0.16s ease both;
}
.page-hero-h1 em, .hero-h1 em { font-style: italic; color: var(--gold-bright); }

.page-hero-sub, .hero-sub {
  font-size: 1.1em; font-weight: 300;
  color: var(--body-on-dark); line-height: 1.9;
  max-width: 460px; animation: fadeUp 0.7s 0.24s ease both;
}

/* ── UPL FOOTER DISCLAIMER ── */
.upl-footer {
  background: var(--oxford-dark);
  border-top: 1px solid rgba(143,168,200,0.08);
  padding: 1.8rem 8vw; text-align: center;
}
.upl-footer p      { font-size: 12px; color: rgba(143,168,200,0.4); line-height: 1.8; font-style: italic; letter-spacing: 0.2px; }
.upl-footer strong { color: rgba(143,168,200,0.6); font-weight: 500; }

/* ── FOOTER BAR ── */
footer {
  background: #00111e;
  border-top: 0.5px solid rgba(26,61,110,0.6);
  padding: 2rem 8vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-logo-mini  { display: flex; align-items: center; gap: 10px; }
.footer-logo-img {
  display: block;
  width: 118px;
  height: auto;
  opacity: 0.72;
}
.footer-copy  { font-size: 10px; color: rgba(143,168,200,0.25); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 10px; color: rgba(143,168,200,0.3);
  letter-spacing: 1px; text-decoration: none;
  text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-muted); }

/* ── RESPONSIVE BASE ── */
@media (max-width: 960px) {
  nav { padding: 0 5vw; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: rgba(0,21,48,0.98);
    border-bottom: 1px solid rgba(201,168,76,0.16);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a,
  .nav-links a:not(.btn-nav) {
    display: block;
    padding: 16px 5vw;
    border-top: 1px solid rgba(143,168,200,0.08);
  }
  .nav-links .btn-nav {
    margin: 12px 5vw 18px;
    text-align: center;
  }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-right, .hero-right { display: none; }
  .page-hero-left, .hero-left { padding: 4rem 5vw; }
  .s-light, .s-light-surface, .s-dark, .s-darker { padding: 5rem 5vw; }
  .upl-footer { padding: 1.5rem 5vw; }
  footer { padding: 2rem 5vw; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .reveal-left,
  .js .reveal-right {
    opacity: 1;
    transform: none;
  }
}
