/*
Theme Name: Just Audit AI
Theme URI: https://justauditai.com
Description: Bespoke child theme for JustAuditAI — executive green architectural design tokens, self-hosted typography (Space Grotesk, Manrope, Instrument Serif), global layout foundations, and accessibility standards.
Author: Just Audit AI Digital Studio
Template: hello-elementor
Version: 1.1.1
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   1. SELF-HOSTED TYPOGRAPHY (@font-face)
   ========================================================================== */
@font-face {
	font-family: 'Space Grotesk';
	src: url('assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('assets/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Instrument Serif';
	src: url('assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Instrument Serif';
	src: url('assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   2. EXECUTIVE GREEN DESIGN SYSTEM TOKENS
   ========================================================================== */
:root {
	/* Core Brand Green Palette (Zero Purple) */
	--jai-obsidian: #0B241E;          /* Deep Forest Green Background */
	--jai-charcoal: #12352C;          /* Rich Forest Green Surface */
	--jai-charcoal-elevated: #184338; /* Elevated Forest Green Card */
	--jai-deep-plum: #1C4B42;         /* Signature Just Audit Primary Green */
	--jai-porcelain: #F4F8F6;         /* Neat Light Sage-White Background */
	--jai-porcelain-warm: #EBF2EE;    /* Soft Sage Neutral Surface */
	--jai-porcelain-card: #FFFFFF;    /* Crisp White Card */
	--jai-soft-violet: #A7F3D0;       /* Soft Mint Green Accent on Dark */
	--jai-electric-violet: #B4E717;   /* Signature Just Audit Vibrant Lime */
	--jai-deep-indigo: #1C4B42;       /* Primary Forest Green Accent on Light */
	--jai-emerald: #10B981;           /* Emerald Technical Accent */
	--jai-copper: #D97706;            /* Warm Amber-Gold for RA Checkpoints */
	--jai-copper-soft: rgba(217, 119, 6, 0.16);

	/* Semantic Text & Surface Tokens (WCAG AA/AAA Contrast Checked) */
	--jai-text-on-dark: #F7FAF8;
	--jai-text-muted-on-dark: #C8DDD5;
	--jai-text-subtle-on-dark: #93B5A8;
	--jai-text-on-light: #0B241E;
	--jai-text-muted-on-light: #35524A;
	--jai-text-subtle-on-light: #56756C;

	/* Semantic Status Tokens */
	--jai-status-verified: #10B981;
	--jai-status-review: #B4E717;
	--jai-status-attention: #D97706;

	/* Borders & Hairlines */
	--jai-border-dark: rgba(167, 243, 208, 0.16);
	--jai-border-dark-strong: rgba(180, 231, 23, 0.38);
	--jai-border-light: #D5E2DC;
	--jai-border-light-strong: #1C4B42;

	/* Typography Families */
	--jai-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--jai-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--jai-font-editorial: 'Instrument Serif', Georgia, serif;
	--jai-font-mono: 'SFMono-Regular', ui-monospace, 'Cascadia Mono', 'Menlo', monospace;

	/* Fluid Typography Scale — Neat, Balanced & Architectural */
	--jai-fs-display: clamp(2.35rem, 3.6vw + 0.75rem, 3.85rem);
	--jai-fs-h2: clamp(1.85rem, 2.3vw + 0.6rem, 2.75rem);
	--jai-fs-h3: clamp(1.22rem, 1.1vw + 0.55rem, 1.55rem);
	--jai-fs-h4: clamp(1.05rem, 0.5vw + 0.8rem, 1.22rem);
	--jai-fs-lead: clamp(1.04rem, 0.35vw + 0.9rem, 1.18rem);
	--jai-fs-body: 1rem;
	--jai-fs-small: 0.875rem;
	--jai-fs-micro: 0.75rem;

	/* Layout & Rhythm */
	--jai-container-max: 1320px;
	--jai-radius-sm: 8px;
	--jai-radius-md: 12px;
	--jai-radius-lg: 18px;
	--jai-radius-pill: 999px;
	--jai-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--jai-transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
	--jai-transition-base: 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   3. GLOBAL BASE & ACCESSIBILITY FOUNDATIONS
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
	background-color: var(--jai-obsidian);
	color: var(--jai-text-on-dark);
	font-family: var(--jai-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

body {
	margin: 0;
	padding: 0;
	background-color: var(--jai-obsidian);
	color: var(--jai-text-on-dark);
	font-family: var(--jai-font-body);
	overflow-x: clip;
}

/* Suppress default Hello Elementor header/footer & page title on JAI canvas */
.site-header,
.site-footer,
.page-header {
	display: none !important;
}

.site-main,
.page-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* Neutralise Hello Elementor default pink button styles inside JAI sections */
.jai-site-header button,
.jai-section-shell button {
	white-space: normal;
	font-family: var(--jai-font-body);
	text-transform: none;
	letter-spacing: normal;
}

/* Accessible Focus Indicator (WCAG 2.2 AA 2.4.7 & 1.4.11) */
:where(a:any-link, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 2px solid var(--jai-electric-violet) !important;
	outline-offset: 3px !important;
}

.jai-theme-light :where(a:any-link, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 2px solid var(--jai-deep-indigo) !important;
	outline-offset: 3px !important;
}

/* Visually Hidden Utility (Accessible to screen readers, visible on focus) */
.visually-hidden:where(:not(:focus-within, :active)) {
	position: absolute !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.jai-skip-link {
	position: fixed;
	top: 14px;
	left: 16px;
	z-index: 10000;
	background: var(--jai-deep-indigo);
	color: #FFFFFF;
	padding: 10px 18px;
	border-radius: var(--jai-radius-sm);
	font-family: var(--jai-font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(11, 36, 30, 0.45);
}
