/**
 * Venexian — Design System (main.css)
 * ------------------------------------------------------------------
 * Consolidated component + base layer. Supersedes the partial main.css
 * from P1/P2. Loaded by inc/enqueue.php after style.css (which defines
 * the core brand tokens) and before nav.css.
 *
 * Elementor policy: NO .elementor-* selectors. All components are opt-in
 * via theme classes so nothing leaks into Elementor-controlled content.
 *
 * Headings: Cormorant Garamond  |  Body: Montserrat
 * Palette:  #D4A24C #E0B15C #121212 #1A1A1A #FFFFFF
 * ------------------------------------------------------------------ */

/* =========================================================
   1. DESIGN TOKENS
   (Extends the core tokens declared in style.css :root)
   ========================================================= */
:root {

	/* --- Brand palette (mirrors style.css, repeated for self-containment) --- */
	--vx-gold:        #D4A24C;
	--vx-gold-light:  #E0B15C;
	--vx-black:       #121212;
	--vx-surface:     #1A1A1A;
	--vx-white:       #FFFFFF;

	/* --- Tints & alpha derivations --- */
	--vx-gold-soft:   rgba(212, 162, 76, .15);
	--vx-ink-90:      rgba(255, 255, 255, .90);
	--vx-ink-75:      rgba(255, 255, 255, .75);
	--vx-ink-60:      rgba(255, 255, 255, .60);
	--vx-ink-45:      rgba(255, 255, 255, .45);
	--vx-hairline:    rgba(255, 255, 255, .08);

	/* --- Typography --- */
	--vx-font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--vx-font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;

	--vx-text-xs:   0.75rem;   /* 12px */
	--vx-text-sm:   0.875rem;  /* 14px */
	--vx-text-base: 1rem;      /* 16px */
	--vx-text-lg:   1.125rem;  /* 18px */
	--vx-text-xl:   1.375rem;  /* 22px */

	/* Fluid heading scale (min, fluid, max) */
	--vx-h6: clamp(1.1rem, 0.5vw + 1rem, 1.25rem);
	--vx-h5: clamp(1.3rem, 1vw + 1rem, 1.6rem);
	--vx-h4: clamp(1.6rem, 1.5vw + 1rem, 2rem);
	--vx-h3: clamp(2rem, 2.5vw + 1rem, 2.75rem);
	--vx-h2: clamp(2.5rem, 4vw + 1rem, 3.5rem);
	--vx-h1: clamp(3rem, 6vw + 1rem, 4.5rem);

	--vx-leading-tight: 1.15;
	--vx-leading-snug:  1.35;
	--vx-leading-body:  1.7;

	--vx-tracking-wide: 2px;
	--vx-tracking-xwide: 3px;

	/* --- Spacing scale --- */
	--vx-space-2xs: 0.25rem;
	--vx-space-xs:  0.5rem;
	--vx-space-sm:  0.75rem;
	--vx-space-md:  1rem;
	--vx-space-lg:  1.5rem;
	--vx-space-xl:  2rem;
	--vx-space-2xl: 3rem;
	--vx-space-3xl: 4rem;
	--vx-space-4xl: 6rem;

	/* Fluid vertical rhythm for sections */
	--vx-section-y: clamp(3.5rem, 7vw, 7rem);

	/* --- Containers --- */
	--vx-container:        1200px;
	--vx-container-wide:   1400px;
	--vx-container-narrow: 800px;
	--vx-gutter:           clamp(1.25rem, 4vw, 2.5rem);

	/* --- Radii --- */
	--vx-radius-sm:   4px;
	--vx-radius:      8px;
	--vx-radius-lg:   16px;
	--vx-radius-pill: 999px;

	/* --- Effects --- */
	--vx-transition: .3s ease;
	--vx-shadow-sm:  0 4px 14px rgba(0, 0, 0, .25);
	--vx-shadow-lg:  0 18px 50px rgba(0, 0, 0, .45);
}

/* =========================================================
   2. BASE ELEMENTS
   Intentionally light so Elementor widget styles win.
   ========================================================= */
body {
	font-family: var(--vx-font-body);
	font-weight: 400;
	font-size: var(--vx-text-base);
	line-height: var(--vx-leading-body);
	color: var(--vx-white);
	background-color: var(--vx-black);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--vx-font-heading);
	font-weight: 600;
	line-height: var(--vx-leading-tight);
	color: var(--vx-white);
	margin: 0 0 var(--vx-space-md);
}

h1 { font-size: var(--vx-h1); }
h2 { font-size: var(--vx-h2); }
h3 { font-size: var(--vx-h3); }
h4 { font-size: var(--vx-h4); }
h5 { font-size: var(--vx-h5); }
h6 { font-size: var(--vx-h6); }

p {
	margin: 0 0 var(--vx-space-md);
}

ul, ol {
	margin: 0 0 var(--vx-space-md);
	padding-left: 1.25em;
}

blockquote {
	margin: var(--vx-space-xl) 0;
	padding-left: var(--vx-space-lg);
	border-left: 3px solid var(--vx-gold);
	font-family: var(--vx-font-heading);
	font-size: var(--vx-text-xl);
	font-style: italic;
	color: var(--vx-ink-90);
}

hr {
	border: 0;
	height: 1px;
	background: var(--vx-hairline);
	margin: var(--vx-space-2xl) 0;
}

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

::selection {
	background: var(--vx-gold);
	color: var(--vx-black);
}

/* =========================================================
   3. LINKS
   ========================================================= */
a {
	color: var(--vx-gold);
	text-decoration: none;
	transition: color var(--vx-transition);
}

a:hover,
a:focus {
	color: var(--vx-gold-light);
}

/* Animated underline link (opt-in) */
.vx-link {
	position: relative;
	color: var(--vx-white);
}

.vx-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background: var(--vx-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--vx-transition);
}

.vx-link:hover::after,
.vx-link:focus::after {
	transform: scaleX(1);
}

/* Visible keyboard focus for interactive elements */
a:focus-visible,
button:focus-visible,
.vx-button:focus-visible,
.vx-form :focus-visible {
	outline: 2px solid var(--vx-gold-light);
	outline-offset: 3px;
}

/* =========================================================
   4. BUTTONS
   ========================================================= */
.vx-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--vx-space-xs);
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: var(--vx-radius);
	background: var(--vx-gold);
	color: var(--vx-black);
	font-family: var(--vx-font-body);
	font-size: var(--vx-text-sm);
	font-weight: 600;
	letter-spacing: var(--vx-tracking-wide);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--vx-transition), color var(--vx-transition), border-color var(--vx-transition), transform var(--vx-transition);
}

.vx-button:hover,
.vx-button:focus {
	background: var(--vx-gold-light);
	color: var(--vx-black);
	transform: translateY(-1px);
}

/* Outline variant */
.vx-button--outline {
	background: transparent;
	border-color: var(--vx-gold);
	color: var(--vx-gold);
}

.vx-button--outline:hover,
.vx-button--outline:focus {
	background: var(--vx-gold);
	color: var(--vx-black);
}

/* Ghost variant */
.vx-button--ghost {
	background: transparent;
	border-color: var(--vx-hairline);
	color: var(--vx-white);
}

.vx-button--ghost:hover,
.vx-button--ghost:focus {
	background: var(--vx-surface);
	color: var(--vx-gold-light);
}

/* Sizes */
.vx-button--sm { padding: 8px 18px; font-size: var(--vx-text-xs); }
.vx-button--lg { padding: 16px 36px; font-size: var(--vx-text-base); }
.vx-button--block { display: flex; width: 100%; }

/* =========================================================
   5. CONTAINERS
   ========================================================= */
.vx-container {
	width: 100%;
	max-width: var(--vx-container);
	margin-inline: auto;
	padding-inline: var(--vx-gutter);
}

.vx-container--wide   { max-width: var(--vx-container-wide); }
.vx-container--narrow { max-width: var(--vx-container-narrow); }
.vx-container--fluid  { max-width: none; }

/* =========================================================
   6. SECTIONS
   ========================================================= */
.vx-section {
	padding-block: var(--vx-section-y);
}

.vx-section--black   { background: var(--vx-black); }
.vx-section--surface { background: var(--vx-surface); }
.vx-section--gold    { background: var(--vx-gold); color: var(--vx-black); }
.vx-section--gold h1,
.vx-section--gold h2,
.vx-section--gold h3,
.vx-section--gold h4 { color: var(--vx-black); }

/* Section heading helpers */
.vx-section-eyebrow {
	display: inline-block;
	margin-bottom: var(--vx-space-sm);
	color: var(--vx-gold);
	font-family: var(--vx-font-body);
	font-size: var(--vx-text-xs);
	font-weight: 600;
	letter-spacing: var(--vx-tracking-xwide);
	text-transform: uppercase;
}

.vx-section-title {
	margin-bottom: var(--vx-space-lg);
	font-size: var(--vx-h2);
}

.vx-section-lead {
	max-width: 60ch;
	color: var(--vx-ink-75);
	font-size: var(--vx-text-lg);
}

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

.vx-section--center .vx-section-lead {
	margin-inline: auto;
}

/* =========================================================
   7. FORMS  (scoped to .vx-form — never affects Elementor forms)
   ========================================================= */
.vx-form {
	display: grid;
	gap: var(--vx-space-lg);
}

.vx-form .vx-field {
	display: grid;
	gap: var(--vx-space-xs);
}

.vx-form label {
	font-size: var(--vx-text-sm);
	font-weight: 500;
	letter-spacing: 1px;
	color: var(--vx-ink-90);
}

.vx-form input[type="text"],
.vx-form input[type="email"],
.vx-form input[type="tel"],
.vx-form input[type="number"],
.vx-form input[type="date"],
.vx-form input[type="time"],
.vx-form input[type="url"],
.vx-form input[type="password"],
.vx-form input[type="search"],
.vx-form select,
.vx-form textarea {
	width: 100%;
	padding: 14px 16px;
	background: var(--vx-surface);
	border: 1px solid var(--vx-hairline);
	border-radius: var(--vx-radius);
	color: var(--vx-white);
	font-family: var(--vx-font-body);
	font-size: var(--vx-text-base);
	transition: border-color var(--vx-transition), box-shadow var(--vx-transition);
}

.vx-form textarea {
	min-height: 140px;
	resize: vertical;
}

.vx-form input::placeholder,
.vx-form textarea::placeholder {
	color: var(--vx-ink-45);
}

.vx-form input:focus,
.vx-form select:focus,
.vx-form textarea:focus {
	outline: none;
	border-color: var(--vx-gold);
	box-shadow: 0 0 0 3px var(--vx-gold-soft);
}

.vx-form .vx-field-hint {
	font-size: var(--vx-text-xs);
	color: var(--vx-ink-60);
}

.vx-form .vx-field--error input,
.vx-form .vx-field--error textarea,
.vx-form .vx-field--error select {
	border-color: #c0563f;
}

.vx-form .vx-field-error {
	font-size: var(--vx-text-xs);
	color: #e08a72;
}

/* =========================================================
   8. FOOTER  (ported 1:1 from approved export — see flag re: palette)
   ========================================================= */
#footer {
	background: #111;
	padding: 90px 0 30px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-container {
	max-width: 1400px;
	margin: auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 60px;
}

.footer-brand img {
	width: 180px;
	margin-bottom: 20px;
}

.footer-brand p {
	color: rgba(255, 255, 255, .7);
	line-height: 1.8;
}

.footer-links h4,
.footer-contact h4,
.footer-hours h4 {
	color: #c98a6a;
	margin-bottom: 20px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 12px;
}

.footer-links a {
	display: block;
	color: rgba(255, 255, 255, .75);
	margin-bottom: 12px;
	text-decoration: none;
}

.footer-contact p,
.footer-hours p {
	color: rgba(255, 255, 255, .75);
	margin-bottom: 10px;
}

.footer-bottom {
	text-align: center;
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .45);
	font-size: 14px;
}

/* Footer legal links (RC-2) — reuses the footer-bottom palette;
   flex-wrap keeps the links stacked cleanly on narrow screens. */
.footer-legal {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
}

.footer-legal a {
	color: rgba(255, 255, 255, .45);
	text-decoration: none;
	font-size: 13px;
}

.footer-legal a:hover {
	color: rgba(255, 255, 255, .75);
}

/* =========================================================
   9. THEME-RENDERED PAGES (index / 404 only — not Elementor)
   ========================================================= */
.site-main--archive,
.site-main--404 {
	max-width: var(--vx-container-narrow);
	margin: 0 auto;
	padding: 160px var(--vx-gutter) var(--vx-space-4xl);
}

.site-main--404 {
	text-align: center;
	min-height: 70vh;
}

.vx-entry + .vx-entry {
	margin-top: var(--vx-space-2xl);
	padding-top: var(--vx-space-2xl);
	border-top: 1px solid var(--vx-hairline);
}

.vx-entry .entry-title {
	font-size: var(--vx-h3);
}

.vx-entry .entry-summary {
	color: var(--vx-ink-75);
}

/* =========================================================
   10. RESPONSIVE BREAKPOINTS
   xl 1200 · lg 1024 · md 768 · sm 480
   ========================================================= */
@media (max-width: 1024px) {

	.footer-container {
		gap: 40px;
	}
}

@media (max-width: 768px) {

	.footer-container {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 40px;
		padding: 0 24px;
	}

	.footer-brand img {
		margin: auto auto 20px;
	}

	.site-main--archive,
	.site-main--404 {
		padding-top: 130px;
	}
}

@media (max-width: 480px) {

	.vx-button--block-mobile {
		display: flex;
		width: 100%;
	}
}
