/*
Lamy LP — base scaffolding utilities (Phase 1)
Section-specific styles live in their own files (hero.css, forms.css, etc.)
and per-section CSS added in later phases.
*/

/* ============================================================
   Scrollbar gutter — reserves scrollbar space up front so the
   fr-based hero grid + aspect-ratio video wrapper don't shift
   when the scrollbar appears. Eliminates a common CLS source.
   ============================================================ */
html {
	scrollbar-gutter: stable;
}

/* ============================================================
   Section + container utilities
   ============================================================ */
.lp-main {
	background: var(--bg-primary);
	color: var(--text-body);
}

.lp-section {
	position: relative;
	padding-block: clamp(48px, 8vw, 110px);
	padding-inline: clamp(20px, 4vw, 48px);
	overflow: hidden;
}

.lp-container {
	max-width: var(--max-content);
	margin-inline: auto;
	position: relative;
}

.lp-container--wide {
	max-width: var(--max-wide);
}

/* ============================================================
   Section eyebrow label (gold, with side lines)
   ============================================================ */
.lp-section-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gold-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.lp-section-label::before {
	content: '';
	width: 28px;
	height: 1px;
	background: linear-gradient(to left, var(--gold-primary), transparent);
}

.lp-section-label--center {
	justify-content: center;
}

.lp-section-label--center::after {
	content: '';
	width: 28px;
	height: 1px;
	background: linear-gradient(to right, var(--gold-primary), transparent);
}

/* ============================================================
   Dividers
   ============================================================ */
.lp-divider-gold {
	height: 1px;
	border: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(212, 175, 55, 0.3) 30%,
		rgba(212, 175, 55, 0.3) 70%,
		transparent 100%
	);
}

.lp-divider-gradient {
	height: 1px;
	border: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(212, 175, 55, 0.55) 20%,
		rgba(138, 79, 255, 0.55) 50%,
		rgba(212, 175, 55, 0.55) 80%,
		transparent 100%
	);
}

/* ============================================================
   CTA buttons (skeleton — final polish in section CSS)
   ============================================================ */
.btn-cta-primary {
	display: inline-block;
	background: var(--cta-gradient);
	color: #100C00;
	font-family: 'Heebo', sans-serif;
	font-weight: 700;
	letter-spacing: 0.01em;
	border: 0;
	border-radius: 6px;
	padding: 13px 28px;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 16px rgba(212, 175, 55, 0.24);
}

.btn-cta-primary:hover,
.btn-cta-primary:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 32px rgba(212, 175, 55, 0.45);
	color: #100C00;
}

.btn-cta-primary--sm { padding: 9px 18px;  font-size: 13px; }
/* Phase 9.3: --lg font-size bumped 16 -> 24px per boss spec.
   Hero override (.lp-hero__ctas .btn-cta-primary--lg) at higher specificity
   keeps hero CTAs at their original 17/18px. Form + Authority + Fit-check
   CTAs all inherit the new 24px. */
.btn-cta-primary--lg { padding: 15px 36px; font-size: 24px; }

.btn-cta-secondary {
	display: inline-block;
	background: transparent;
	color: var(--gold-primary);
	font-family: 'Heebo', sans-serif;
	font-weight: 500;
	border: 1px solid rgba(212, 175, 55, 0.3);
	border-radius: 6px;
	padding: 12px 27px;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus-visible {
	background: rgba(212, 175, 55, 0.07);
	border-color: rgba(212, 175, 55, 0.5);
}

/* ============================================================
   Card (skeleton — per-section overrides as needed)
   ============================================================ */
.lp-card {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 28px;
	position: relative;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-card:hover {
	border-color: rgba(212, 175, 55, 0.2);
}

/* Card with gold-purple gradient border (Brief §0.7.2d, §0.7.2c) */
.lp-card--gradient {
	border: 0;
	background:
		linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
		var(--accent-gradient) border-box;
	border: 1px solid transparent;
}

/* ============================================================
   Accessibility — focus rings
   ============================================================ */
:where(a, button, input, textarea, select):focus-visible {
	outline: 2px solid var(--gold-highlight);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ============================================================
   Reduce 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;
	}
}

/* ============================================================
   Noise overlay (Brief atmosphere — applied globally on LP)
   ============================================================ */
body.page-template-page-lp1-fit-check::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 9998;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.028;
}

/* ============================================================
   Phase 8.9 — Logo resize on GeneratePress header (LP page)
   ------------------------------------------------------------
   Phase 8.9.2 NOTE: this rule is now defunct on the LP page.
   .site-header is hidden by Phase 8.9.1 (display:none), and our
   custom slim header uses class .lp-header__mark (not .site-logo
   or .header-image), so none of these selectors match on LP.
   Real sizing for the slim-header logo lives in hero.css under
   .lp-header__mark (Phase 8.9.2 rewrite).
   Kept here for any other GP-header page that may exist.
   ============================================================ */
.lp-header-slim__logo img,
.site-header .site-logo img,
.site-header img.header-image {
	width: clamp(120px, 12vw, 150px);
	height: auto;
	max-width: none !important;
}

@media (max-width: 768px) {
	.lp-header-slim__logo img,
	.site-header .site-logo img,
	.site-header img.header-image {
		width: clamp(90px, 22vw, 110px);
	}
}

/* ============================================================
   Phase 8.9 — Hide GeneratePress nav remnants on the LP page
   (body.lp-active class added via functions.php body_class filter)
   ============================================================ */
body.lp-active .main-navigation,
body.lp-active .navigation-branding,
body.lp-active .menu-toggle {
	display: none !important;
}

/* ============================================================
   Phase 8.9.1 - Hide GeneratePress parent-theme wrappers entirely
   on the LP page. Our custom slim header (.lp-header__mark) and
   reduced footer (.lp-footer-reduced) are rendered standalone from
   page-lp1-fit-check.php, so the GP .site-header / .site-footer /
   .site-info wrappers add nothing here and were leaking the parent
   theme's white background bands at the top + bottom of the page.
   ============================================================ */
body.lp-active .site-header,
body.lp-active .site-footer,
body.lp-active .site-info,
body.lp-active footer.site-info,
body.lp-active .footer-widgets,
body.lp-active .top-bar,
body.lp-active .inside-header {
	display: none !important;
}

body.lp-active {
	background-color: var(--bg-section) !important;
}

/* Phase 8.9.2: Do NOT touch .site or its margin - it provides GP's
   horizontal centering (margin: 0 auto). Only neutralize background
   bleed-through from inner containers. The previous 8.9.1 version
   zeroed .site margin, which left page content flush-left. */
body.lp-active #page,
body.lp-active .site-content,
body.lp-active .content-area {
	background-color: transparent !important;
}
