/* ==========================================================================
   PICOS Design System — variables & global styles
   ========================================================================== */

:root {
	/* Colors */
	--primary: #6f10b7;
	--primary-hover: #540b8d;
	--primary-light: #f4ebfc;

	--text: #111827;
	--text-light: #4b5563;
	--text-muted: #6b7280;

	--border: #e5e7eb;

	--bg-white: #ffffff;
	--bg-light: #f8fafc;
	--bg-soft: #f3f4f6;

	--success: #16a34a;
	--warning: #f59e0b;

	--footer-bg: #0b1320;

	/* Typography — fluid base scales via breakpoints */
	--font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--font-weight-extrabold: 800;
	--font-weight-black: 900;

	--font-hero: clamp(2.125rem, 3.2vw + 1rem, 4.5rem);
	--font-hero-line-height: 1.05;
	--font-h2: clamp(1.75rem, 2vw + 0.75rem, 2.625rem);
	--font-h2-line-height: 1.1;
	--font-h3: clamp(1.375rem, 1.2vw + 0.75rem, 1.75rem);
	--font-h4: clamp(1.125rem, 0.5vw + 0.9rem, 1.375rem);
	--font-body-large: 18px;
	--font-body: 16px;
	--font-small: 14px;
	--font-tiny: 12px;

	/* Spacing */
	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 40px;
	--space-xl: 60px;
	--space-xxl: 100px;

	--section-padding-top: 120px;
	--section-padding-bottom: 120px;
	--section-padding-y: 120px;

	/* Container */
	--container-max-width: 1440px;
	--container-padding: 40px;

	/* Border radius */
	--radius-button: 4px;
	--radius-card: 8px;
	--radius-input: 6px;
	--radius-card-large: 12px;

	/* Shadows */
	--shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);
	--shadow-dropdown: 0 15px 35px rgba(0, 0, 0, 0.08);
	--shadow-hero-card: 0 25px 60px rgba(0, 0, 0, 0.12);

	/* Buttons */
	--btn-height: 48px;
	--btn-padding: 0 28px;
	--touch-target: 48px;

	/* Header */
	--global-nav-height: 40px;
	--header-height: 76px;
	--site-header-height: calc(var(--global-nav-height) + var(--header-height));
	--mobile-nav-width: min(100vw - 48px, 400px);
	--mobile-drawer-header-height: 56px;

	/* Cards */
	--card-border: 1px solid var(--border);
	--card-background: var(--bg-white);
	--card-padding: 28px;

	/* Motion */
	--transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	--transition-transform: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--hover-lift: translateY(-2px);

	/* Breakpoints (reference) */
	--bp-sm-max: 479px;
	--bp-mobile-max: 767px;
	--bp-tablet-max: 1023px;
	--bp-laptop-max: 1279px;
	--bp-desktop-min: 1280px;
	--bp-wide-min: 1440px;
}

/* Laptop: 1280px */
@media (max-width: 1279px) {
	:root {
		--container-padding: 32px;
		--section-padding-top: 100px;
		--section-padding-bottom: 100px;
		--section-padding-y: 100px;
	}
}

/* Tablet: 1024px */
@media (max-width: 1023px) {
	:root {
		--section-padding-top: 90px;
		--section-padding-bottom: 90px;
		--section-padding-y: 90px;
		--global-nav-height: 0px;
		--header-height: 72px;
		--site-header-height: var(--header-height);
		--mobile-drawer-header-height: 52px;
	}
}

/* Mobile: 768px */
@media (max-width: 767px) {
	:root {
		--font-body: 15px;
		--font-body-large: 17px;
		--section-padding-top: 64px;
		--section-padding-bottom: 64px;
		--section-padding-y: 64px;
		--container-padding: 20px;
		--header-height: 60px;
		--site-header-height: var(--header-height);
		--mobile-drawer-header-height: 52px;
		--card-padding: 22px;
	}
}

/* Small mobile: 480px */
@media (max-width: 479px) {
	:root {
		--mobile-nav-width: 100%;
	}
}

/* ==========================================================================
   Global base
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	font-size: var(--font-body);
	font-weight: var(--font-weight-regular);
	line-height: 1.5;
	color: var(--text);
	background-color: var(--bg-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.is-nav-open,
body.is-search-open {
	overflow: hidden;
}

body.is-nav-open.is-scroll-locked,
body.is-search-open.is-scroll-locked {
	position: fixed;
	width: 100%;
}

h1,
.h1 {
	font-size: var(--font-hero);
	font-weight: var(--font-weight-extrabold);
	line-height: var(--font-hero-line-height);
	color: var(--text);
	letter-spacing: -0.02em;
}

h2,
.h2 {
	font-size: var(--font-h2);
	font-weight: var(--font-weight-extrabold);
	line-height: var(--font-h2-line-height);
	color: var(--text);
	letter-spacing: -0.02em;
}

h3,
.h3 {
	font-size: var(--font-h3);
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: var(--text);
}

h4,
.h4 {
	font-size: var(--font-h4);
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
	color: var(--text);
}

p {
	margin-bottom: 1em;
}

p:last-child {
	margin-bottom: 0;
}

.text-body-large {
	font-size: var(--font-body-large);
	line-height: 1.6;
}

.text-small {
	font-size: var(--font-small);
	line-height: 1.5;
}

.text-tiny {
	font-size: var(--font-tiny);
	line-height: 1.4;
}

.text-light {
	color: var(--text-light);
}

.text-muted {
	color: var(--text-muted);
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: var(--transition);
}

a:hover,
a:focus-visible {
	color: var(--primary-hover);
}

img {
	height: auto;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.section {
	padding-top: var(--section-padding-top);
	padding-bottom: var(--section-padding-bottom);
}

.text-center {
	text-align: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--btn-height);
	height: auto;
	padding: 12px 28px;
	border: 0;
	border-radius: var(--radius-button);
	font-family: inherit;
	font-size: var(--font-body);
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: var(--transition), var(--transition-transform);
}

@media (hover: hover) {
	.btn:hover,
	.btn:focus-visible {
		transform: var(--hover-lift);
	}
}

.btn-primary {
	background-color: var(--primary);
	color: var(--bg-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background-color: var(--primary-hover);
	color: var(--bg-white);
}

.btn-secondary {
	background-color: var(--bg-white);
	border: 1px solid var(--border);
	color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	border-color: var(--text-light);
	color: var(--text);
}

.btn--block {
	width: 100%;
}
