/**
 * assets/css/layout.css
 * Purpose: Container, skip link, hero, page sections, grids, footer layout.
 * Nav styles are in nav.css. Depends on: base.css (CSS variables).
 * Last modified: 2026-04-11
 */

/* ─── Skip link ─────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--space-4); }

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

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
  text-align: center;
}
.hero h1             { margin-bottom: var(--space-4); }
.hero .subhead       { font-size: 1.2rem; color: var(--text-dim); max-width: 560px; margin-inline: auto; margin-bottom: var(--space-3); }
.hero .trust-line    { font-size: 0.875rem; color: var(--text-faint); }

@media (min-width: 768px) {
  .hero              { text-align: left; }
  .hero .subhead,
  .hero .trust-line  { margin-inline: 0; }
}

/* ─── Page sections ─────────────────────────────────────────────────────────── */
.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.section h2 { margin-bottom: var(--space-6); }
.section + .section { border-top: 1px solid var(--border); }

/* ─── Cheque preview wrapper ────────────────────────────────────────────────── */
.cheque-section { padding-top: var(--space-7); padding-bottom: var(--space-9); }
.cheque-section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
  text-align: center;
}

/* ─── How-to 4-card grid ────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px)  { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Currency grid ─────────────────────────────────────────────────────────── */
.currency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px)  { .currency-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .currency-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Site footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .wordmark { margin-bottom: var(--space-3); }
.footer-brand p         { font-size: 0.875rem; color: var(--text-faint); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}
.footer-col ul  { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a   { color: var(--text-faint); font-size: 0.875rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--text-faint);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
