/* ============================================================
   GRID & LAYOUT — vizasupport
   ============================================================ */

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 480px)  { .container { padding-inline: var(--space-lg); } }
@media (min-width: 768px)  { .container { padding-inline: var(--space-xl); } }
@media (min-width: 1280px) { .container { padding-inline: var(--space-2xl); } }

.container--sm {
  max-width: var(--container-sm);
}

.container--md {
  max-width: var(--container-md);
}

/* ── Section ─────────────────────────────────────────────── */
/* Base: defined in home.css as .section / .section--sm */
/* Extended modifiers here: */

.section--alt   { background: var(--color-bg-alt); }
.section--warm  { background: var(--color-bg-warm); }
.section--dark  { background: var(--surface-dark); color: #ffffff; }
.section--primary {
  background: var(--primary);
  color: #ffffff;
}

/* ── Auto grid ───────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-sm  { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid--auto-md  { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--auto-lg  { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

@media (max-width: 479px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Flex helpers ────────────────────────────────────────── */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }

/* Margin-top helpers */
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

/* Margin-bottom helpers */
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ── Section-header modifiers ────────────────────────────── */
/* Light variant — white text, for dark/coloured backgrounds */
.section-header--light,
.section-header--light .section-header__title,
.section-header--light .section-header__desc {
  color: #ffffff;
}

/* Split variant — title left + action right */
.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Label gold variant — for use on dark backgrounds */
.label--gold {
  color: var(--secondary);
  background: rgba(232,168,0,0.15);
  border: 1px solid rgba(232,168,0,0.3);
}

/* ── Archive grid (visas, services, blog) ────────────────── */
.archive-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .archive-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Sidebar layout ──────────────────────────────────────── */
.layout-sidebar {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr 320px;
  }

  .layout-sidebar--left {
    grid-template-columns: 300px 1fr;
  }
}

/* ── Sticky sidebar ──────────────────────────────────────── */
@media (min-width: 1024px) {
  .sticky-sidebar {
    position: sticky;
    /* Offset accounts for: topbar (36px) + main header (72px) + buffer */
    top: calc(var(--header-h) + var(--space-lg));
  }
}

/* ── Two-col content ─────────────────────────────────────── */
.layout-two-col {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .layout-two-col { grid-template-columns: 1fr 1fr; }
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin-block: var(--space-xl);
}

/* ── Highlight / callout ─────────────────────────────────── */
.callout {
  background: var(--primary-xlight);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: var(--leading-normal);
}

.callout--gold {
  background: var(--secondary-xlight);
  border-color: var(--secondary);
}

/* ── No-results ──────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

/* ── Smooth scroll + header offset ──────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-lg));
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-sm);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb__sep {
  color: var(--gray-300);
  font-size: var(--text-xs);
}

.breadcrumb__current {
  color: var(--gray-700);
  font-weight: var(--font-medium);
}
