/* ==========================================================================
   Outglocal Theme — base.css
   Design system: tokens, reset, tipografia, acessibilidade.
   GLOBAL. Alterações aqui afetam todo o website.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonte local — Inter (variable, subset latin; sem pedidos externos)
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
		U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
		U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	/* Cores — instância Outglocal (midnight + teal) */
	--color-primary: #12121f;
	--color-primary-dark: #0a0a14;
	--color-accent: #00c9ad;
	--color-accent-dark: #00a68e;
	--color-text: #1d1d2c;
	--color-muted: #64748b;
	--color-bg: #ffffff;
	--color-surface: #fafafa;
	--color-border: #e5e7eb;
	--color-success: #10b981;
	--color-error: #ef4444;
	--color-warning: #b7791f;

	/* Secções escuras e apoios da marca */
	--color-midnight: #12121f;
	--color-charcoal: #1a1a2e;
	--color-text-light: #e2e8f0;
	--color-brand-light: #b2f0e4;

	/* Aliases com a nomenclatura do cliente (vars Tailwind do código entregue) */
	--color-brand: var(--color-accent);
	--color-brand-dark: var(--color-accent-dark);
	--color-text-primary: var(--color-text);
	--color-text-secondary: var(--color-muted);
	--color-border-light: var(--color-border);

	/* Espaçamento */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2.5rem;
	--spacing-xl: 4rem;

	/* Layout */
	--container-width: 80rem;
	--container-padding: 1.5rem;
	--container-padding-lg: 4rem;

	/* Tipografia */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	--line-height-body: 1.65;

	/* Raios e sombras */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-full: 999px;
	--shadow-sm: 0 1px 3px rgba(18, 18, 31, 0.08);
	--shadow-md: 0 6px 18px rgba(18, 18, 31, 0.12);
	--shadow-lg: 0 16px 40px rgba(18, 18, 31, 0.18);

	/* Camadas */
	--z-header: 100;
	--z-skip-link: 1000;

	/* Breakpoints de referência (media queries não aceitam var()):
	   sm 480px · md 768px · lg 1024px · xl 1280px */
}

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

* {
	margin: 0;
}

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

body {
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: var(--line-height-body);
	color: var(--color-text);
	background: var(--color-bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

ul[class],
ol[class] {
	list-style: none;
	padding: 0;
}

a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.2;
	font-weight: 700;
	overflow-wrap: break-word;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
   3. Tipografia base
   -------------------------------------------------------------------------- */
p {
	max-width: 70ch;
}

strong {
	font-weight: 700;
}

small {
	font-size: 0.875em;
}

::selection {
	background: var(--color-brand-light);
	color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   4. Acessibilidade
   -------------------------------------------------------------------------- */
:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--spacing-sm);
	z-index: var(--z-skip-link);
	padding: 0.75rem 1.25rem;
	background: var(--color-primary-dark);
	color: #fff;
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-weight: 600;
}

.skip-link:focus {
	top: var(--spacing-sm);
	color: #fff;
}

.u-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Classe nativa do WordPress (paginação, searchform, comentários…). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
