/**
 * WP SOC Design System — Entry Point
 * ============================================================
 * Loads the token layer plus every system file, then lays down
 * global resets and base element styles built entirely from those
 * tokens. Every section template in the theme (Hero, Trusted By,
 * Services, and beyond) should assume this file has already loaded.
 *
 * Production note: @import is used here for a single-file drop-in
 * during development/preview. In production, prefer registering each
 * file with wp_enqueue_style() and a dependency chain
 * (tokens → spacing/animations → components/buttons/forms →
 * design-system) so the browser fetches them in parallel instead of
 * serially through @import.
 * ============================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

@import url('./tokens.css');
@import url('./spacing.css');
@import url('./animations.css');
@import url('./components.css');
@import url('./buttons.css');
@import url('./forms.css');

/* ------------------------------------------------------------ *
 * Global reset
 * ------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--wp-soc-color-bg);
	color: var(--wp-soc-color-text);
	font-family: var(--wp-soc-font-body);
	font-size: var(--wp-soc-text-body);
	font-weight: var(--wp-soc-weight-regular);
	line-height: var(--wp-soc-leading-relaxed);
}

img,
svg,
video,
picture {
	display: block;
	max-width: 100%;
}

/* ------------------------------------------------------------ *
 * Base typography
 * Headings map directly to the type scale; utility classes in
 * components.css cover sizes without a matching semantic element.
 * ------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--wp-soc-font-display);
	font-weight: var(--wp-soc-weight-semibold);
	color: var(--wp-soc-color-text);
}

h1 { font-size: var(--wp-soc-text-h1); line-height: var(--wp-soc-leading-tight); letter-spacing: var(--wp-soc-tracking-tight); font-weight: var(--wp-soc-weight-bold); }
h2 { font-size: var(--wp-soc-text-h2); line-height: var(--wp-soc-leading-snug); letter-spacing: var(--wp-soc-tracking-snug); }
h3 { font-size: var(--wp-soc-text-h3); line-height: var(--wp-soc-leading-snug); letter-spacing: var(--wp-soc-tracking-snug); }
h4 { font-size: var(--wp-soc-text-h4); line-height: var(--wp-soc-leading-snug); }
h5 { font-size: var(--wp-soc-text-body-lg); line-height: var(--wp-soc-leading-snug); }
h6 { font-size: var(--wp-soc-text-body); line-height: var(--wp-soc-leading-snug); text-transform: uppercase; letter-spacing: var(--wp-soc-tracking-wide); }

p {
	margin: 0;
	color: var(--wp-soc-color-text-secondary);
	line-height: var(--wp-soc-leading-relaxed);
}

p + p {
	margin-top: var(--wp-soc-space-4);
}

small {
	font-size: var(--wp-soc-text-caption);
	color: var(--wp-soc-color-text-muted);
}

strong, b {
	font-weight: var(--wp-soc-weight-semibold);
	color: var(--wp-soc-color-text);
}

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

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

/* ------------------------------------------------------------ *
 * Global interaction states
 * ------------------------------------------------------------ */

:focus-visible {
	outline: 2px solid var(--wp-soc-color-primary);
	outline-offset: 3px;
}

::selection {
	background: var(--wp-soc-color-primary);
	color: var(--wp-soc-color-primary-ink);
}

/* Custom scrollbar — WebKit + Firefox, using system tokens */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--wp-soc-color-border) transparent;
}

*::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

*::-webkit-scrollbar-track {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background-color: var(--wp-soc-color-border);
	border-radius: var(--wp-soc-radius-full);
	border: 2px solid var(--wp-soc-color-bg);
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--wp-soc-color-border-strong);
}

/* ------------------------------------------------------------ *
 * Layout primitives shared across every section
 * ------------------------------------------------------------ */

.wp-soc-section {
	position: relative;
	background: var(--wp-soc-color-bg);
}

.wp-soc-section--surface {
	background: var(--wp-soc-color-surface);
}

/* Near-invisible background grid, reused by any section that wants
   the same ambient texture as the Hero / Trusted By sections. */
.wp-soc-bg-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 88%);
}

/* Ambient glow blob, reused wherever a section needs a soft brand-
   colored bloom in the background. */
.wp-soc-bg-glow {
	position: absolute;
	z-index: 0;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(110px);
	opacity: 0.35;
	background: radial-gradient(circle, rgba(var(--wp-soc-color-primary-rgb), 0.2), transparent 70%);
}

/* Visually-hidden utility for screen-reader-only text */
.wp-soc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
