/* ==========================================================================
   Nije Agencija Theme — main.css
   ========================================================================== */

/* ---- Custom properties -------------------------------------------------- */
:root {
	--color-bg:        #0a0a0a;
	--color-surface:   #141414;
	--color-border:    #2a2a2a;
	--color-text:      #f0f0f0;
	--color-muted:     #888;
	--color-accent:    #e5ff00;
	--color-accent-fg: #0a0a0a;

	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
	--font-size-base: 1rem;

	--space-xs:  0.5rem;
	--space-sm:  1rem;
	--space-md:  2rem;
	--space-lg:  4rem;
	--space-xl:  8rem;

	--radius:    0.5rem;
	--radius-lg: 1rem;

	--max-w: 1280px;
}

/* ---- Reset & base ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--font-size-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ---- Utility ------------------------------------------------------------ */
.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
	display: inline-block;
	padding: 0.75em 1.75em;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
	border: none;
}

.btn--primary {
	background-color: var(--color-accent);
	color: var(--color-accent-fg);
}
.btn--primary:hover,
.btn--primary:focus-visible {
	background-color: #fff;
	transform: translateY(-2px);
}

.btn--large {
	font-size: 1rem;
	padding: 1em 2.5em;
}

/* ---- Site header -------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(10, 10, 10, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: var(--space-sm) var(--space-md);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-header__logo {
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
}
.site-header__back {
	font-size: 0.875rem;
	color: var(--color-muted);
	transition: color 0.2s;
}
.site-header__back:hover { color: var(--color-text); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
	padding: var(--space-xl) var(--space-md);
	text-align: center;
}
.hero__inner {
	max-width: 640px;
	margin: 0 auto;
}
.hero__eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: var(--space-sm);
}
.hero__headline {
	font-size: clamp(2.5rem, 8vw, 5.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin-bottom: var(--space-sm);
}
.hero__sub {
	color: var(--color-muted);
	font-size: 1.1rem;
}

/* ---- Portfolio section -------------------------------------------------- */
.portfolio {
	padding: var(--space-lg) var(--space-md);
}
.portfolio__inner {
	max-width: var(--max-w);
	margin: 0 auto;
}
.portfolio__empty {
	color: var(--color-muted);
	text-align: center;
}

/* ---- Portfolio grid ----------------------------------------------------- */
.portfolio__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.portfolio__grid { grid-template-columns: 1fr; }
}

/* ---- Card --------------------------------------------------------------- */
.card {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-md);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
	border-color: var(--color-accent);
	transform: translateY(-4px);
}

.card__logo-wrap {
	width: 100%;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-md);
}
.card__logo {
	max-height: 80px;
	max-width: 160px;
	object-fit: contain;
	filter: brightness(0) invert(1);
	transition: filter 0.2s;
}
.card:hover .card__logo { filter: none; }

.card__logo-placeholder {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--color-muted);
}

.card__summary {
	flex: 1;
	font-size: 0.9rem;
	color: var(--color-muted);
	margin-bottom: var(--space-md);
	line-height: 1.5;
}

.card__cta { margin-top: auto; width: 100%; }

/* ---- Case study hero ---------------------------------------------------- */
.case-hero {
	padding: var(--space-xl) var(--space-md) var(--space-lg);
	text-align: center;
}
.case-hero__inner {
	max-width: 700px;
	margin: 0 auto;
}
.case-hero__logo {
	max-height: 80px;
	max-width: 200px;
	object-fit: contain;
	filter: brightness(0) invert(1);
	margin: 0 auto var(--space-md);
}
.case-hero__title {
	font-size: clamp(2rem, 6vw, 3.5rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	margin-bottom: var(--space-sm);
}
.case-hero__summary {
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.7;
}

/* ---- Embeds section ----------------------------------------------------- */
.embeds {
	padding: var(--space-lg) var(--space-md);
}
.embeds__inner {
	max-width: var(--max-w);
	margin: 0 auto;
}
.embeds__group { margin-bottom: var(--space-lg); }

.embeds__heading {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: var(--space-md);
}

.embeds__row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
}

/* ---- Responsive embed wrappers ------------------------------------------ */
.embed-wrap {
	border-radius: var(--radius-lg);
	overflow: hidden;
	flex: 1 1 320px;
	max-width: 480px;
	position: relative;
}

.embed-wrap--tiktok {
	/* TikTok: roughly 9:16 portrait */
	aspect-ratio: 9 / 16;
	max-width: 320px;
}
.embed-wrap--instagram {
	/* Instagram: square-ish */
	aspect-ratio: 4 / 5;
}

.embed-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ---- CTA section -------------------------------------------------------- */
.case-cta {
	padding: var(--space-lg) var(--space-md);
	text-align: center;
}
.case-cta__inner { max-width: var(--max-w); margin: 0 auto; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--color-border);
	padding: var(--space-md);
	text-align: center;
}
.site-footer__inner {
	max-width: var(--max-w);
	margin: 0 auto;
}
.site-footer p {
	color: var(--color-muted);
	font-size: 0.85rem;
}
