/* ==========================================================================
   Shared Micro Components
   Small primitives used across pages: section eyebrows, button variants, and
   text links. These preserve one CTA hierarchy throughout the static site.
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(190, 30, 45, 0.28);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--secondary {
  border-color: rgba(8, 28, 46, 0.28);
  color: var(--navy);
}

.btn--secondary:hover {
  border-color: var(--navy);
  background: rgba(8, 28, 46, 0.04);
}

.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.btn--small {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 850;
}

.text-link::after {
  content: "←";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(-4px);
}

/* ==========================================================================
   Header, Branding, and Navigation
   Fixed transparent-to-solid header with dual logo states, desktop mega menus,
   the consultation CTA, and the mobile menu trigger.
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 12px 38px rgba(8, 28, 46, 0.08);
  backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-width: 230px;
  align-items: center;
  flex: 0 0 auto;
}

.brand__logo-wrap {
  position: relative;
  display: block;
  inline-size: 230px;
  block-size: 62px;
  flex: 0 0 auto;
}

.brand__logo {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 62px;
  object-fit: contain;
  object-position: right center;
}

.brand__logo-wrap .brand__logo {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  transition: opacity 180ms ease;
}

.brand__logo--solid {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--light,
body.menu-open .brand__logo--light {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--solid,
body.menu-open .brand__logo--solid {
  opacity: 1;
}

.brand--footer {
  min-width: 0;
  margin-bottom: 18px;
}

.brand--footer .brand__logo {
  inline-size: 260px;
  block-size: auto;
  max-block-size: 62px;
  max-inline-size: 100%;
}

.desktop-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.desktop-nav a,
.desktop-nav button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 9px 11px;
  cursor: pointer;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.2;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.has-mega > button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .desktop-nav a:hover,
.site-header.is-scrolled .desktop-nav button:hover,
.site-header.is-scrolled .has-mega > button[aria-expanded="true"] {
  background: var(--gray);
}

.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  display: grid;
  min-width: 320px;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.has-mega--edge .mega-menu {
  right: auto;
  left: 0;
}

.has-mega:hover .mega-menu,
.has-mega > button[aria-expanded="true"] + .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu a {
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.55;
  text-align: right;
}

.mega-menu a:hover {
  background: var(--soft);
  color: var(--navy);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
}

.language-switch a {
  opacity: 0.76;
}

.language-switch a[aria-current="true"] {
  color: var(--red);
  opacity: 1;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--navy);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 250ms ease, opacity 250ms ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   Accessibility Helpers and Page Heroes
   Skip links, breadcrumbs, and reusable page hero treatments for service,
   legal, contact, blog, and utility pages.
   ========================================================================== */

.skip-link {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 999;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  padding: 10px 16px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.breadcrumb--light {
  color: rgba(255, 255, 255, 0.68);
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 150px 70px;
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.96), rgba(14, 79, 120, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px);
  background-size: auto, 54px 54px;
  color: var(--white);
}

.page-hero--with-image {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.84), rgba(14, 79, 120, 0.68)),
    var(--navy);
}

.page-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero--with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 28, 46, 0.86), rgba(8, 28, 46, 0.56) 48%, rgba(8, 28, 46, 0.22)),
    linear-gradient(180deg, rgba(8, 28, 46, 0.34), rgba(8, 28, 46, 0.62));
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.page-hero--study {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.96), rgba(14, 79, 120, 0.84)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 0 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}

.page-hero--study::before,
.page-hero--work::before,
.page-hero--visitor::before,
.page-hero--immigration::before,
.page-hero--legal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-hero--study::before {
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.075) 58% 60%, transparent 60%),
    linear-gradient(120deg, transparent 0 70%, rgba(190, 30, 45, 0.18) 70% 71%, transparent 71%);
}

.page-hero--work {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.98), rgba(14, 79, 120, 0.88)),
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.055) 16% 16.4%, transparent 16.4% 33%, rgba(255, 255, 255, 0.045) 33% 33.4%, transparent 33.4%);
}

.page-hero--work::before {
  background: linear-gradient(180deg, rgba(190, 30, 45, 0.18), transparent 46%);
  clip-path: polygon(0 0, 24% 0, 8% 100%, 0 100%);
}

.page-hero--visitor {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.95), rgba(14, 79, 120, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px);
}

.page-hero--visitor::before {
  background:
    linear-gradient(90deg, rgba(190, 30, 45, 0.22), transparent 42%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06));
}

.page-hero--immigration {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.98), rgba(8, 28, 46, 0.9) 46%, rgba(14, 79, 120, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px);
  background-size: auto, 64px 64px;
}

.page-hero--immigration::before {
  background:
    linear-gradient(135deg, transparent 0 64%, rgba(190, 30, 45, 0.2) 64% 65%, transparent 65%),
    linear-gradient(135deg, transparent 0 73%, rgba(255, 255, 255, 0.08) 73% 73.4%, transparent 73.4%);
}

.page-hero--legal {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.99), rgba(22, 33, 43, 0.94) 52%, rgba(14, 79, 120, 0.86)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.page-hero--legal::before {
  background:
    linear-gradient(90deg, rgba(190, 30, 45, 0.24), transparent 36%),
    linear-gradient(135deg, transparent 0 68%, rgba(255, 255, 255, 0.08) 68% 68.4%, transparent 68.4%);
}

.page-hero--business {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.98), rgba(14, 79, 120, 0.9) 54%, rgba(8, 28, 46, 0.94)),
    linear-gradient(90deg, transparent 0 20%, rgba(255, 255, 255, 0.055) 20% 20.4%, transparent 20.4% 40%, rgba(255, 255, 255, 0.045) 40% 40.4%, transparent 40.4%),
    linear-gradient(rgba(255, 255, 255, 0.035) 0 1px, transparent 1px);
  background-size: auto, auto, 56px 56px;
}

.page-hero--business::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(190, 30, 45, 0.18) 62% 63%, transparent 63%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Forms and Consultation Intake
   Shared form cards plus multi-step intake states. forms.js owns step changes,
   validation, conditional fields, Formspree submission, and success handling.
   ========================================================================== */

.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 32px;
  align-items: start;
}

.form-layout--wide {
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 0.65fr);
}

.form-note,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-note {
  padding: 30px;
}

.form-note--sticky {
  position: sticky;
  top: 112px;
}

.form-note h2 {
  font-size: 1.55rem;
}

.form-note strong,
.form-note span,
.form-note a {
  display: block;
}

.form-note strong {
  margin-top: 22px;
  color: var(--navy);
}

.form-note span {
  color: var(--muted);
}

.form-note a {
  margin-top: 10px;
  color: var(--red);
  font-weight: 800;
}

.form-card {
  display: grid;
  gap: 18px;
  padding: 30px;
}

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

.form-grid__full {
  grid-column: 1 / -1;
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.field-hint {
  display: inline;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  padding: 13px 14px;
}

.form-card textarea {
  resize: vertical;
}

.form-status {
  margin: 0;
  border-radius: 12px;
  background: rgba(190, 30, 45, 0.08);
  color: var(--red-dark);
  padding: 12px 14px;
  font-weight: 750;
}

.form-status[hidden] {
  display: none;
}

.form-status[data-type="success"] {
  background: rgba(14, 79, 120, 0.08);
  color: var(--blue);
}

.form-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 850;
}

.form-progress__bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray);
}

.form-progress__bar i {
  display: block;
  inline-size: 0;
  block-size: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: inline-size 180ms ease;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
  gap: 18px;
}

.form-step h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.form-step > p {
  margin-bottom: 0;
}

.conditional-fields {
  border: 1px solid rgba(14, 79, 120, 0.14);
  border-radius: var(--radius);
  background: rgba(14, 79, 120, 0.04);
  padding: 16px;
}

.conditional-fields[hidden] {
  display: none;
}

.form-success {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(14, 79, 120, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14, 79, 120, 0.08), rgba(190, 30, 45, 0.06));
  padding: 24px;
}

.form-success[hidden] {
  display: none;
}

.form-success h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1.55rem;
}

.form-success p {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 8px;
}

.form-actions[hidden],
.form-actions [hidden] {
  display: none !important;
}

.consent-box {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 18px;
}

.consent-box p {
  margin-bottom: 0;
}

.check-label {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--text) !important;
  font-weight: 650 !important;
}

.form-card .check-label input {
  width: auto;
  margin-top: 8px;
}

/* ==========================================================================
   Contact, Consultation, and Office Blocks
   Reusable cards for contact details, consultation types, office hours, and map
   placeholders while provider-specific embeds remain configurable.
   ========================================================================== */

.trust-mini {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.trust-mini span,
.office-hours {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 16px 18px;
  color: var(--navy);
  font-weight: 800;
}

.office-hours__row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.consultation-types,
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.consultation-types article,
.contact-card {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.consultation-types strong,
.consultation-types span,
.contact-card span,
.contact-card strong,
.contact-card a,
.office-hours strong,
.office-hours span {
  display: block;
}

.consultation-types strong,
.contact-card strong,
.contact-card a {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 850;
}

.consultation-types span,
.contact-card span,
.office-hours span {
  color: var(--muted);
}

.contact-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.map-placeholder {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.06), rgba(190, 30, 45, 0.06)),
    linear-gradient(90deg, rgba(8, 28, 46, 0.06) 0 1px, transparent 1px),
    linear-gradient(rgba(8, 28, 46, 0.06) 0 1px, transparent 1px),
    var(--gray);
  background-size: auto, 42px 42px, 42px 42px;
  color: var(--navy);
  text-align: center;
}

.map-placeholder span {
  font-weight: 900;
}

.map-placeholder small {
  color: var(--muted);
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.map-card iframe {
  display: block;
}

/* ==========================================================================
   Long-Form Content Shell and Sticky TOC
   Service pages use a right-side table of contents on desktop. The TOC scrolls
   internally when its anchor list exceeds the viewport height.
   ========================================================================== */

.content-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc-panel {
  position: sticky;
  top: calc(var(--header-height, 84px) + 24px);
  display: grid;
  gap: 4px;
  max-height: calc(100vh - var(--header-height, 84px) - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  scrollbar-color: rgba(8, 28, 46, 0.24) transparent;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.toc-panel::-webkit-scrollbar {
  width: 6px;
}

.toc-panel::-webkit-scrollbar-track {
  background: transparent;
}

.toc-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(8, 28, 46, 0.22);
}

.toc-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(190, 30, 45, 0.34);
}

.toc-panel strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
}

.toc-panel a {
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.toc-panel a:hover,
.toc-panel a:focus-visible {
  background: var(--soft);
  color: var(--red);
}

.content-main {
  display: grid;
  gap: clamp(76px, 7vw, 96px);
}

.content-section {
  scroll-margin-top: 110px;
}

.content-section > h2,
.content-section > h3 {
  max-width: 880px;
}

.content-section > p {
  max-width: 920px;
}

/* Long-form rhythm: add breathing room between major direct children inside a
   section without changing compact spacing inside cards or repeated grids. */
.content-section > :is(
  .editorial-block,
  .compare-grid,
  .info-grid,
  .checklist-grid,
  .service-list,
  .document-table,
  .steps--light,
  .related-links,
  .faq-list,
  .inline-cta,
  .note-card,
  .quote-panel
) {
  margin-block-start: clamp(22px, 2.6vw, 34px);
}

.content-section > :is(
  .editorial-block,
  .compare-grid,
  .info-grid,
  .checklist-grid,
  .service-list,
  .document-table,
  .steps--light,
  .related-links,
  .faq-list,
  .inline-cta,
  .note-card,
  .quote-panel
) + :is(
  .editorial-block,
  .compare-grid,
  .info-grid,
  .checklist-grid,
  .service-list,
  .document-table,
  .steps--light,
  .related-links,
  .faq-list,
  .inline-cta,
  .note-card,
  .quote-panel,
  p
) {
  margin-block-start: clamp(30px, 3.4vw, 46px);
}

/* ==========================================================================
   Editorial Content Patterns
   Shared long-form building blocks: split editorial sections, advisory notes,
   checklists, comparison cards, tables, and inline consultation prompts.
   ========================================================================== */

.editorial-block {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: 32px;
  align-items: center;
}

.editorial-block--study {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  align-items: start;
}

.editorial-block--work {
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1fr);
}

.editorial-block--work > .image-slot {
  order: -1;
}

.editorial-block--visitor {
  align-items: stretch;
}

.editorial-block--visitor > div:first-child,
.editorial-block--immigration > div:first-child {
  border-inline-start: 3px solid rgba(190, 30, 45, 0.58);
  padding-inline-start: 24px;
}

.editorial-block--legal > div:first-child {
  border-inline-start: 3px solid rgba(14, 79, 120, 0.56);
  padding-inline-start: 24px;
}

.editorial-block--immigration {
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.68fr);
}

.editorial-block--legal {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  align-items: start;
}

.editorial-block--business {
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.64fr);
  align-items: start;
}

.editorial-block--business > div:first-child {
  border-inline-start: 3px solid rgba(190, 30, 45, 0.52);
  padding-inline-start: 24px;
}

.note-card,
.quote-panel,
.inline-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 24px;
}

.note-card {
  margin-top: 0;
}

.note-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
}

.note-card p,
.quote-panel p,
.inline-cta p {
  margin-bottom: 0;
}

.section--navy.process .note-card strong {
  color: #081C2E;
}

.section--navy.process .note-card p {
  color: #16212B;
}

.consultation-expectation-card {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: var(--white);
  color: #16212B;
  opacity: 1;
  -webkit-text-fill-color: #16212B;
}

.consultation-expectation-card strong,
.consultation-expectation-card p {
  position: relative;
  z-index: 1;
  color: #16212B !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #16212B !important;
  mix-blend-mode: normal;
}

.consultation-expectation-card strong {
  color: #081C2E !important;
  -webkit-text-fill-color: #081C2E !important;
}

.compare-grid,
.info-grid,
.checklist-grid,
.service-list {
  display: grid;
  gap: 18px;
}

.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid,
.service-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-grid article,
.info-grid article,
.checklist-grid div,
.service-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.compare-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(190, 30, 45, 0.08);
  padding: 4px 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.info-grid strong,
.info-grid span,
.checklist-grid strong,
.service-list h3 {
  display: block;
}

.info-grid strong,
.checklist-grid strong,
.service-list h3 {
  color: var(--navy);
  font-weight: 900;
}

.info-grid span {
  color: var(--muted);
}

.info-grid--asymmetric {
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.91fr));
}

.service-list--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist-grid--quiet div {
  background: var(--soft);
  box-shadow: none;
}

.checklist-grid p,
.service-list p {
  margin-bottom: 0;
}

.document-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.document-table > div {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.document-table > div:first-child {
  border-top: 0;
}

.document-table strong {
  color: var(--navy);
}

.document-table span {
  color: var(--muted);
}

.service-canvas {
  background: linear-gradient(180deg, #fff 0, #fafcff 48%, #fff 100%);
}

/* ==========================================================================
   Premium Service Differentiation
   Cluster modifiers provide subtle layout and material variation while staying
   inside the Shamsa brand palette.
   ========================================================================== */

.content-shell--study {
  --service-accent: #0E4F78;
  --service-accent-soft: rgba(14, 79, 120, 0.07);
  --service-accent-line: rgba(14, 79, 120, 0.18);
  --service-soft: #F8FAFC;
  --service-neutral: #EEF2F7;
  --service-dark: #081c2e;
}

.content-shell--work {
  --service-accent: #0E4F78;
  --service-accent-soft: rgba(14, 79, 120, 0.07);
  --service-accent-line: rgba(14, 79, 120, 0.18);
  --service-soft: #F8FAFC;
  --service-neutral: #EEF2F7;
  --service-dark: #081c2e;
}

.content-shell--visitor {
  --service-accent: #0E4F78;
  --service-accent-soft: rgba(14, 79, 120, 0.06);
  --service-accent-line: rgba(14, 79, 120, 0.16);
  --service-soft: #F8FAFC;
  --service-neutral: #EEF2F7;
  --service-dark: #081c2e;
}

.content-shell--immigration {
  --service-accent: #BE1E2D;
  --service-accent-soft: rgba(190, 30, 45, 0.055);
  --service-accent-line: rgba(190, 30, 45, 0.18);
  --service-soft: #F8FAFC;
  --service-neutral: #EEF2F7;
  --service-dark: #081c2e;
}

.content-shell--business {
  --service-accent: #0E4F78;
  --service-accent-soft: rgba(14, 79, 120, 0.06);
  --service-accent-line: rgba(14, 79, 120, 0.16);
  --service-soft: #F8FAFC;
  --service-neutral: #EEF2F7;
  --service-dark: #081c2e;
}

.content-shell--legal {
  --service-accent: #8F1520;
  --service-accent-soft: rgba(143, 21, 32, 0.055);
  --service-accent-line: rgba(143, 21, 32, 0.18);
  --service-soft: #F8FAFC;
  --service-neutral: #EEF2F7;
  --service-dark: #081c2e;
}

.content-shell--study #overview,
.content-shell--work #types,
.content-shell--visitor #purpose,
.content-shell--immigration #crs,
.content-shell--business #route-compare,
.content-shell--legal #letter {
  position: relative;
  border: 1px solid var(--service-accent-line);
  border-top: 3px solid var(--service-accent);
  border-radius: calc(var(--radius) + 6px);
  background-color: var(--service-soft);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.54));
  box-shadow: 0 20px 52px rgba(8, 28, 46, 0.08);
  margin-block: clamp(10px, 2vw, 18px) clamp(38px, 5vw, 58px);
  padding: clamp(28px, 3.6vw, 46px);
  overflow: hidden;
}

.content-shell--study #overview::after,
.content-shell--work #types::after,
.content-shell--visitor #purpose::after,
.content-shell--immigration #crs::after,
.content-shell--business #route-compare::after,
.content-shell--legal #letter::after {
  content: "";
  position: absolute;
  inset-block: auto 0;
  inset-inline: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--service-accent-line), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.content-shell--study #overview > .eyebrow,
.content-shell--work #types > .eyebrow,
.content-shell--visitor #purpose > .eyebrow,
.content-shell--immigration #crs > .eyebrow,
.content-shell--business #route-compare > .eyebrow,
.content-shell--legal #letter > .eyebrow,
.content-shell--study #officer-view > .eyebrow,
.content-shell--visitor #officer-logic > .eyebrow,
.content-shell--immigration #noc > .eyebrow,
.content-shell--business #officer-logic > .eyebrow,
.content-shell--legal #officer-logic > .eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--service-accent-soft);
  padding: 5px 12px;
  color: var(--service-accent);
}

.content-shell--study #officer-view,
.content-shell--work #employer-offer,
.content-shell--visitor #officer-logic,
.content-shell--immigration #noc,
.content-shell--business #officer-logic,
.content-shell--legal #officer-logic {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(135deg, var(--service-dark), #0e4f78);
  box-shadow: 0 26px 72px rgba(8, 28, 46, 0.2);
  color: var(--white);
  margin-block: clamp(18px, 3vw, 32px) clamp(42px, 5vw, 64px);
  padding: clamp(32px, 4vw, 54px);
}

.content-shell--legal #officer-logic {
  background: linear-gradient(135deg, #081C2E, #16212B);
}

.content-shell--business #officer-logic {
  background: linear-gradient(135deg, #081C2E, #0E4F78);
}

.content-shell--work #employer-offer {
  background: linear-gradient(135deg, #081C2E, #0E4F78);
}

.content-shell--study #officer-view h2,
.content-shell--study #officer-view h3,
.content-shell--study #officer-view p,
.content-shell--work #employer-offer h2,
.content-shell--work #employer-offer h3,
.content-shell--work #employer-offer p,
.content-shell--visitor #officer-logic h2,
.content-shell--visitor #officer-logic h3,
.content-shell--visitor #officer-logic p,
.content-shell--immigration #noc h2,
.content-shell--immigration #noc h3,
.content-shell--immigration #noc p,
.content-shell--business #officer-logic h2,
.content-shell--business #officer-logic h3,
.content-shell--business #officer-logic p,
.content-shell--legal #officer-logic h2,
.content-shell--legal #officer-logic h3,
.content-shell--legal #officer-logic p {
  color: rgba(255, 255, 255, 0.86);
}

.content-shell--study #officer-view h2,
.content-shell--work #employer-offer h2,
.content-shell--visitor #officer-logic h2,
.content-shell--immigration #noc h2,
.content-shell--business #officer-logic h2,
.content-shell--legal #officer-logic h2 {
  color: var(--white);
}

.content-shell--study #officer-view .eyebrow,
.content-shell--work #employer-offer .eyebrow,
.content-shell--visitor #officer-logic .eyebrow,
.content-shell--immigration #noc .eyebrow,
.content-shell--business #officer-logic .eyebrow,
.content-shell--legal #officer-logic .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.content-shell--study #officer-view .document-table,
.content-shell--work #employer-offer .checklist-grid div,
.content-shell--work #employer-offer .inline-cta,
.content-shell--visitor #officer-logic .checklist-grid div,
.content-shell--immigration #noc .checklist-grid div,
.content-shell--business #officer-logic .checklist-grid div,
.content-shell--legal #officer-logic .checklist-grid div {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.content-shell--study #officer-view .document-table > div {
  border-color: rgba(255, 255, 255, 0.14);
}

.content-shell--study #officer-view .document-table strong,
.content-shell--study #officer-view .document-table span,
.content-shell--work #employer-offer .checklist-grid strong,
.content-shell--work #employer-offer .checklist-grid p,
.content-shell--work #employer-offer .inline-cta h2,
.content-shell--work #employer-offer .inline-cta p,
.content-shell--visitor #officer-logic .checklist-grid strong,
.content-shell--visitor #officer-logic .checklist-grid p,
.content-shell--immigration #noc .checklist-grid strong,
.content-shell--immigration #noc .checklist-grid p,
.content-shell--business #officer-logic .checklist-grid strong,
.content-shell--business #officer-logic .checklist-grid p,
.content-shell--legal #officer-logic .checklist-grid strong,
.content-shell--legal #officer-logic .checklist-grid p {
  color: rgba(255, 255, 255, 0.86);
}

.content-shell--study #officer-view .document-table strong,
.content-shell--work #employer-offer .checklist-grid strong,
.content-shell--work #employer-offer .inline-cta h2,
.content-shell--visitor #officer-logic .checklist-grid strong,
.content-shell--immigration #noc .checklist-grid strong,
.content-shell--business #officer-logic .checklist-grid strong,
.content-shell--legal #officer-logic .checklist-grid strong {
  color: var(--white);
}

.content-shell--work #refusal .checklist-grid--quiet div,
.content-shell--work #employer-offer .checklist-grid div {
  border-radius: 10px;
  border-inline-start: 4px solid var(--service-accent);
}

.content-shell--work #types .compare-grid article {
  border-inline-start: 4px solid var(--service-accent);
}

.content-shell--business #route-compare .document-table,
.content-shell--business #officer-logic .document-table,
.content-shell--business #risks .document-table {
  border-color: rgba(14, 79, 120, 0.16);
}

.content-shell--business #route-compare .document-table > div:first-child,
.content-shell--business #officer-logic .document-table > div:first-child,
.content-shell--business #risks .document-table > div:first-child {
  background: rgba(14, 79, 120, 0.05);
}

.content-shell--study #refusal,
.content-shell--work #refusal,
.content-shell--visitor #refusal,
.content-shell--immigration #mistakes,
.content-shell--business #risks,
.content-shell--legal #risk {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(8, 28, 46, 0.1);
  border-top: 3px solid #BE1E2D;
  background-color: var(--service-neutral);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.96));
  box-shadow: 0 18px 46px rgba(8, 28, 46, 0.075);
  margin-block: clamp(16px, 3vw, 30px) clamp(40px, 5vw, 60px);
  padding: clamp(28px, 3.8vw, 48px);
}

.content-shell--study #refusal .quote-panel,
.content-shell--work #refusal .quote-panel,
.content-shell--visitor #refusal .quote-panel,
.content-shell--immigration #mistakes .quote-panel,
.content-shell--business #risks .quote-panel,
.content-shell--legal #risk .quote-panel,
.content-shell--study #overview .note-card,
.content-shell--work #types .note-card,
.content-shell--visitor #purpose .note-card,
.content-shell--immigration #crs .note-card,
.content-shell--business #route-compare .note-card,
.content-shell--legal #letter .note-card {
  border-inline-start: 4px solid var(--service-accent);
  background: rgba(255, 255, 255, 0.78);
}

.content-shell--business #route-compare .document-table,
.content-shell--legal #letter .document-table {
  background: rgba(255, 255, 255, 0.86);
}

.content-shell .content-section.premium-panel {
  position: relative;
  border: 1px solid var(--service-accent-line, rgba(8, 28, 46, 0.14));
  border-top: 3px solid var(--service-accent, var(--navy));
  border-radius: calc(var(--radius) + 6px);
  background-color: var(--service-soft, #f8fafc);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.56));
  box-shadow: 0 20px 52px rgba(8, 28, 46, 0.08);
  margin-block: clamp(10px, 2vw, 18px) clamp(38px, 5vw, 58px);
  padding: clamp(28px, 3.6vw, 46px);
  overflow: hidden;
}

.content-shell .content-section.premium-panel::after {
  content: "";
  position: absolute;
  inset-block: auto 0;
  inset-inline: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--service-accent-line, rgba(8, 28, 46, 0.14)), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.content-shell .content-section.premium-advisory {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, var(--service-dark, #081c2e), #0e4f78);
  box-shadow: 0 26px 72px rgba(8, 28, 46, 0.2);
  color: var(--white);
  margin-block: clamp(18px, 3vw, 32px) clamp(42px, 5vw, 64px);
  padding: clamp(32px, 4vw, 54px);
}

.content-shell--work .content-section.premium-advisory {
  background: linear-gradient(135deg, #081C2E, #0E4F78);
}

.content-shell--business .content-section.premium-advisory {
  background: linear-gradient(135deg, #081C2E, #0E4F78);
}

.content-shell--legal .content-section.premium-advisory {
  background: linear-gradient(135deg, #081C2E, #16212B);
}

.content-shell .content-section.premium-advisory h2,
.content-shell .content-section.premium-advisory h3 {
  color: var(--white);
}

.content-shell .content-section.premium-advisory p,
.content-shell .content-section.premium-advisory span {
  color: rgba(255, 255, 255, 0.84);
}

.content-shell .content-section.premium-advisory > .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.content-shell .content-section.premium-advisory .checklist-grid div,
.content-shell .content-section.premium-advisory .info-grid article,
.content-shell .content-section.premium-advisory .service-list article,
.content-shell .content-section.premium-advisory .compare-grid article,
.content-shell .content-section.premium-advisory .note-card,
.content-shell .content-section.premium-advisory .quote-panel,
.content-shell .content-section.premium-advisory .related-links a,
.content-shell .content-section.premium-advisory .document-table {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.content-shell .content-section.premium-advisory .checklist-grid strong,
.content-shell .content-section.premium-advisory .info-grid strong,
.content-shell .content-section.premium-advisory .service-list h3,
.content-shell .content-section.premium-advisory .compare-grid h3,
.content-shell .content-section.premium-advisory .note-card strong,
.content-shell .content-section.premium-advisory .quote-panel strong,
.content-shell .content-section.premium-advisory .document-table strong {
  color: var(--white);
}

.content-shell .content-section.premium-advisory .compare-grid span,
.content-shell .content-section.premium-advisory .note-card p,
.content-shell .content-section.premium-advisory .quote-panel p,
.content-shell .content-section.premium-advisory .related-links a {
  color: rgba(255, 255, 255, 0.84);
}

.content-shell .content-section.premium-advisory .document-table > div {
  border-color: rgba(255, 255, 255, 0.14);
}

.content-shell .content-section.premium-neutral {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(8, 28, 46, 0.1);
  border-top: 3px solid #BE1E2D;
  background-color: var(--service-neutral, #f8fafc);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.96));
  box-shadow: 0 18px 46px rgba(8, 28, 46, 0.075);
  margin-block: clamp(16px, 3vw, 30px) clamp(40px, 5vw, 60px);
  padding: clamp(28px, 3.8vw, 48px);
}

.content-shell .content-section.premium-panel .note-card,
.content-shell .content-section.premium-neutral .quote-panel {
  border-inline-start: 4px solid #BE1E2D;
  background: rgba(255, 255, 255, 0.78);
}

.content-shell .content-section.premium-neutral h2 {
  color: #081C2E;
}

/* ==========================================================================
   Responsive Support for Premium Section Treatments
   Keeps inset editorial panels and advisory bands from feeling cramped on
   smaller screens.
   ========================================================================== */

@media (max-width: 767px) {
  .content-shell--study #overview,
  .content-shell--work #types,
  .content-shell--visitor #purpose,
  .content-shell--immigration #crs,
  .content-shell--business #route-compare,
  .content-shell--legal #letter,
  .content-shell--study #officer-view,
  .content-shell--work #employer-offer,
  .content-shell--visitor #officer-logic,
  .content-shell--immigration #noc,
  .content-shell--business #officer-logic,
  .content-shell--legal #officer-logic,
  .content-shell--study #refusal,
  .content-shell--work #refusal,
  .content-shell--visitor #refusal,
  .content-shell--immigration #mistakes,
  .content-shell--business #risks,
  .content-shell--legal #risk {
    border-top-width: 2px;
    margin-block: 20px 42px;
    padding: 24px 18px;
  }

  .content-shell .content-section.premium-panel,
  .content-shell .content-section.premium-advisory,
  .content-shell .content-section.premium-neutral {
    border-top-width: 2px;
    margin-block: 20px 42px;
    padding: 24px 18px;
  }

  .content-shell--study #overview::after,
  .content-shell--work #types::after,
  .content-shell--visitor #purpose::after,
  .content-shell--immigration #crs::after,
  .content-shell--business #route-compare::after,
  .content-shell--legal #letter::after {
    inset-inline: 18px;
    opacity: 0.74;
  }

  .content-shell .content-section.premium-panel::after {
    inset-inline: 18px;
    opacity: 0.74;
  }
}

/* ==========================================================================
   Additional Content Utilities and Media Slots
   Secondary CTAs, process strips, related links, and standardized image crop
   containers used by service and blog pages.
   ========================================================================== */

.inline-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(8, 28, 46, 0.96), rgba(14, 79, 120, 0.94));
  color: var(--white);
}

.inline-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.inline-cta p {
  color: rgba(255, 255, 255, 0.76);
}

.steps--light {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps--light article {
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.steps--light h3 {
  color: var(--navy);
}

.steps--light p {
  color: var(--muted);
}

.dual-cta,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 14px;
  color: var(--blue);
  font-weight: 850;
}

.image-slot {
  display: grid;
  min-height: 240px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(14, 79, 120, 0.12);
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.05), rgba(190, 30, 45, 0.07)),
    var(--gray);
  color: rgba(8, 28, 46, 0.46);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.image-slot--hero {
  min-height: 100%;
  border: 0;
  background:
    linear-gradient(135deg, rgba(14, 79, 120, 0.66), rgba(8, 28, 46, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 0 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
  color: rgba(255, 255, 255, 0.18);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 28, 46, 0.62));
}

.image-slot--card {
  min-height: 190px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.image-slot--portrait {
  min-height: 560px;
  border-radius: var(--radius);
}

.image-slot--wide {
  min-height: 440px;
  border-radius: var(--radius);
}

.image-slot--photo {
  display: block;
  border: 0;
  background: var(--gray);
}

.image-slot--photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.image-slot--blog {
  min-height: 210px;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ==========================================================================
   Trust, Cards, and Conversion Blocks
   Trust bars, service cards, feature lists, process steps, and CTA bands share
   one restrained material language for a cohesive institutional feel.
   ========================================================================== */

.trust-bar {
  position: relative;
  z-index: 2;
  margin-top: -50px;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-bar__inner div {
  padding: 27px 30px;
  border-inline-start: 1px solid var(--line);
}

.trust-bar__inner div:first-child {
  border-inline-start: 0;
}

.trust-bar span,
.trust-bar strong {
  display: block;
}

.trust-bar span {
  color: var(--muted);
  font-size: 0.86rem;
}

.trust-bar strong {
  color: var(--navy);
  font-size: 1.06rem;
}

.service-card,
.blog-card,
.link-panel,
.steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(8, 28, 46, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.blog-card:hover,
.link-panel:hover {
  border-color: rgba(190, 30, 45, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card__body,
.blog-card > div:last-child {
  padding: 26px;
}

.service-card h3,
.blog-card h3 {
  color: var(--navy);
}

.service-card p,
.blog-card p {
  font-size: 0.98rem;
}

.service-card a {
  color: var(--red);
  font-weight: 850;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.feature-list div {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 28, 46, 0.04);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  color: var(--muted);
}

.media-panel {
  position: relative;
}

.credential-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  max-width: 300px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.credential-card span {
  color: var(--blue);
  font-weight: 900;
}

.credential-card strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
  line-height: 1.2;
}

.credential-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.link-panel {
  display: block;
  min-height: 230px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.link-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--blue));
  opacity: 0;
  transition: opacity 180ms ease;
}

.link-panel:hover::before {
  opacity: 1;
}

.link-panel span {
  display: block;
  margin-bottom: 30px;
  color: var(--red);
  font-weight: 900;
}

.link-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.22rem;
}

.link-panel p {
  margin-bottom: 0;
}

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

.steps article {
  min-height: 250px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.055));
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.steps span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.steps h3 {
  color: var(--white);
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(8, 28, 46, 0.96), rgba(14, 79, 120, 0.96)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
  background-size: auto, 54px 54px;
  color: var(--white);
}

.cta-band p,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.cta-band h2 {
  max-width: 760px;
}

/* ==========================================================================
   Homepage Production Rhythm Patch
   Keeps the authority homepage editorial and premium while correcting oversized
   vertical bands and restoring breathing room around dense card grids.
   ========================================================================== */

.services-overview.section,
.why-shamsa.section,
.pathways.section,
.about-preview.section,
.blog-preview.section,
.faq-preview.section {
  padding-block: clamp(72px, 6vw, 92px);
}

.section[aria-labelledby="guidance-title"],
.section[aria-labelledby="misconceptions-title"] {
  padding-block: clamp(70px, 5.8vw, 88px);
}

.section--navy.process {
  padding-block: clamp(70px, 5.8vw, 90px);
}

.services-overview .section-heading,
.pathways .section-heading,
.process .section-heading,
.blog-preview .section-heading,
.faq-preview .section-heading {
  margin-bottom: clamp(36px, 4vw, 48px);
}

.services-overview .card-grid,
.blog-preview .card-grid {
  gap: clamp(24px, 2.2vw, 32px);
}

.pathways .link-panel-grid {
  gap: clamp(22px, 2vw, 30px);
}

.process .steps {
  gap: clamp(20px, 2vw, 28px);
}

.pathways .link-panel-grid + .note-card,
.process .steps + .note-card {
  margin-top: clamp(30px, 3vw, 42px);
}

.section--navy.process .steps article {
  min-height: 224px;
  padding: clamp(24px, 2.4vw, 30px);
}

.section--navy.process .steps span {
  margin-bottom: 22px;
}

.cta-band.section {
  padding-block: clamp(74px, 6vw, 92px);
}

@media (max-width: 767px) {
  .services-overview.section,
  .why-shamsa.section,
  .pathways.section,
  .about-preview.section,
  .blog-preview.section,
  .faq-preview.section,
  .section[aria-labelledby="guidance-title"],
  .section[aria-labelledby="misconceptions-title"],
  .section--navy.process,
  .cta-band.section {
    padding-block: 52px;
  }

  .services-overview .section-heading,
  .pathways .section-heading,
  .process .section-heading,
  .blog-preview .section-heading,
  .faq-preview .section-heading {
    margin-bottom: 30px;
  }

  .services-overview .card-grid,
  .pathways .link-panel-grid,
  .process .steps,
  .blog-preview .card-grid {
    gap: 18px;
  }

  .pathways .link-panel-grid + .note-card,
  .process .steps + .note-card {
    margin-top: 24px;
  }
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(14, 79, 120, 0.1);
  padding: 4px 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

/* ==========================================================================
   FAQ Accordion
   faq.js controls aria-expanded and hidden states; CSS handles the premium card
   treatment and visible expanded state.
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 24px;
  color: var(--navy);
  cursor: pointer;
  text-align: right;
  font-weight: 850;
}

.faq-item button::after {
  content: "+";
  float: left;
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-item__panel {
  display: none;
  padding: 0 24px 22px;
}

.faq-item button[aria-expanded="true"] + .faq-item__panel,
.faq-item__panel:not([hidden]) {
  display: block;
}

/* ==========================================================================
   Footer
   Multi-column institutional footer with service links, contact information,
   legal links, and real trust credentials.
   ========================================================================== */

.site-footer {
  background:
    linear-gradient(180deg, #081c2e, #071726 56%, #06121e);
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 42px;
  padding-block: 78px;
}

.footer__top h2 {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
}

.footer__top a,
.footer__top p {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer__top a:hover {
  color: var(--white);
}

.footer__trust {
  display: inline-flex;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 850;
}

.footer__strip {
  border-block: 1px solid rgba(255, 255, 255, 0.11);
}

.footer__strip .container,
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 18px;
}

.footer__strip span,
.footer__bottom,
.footer__bottom a {
  color: rgba(255, 255, 255, 0.64);
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ==========================================================================
   Mixed RTL/LTR Value Utilities
   Use these only for structured values such as phone numbers, license IDs,
   addresses, emails, URLs, and acronyms inside RTL layouts.
   ========================================================================== */

.ltr-value,
.text-ltr,
.phone-ltr,
.credential-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.phone-ltr {
  white-space: nowrap;
}

input[type="tel"],
input[type="email"],
input[type="url"],
input[name*="phone"],
input[name*="whatsapp"],
input[name*="email"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
