/**
 * global.css — the site-wide design system.
 * Every page-specific stylesheet (home.css, about.css, contact.css,
 * single-product.css, store.css) builds on top of this file and is
 * loaded after it. Nothing page-specific belongs in here.
 *
 * Sections:
 *   1. Design tokens (colors, gradients, shadows)
 *   2. Reset + base
 *   3. Typography
 *   4. Layout primitives
 *   5. Buttons
 *   6. Cards / glass surfaces
 *   7. Forms
 *   8. Icon boxes
 *   9. Scroll-reveal animation
 *   10. Header
 *   11. Footer
 */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
	--ink: #050505;
	--ink-2: #0b0b0c;
	--line: rgba(212, 175, 55, .22);
	--gold: #d4af37;
	--gold-lt: #f7e7a3;
	--gold-dp: #8c6d1f;
	--text: #efeae0;
	--muted: #9c968b;
	--glass: rgba(255, 255, 255, .045);
	--grad-gold: linear-gradient(112deg, #8c6d1f 0%, #d4af37 28%, #f7e7a3 52%, #d4af37 74%, #8c6d1f 100%);
	--shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);

	--font-heading: 'Montserrat', system-ui, sans-serif;
	--font-body: 'Jost', system-ui, sans-serif;
}

/* ------------------------------------------------------------------ */
/* 2. Reset + base                                                     */
/* ------------------------------------------------------------------ */
* ,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--ink);
	color: var(--text);
	font-family: var(--font-body);
	font-weight: 300;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(900px 520px at 78% -8%, rgba(212, 175, 55, .16), transparent 62%),
		radial-gradient(700px 460px at 4% 42%, rgba(212, 175, 55, .08), transparent 60%);
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

/* ------------------------------------------------------------------ */
/* 3. Typography                                                       */
/* ------------------------------------------------------------------ */
h1,
h2,
h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
}

.gold {
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	font-size: .68rem;
	letter-spacing: .42em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 500;
}

.rule {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: .5;
}

/* ------------------------------------------------------------------ */
/* 4. Layout primitives                                                 */
/* ------------------------------------------------------------------ */
.wrap {
	width: min(1240px, 92vw);
	margin-inline: auto;
	position: relative;
	z-index: 1;
}

section {
	padding: 7rem 0;
}

.head {
	max-width: 660px;
	margin-bottom: 3.4rem;
}

.head h2 {
	font-size: clamp(2.2rem, 4.6vw, 3.5rem);
	margin: .9rem 0 1rem;
}

.head p {
	color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* 5. Buttons                                                          */
/* ------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .95rem 1.9rem;
	border-radius: 999px;
	font-size: .74rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	font-weight: 500;
	font-family: inherit;
	border: 1px solid var(--line);
	cursor: pointer;
	transition: .45s cubic-bezier(.2, .8, .25, 1);
}

.btn-gold {
	background: var(--grad-gold);
	color: #150f00;
	border-color: transparent;
}

.btn-gold:hover {
	filter: brightness(1.12);
	transform: translateY(-2px);
	box-shadow: 0 18px 40px -18px rgba(212, 175, 55, .75);
}

.btn-ghost {
	background: transparent;
	color: var(--text);
}

.btn-ghost:hover {
	border-color: var(--gold);
	color: var(--gold-lt);
	transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/* 6. Cards / glass surfaces                                            */
/* ------------------------------------------------------------------ */
.glass {
	background: var(--glass);
	border: 1px solid var(--line);
	border-radius: 22px;
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ */
/* 7. Forms                                                             */
/* ------------------------------------------------------------------ */
label {
	display: block;
	font-size: .66rem;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: .55rem;
}

input,
textarea,
select {
	width: 100%;
	background: rgba(255, 255, 255, .035);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: .95rem 1.1rem;
	color: var(--text);
	font-family: inherit;
	font-size: .95rem;
	font-weight: 300;
	transition: .35s;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--gold);
	background: rgba(212, 175, 55, .07);
	box-shadow: 0 0 0 4px rgba(212, 175, 55, .09);
}

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

select option {
	background: #0a0a0a;
}

/* ------------------------------------------------------------------ */
/* 8. Icon boxes                                                        */
/* ------------------------------------------------------------------ */
.ic {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(212, 175, 55, .06);
}

/* ------------------------------------------------------------------ */
/* 9. Scroll-reveal animation                                          */
/* ------------------------------------------------------------------ */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: 1s cubic-bezier(.2, .8, .25, 1);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* 10. Header                                                           */
/* ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	background: rgba(5, 5, 5, .72);
	border-bottom: 1px solid var(--line);
	transition: .4s;
}

.site-header.is-scrolled {
	padding: .35rem 0;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1rem 0;
}

.site-header__logo {
	display: flex;
	align-items: center;
	gap: .85rem;
}

.site-header__logo img {
	max-height: var(--logo-height, 42px);
	width: auto;
}

.site-header__logo-text {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: .34em;
	padding-left: .34em;
}

.site-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.primary-menu {
	display: flex;
	gap: 2.2rem;
	font-size: .74rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.primary-menu a {
	position: relative;
	padding-bottom: 4px;
	color: var(--muted);
	transition: .3s;
}

.primary-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 1px;
	width: 0;
	background: var(--grad-gold);
	transition: .4s;
}

.primary-menu a:hover {
	color: var(--text);
}

.primary-menu a:hover::after {
	width: 100%;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-header__account,
.site-header__cart {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--muted);
	transition: .35s;
}

.site-header__account:hover,
.site-header__cart:hover {
	border-color: var(--gold);
	color: var(--gold-lt);
	background: rgba(212, 175, 55, .08);
}

.site-header__cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--grad-gold);
	color: #150f00;
	font-size: .62rem;
	font-weight: 600;
	line-height: 1;
}

.site-header__burger {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: .4rem;
}

@media (max-width: 900px) {
	.site-header__nav {
		position: fixed;
		inset: 64px 0 auto;
		background: rgba(5, 5, 5, .97);
		border-bottom: 1px solid var(--line);
		max-height: 0;
		overflow: hidden;
		transition: .5s;
		justify-content: flex-start;
	}

	.site-header__nav.is-open {
		max-height: 340px;
	}

	.primary-menu {
		flex-direction: column;
		gap: 1.3rem;
		padding: 2rem 6vw;
	}

	.site-header__burger {
		display: block;
	}
}

/* ------------------------------------------------------------------ */
/* 11. Footer                                                           */
/* ------------------------------------------------------------------ */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 5rem 0 2.4rem;
	background: linear-gradient(180deg, rgba(212, 175, 55, .05), transparent 40%);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 2.6rem;
}

@media (max-width: 820px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin-bottom: 1.1rem;
}

.site-footer__brand img {
	max-height: var(--footer-logo-height, 34px);
	width: auto;
}

.site-footer__logo-text {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: .3em;
}

.site-footer__about {
	color: var(--muted);
	font-size: .9rem;
	max-width: 34ch;
}

.site-footer h4 {
	font-size: .7rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1.2rem;
	font-family: var(--font-body);
	font-weight: 500;
}

.site-footer ul {
	display: grid;
	gap: .7rem;
	font-size: .9rem;
	color: var(--muted);
}

.site-footer a:hover {
	color: var(--gold-lt);
}

.site-footer__social {
	display: flex;
	gap: .8rem;
	margin-top: 1.4rem;
}

.site-footer__social a {
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 12px;
	display: grid;
	place-items: center;
	transition: .35s;
}

.site-footer__social a:hover {
	border-color: var(--gold);
	background: rgba(212, 175, 55, .1);
	transform: translateY(-3px);
}

.site-footer__bottom {
	margin-top: 3.4rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	font-size: .76rem;
	color: var(--muted);
}
