/**
 * Dark pages (thank-you, student portal, contact). Body class: sa-dark-chrome (inc/dark-chrome.php).
 * The header and footer are their own Generic Elements templates ("Saif Header Dark" / "Saif Footer Dark"),
 * styled in Elementor. This file only places the header wrapper (outside the template) over the dark page.
 */
body.sa-dark-chrome { background: #070A16; }

/* the wrapper around the header template: see-through, so the floating dark card sits on the page */
body.sa-dark-chrome #header-wrap { background: transparent; pointer-events: none; }
body.sa-dark-chrome #header-wrap > * { pointer-events: auto; }

/* header is not sticky on dark pages: it overlays the top of the page and scrolls away (dark-chrome.js) */
body.sa-dark-chrome #header-wrap { position: absolute; left: 0; right: 0; top: 0; }
body.admin-bar.sa-dark-chrome #header-wrap { top: 32px; }
@media (max-width: 782px) { body.admin-bar.sa-dark-chrome #header-wrap { top: 46px; } }
html.sa-smooth body.sa-dark-chrome #header-wrap { position: fixed; will-change: transform; }
/* page background runs up behind the header; content starts below it */
html.sa-smooth body.sa-dark-chrome #smooth-content { padding-top: 0; }
body.sa-dark-chrome .sa-cl-scope { padding-top: var(--sa-dark-top, 100px); }

/* sticky dark pages (contact): the floating header stays fixed on top while scrolling */
body.sa-dark-sticky #header-wrap { position: fixed; left: 0; right: 0; top: 0; z-index: 990; transform: none !important; }
body.admin-bar.sa-dark-sticky #header-wrap { top: 32px; }
@media (max-width: 782px) { body.admin-bar.sa-dark-sticky #header-wrap { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.sa-dark-sticky #header-wrap.is-scrolled { top: 0; } }
