/* Shared layout blocks used across pages */

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sq-paper) 0%, var(--bg) 100%);
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(44px, 5.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
  color: var(--sq-ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--sq-blue);
}
.hero h1 .gold-underline {
  position: relative;
  display: inline-block;
}
.hero h1 .gold-underline::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 0.02em; height: 0.18em;
  background: var(--sq-gold-soft);
  opacity: .55;
  z-index: -1;
  border-radius: 2px;
}
.hero p.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--sq-slate);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero visual — topographic map + owl */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-xl);
  background: radial-gradient(ellipse at 30% 20%, #1B3150 0%, #0B1F33 70%);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.hero-visual .topo-lines {
  position: absolute; inset: 0;
  opacity: .45;
}
.hero-visual .stars { position: absolute; inset: 0; }
.hero-visual .owl-wrap {
  position: absolute; inset: auto 0 -4% 0;
  width: 62%; margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stat { padding: 8px 32px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sq-ink);
  font-variation-settings: "opsz" 80;
}
.stat-num .unit { color: var(--sq-gold); font-style: italic; font-weight: 400; }
.stat-label { font-size: 13px; color: var(--sq-slate); margin-top: 8px; letter-spacing: .01em; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } }

/* Section ===== */
.section { padding: 96px 0; }
.section-head {
  max-width: 720px; margin: 0 auto 56px; text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0;
  font-variation-settings: "opsz" 80, "SOFT" 30;
}
.section-head p {
  font-size: 18px;
  color: var(--sq-slate);
  margin: 0;
}

/* Program card */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prog-grid { grid-template-columns: 1fr; } }

.prog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  transition: all .2s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.prog-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--border-strong); }
.prog-card .topbar { height: 6px; background: var(--sq-blue); }
.prog-card.variant-gold .topbar { background: linear-gradient(90deg, var(--sq-gold) 0%, var(--sq-gold-soft) 100%); }
.prog-card.variant-pine .topbar { background: var(--sq-pine); }
.prog-card.variant-teal .topbar { background: var(--sq-teal); }
.prog-card .inner { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.prog-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.prog-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--sq-ink);
}
.prog-card .desc { color: var(--sq-slate); font-size: 14.5px; line-height: 1.55; margin: 0; }
.prog-card .amount {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--sq-ink);
}
.prog-card .amount .lead { color: var(--sq-slate); font-size: 13px; font-family: var(--font-sans); font-weight: 500; letter-spacing: 0; display: block; margin-bottom: 2px; }
.prog-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--border);
  margin-top: auto;
}
.prog-card .foot .cta { font-size: 13px; font-weight: 600; color: var(--sq-blue); display: inline-flex; align-items: center; gap: 4px; }
.prog-card:hover .foot .cta { color: var(--sq-gold); }
.prog-card .date { font-size: 12px; color: var(--sq-slate); }

/* CTA banner ===== */
.cta-banner {
  background: var(--sq-ink);
  color: var(--sq-cream);
  border-radius: var(--r-xl);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--sq-cream);
}
.cta-banner p { margin: 0 0 22px; color: rgba(247,243,235,.75); font-size: 17px; }

/* Footer ===== */
.footer {
  background: var(--sq-ink);
  color: rgba(247,243,235,.65);
  padding: 72px 0 32px;
  margin-top: 96px;
}
.footer a { color: rgba(247,243,235,.75); }
.footer a:hover { color: var(--sq-gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sq-gold-soft); margin: 0 0 16px; font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer .fine { font-size: 13px; color: rgba(247,243,235,.45); margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(247,243,235,.08); display: flex; justify-content: space-between; }

/* Boréal floating bubble */
.boreal-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 100;
  display: flex; align-items: center; gap: 12px;
}
.boreal-fab .bubble {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: var(--sh-md);
  font-size: 14px;
  max-width: 240px;
  animation: fab-rise .6s ease both;
}
.boreal-fab .bubble b { color: var(--sq-blue); }
.boreal-fab .owl-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sq-ink);
  border: 3px solid var(--sq-gold-soft);
  box-shadow: 0 10px 30px rgba(11,31,51,.35);
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform .2s ease;
}
.boreal-fab .owl-btn:hover { transform: scale(1.06); }
.boreal-fab .owl-btn svg { width: 56px; height: 56px; transform: translateY(3px); }
.boreal-fab .pulse {
  position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--sq-gold-soft);
  opacity: .5; animation: pulse 2s ease infinite;
  pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5 } 100% { transform: scale(1.25); opacity: 0 } }
@keyframes fab-rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
