/*
Theme Name: ImpactWorks Policy Research Centre
Theme URI: https://impactworksresearch.ca
Author: TriadNG
Author URI: https://triadng.com
Description: A modern hybrid WordPress/React SPA theme for the ImpactWorks Policy Research Centre (IPRC). Features evidence-based policy research content, Elementor compatibility, full Theme Customizer integration, and a professional design system built on Tailwind CSS with Source Serif 4 and Proxima Nova typography.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-theme
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready

ImpactWorks Policy Research Centre - Advancing Evidence. Informing Policy. Driving Inclusive Impact.
*/

/* WordPress Core Styles */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    background-color: hsl(210, 25%, 98%);
}

#root {
    min-height: 100vh;
}

/* Loading state before React hydrates */
#root:empty::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 100px auto;
    border: 3px solid hsl(216, 54%, 35%);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* WordPress admin bar spacing */
body.admin-bar #root {
    margin-top: 0;
}

body.admin-bar header.fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.fixed {
        top: 46px;
    }
}

/* WordPress alignment classes */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Footer widget area */
.footer-widgets {
    padding: 2rem 0;
}

.footer-widgets .widget {
    margin-bottom: 1.5rem;
}

.footer-widgets .widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Elementor page override */
.elementor-page #root {
    display: none;
}
