/**
 * Base Styles — AD ARCHVIZ
 *
 * Dark luxury architectural reset, global typography, links, and form elements.
 */

/* ── Modern Reset ────────────────────────────────────────── */

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

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	background-color: var(--color-bg);
}

body {
	font-family: var(--font-primary);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	color: var(--color-dark);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	min-height: 100vh;
}

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

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

button {
	cursor: pointer;
	border: none;
	background: none;
}

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

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

ul,
ol {
	list-style: none;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* ── Typography Scale ────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: #FFFFFF;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	font-weight: 700;
}

h1 {
	font-size: var(--text-5xl);
	font-weight: 800;
}

h2 {
	font-size: var(--text-4xl);
}

h3 {
	font-size: var(--text-3xl);
}

h4 {
	font-size: var(--text-2xl);
}

h5 {
	font-size: var(--text-xl);
}

h6 {
	font-size: var(--text-lg);
}

p {
	margin-bottom: var(--space-md);
	color: var(--color-muted);
}

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

/* ── Selection ───────────────────────────────────────────── */

::selection {
	background-color: var(--color-accent);
	color: #0A0B0E;
}

/* ── Focus States ────────────────────────────────────────── */

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* ── Screen Reader Only (Accessibility) ───────────────────── */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Global Form Elements (Dark Theme Defaults) ──────────── */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
	background-color: #141721 !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: #FFFFFF !important;
	border-radius: var(--radius-md);
	padding: 0.75rem 1rem;
	width: 100%;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-accent) !important;
	box-shadow: 0 0 0 3px rgba(224, 184, 108, 0.2) !important;
}

select option {
	background-color: #141721;
	color: #FFFFFF;
}

/* ── Custom Luxury Architectural Scrollbar & Selection ───── */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #07080A;
}

::-webkit-scrollbar-thumb {
	background: rgba(229, 195, 120, 0.25);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-accent);
}

::selection {
	background-color: var(--color-accent);
	color: #07080A;
}

/* ── Reduced Motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
