/*
Theme Name: PDAV Security Response
Theme URI: https://pdavsecurity.ca
Author: PDAV Security Response
Author URI: https://pdavsecurity.ca
Description: A modern, professional, Elementor-friendly WordPress theme custom-built for PDAV Security Response — a licensed security company serving Surrey, Vancouver, Burnaby, Richmond, Delta, Abbotsford, Langley and the Lower Mainland of British Columbia. Features service pages, city landing pages, sticky header, full-width templates, custom logo + menus, and a trustworthy black / navy / gold design system.
Version: 1.8.1
Requires at least: 6.0
Tested up to: 6.6
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: pdav-security
Tags: business, security, custom-logo, custom-menu, featured-images, threaded-comments, full-width-template, block-styles, wide-blocks, translation-ready
*/

/* Base styles loaded for fallback. Main styles are in assets/css/main.css */

/*
Changelog 1.8.1 (2026-05-30)
 - FIX: Rank Math sitemap still listed numbered URLs (-N duplicates).
   * Use correct hook `rank_math/sitemap/exclude_posts` (CSV string) instead
     of the non-existent `rank_math/sitemap/exclude_post_ids` (array).
   * Also hook per-post-type variant `rank_math/sitemap/{post_type}/entry`.
   * Stamp `_rank_math_robots = ['noindex']` on numbered posts via wp action
     so Rank Math's own pipeline excludes them (postmeta only, reversible).
   * Auto-invalidate Rank Math sitemap cache on PDAV_SEO_VERSION bump and
     expose an admin-only on-demand flush via ?pdav_seo_flush_sitemap=1.
 - No DB rows deleted, no posts trashed. Disable: define('PDAV_SEO_DISABLE', true);

Changelog 1.8.0 (2026-05-30)
 - SEO Hardening pack (non-destructive, reversible)
 - inc/seo/redirects.php: 301/410 from pdav-redirect-map (200 rows)
 - inc/seo/numbered-slugs.php: noindex + canonical for -N duplicates
 - inc/seo/sitemap-filter.php: excludes numbered + duplicate URLs from Rank Math / Yoast / WP core sitemaps
 - inc/seo/canonical.php: defers to Rank Math/Yoast when active
 - inc/seo/schema.php: Service / LocalBusiness / FAQPage / Breadcrumb / SearchAction supplements
 - Disable everything: define( 'PDAV_SEO_DISABLE', true ); in wp-config.php
*/
