/*
Theme Name: JMOTO Works
Theme URI: https://jmotoworks.com
Author: JMOTO Works
Author URI: https://jmotoworks.com
Description: A premium, industrial-inspired native WordPress theme for JMOTO WORKS, a motorcycle parts and repair shop in Malolos, Bulacan. Hybrid classic/block theme with full Customizer support and WooCommerce-ready templates.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jmoto-works
Tags: e-commerce, custom-menu, custom-logo, custom-background, custom-colors, featured-images, full-width-template, threaded-comments, translation-ready, wide-blocks, block-styles, editor-style, footer-widgets
*/

/* ==========================================================================
   1. Design Tokens (CSS Custom Properties)
   Runtime tokens for classic PHP-templated markup. The block editor's own
   color/typography presets are defined separately in theme.json — the two
   systems serve different rendering paths (server-rendered templates vs.
   the block editor), so this is not duplicate code, only duplicate values,
   kept in sync deliberately.
   ========================================================================== */
:root {
	/* Colors */
	--jmoto-color-bg: #0F0F10;
	--jmoto-color-surface: #171717;
	--jmoto-color-surface-alt: #1D1D1E;
	--jmoto-color-ink: #F4F4F4;
	--jmoto-color-ink-muted: #9A9A9C;
	--jmoto-color-accent: #D71920;
	--jmoto-color-accent-dim: #A11319;
	--jmoto-color-white: #FFFFFF;
	--jmoto-color-border: #2B2B2B;

	/* Typography */
	--jmoto-font-heading: 'Bebas Neue', sans-serif;
	--jmoto-font-body: 'Poppins', sans-serif;
	--jmoto-font-mono: 'JetBrains Mono', monospace;

	/* Spacing scale */
	--jmoto-space-sm: 12px;
	--jmoto-space-md: 24px;
	--jmoto-space-lg: 48px;
	--jmoto-space-xl: 96px;

	/* Radius scale */
	--jmoto-radius-sm: 8px;
	--jmoto-radius-md: 16px;
	--jmoto-radius-pill: 100px;

	/* Layout */
	--jmoto-container-width: 1320px;
	--jmoto-header-height: 80px;
}

/* ==========================================================================
   1a. Local Fonts (@font-face)
   Locally hosted only — no Google Fonts CDN request, no third-party
   dependency. Every src path is relative to this theme's root. If a
   given file hasn't been added yet to /assets/fonts/ (see LICENSE.txt
   for what's bundled vs. what still needs downloading), the browser
   simply fails that one @font-face load silently and falls through to
   the sans-serif/monospace fallback already declared in the
   --jmoto-font-* custom properties below — never a broken reference,
   never a console error.
   ========================================================================== */
@font-face {
	font-family: 'Bebas Neue';
	src: url('assets/fonts/bebas-neue-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/poppins-300.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/poppins-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/poppins-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/poppins-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'JetBrains Mono';
	src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'JetBrains Mono';
	src: url('assets/fonts/jetbrains-mono-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: var(--jmoto-color-bg);
	color: var(--jmoto-color-ink);
	font-family: var(--jmoto-font-body);
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button,
input,
textarea,
select {
	font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--jmoto-font-heading);
	font-weight: 400;
	letter-spacing: 0.5px;
	line-height: 1.05;
	text-transform: uppercase;
	margin: 0 0 var(--jmoto-space-sm);
}

p {
	margin: 0 0 var(--jmoto-space-sm);
}

/* ==========================================================================
   3. Accessibility
   ========================================================================== */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--jmoto-color-surface);
	border-radius: var(--jmoto-radius-sm);
	box-shadow: 0 0 2px 2px rgba(215, 25, 32, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--jmoto-color-ink);
	display: block;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* "Skip to content" link — required for WCAG AA keyboard navigation. */
.skip-link {
	left: -9999px;
	position: absolute;
	top: -9999px;
	z-index: 100000;
}

.skip-link:focus {
	left: 5px;
	top: 5px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--jmoto-color-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   4. WordPress Core Alignment Classes
   ========================================================================== */
.alignleft {
	float: left;
	margin-right: var(--jmoto-space-md);
	margin-bottom: var(--jmoto-space-sm);
}

.alignright {
	float: right;
	margin-left: var(--jmoto-space-md);
	margin-bottom: var(--jmoto-space-sm);
}

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

.alignwide {
	max-width: var(--jmoto-container-width);
	margin-left: auto;
	margin-right: auto;
}

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

/* ==========================================================================
   5. WordPress Core Content Classes
   ========================================================================== */
.gallery-caption {
	color: var(--jmoto-color-ink-muted);
	font-size: 13px;
	text-align: center;
	display: block;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	color: var(--jmoto-color-ink-muted);
	font-size: 13px;
	text-align: center;
	margin-top: var(--jmoto-space-sm);
}

/* ==========================================================================
   6. Responsive Embeds
   ========================================================================== */
.wp-embed-responsive .wp-block-embed__wrapper,
.wp-embed-responsive .wp-video,
.wp-embed-responsive iframe {
	max-width: 100%;
}

.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper {
	position: relative;
}

.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   7. Editor Style Baseline
   Full editor typography lives in assets/css/main.css (Phase 5); this
   block is a sane fallback if that stylesheet fails to load in the editor.
   ========================================================================== */
.editor-styles-wrapper {
	background-color: var(--jmoto-color-bg);
	color: var(--jmoto-color-ink);
	font-family: var(--jmoto-font-body);
}

/* ==========================================================================
   NOTE: Component, layout, and page-section CSS (header, hero, cards,
   footer, responsive rules, animations) is intentionally NOT in this file.
   Per project requirement, that lives in /assets/css/main.css,
   /assets/css/responsive.css, and /assets/css/animations.css, built and
   enqueued in the dedicated Assets phase (Phase 5). This file is scoped
   to the WordPress-required stylesheet header, design tokens, resets, and
   core WP classes only — nothing else.
   ========================================================================== */
