/*
Theme Name: Forward Psychology
Author: l / lovnish.g59@gmail.com
Description: Minimal shell for Elementor (free). Header and footer are Elementor-built Site Parts.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: forwardpsychology
*/

/* Base only; all design lives in Elementor (Site Settings + Site Parts) */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, svg, video { max-width: 100%; height: auto; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link:focus {
    clip: auto; width: auto; height: auto;
    top: 8px; left: 8px; z-index: 100000;
    padding: 8px 16px; background: #fff; color: #000;
}

/* Single post without a "Single post" Site Part */
.fp-post { max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
.fp-post__title { margin: 0 0 8px; }
.fp-post__date { margin: 0 0 32px; opacity: .7; }

/* Header part options (Appearance → Site Parts); assets/header.js sets the scroll state classes */
.site-header--sticky,
.site-header--overlay {
    position: relative;
    z-index: 900;
    transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header--sticky { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.site-header--overlay { margin-bottom: calc(-1 * var(--fp-header-h, 0px)); }
.site-header.is-scrolled { background-color: var(--fp-header-scrolled-bg, transparent); }
.site-header--shadow.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .08); }
/* Blur on a layer behind the content: backdrop-filter on the header itself would trap the fixed off-canvas menu */
.site-header--blur::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    transition: backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease;
}
.site-header--blur.is-scrolled::before {
    -webkit-backdrop-filter: blur(var(--fp-header-blur, 10px));
    backdrop-filter: blur(var(--fp-header-blur, 10px));
}
.site-header--shrink:not(.site-header--overlay) { margin-bottom: var(--fp-header-gap, 0px); }
.site-header.is-measuring,
.site-header.is-measuring * { transition: none !important; }
.site-header--reveal.is-hidden { transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px))); }
html { scroll-padding-top: var(--fp-header-offset, 0px); }

/* WP's admin bar scrolls away on small screens */
@media (max-width: 600px) {
    .admin-bar .site-header--sticky { top: 0; }
    .admin-bar .site-header--reveal.is-hidden { transform: translateY(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header--sticky, .site-header--overlay { transition: none; }
    .site-header--blur::before { transition: none; }
}
