/* ==========================================================================
   Wijze Wolf — Layout: site frame, header, footer, generic sections
   ========================================================================== */

.site-wrap { position: relative; z-index: var(--z-content); }
.site-main { position: relative; z-index: var(--z-content); }

/* --- Sticky header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--c-border);
  box-shadow: 0 6px 24px -16px rgba(30,42,35,.4);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  transition: min-height var(--dur) var(--ease);
}
.site-header.is-scrolled .site-header__inner { min-height: 62px; }

/* --- Brand mark --- */
.brand-mark { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-primary); }
.brand-mark:hover { color: var(--c-primary); }
.brand-mark__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  color: var(--c-primary);
}
.brand-mark__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--c-primary); }
.brand-mark__tag { font-size: .72rem; color: var(--c-text-muted); font-weight: 500; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { height: 52px; width: auto; display: block; transition: height var(--dur) var(--ease); }
.site-header.is-scrolled .custom-logo { height: 44px; }
@media (max-width: 600px) { .custom-logo { height: 44px; } }

/* --- Footer --- */
.site-footer { position: relative; z-index: var(--z-content); background: var(--c-dark); color: var(--c-dark-text); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 3rem;
}
.footer-col--brand { max-width: 34ch; }
.footer-col .brand-mark__name { color: var(--c-dark-text); }
.footer-col--brand .brand-mark__icon { background: rgba(255,255,255,.08); color: var(--c-accent); }
.footer-about { color: var(--c-dark-muted); margin-top: 1rem; font-size: var(--fs-small); line-height: 1.7; }
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 1.1rem;
}
.footer-list { display: flex; flex-direction: column; gap: .7rem; }
.footer-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--c-dark-muted); font-size: var(--fs-small); }
.footer-list .ww-icon { color: var(--c-secondary); margin-top: 2px; }
.footer-list a { color: var(--c-dark-muted); }
.footer-list a:hover { color: var(--c-accent); }
.footer-area { margin-top: 1.1rem; color: var(--c-dark-muted); font-size: var(--fs-small); }
.footer-area strong { color: var(--c-dark-text); }
.footer-menu { display: flex; flex-direction: column; gap: .6rem; }
.footer-menu a { color: var(--c-dark-muted); font-size: var(--fs-small); }
.footer-menu a:hover { color: var(--c-accent); }
.social-link {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  margin-top: 1.2rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  color: var(--c-dark-text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.social-link:hover { background: var(--c-accent); color: var(--c-on-accent); transform: translateY(-2px); }
.site-footer__bar { border-top: 1px solid var(--c-border-dark); }
.site-footer__bar-inner {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.4rem;
  color: var(--c-dark-muted);
  font-size: .82rem;
}

/* --- Generic content page --- */
.page-hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin-top: .75rem; }
.page-body { padding-bottom: var(--section-y); }
.page-body .entry-content { max-width: var(--container-narrow); margin-inline: auto; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 1.75rem; }
.entry-content ul { display: flex; flex-direction: column; gap: .6rem; }
.entry-content ul li { position: relative; padding-left: 1.75rem; }
.entry-content ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-accent);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-accent); }

/* --- Section helpers --- */
.section { padding-block: var(--section-y); position: relative; }
/* Transparent so the fixed walking-paw canvas shows through on the cream bands.
   The page <body> already provides the cream colour, so the look is unchanged
   but the animated paws become visible. White/tint/dark bands stay opaque. */
.section--bg { background: transparent; }
.section--surface { background: var(--c-surface); }
.section--tint { background: var(--c-surface-2); }
.section--dark { background: var(--c-dark); color: var(--c-dark-text); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-dark-text); }

/* Responsive */
@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
