/* Početna. Midnight Editorial. Ne dira unutrašnje strane. */

body.atelier {
	scrollbar-width: none;
	--midnight: #101d30;
	--deep: #17283f;
	--ivory: #f5f2ea;
	--gold: #c4a477;
	--mist: #dde5e7;
	--white: #ffffff;
	--text: #101d30;
	--muted: #596576;
	--border: #e8e3d8;
	--sans: Manrope, "Segoe UI", sans-serif;
	--serif: "Instrument Serif", Georgia, serif;
	margin: 0;
	padding: 0 0 0;
	background: var(--ivory);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

body.atelier .skip {
	background: var(--midnight);
	color: var(--ivory);
}

body.nav-open { overflow: hidden; }

.me-wrap {
	width: min(1360px, calc(100% - 48px));
	margin-inline: auto;
}

.me-header {
	position: fixed;
	z-index: 40;
	top: 16px;
	left: 16px;
	right: 16px;
}

.me-bar {
	width: min(1360px, 100%);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 12px 10px 16px;
	background: rgba(245, 242, 234, 0.9);
	border: 1px solid var(--border);
	backdrop-filter: blur(16px);
}

.me-logo { display: flex; align-items: center; margin-right: auto; }

.me-logo img { height: 28px; width: auto; display: block; }

.me-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.me-nav > a,
.me-drop-btn,
.me-sub a,
.me-mega a {
	color: var(--text);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
}

.me-nav > a,
.me-drop-btn {
	position: relative;
	z-index: 70;
	padding: 8px 10px;
	background: transparent;
	border: 0;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.me-nav > a:hover,
.me-drop-btn:hover { color: var(--deep); }

.me-drop { position: relative; }

.me-mega,
.me-sub {
	display: none;
	position: absolute;
	top: calc(100% - 8px);
	left: 0;
	z-index: 60;
	background: var(--white);
	border: 1px solid var(--border);
	padding: 12px;
}

.me-mega::before,
.me-sub::before {
	content: "";
	position: absolute;
	left: 0;
	width: 160px;
	top: -28px;
	height: 28px;
}

.me-mega {
	display: none;
	width: min(720px, 70vw);
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.me-drop.is-open > .me-mega,
.me-drop:focus-within > .me-mega { display: grid; }

.me-drop.is-open > .me-sub,
.me-drop:focus-within > .me-sub { display: grid; }

.me-sub {
	min-width: 240px;
	list-style: none;
	margin: 0;
}

.me-mega a,
.me-sub a { display: block; padding: 8px; }

.me-mega img {
	width: 100%;
	height: 88px;
	object-fit: cover;
	display: block;
	margin-bottom: 8px;
}

.me-mega-more { grid-column: 1 / -1; border-top: 1px solid var(--border); }

.me-cta,
.me-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	background: var(--midnight);
	color: var(--ivory);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	border: 1px solid var(--midnight);
	white-space: nowrap;
}

.me-cta:hover,
.me-btn:hover { background: var(--deep); color: var(--ivory); }

.me-btn-ghost,
.me-btn-line {
	background: transparent;
	color: var(--ivory);
	border-color: rgba(245, 242, 234, 0.45);
}

.me-btn-ivory {
	background: var(--ivory);
	color: var(--midnight);
	border-color: var(--ivory);
}

.me-btn-ivory:hover { background: var(--white); color: var(--midnight); }

.me-burger {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--border);
	background: transparent;
	font: inherit;
	padding: 8px 12px;
	cursor: pointer;
}

.me-burger-lines,
.me-burger-lines::before,
.me-burger-lines::after {
	display: block;
	width: 14px;
	height: 1px;
	background: var(--midnight);
	content: "";
	position: relative;
}

.me-burger-lines::before { position: absolute; top: -5px; }
.me-burger-lines::after { position: absolute; top: 5px; }

.me-hero {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	background: var(--midnight);
	color: var(--ivory);
}

.me-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 140px 64px 72px;
	max-width: 760px;
}

.me-hero h1 {
	margin: 0 0 24px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.625rem, 5.4vw, 6.5rem);
	line-height: 0.96;
	letter-spacing: -0.03em;
}

.me-eyebrow,
.me-kicker {
	margin: 0 0 18px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mist);
}

.me-kicker { color: var(--muted); }

.me-lead {
	max-width: 38rem;
	margin: 0 0 32px;
	color: #f5f2ea;
	font-size: 1.125rem;
}

.me-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.me-hero-figure { margin: 0; position: relative; min-height: 100%; }

.me-hero-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: absolute;
	inset: 0;
}

.me-hero-figure figcaption {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	margin: 0;
	padding: 10px 12px;
	background: rgba(16, 29, 48, 0.72);
	color: var(--ivory);
	font-size: 0.75rem;
}

.me-band { background: var(--ivory); padding: 80px 0; }

.me-section { background: var(--white); padding: 80px 0; }

.me-section-mist { background: var(--mist); }

.me-section-ivory { background: var(--ivory); }

.me-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 32px;
	align-items: end;
	margin-bottom: 36px;
}

.me-head h2,
.me-final h2,
.me-steps h3,
.me-bento h3,
.me-purposes h3,
.me-quotes h3,
.me-posts h3,
.me-price h3 {
	font-family: var(--serif);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.me-head h2,
.me-final h2 {
	margin: 0;
	font-size: clamp(2.25rem, 4vw, 4.25rem);
	grid-column: 1;
}

.me-head .me-kicker { grid-column: 1 / -1; margin-bottom: 0; }

.me-text {
	color: var(--text);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.me-dest {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.me-dest-card {
	position: relative;
	min-height: 320px;
	color: var(--ivory);
	text-decoration: none;
	overflow: hidden;
	display: block;
}

.me-dest-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

.me-dest-card span {
	position: absolute;
	left: 16px;
	bottom: 16px;
	font-family: var(--serif);
	font-size: 2rem;
	line-height: 1;
	text-shadow: 0 1px 12px rgba(16, 29, 48, 0.45);
}

.me-purposes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	border-top: 1px solid var(--border);
}

.me-purposes li { border-right: 1px solid var(--border); padding: 28px 20px 8px 0; }
.me-purposes li:last-child { border-right: 0; padding-right: 0; }
.me-purposes h3 { margin: 0 0 12px; font-size: 1.8rem; }
.me-purposes p { margin: 0; color: var(--muted); }
.me-purposes a { color: inherit; text-decoration: none; }

.me-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.me-steps span {
	display: block;
	font-family: var(--serif);
	font-size: 2.5rem;
	color: var(--midnight);
}

.me-steps h3 { margin: 12px 0; font-size: 2rem; }
.me-steps p { margin: 0; color: var(--muted); }

.me-bento {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 12px;
}

.me-bento article {
	border: 1px solid var(--border);
	padding: 28px;
	background: var(--ivory);
}

.me-bento-wide { grid-row: span 2; background: var(--midnight); color: var(--ivory); }
.me-bento-wide p { color: var(--mist); }
.me-bento h3 { margin: 0 0 12px; font-size: 2rem; }
.me-bento p { margin: 0; }

.me-quotes {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 12px;
}

.me-quotes figure {
	margin: 0;
	padding: 28px;
	border: 1px solid var(--border);
	background: var(--white);
}

.me-quotes figure:first-child { grid-row: span 2; }
.me-quotes p {
	margin: 0 0 20px;
	font-family: var(--serif);
	font-size: 1.55rem;
	line-height: 1.25;
}
.me-quotes figcaption { color: var(--muted); font-size: 0.92rem; }

.me-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.me-filters button {
	font: inherit;
	padding: 8px 14px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	cursor: pointer;
}

.me-filters button[aria-pressed="true"] {
	background: var(--midnight);
	color: var(--ivory);
	border-color: var(--midnight);
}

.me-price { margin-bottom: 28px; }
.me-price h3 { margin: 0 0 8px; font-size: 2rem; }
.me-price table { width: 100%; border-collapse: collapse; }
.me-price th,
.me-price td {
	text-align: left;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
.me-price thead th {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
}
.me-price td { white-space: nowrap; font-variant-numeric: tabular-nums; }

.me-note { color: var(--muted); max-width: 46rem; }

.me-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.me-posts h3 { margin: 0 0 10px; font-size: 1.8rem; }
.me-posts a { color: inherit; text-decoration: none; }
.me-posts a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.me-posts p { margin: 0; color: var(--muted); }

.me-final {
	background: var(--deep);
	color: var(--ivory);
	padding: 96px 0;
}

.me-final .me-eyebrow { color: var(--gold); }
.me-final h2 { max-width: 16ch; }

.me-footer {
	background: var(--midnight);
	color: var(--mist);
	padding: 64px 0 28px;
}

.me-footer a { color: var(--ivory); }
.me-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
}
.me-footer-logo { height: 32px; width: auto; margin-bottom: 16px; }
.me-footer ul { list-style: none; margin: 0; padding: 0; }
.me-footer .me-kicker { color: var(--gold); }
.me-social { display: flex; gap: 14px; margin-top: 12px; }
.me-legal {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid rgba(245, 242, 234, 0.16);
	color: var(--muted);
	font-size: 0.88rem;
}

.me-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

body.atelier :focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

@media (max-width: 1100px) {
	.me-burger { display: inline-flex; }
	.me-cta { display: none; }
	body.atelier.nav-open .me-bar,
	body.nav-open .me-bar {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: transparent;
		border-color: transparent;
	}
	.me-logo,
	.me-burger { position: relative; z-index: 45; }
	.me-nav {
		display: none;
		position: fixed;
		inset: 0;
		background: var(--midnight);
		color: var(--ivory);
		padding: 96px 24px 32px;
		flex-direction: column;
		align-items: flex-start;
		overflow: auto;
		z-index: 35;
	}
	.me-nav.is-open { display: flex; z-index: 36; }
	.me-nav > a,
	.me-drop-btn { color: var(--ivory); font-size: 1.35rem; padding: 10px 0; }
	.me-drop.is-open > .me-mega,
	.me-drop:focus-within > .me-mega,
	.me-drop.is-open > .me-sub,
	.me-drop:focus-within > .me-sub {
		position: static;
		display: grid;
		width: 100%;
		background: transparent;
		border: 0;
		color: var(--ivory);
	}
	.me-drop:hover > .me-mega,
	.me-drop:hover > .me-sub { display: none; }
	.me-drop.is-open:hover > .me-mega,
	.me-drop.is-open:hover > .me-sub { display: grid; }
	.me-mega a,
	.me-sub a { color: var(--ivory); }
	.me-hero,
	.me-dest,
	.me-purposes,
	.me-steps,
	.me-bento,
	.me-quotes,
	.me-posts,
	.me-footer-grid { grid-template-columns: 1fr 1fr; }
	.me-purposes { grid-template-columns: 1fr 1fr; }
	.me-purposes li { border-bottom: 1px solid var(--border); }
	.me-bento-wide,
	.me-quotes figure:first-child { grid-row: auto; grid-column: 1 / -1; }
	.me-hero-copy { padding: 120px 32px 40px; }
}

@media (max-width: 700px) {
	.me-wrap { width: min(1360px, calc(100% - 40px)); }
	.me-header { top: 10px; left: 10px; right: 10px; }
	.me-hero,
	.me-dest,
	.me-purposes,
	.me-steps,
	.me-bento,
	.me-quotes,
	.me-posts,
	.me-footer-grid,
	.me-head { grid-template-columns: 1fr; }
	.me-hero { min-height: 0; }
	.me-hero-figure { min-height: 0; height: auto; }
	.me-hero-figure img { position: relative; inset: auto; height: 240px; }
	.me-hero-copy { padding: 108px 20px 36px; justify-content: flex-start; }
	.me-band,
	.me-section { padding: 56px 0; }
	.me-dest-card { min-height: 220px; }
	.me-legal { flex-direction: column; }
	.me-price td { white-space: normal; }
}

@media (min-width: 1101px) {
	.me-mega,
	.me-sub { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
	body.atelier *,
	body.atelier *::before,
	body.atelier *::after {
		animation: none !important;
		transition: none !important;
	}
}
