/*
 * Deelz Xpress — site styles.
 * Rules (owner-approved):
 *  - Font: Inter only (self-hosted woff2, latin subset).
 *  - Brand color: #3171F6 — used for links and highlights ONLY.
 *  - Everything else stays neutral/simple.
 * Responsive: mobile-first checks at 768px and 480px; fluid type; 44px tap targets.
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/fonts/inter-latin-500.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/fonts/inter-latin-600.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/fonts/inter-latin-700.woff2") format("woff2");
}

:root {
	--brand: #3171f6;
	--text: #17233b;
	--text-muted: #5b6b85;
	--border: #e3e9f2;
	--bg: #f7f9fc;
	--tap: 44px; /* minimum touch target (WCAG / Apple HIG) */
}

/* Global responsiveness guards -------------------------------------------- */

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

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

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

body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	overflow-x: hidden; /* safety net: never horizontal-scroll on mobile */
}

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

a:hover {
	text-decoration: underline;
}

/* Header ------------------------------------------------------------------ */

.site-header {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 12px 24px;
	background: #ffffff;
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 10;
	min-height: var(--tap);
}

.brand img {
	height: 26px;
	width: auto;
	display: block;
}

.site-header nav {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 15px;
}

.site-header nav a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

.cart-link {
	margin-left: auto;
	font-weight: 600;
	color: var(--brand);
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

/* Main -------------------------------------------------------------------- */

main {
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 24px 64px;
}

.page-placeholder {
	background: #ffffff;
	border: 1px dashed #c9d6ea;
	border-radius: 12px;
	padding: 32px;
	text-align: center;
	color: var(--text-muted);
	margin-top: 24px;
	font-size: 15px;
}

main h1 {
	font-size: clamp(26px, 5vw, 32px); /* fluid: no fixed size on mobile */
	margin: 0 0 8px;
	color: var(--brand);
	line-height: 1.25;
	overflow-wrap: break-word;
}

main p.intro {
	margin: 0;
	color: #4c5b73;
	max-width: 640px;
}

main a {
	overflow-wrap: anywhere; /* long emails/URLs never overflow small screens */
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	border-top: 1px solid var(--border);
	background: #ffffff;
	padding: 24px;
	text-align: center;
	font-size: 14px;
	color: var(--text-muted);
}

.site-footer nav {
	display: flex;
	justify-content: center;
	gap: 8px 16px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.site-footer nav a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

/* Tablet (≤768px) ----------------------------------------------------------- */

@media (max-width: 768px) {
	.site-header {
		flex-wrap: wrap;
		gap: 4px 16px;
		padding: 8px 16px;
	}
	.brand img {
		height: 24px;
	}
	.cart-link {
		margin-left: auto;
	}
	main {
		padding: 32px 16px 48px;
	}
	.page-placeholder {
		padding: 24px 16px;
	}
}

/* Phone (≤480px) ------------------------------------------------------------ */

@media (max-width: 480px) {
	.site-header {
		padding: 8px 12px;
		gap: 2px 12px;
	}
	.site-header nav {
		gap: 12px;
		font-size: 14px;
	}
	.brand img {
		height: 22px;
	}
	main {
		padding: 24px 16px 40px;
	}
	.page-placeholder {
		padding: 20px 12px;
		border-radius: 10px;
	}
	.site-footer {
		padding: 16px 12px;
	}
	.site-footer nav {
		gap: 4px 12px;
	}
}
