/* Canada immigration hub and programme pages */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 10px 14px; background: var(--gold); color: var(--navy); font-weight: 800; }
.skip-link:focus { left: 12px; top: 12px; }

/* Hero */
.ca-hero { position: relative; display: flex; align-items: center; overflow: hidden; color: #fff; background: #0a1626; isolation: isolate; }
.ca-hero-full { min-height: calc(100svh - 110px); padding: 56px 0 40px; }
.ca-hero-prog { min-height: min(72svh, 640px); padding: 56px 0; }
.ca-hero-bg { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(100deg, rgba(8,23,40,.96) 0%, rgba(8,23,40,.88) 42%, rgba(120,16,24,.55) 78%, rgba(200,30,40,.45) 100%),
  url("hero-immigration.webp") center / cover no-repeat; }
.ca-maple { position: absolute; z-index: -1; right: -6%; top: 50%; width: min(56vw, 640px); transform: translateY(-50%) rotate(-8deg); color: #d52b1e; opacity: .22; }
.ca-hero-inner { position: relative; max-width: 1180px; }
.ca-breadcrumb { margin-bottom: 22px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; }
.ca-breadcrumb a { color: rgba(255,255,255,.86); text-decoration: none; }
.ca-breadcrumb a:hover { color: var(--gold); }
.ca-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ca-flag { font-size: 18px; letter-spacing: 0; }
.ca-hero h1 { max-width: 760px; margin: 0; color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(40px, 6vw, 76px); font-weight: 400; line-height: 1.04; }
.ca-hero h1 span { display: block; color: var(--gold); }
.ca-lead { max-width: 640px; margin: 20px 0 0; color: rgba(255,255,255,.86); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; }

/* Buttons */
.ca-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ca-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; font: 750 15px/1 Manrope, system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s; }
.ca-btn:hover { transform: translateY(-1px); }
.ca-btn-gold { background: var(--gold); color: #111; }
.ca-btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.ca-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.ca-btn-icon { display: inline-grid; width: 18px; height: 18px; }
.ca-btn-icon svg { width: 18px; height: 18px; }

.ca-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 650; }
.ca-trust span::before { content: "✓"; margin-right: 7px; color: var(--gold); }

.ca-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; max-width: 980px; }
.ca-chip { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.07); backdrop-filter: blur(6px); color: #fff; font-weight: 750; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s; }
.ca-chip:hover { border-color: var(--gold); background: rgba(255,255,255,.12); }
.ca-chip-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(213,173,88,.18); color: var(--gold); }
.ca-chip-icon svg { width: 18px; height: 18px; }

/* Sections */
.ca-section { padding: clamp(56px, 7vw, 92px) 0; }
.ca-alt { background: color-mix(in srgb, var(--gold) 6%, var(--paper)); }
.ca-head { max-width: 720px; margin-bottom: 36px; }
.ca-kicker { margin: 0 0 10px; color: var(--gold-strong); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ca-head h2 { margin: 0; color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; line-height: 1.12; }
.ca-head p { margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.ca-narrow { max-width: 860px; }

.ca-grid { display: grid; gap: 18px; }
.ca-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ca-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Programme cards */
.ca-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: border-color .15s, transform .15s, box-shadow .15s; }
.ca-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.ca-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-strong); }
.ca-icon svg { width: 24px; height: 24px; }
.ca-card h3 { display: flex; align-items: flex-start; min-height: 2.5em; margin: 18px 0 8px; font-size: 20px; line-height: 1.25; }
.ca-card > p { min-height: 4.8em; }
.ca-card h3 a { color: var(--ink); text-decoration: none; }
.ca-card > p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.ca-card ul { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.ca-card li { position: relative; padding-left: 20px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.ca-card li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.ca-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--gold-strong); font-weight: 800; font-size: 14px; text-decoration: none; }
.ca-card-link:hover { color: var(--ink); }

/* Steps */
.ca-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ca-steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ca-steps li { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ca-step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; }
.ca-steps h3 { margin: 14px 0 6px; color: var(--ink); font-size: 17px; }
.ca-steps p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* Why */
.ca-why-item { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ca-why-item h3 { margin: 14px 0 6px; color: var(--ink); font-size: 17px; }
.ca-why-item p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* At a glance */
.ca-glance-wrap { padding: 0; margin-top: -48px; position: relative; z-index: 2; }
.ca-glance-item { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.ca-glance-item strong { color: var(--gold-strong); font-family: "DM Serif Display", Georgia, serif; font-size: 26px; font-weight: 400; line-height: 1.1; }
.ca-glance-item span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* Two column: heading + list */
.ca-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.ca-split .ca-head { margin-bottom: 0; }
.ca-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ca-list li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.5; }
.ca-li-icon { display: grid; flex: none; width: 22px; height: 22px; color: var(--gold-strong); }
.ca-li-icon svg { width: 22px; height: 22px; }

/* FAQ */
.ca-faq-item { border-bottom: 1px solid var(--line); }
.ca-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.ca-faq-item summary::-webkit-details-marker { display: none; }
.ca-faq-item summary::after { content: "+"; flex: none; color: var(--gold-strong); font-size: 24px; font-weight: 400; line-height: 1; }
.ca-faq-item[open] summary::after { content: "–"; }
.ca-faq-item h3 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.4; }
.ca-faq-item p { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

/* Closing band */
.ca-band { padding: 56px 0; background: var(--navy); color: #fff; }
.ca-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ca-band h2 { margin: 0; color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(26px, 3vw, 36px); font-weight: 400; }
.ca-band p { margin: 8px 0 0; color: rgba(255,255,255,.78); }
.ca-band .ca-cta-row { margin-top: 0; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Responsive */
@media (max-width: 1100px) {
  .ca-grid-4, .ca-steps, .ca-steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .ca-hero-full { min-height: calc(100svh - 76px); padding: 36px 0 32px; }
  .ca-hero-prog { min-height: 0; padding: 40px 0 72px; }
  .ca-maple { right: -30%; width: 110vw; opacity: .14; }
  .ca-grid-4, .ca-grid-3, .ca-steps, .ca-steps-5 { grid-template-columns: 1fr; }
  .ca-chips { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
  .ca-chip { padding: 10px 12px; font-size: 13.5px; }
  .ca-chip-icon { width: 28px; height: 28px; }
  .ca-cta-row { flex-direction: column; align-items: stretch; }
  .ca-btn { justify-content: center; }
  .ca-glance-wrap { margin-top: -40px; }
}

/* Phones: keep the full banner within one screen */
@media (max-width: 700px) {
  .ca-hero-full { min-height: calc(100svh - 76px); padding: 24px 0 24px; }
  .ca-breadcrumb { margin-bottom: 14px; }
  .ca-hero h1 { font-size: 38px; }
  .ca-lead { margin-top: 14px; font-size: 15px; line-height: 1.55; }
  .ca-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .ca-cta-row .ca-btn-gold { grid-column: 1 / -1; }
  .ca-btn { min-height: 46px; padding: 0 10px; font-size: 14px; }
  .ca-hero-full .ca-trust { display: none; }
  .ca-chips { margin-top: 18px; }
  .ca-chip { padding: 9px 10px; gap: 8px; font-size: 13px; line-height: 1.25; }
}
@media (max-width: 700px) { .ca-hero-full { min-height: calc(100svh - 160px); align-items: flex-start; } }
.ca-chips { grid-auto-rows: 1fr; }

/* At a glance v2: one clean panel with dividers, floating below the buttons */
.ca-hero-prog { padding-bottom: 128px; }
.ca-glance-wrap { margin-top: -72px; }
.ca-glance { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 24px 60px rgba(8,23,40,.14); }
.ca-glance .ca-glance-item { position: relative; justify-content: flex-start; gap: 8px; padding: 26px 28px 28px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.ca-glance .ca-glance-item + .ca-glance-item { border-left: 1px solid var(--line); }
.ca-glance .ca-glance-item::before { content: ""; width: 28px; height: 3px; margin-bottom: 6px; border-radius: 3px; background: var(--gold); }
.ca-glance .ca-glance-item strong { font-size: 30px; letter-spacing: -.01em; }
.ca-glance .ca-glance-item span { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
@media (max-width: 1100px) {
  .ca-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-glance .ca-glance-item + .ca-glance-item { border-left: 0; }
  .ca-glance .ca-glance-item:nth-child(even) { border-left: 1px solid var(--line); }
  .ca-glance .ca-glance-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .ca-hero-prog { padding-bottom: 96px; }
  .ca-glance-wrap { margin-top: -60px; }
  .ca-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
  .ca-glance .ca-glance-item { padding: 18px 16px 20px; gap: 6px; }
  .ca-glance .ca-glance-item strong { font-size: 22px; }
  .ca-glance .ca-glance-item span { font-size: 12.5px; line-height: 1.5; }
}

/* Central immigration page */
.im-hero .ca-hero-bg { background:
  linear-gradient(100deg, rgba(8,23,40,.96) 0%, rgba(8,23,40,.86) 45%, rgba(8,23,40,.55) 100%),
  url("hero-immigration.webp") center / cover no-repeat; }
.ca-globe { position: absolute; z-index: -1; right: -4%; top: 50%; width: min(48vw, 560px); transform: translateY(-50%); color: var(--gold); opacity: .28; }
.im-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.im-flag { font-size: 20px; line-height: 1; }
.im-chip { justify-content: flex-start; }
.im-country-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.im-country-head h2 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; line-height: 1.15; }
.im-country-head h2 a { color: var(--ink); text-decoration: none; }
.im-country-head p:not(.ca-kicker) { max-width: 640px; margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.im-country-head .ca-kicker { display: flex; align-items: center; gap: 8px; }
.ca-btn-navy { flex: none; background: var(--navy); color: #fff; }
.ca-btn-navy:hover { background: var(--gold); color: #111; }
.im-progs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.im-prog { display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.im-prog:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.im-prog strong { display: block; font-size: 15px; line-height: 1.3; }
.im-prog small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.im-prog-arrow { color: var(--gold-strong); opacity: .7; }
@media (max-width: 1100px) {
  .im-progs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .im-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .im-country-head { flex-direction: column; align-items: flex-start; }
  .im-progs { grid-template-columns: 1fr; }
  .im-chips { grid-template-columns: 1fr 1fr; }
  .im-chips .im-chip:last-child { grid-column: 1 / -1; }
  .ca-globe { right: -35%; width: 110vw; opacity: .16; }
}
.im-hero h1 { font-size: clamp(38px, 5vw, 64px); }
@media (max-width: 700px) { .im-hero h1 { font-size: 34px; } }
.im-hero h1 { max-width: 980px; }
/* Short laptop screens (e.g. 1366x768): keep the destination/programme chips on the first screen */
@media (min-width: 701px) and (max-height: 820px) {
  .ca-hero-full { padding: 28px 0 28px; }
  .ca-hero-full .ca-breadcrumb { margin-bottom: 12px; }
  .ca-hero-full h1 { font-size: clamp(36px, 4.4vw, 56px); }
  .ca-hero-full .ca-lead { margin-top: 14px; font-size: 16px; }
  .ca-hero-full .ca-cta-row { margin-top: 20px; }
  .ca-hero-full .ca-trust { display: none; }
  .ca-hero-full .ca-chips { margin-top: 22px; }
}

/* Immigration banner video */
.im-hero .ca-hero-bg { z-index: -4; }
.im-hero-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.im-hero-video.is-playing { opacity: 1; }
.im-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(8,23,40,.92) 0%, rgba(8,23,40,.78) 42%, rgba(8,23,40,.35) 100%); }
.im-hero .ca-globe { z-index: -1; }
.im-video-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(8,23,40,.5); color: #fff; font-size: 12px; cursor: pointer; }
.im-video-toggle:hover { border-color: var(--gold); color: var(--gold); }
.im-video-toggle[hidden] { display: none; }
@media (max-width: 700px) { .im-video-toggle { bottom: 12px; right: 12px; width: 34px; height: 34px; } }
.im-hero .ca-hero-bg { background: url("video/immigration-hero-poster.jpg") center / cover no-repeat; }

/* Canada hub banner video */
.has-video .ca-hero-bg { z-index: -4; }
.has-video .ca-maple { z-index: -1; opacity: .16; }
.ca-hub .ca-hero-bg { background: url("video/canada-hero-poster.jpg") center / cover no-repeat; }
.ca-hub .im-hero-shade { background: linear-gradient(100deg, rgba(8,23,40,.92) 0%, rgba(8,23,40,.78) 45%, rgba(110,14,22,.45) 100%); }
/* The video already shows real maple leaves; drop the decorative leaf on video banners */
.has-video .ca-maple { display: none; }
/* No decorative globe over the immigration video */
.im-hero .ca-globe { display: none; }

/* On-page assessment form */
.ca-assess { background: var(--navy); color: #fff; scroll-margin-top: 80px; }
.ca-assess-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.ca-assess-copy .ca-kicker { color: var(--gold); }
.ca-assess-copy h2 { margin: 0; color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(30px, 3.4vw, 42px); font-weight: 400; line-height: 1.12; }
.ca-assess-copy > p { margin: 14px 0 0; color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.65; }
.ca-assess-points { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ca-assess-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.5; }
.ca-assess-points .ca-li-icon { color: var(--gold); }
.ca-assess-contact { display: grid; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.ca-assess-contact small { display: block; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ca-assess-contact strong { color: #fff; font-size: 15px; }
.ca-assess-contact a { color: var(--gold); text-decoration: none; }
.ca-form { padding: 28px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.ca-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ca-field { display: grid; gap: 6px; }
.ca-full { grid-column: 1 / -1; }
.ca-field label { color: var(--ink); font-size: 13px; font-weight: 750; }
.ca-field input, .ca-field select, .ca-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 500 15px/1.4 Manrope, system-ui, sans-serif; }
.ca-field textarea { min-height: 84px; resize: vertical; }
.ca-field input:focus, .ca-field select:focus, .ca-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--gold) 60%, transparent); outline-offset: 1px; border-color: var(--gold); }
.ca-field [aria-invalid="true"] { border-color: #c0392b; }
.ca-err { min-height: 0; color: #c0392b; font-size: 12.5px; font-weight: 600; }
.ca-err:empty { display: none; }
.ca-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.ca-form-foot .ca-btn { border: 0; cursor: pointer; }
.ca-form-foot .ca-btn[disabled] { opacity: .7; cursor: wait; }
.ca-form-status { margin: 0; font-size: 14px; font-weight: 600; }
.ca-form-status.success { color: #1e7d45; }
.ca-form-status.error { color: #c0392b; }
@media (max-width: 1100px) { .ca-assess-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 700px) {
  .ca-form { padding: 20px 16px; }
  .ca-form-grid { grid-template-columns: 1fr; }
  .ca-form-foot .ca-btn { width: 100%; justify-content: center; }
}
