/* ============================================================
   pages.css — shared base for the sub-pages (our-story, gallery,
   timeline, guestbook, details). Loaded after theme.css + main.css
   so the nav becomes a solid glass bar (no hero behind it).
   ============================================================ */

/* Nav: solid glass by default on content pages, dark text */
.nav { background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0;
}
.nav__links a[aria-current="page"] { color: var(--primary); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* Page shell */
.subpage {
  padding-top: 92px;            /* clear the fixed nav */
  min-height: 100svh;
}
.subpage__head {
  text-align: center;
  max-width: 46rem;
  margin: 1.5rem auto 0;
  padding: 0 var(--container-pad);
}
.subpage__head .label { display: inline-block; margin-bottom: 0.9rem; }
.subpage__title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.subpage__title em { font-style: italic; color: var(--accent); }
.subpage__intro {
  margin: 1.1rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Generic reveal utility (JS adds .is-visible) */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-reveal.is-visible { opacity: 1; transform: none; }

/* Shared sub-page footer */
.subfoot {
  margin-top: 5rem;
  padding: 2.4rem var(--container-pad);
  border-top: 1px solid rgba(44, 51, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.subfoot__brand { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: var(--text-main); }
.subfoot a { color: var(--primary); display: inline-flex; align-items: center; gap: 0.4rem; }
.subfoot a:hover { color: var(--primary-hover); }
