/* ==========================================================================
   Northern Arc Immigration Services Ltd. — site styles
   Hand-written, framework-free. v2.0
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --navy: #14304a;
  --navy-600: #1d4368;
  --navy-700: #0e2438;
  --navy-050: #eef3f8;
  --gold: #f4b400;
  --gold-600: #d99e00;
  --maple: #d52b1e;

  --ink: #1b2733;
  --muted: #5b6b7b;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 56, .06), 0 4px 14px rgba(16, 36, 56, .06);
  --shadow-md: 0 10px 30px rgba(16, 36, 56, .12);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 74px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { line-height: 1.18; color: var(--navy); font-weight: 800; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--gold-600); }
.section-head h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.5rem); margin-bottom: .35em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .8em;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font-weight: 700; font-size: .98rem; font-family: inherit;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--gold); color: var(--navy-700); box-shadow: 0 6px 18px rgba(244, 180, 0, .35); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy-700); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- Header / nav ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand .brand-name { color: var(--navy); font-size: 1.06rem; line-height: 1.1; }
.brand .brand-sub { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: .96rem; padding: 10px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-600); background: var(--navy-050); }
.main-nav .caret { width: .7em; height: .7em; transition: transform .2s var(--ease); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 248px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 7px; font-size: .92rem; }
.dropdown .has-dropdown > a .caret { transform: rotate(-90deg); margin-left: auto; }
.dropdown .dropdown { top: -9px; left: 100%; }
.header-cta { margin-left: 10px; }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff; padding: calc(var(--header-h) + 90px) 0 96px;
  background: linear-gradient(105deg, rgba(14, 36, 56, .92) 18%, rgba(14, 36, 56, .55) 100%),
    image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
}
.hero-inner { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem); margin-bottom: .4em; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, .9); margin-bottom: 1.8em; max-width: 56ch; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Trust bar ---- */
.trust-bar { background: var(--navy-700); color: rgba(255, 255, 255, .92); }
.trust-bar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; list-style: none; margin: 0; padding: 18px 0; }
.trust-bar li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.trust-bar svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* ---- Cards grid ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d6e0ea; }
.service-card .icon {
  width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center;
  background: var(--navy-050); color: var(--navy); margin-bottom: 18px;
}
.service-card .icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: .35em; }
.service-card p { color: var(--muted); font-size: .98rem; margin-bottom: 1.1rem; }
.service-card .more { margin-top: auto; font-weight: 700; color: var(--gold-600); display: inline-flex; align-items: center; gap: 6px; }
.service-card .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.service-card:hover .more svg { transform: translateX(4px); }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about-badge {
  position: absolute; right: -14px; bottom: -18px; background: var(--gold); color: var(--navy-700);
  font-weight: 800; padding: 16px 20px; border-radius: 12px; box-shadow: var(--shadow-md); line-height: 1.1;
}
.about-badge span { display: block; font-size: 1.7rem; }
.about-badge small { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.checklist { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.checklist svg { width: 22px; height: 22px; color: var(--gold-600); flex: none; margin-top: 2px; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); color: var(--navy); font-weight: 800; }
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---- CTA band ---- */
.cta-band {
  position: relative; color: #fff; text-align: center; padding: 80px 0;
  background: linear-gradient(rgba(14, 36, 56, .9), rgba(14, 36, 56, .9)),
    image-set(url("../img/cta-band.webp") type("image/webp"), url("../img/cta-band.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 60ch; margin: 0 auto 1.6em; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Breadcrumb (inner pages) ---- */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; padding: calc(var(--header-h) + 56px) 0 56px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); margin-bottom: .35em; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; font-size: .9rem; }
.breadcrumb li { color: rgba(255, 255, 255, .6); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .35); }

/* ---- Article / service detail layout ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; color: var(--navy-600); margin: 1.5em 0 .4em; }
.prose p { color: #34424f; }
.prose > ul { list-style: none; padding: 0; }
.prose > ul > li { position: relative; padding-left: 32px; margin-bottom: 12px; color: #34424f; }
.prose > ul > li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: 18px; height: 18px;
  background: var(--navy-050); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99e00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.prose ol { padding-left: 1.2em; color: #34424f; }
.prose ol ul { margin: .4em 0; }
.card-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.card-block + .card-block { margin-top: 0; }

/* ---- Sidebar ---- */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.side-card .side-head { background: var(--navy); color: #fff; padding: 18px 22px; font-weight: 800; }
.side-card .side-body { padding: 18px 22px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; color: var(--navy); font-weight: 600; font-size: .95rem; }
.side-links a:hover { color: var(--gold-600); }
.side-links a[aria-current="page"] { color: var(--gold-600); }
.side-links svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.side-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; border-radius: var(--radius); padding: 26px 24px; }
.side-cta h3 { color: #fff; font-size: 1.2rem; }
.side-cta p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.side-cta .btn { margin-top: 8px; }

/* ---- Contact ---- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.contact-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); }
.contact-card .icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-050); color: var(--navy); margin: 0 auto 16px; }
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.contact-card a { font-weight: 700; }
.contact-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.contact-grid iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-panel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 32px; }
.contact-panel h2 { color: #fff; }
.contact-panel p { color: rgba(255, 255, 255, .85); }
.contact-actions { display: grid; gap: 12px; margin-top: 22px; }
.hours { list-style: none; padding: 0; margin: 22px 0 0; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-700); color: rgba(255, 255, 255, .76); padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1em; letter-spacing: .02em; }
.site-footer a { color: rgba(255, 255, 255, .76); }
.site-footer a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--gold); color: var(--navy-700); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 52px; padding: 22px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }
.footer-bottom .disclaimer { color: rgba(255, 255, 255, .5); max-width: 70ch; margin: 0 auto; text-align: center; font-size: .82rem; padding-bottom: 22px; }

/* ---- Scroll-to-top ---- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
  border-radius: 50%; background: var(--gold); color: var(--navy-700); display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s var(--ease); border: none; cursor: pointer;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 22px; height: 22px; }

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .about-grid, .contact-grid, .layout { grid-template-columns: 1fr; }
  .layout { gap: 36px; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-media { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  /* backdrop-filter would make the header the containing block for the fixed
     menu, collapsing its height — keep it solid on mobile instead. */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; margin-left: auto;
    background: var(--navy-050); border: none; border-radius: 10px; color: var(--navy); cursor: pointer;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; left: auto; bottom: 0;
    width: min(86vw, 340px); height: calc(100dvh - var(--header-h));
    background: #fff; box-shadow: -8px 0 40px rgba(16, 36, 56, .18); padding: 14px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); transition: transform .28s var(--ease);
    border-left: 1px solid var(--line); z-index: 110;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 14px; justify-content: space-between; }
  .main-nav .caret { transition: transform .2s var(--ease); }
  .has-dropdown.expanded > a .caret { transform: rotate(180deg); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 4px 12px;
    padding: 2px 0; display: none; min-width: 0;
  }
  .has-dropdown.expanded > .dropdown { display: block; }
  .dropdown .dropdown { left: 0; }
  .dropdown .has-dropdown > a .caret { transform: none; }
  .has-dropdown.expanded > a .caret { transform: rotate(180deg); }
  .contact-cards, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .about-badge { right: 10px; }
}
