/*
 * Amber base styles.
 *
 * Font faces, root variables, base typography, body background and scrollbar
 * rules are ported verbatim from the compiled live CSS (index-CTd4ANgl.css),
 * which is the truer artefact of what is served. The navigation and back to
 * top rules are ported from the React navigation.module.css so the in scope
 * nav functions and can be reviewed.
 */

/* Two faces under one family: Bk at weight 300, Demi at weight 600. */
@font-face {
	font-family: 'ITC Avant Garde Pro Bk';
	src: url('../fonts/ITCAvantGardePro-Bk.eot');
	src: url('../fonts/ITCAvantGardePro-Bk.eot?#iefix') format('embedded-opentype'),
		url('../fonts/ITCAvantGardePro-Bk.woff2') format('woff2'),
		url('../fonts/ITCAvantGardePro-Bk.woff') format('woff'),
		url('../fonts/ITCAvantGardePro-Bk.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'ITC Avant Garde Pro Bk';
	src: url('../fonts/ITCAvantGardePro-Demi.eot');
	src: url('../fonts/ITCAvantGardePro-Demi.eot?#iefix') format('embedded-opentype'),
		url('../fonts/ITCAvantGardePro-Demi.woff2') format('woff2'),
		url('../fonts/ITCAvantGardePro-Demi.woff') format('woff'),
		url('../fonts/ITCAvantGardePro-Demi.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--primaryColor: #FF3E00;
	--secondaryColor: #231F20;
	--siteColor1: #f8f6f5;
}

body,
html {
	margin: 0;
	padding: 0;
	max-width: 100%;
	background: var(--secondaryColor);
	overflow-x: hidden;
	font-size: 18px;
	line-height: 1.4;
	font-family: 'ITC Avant Garde Pro Bk';
	font-optical-sizing: auto;
	font-style: normal;
	font-weight: 300;
	color: var(--secondaryColor);
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
	display: none; /* Chrome, Safari, and Opera */
}

* {
	position: relative;
	z-index: 1;
	scrollbar-width: thin;
	scrollbar-color: #dddbdb #fff0;
	font-family: 'ITC Avant Garde Pro Bk' !important;
	font-weight: 300;
}

strong {
	font-weight: 600;
}

::-webkit-scrollbar {
	width: 2px;
}

::-webkit-scrollbar-track {
	background: #f2f2f2;
	border-radius: 20px;
}

::-webkit-scrollbar-thumb {
	background: #999;
	border-radius: 20px;
}

/* Responsive base font size. */
@media ( min-width: 1550px ) {
	body,
	html {
		font-size: 21px;
	}
}

@media ( max-width: 1240px ) {
	body,
	html {
		font-size: 16px;
	}
}

/* Lenis smooth scroll helpers (from the live index.css). */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

.lenis.lenis-smooth iframe {
	pointer-events: none;
}

/* -------------------------------------------------------------------------
 * Navigation: bulge, menu and back to top.
 * Ported from React navigation.module.css. Class names kept identical so the
 * ported markup and JS line up.
 * ---------------------------------------------------------------------- */

/*
 * The React source renders these overlays as direct children of the app root,
 * so each one sits in the root stacking context at its own z-index (bulge 999,
 * backdrop 99, menu 200) and paints above the page content. This theme groups
 * them in a nav wrapper, and the base rule (* { position: relative; z-index: 1 })
 * turns that wrapper into a stacking context at z-index 1. That would confine
 * the fixed overlays inside the wrapper and paint them beneath page_content_wrap
 * (also z-index 1, later in the document). Setting z-index to auto keeps the
 * wrapper out of the stacking context stack so the overlays behave as they do
 * in the source.
 */
.amberNav {
	z-index: auto;
}

.MenuBulge_wrap {
	position: fixed;
	z-index: 999;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.MenuBulge_wrap .MenuBulge_open,
.MenuBulge_wrap .MenuBulge_close {
	position: absolute;
	z-index: 1;
	right: 0;
	transform: translateY(-50%);
	pointer-events: none;
}

.MenuBulge_wrap .MenuBulge_close {
	opacity: 0;
}

.MenuBulge_wrap .MenuBulge_open path {
	fill: var(--secondaryColor);
	stroke: none;
}

.MenuBulge_wrap .MenuBulge_close path {
	fill: white;
	stroke: none;
}

.MenuBackdrop {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99;
	pointer-events: none;
}

.MenuBackdrop path {
	fill: var(--secondaryColor);
}

.hamburgerMenu,
.CloseMenu {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%) translateX(100px);
	width: 25px;
	height: 40px;
	z-index: 4;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.CloseMenu {
	opacity: 0;
}

.hamburgerMenu > span,
.CloseMenu > span {
	display: block;
	height: 4px;
	width: 100%;
	border-radius: 10px;
	background: white;
}

.hamburgerMenu > span::after,
.hamburgerMenu > span::before {
	position: absolute;
	content: "";
	inset: 0;
	background: white;
	border-radius: 10px;
	transform: translateY(-8px);
}

.hamburgerMenu > span::before {
	transform: translateY(8px);
}

.CloseMenu > span::after,
.CloseMenu > span::before {
	position: absolute;
	content: "";
	inset: 0;
	background: var(--secondaryColor);
	z-index: 2;
	border-radius: 10px;
	transform-origin: center center;
	transform: rotate(45deg);
}

.CloseMenu > span::before {
	transform: rotate(-45deg);
}

.menuWrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 200;
	padding: 6rem 6vw;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateX(100%);
}

.menuWrap_row {
	max-width: 1550px !important;
	width: 100% !important;
}

.MenuWrap_logo {
	width: 7rem;
}

.menuWrap ul {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.menuWrap ul li a {
	color: white;
	font-size: 3.5rem;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease-in-out;
}

.menuWrap ul li a:hover {
	transform: translateX(1rem);
}

.menuWrap ul li a::after {
	position: absolute;
	width: 10px;
	height: 10px;
	background: white;
	content: "";
	left: 0;
	top: 50%;
	transform: translateY(-150%) translateX(-1rem);
	border-radius: 50%;
	opacity: 0;
	transition: all 0.3s ease-in-out;
}

.menuWrap ul li a:hover::after {
	transform: translateY(-50%) translateX(-2rem);
	opacity: 1;
}

.menuWrap ul.socialLinks {
	position: absolute;
	left: 0;
	bottom: 50%;
	transform: translateY( calc( 50vh - 2rem) );
	flex-direction: row;
}

.menuWrap ul.socialLinks li a,
.menuWrap ul.socialLinks li a:hover {
	font-size: 0.85rem;
	opacity: 0.5;
	transform: none;
}

.menuWrap ul.socialLinks li a::after {
	display: none;
}

.BackToTop_Wrap {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
}

.BackToTop_Curve path {
	background: var(--secondaryColor);
	cursor: pointer;
}

.BackToTop_Wrap p {
	color: white;
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 20px;
	transform: translate(-50%, 200px);
	font-size: 0.7rem;
	line-height: 1;
	margin: 0;
	pointer-events: none;
}

@media ( max-width: 1240px ) {
	.MenuBulge_wrap .MenuBulge_open,
	.MenuBulge_wrap .MenuBulge_close {
		display: none;
	}
	.MenuBulge_wrap {
		right: 6vw;
		top: 2rem;
		position: fixed;
	}
	.CloseMenu > span {
		background: transparent;
	}
	.CloseMenu > span::after,
	.CloseMenu > span::before {
		background: white;
	}
	.hamburgerMenu,
	.CloseMenu {
		position: absolute;
		top: -0.25rem;
		right: 0;
		transform: translateY(0%) translateX(100px);
	}
	.hamburgerMenu.onInnerPage > span,
	.hamburgerMenu.onInnerPage > span::after,
	.hamburgerMenu.onInnerPage > span::before {
		background: var(--secondaryColor);
	}
}

@media ( max-width: 767px ) {
	.menuWrap ul li a {
		font-size: 2.25rem;
	}
	.menuWrap ul.socialLinks {
		position: static;
		transform: none;
		padding-top: 4rem !important;
	}
	.menuWrap ul.socialLinks li a {
		font-size: 0.8rem;
	}
	.menuWrap ul {
		gap: 1.5rem;
	}
	.menuWrap_row {
		row-gap: 4rem;
	}
	.menuWrap {
		padding-block: 5rem;
	}
}

/* -------------------------------------------------------------------------
 * Scaffold placeholder helpers (Chat 3 only, removed once real sections land).
 * ---------------------------------------------------------------------- */

.scaffold-placeholder {
	background: var(--siteColor1);
	min-height: 300vh;
	padding: 6vw;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.scaffold-placeholder h1,
.scaffold-placeholder h2 {
	font-weight: 600;
	line-height: 0.9;
	margin: 0;
}

.scaffold-placeholder h1 {
	font-size: 5rem;
}

.scaffold-placeholder h2 {
	font-size: 3rem;
}
