/* ===== In Belfast — layout.css : header, footer, hero, grids ===== */

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.on-hero {
  position: fixed; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent; color: var(--paper);
}
.nav {
  position: relative;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px);
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 172px; height: 28px; background: url(../images/logo.png) no-repeat left center; background-size: contain; }
.on-hero .brand-logo { background-image: url(../images/logo-light.png); }
.footer-brand .brand-logo { background-image: url(../images/logo-light.png); }
@media (max-width: 480px) { .brand-logo { width: 148px; height: 24px; } }
.nav-links { display: none; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav-links a { font-size: 0.98rem; font-weight: 500; opacity: 0.92; transition: opacity 0.2s var(--ease); }
.nav-links a:hover { opacity: 0.55; }
.nav-spacer { flex: 1 1 auto; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 78px 0 0; z-index: 49;
  background: var(--ink); color: var(--paper);
  padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a { font-size: 1.6rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line-dk); }
.mobile-nav .m-sub { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted-dk); margin-top: 22px; }

@media (min-width: 1024px) {
  .nav-links { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.15) 38%, rgba(14,14,14,0.82) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 92px); }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,0.14); backdrop-filter: blur(4px); padding: 7px 14px; font-size: 0.82rem; font-weight: 500; }
.hero-meta { margin-top: 20px; font-size: 0.95rem; color: rgba(255,255,255,0.8); display: flex; gap: 10px; align-items: center; }
.hero h1 { margin-top: 14px; max-width: 16ch; }
.hero-excerpt { margin-top: 20px; max-width: 46ch; color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.hero-cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(48px,8vw,92px); display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.4); transition: background 0.2s, transform 0.2s; }
.hero-dots button.active { background: var(--paper); transform: scale(1.25); }

/* ---- Section heading rows ---- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head .lead { max-width: 54ch; margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head .lead { color: var(--muted-dk); }
.section-head-stack { max-width: 62ch; }

/* ---- Card grid ---- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Theme rail (horizontal scroll) ---- */
.theme-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 340px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.theme-rail > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .theme-rail { grid-auto-columns: minmax(0, 1fr); overflow: visible; } }

/* ---- Two-col content ---- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split.media-first > .split-media { order: -1; } }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 88px) 36px; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: var(--muted-dk); margin-top: 16px; max-width: 38ch; }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--sand); margin-bottom: 16px; }
.footer-col a { display: block; padding: 7px 0; color: rgba(255,255,255,0.82); font-size: 0.98rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dk); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-dk); font-size: 0.9rem; }
.footer-bottom a { color: var(--muted-dk); }
.footer-bottom a:hover { color: var(--paper); }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
