/*
Theme Name: GW Trailers
Theme URI: https://gwtrailersnc.com
Author: TECHNOTCH
Author URI: https://technotch.dev
Description: Purpose-built theme for GW Trailer Sales, Asheboro NC. Ships the dealer chrome, the homepage, and the brand system that drives the GW Trailer Inventory plugin. Designed around a live trailer feed rather than a generic page builder.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gw-trailers
Tags: custom-menu, featured-images, translation-ready, full-width-template, block-styles
*/

/*
 * This file carries the theme header and the brand tokens. Everything else is
 * in assets/css/ so the stylesheet that WordPress reads for metadata stays
 * small and the real styles can be cached independently.
 *
 * Brand palette taken from the dealer's existing site:
 *   navy  #050A30  chrome
 *   blue  #283E88  actions
 *   red   #D62828  price reductions only — never decoration
 *
 * Orbitron is the display face, Work Sans the text face.
 */

:root {
	--gw-navy: #050a30;
	--gw-navy-700: #0b1348;
	--gw-navy-600: #141d5e;
	--gw-blue: #283e88;
	--gw-blue-600: #1f3270;
	--gw-blue-300: #374a9d;
	--gw-blue-100: #e8ecf8;

	--gw-red: #d62828;
	--gw-green: #067647;
	--gw-amber: #8a6d00;

	--gw-ink: #1a1d26;
	--gw-ink-soft: #596074;
	--gw-line: #e2e5ec;
	--gw-surface: #ffffff;
	--gw-surface-alt: #f4f6fa;

	--gw-display: "Orbitron", "Work Sans", system-ui, sans-serif;
	--gw-text: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gw-wrap: 1240px;
	--gw-wrap-narrow: 760px;
	--gw-gap: 24px;
	--gw-radius: 8px;
	--gw-shadow: 0 1px 2px rgba(5, 10, 48, .06), 0 6px 20px rgba(5, 10, 48, .07);
	--gw-shadow-lg: 0 2px 6px rgba(5, 10, 48, .08), 0 18px 46px rgba(5, 10, 48, .13);
}

/*
 * Feed the palette to the GW Trailer Inventory plugin.
 *
 * The plugin draws every colour from these custom properties, so this block is
 * the entire brand integration — nothing inside the plugin is edited.
 *
 * `body .gwti` rather than `.gwti`: the plugin defines its own defaults on
 * `.gwti`, so matching that selector exactly would leave the winner down to
 * stylesheet order. One extra element of specificity makes it deterministic.
 */
body .gwti {
	--gwti-accent: var(--gw-blue);
	--gwti-accent-dark: var(--gw-blue-600);
	--gwti-accent-ink: #ffffff;
	--gwti-ink: var(--gw-ink);
	--gwti-ink-soft: var(--gw-ink-soft);
	--gwti-line: var(--gw-line);
	--gwti-surface: var(--gw-surface);
	--gwti-surface-alt: var(--gw-surface-alt);
	--gwti-dark: var(--gw-navy);
	--gwti-sale: var(--gw-green);
	--gwti-radius: var(--gw-radius);
	--gwti-shadow: var(--gw-shadow);

	font-family: var(--gw-text);
}

/* A price reduction keeps its own colour so it never reads as brand furniture. */
body .gwti .gwti-badge-sale,
body .gwti .gwti-badge-special {
	background: var(--gw-red);
}

body .gwti .gwti-listing-title,
body .gwti .gwti-section-title,
body .gwti .gwti-unit-title {
	font-family: var(--gw-display);
	font-weight: 700;
	letter-spacing: -.01em;
}
