/*
Theme Name: PageSpark WP Theme
Theme URI: https://pagesparkwp.com
Author: David Repasky
Author URI: https://pagesparkwp.com
Description: A minimal, lightning-fast Bootstrap 5 theme designed for the PageSpark WP plugin. Features offcanvas navigation, Customizer integration, widget-ready footer, and locally-bundled Bootstrap 5.3.3 files for permanent reliability. Built on Understrap principles.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpbs-theme
Tags: bootstrap, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
*/

/* Theme custom styles — keep this minimal. Bootstrap handles the heavy lifting. */

:root {
    --wpbs-primary: #0d6efd;
    --wpbs-secondary: #6c757d;
    --wpbs-accent: #0dcaf0;
    --wpbs-dark: #212529;
    --wpbs-light: #f8f9fa;
    --wpbs-body-font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --wpbs-heading-font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --wpbs-navbar-text: #212529;
    --wpbs-navbar-link: #212529;
    --wpbs-offcanvas-bg: #ffffff;
}

/* Base overrides */
body {
    font-family: var(--wpbs-body-font);
    color: var(--wpbs-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wpbs-heading-font);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--wpbs-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* Offcanvas nav */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.offcanvas-body .nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.offcanvas-body .nav-link:hover {
    color: var(--wpbs-primary);
}

/* Content area — push footer to bottom on short pages */
.wpbs-content-area {
    min-height: 80vh;
}

/* Footer */
.wpbs-footer {
    background: var(--wpbs-dark);
    color: rgba(255,255,255,0.7);
}

.wpbs-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.wpbs-footer a:hover {
    color: #fff;
}

.wpbs-footer h4,
.wpbs-footer .widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.wpbs-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpbs-footer .widget li {
    padding: 4px 0;
}

.wpbs-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* WordPress alignment classes */
.alignwide {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 40px;
    }
}

/* Print */
@media print {
    .wpbs-navbar, .wpbs-footer, .offcanvas { display: none !important; }
    .wpbs-content-area { padding: 0 !important; }
}
