/*
Theme Name: TOIPA Theme
Theme URI: https://toipa.com.au
Author: Link Foundation AOD
Author URI: https://linkfoundationaod.org.au
Description: Custom WordPress theme for Traffic Offenders Intervention Program Australia (TOIPA). Features include multi-step enrollment forms, Stripe payment integration, N8N workflow automation, and a modern, responsive design built with Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toipa
Tags: education, custom, tailwind, one-page

This theme is designed specifically for TOIPA and uses:
- Tailwind CSS for styling (loaded via CDN in header.php)
- Plus Jakarta Sans font from Google Fonts
- Custom JavaScript for interactive elements
- Stripe integration for payments
- N8N integration for email automation
*/

/*
 * Note: Most styling is handled by Tailwind CSS classes in the template files.
 * This file contains only WordPress-required theme header information and
 * minimal custom styles that cannot be achieved with Tailwind.
 */

/* Base Styles - Tailwind handles most of this, but keep for fallback */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure WordPress admin bar doesn't overlap fixed header */
body.admin-bar header {
    top: 32px;
}

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

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles removed - handled individually per component with focus:outline-none or custom focus states */

/* WordPress Blocks - Ensure they work with Tailwind */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* WordPress Gallery */
.wp-block-gallery {
    margin: 0;
    padding: 0;
}

/* Ensure WordPress embeds are responsive */
.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
