/**
 * [neogold_homepage] - the 2026 homepage, owner mock 2026-07-27
 * translated into the THEME palette: maroon #630606 (primary),
 * gold #a5802f accents, parchment #f1eee6 surfaces, warm border
 * #ddd7c9, F2 delta chips (green/red on ~10% alpha). The mock's
 * red/black is deliberately NOT used.
 */

.ng-home {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3.2rem 2rem 1rem;
	color: #2b2620;
}
.ng-home h1, .ng-home h2, .ng-home h3 {
	color: #2b2620;
	line-height: 1.15;
}

/* ---------- hero ---------- */
.ng-home__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
	gap: 4rem;
	align-items: start;
	padding-bottom: 3rem;
	border-bottom: 1px solid #ddd7c9;
}
.ng-home__title {
	font-size: 4.2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 1.6rem;
}
.ng-home__lede {
	font-size: 1.55rem;
	line-height: 1.6;
	color: #4a4438;
	max-width: 52ch;
	margin: 0 0 2rem;
}
.ng-home__cta-row {
	display: flex;
	align-items: center;
	gap: 2.2rem;
	flex-wrap: wrap;
	margin: 0 0 2.6rem;
}
.ng-home__cta {
	border-radius: 9px;
	display: inline-block;
	background: #630606;
	color: #fff !important;
	font-weight: 700;
	font-size: 1.4rem;
	padding: 1.15rem 2rem;
	text-decoration: none;
	transition: background 0.2s;
}
.ng-home__cta:hover { background: #7d1212; }
.ng-home__cta-link {
	color: #630606 !important;
	font-weight: 700;
	font-size: 1.4rem;
	text-decoration: none;
	border-bottom: 2px solid #c99a3f;
	padding-bottom: 2px;
}
.ng-home__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem;
	margin: 0;
}
.ng-home__stats dt {
	color: #630606;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.ng-home__stats dd {
	margin: 0.3rem 0 0;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7a7468;
}

/* ---------- live quote card ---------- */
.ng-home__quote {
	border: 1px solid #ddd7c9;
	background: #fff;
	box-shadow: 0 1px 0 #ddd7c9;
	/* 14px everywhere a frame appears = --ng-sg-radius, the Vinde Aur
	   reference (owner consistency pass 2026-07-27) */
	border-radius: 14px;
	overflow: hidden;
}
.ng-home__quote-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.2rem 1.6rem;
	background: #f1eee6;
	border-bottom: 1px solid #ddd7c9;
}
.ng-home__quote-title {
	color: #a5802f;
	font-weight: 700;
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}
.ng-home__live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c99a3f;
	animation: ng-home-pulse 2s ease-in-out infinite;
}
@keyframes ng-home-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
.ng-home__quote-date { color: #7a7468; font-size: 1.15rem; }
.ng-home__gold {
	display: flex;
	align-items: baseline;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin: 0;
	padding: 1.6rem 1.6rem 0.6rem;
}
.ng-home__gold-price {
	color: #630606;
	font-size: 4rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}
.ng-home__gold-unit { color: #7a7468; font-size: 1.4rem; }
.ng-home__chip {
	display: inline-block;
	font-size: 1.15rem;
	font-weight: 700;
	padding: 0.25rem 0.7rem;
	border-radius: 99px;
	white-space: nowrap;
}
.ng-home__chip.is-up   { color: #1c7c43; background: rgba(28, 124, 67, 0.1); }
.ng-home__chip.is-down { color: #b3261e; background: rgba(179, 38, 30, 0.1); }
.ng-home__chip.is-flat { color: #7a7468; background: rgba(122, 116, 104, 0.12); }
.ng-home__spark { padding: 0.4rem 1.6rem 0; }
.ng-home__spark svg { display: block; width: 100%; height: 96px; }
.ng-home__spark-line {
	fill: none;
	stroke: #630606;
	stroke-width: 2.5;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.ng-home__spark-base { stroke: #ddd7c9; stroke-width: 1; }
.ng-home__spark-axis {
	display: flex;
	justify-content: space-between;
	padding: 0.3rem 1.6rem 0.6rem;
	color: #9a948a;
	font-size: 1.05rem;
}
.ng-home__metals {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.3rem;
	margin: 0;
}
.ng-home__metals th {
	text-align: left;
	color: #a5802f;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.8rem 1.6rem 0.5rem;
	border-top: 1px solid #ddd7c9;
}
.ng-home__metals th:nth-child(2), .ng-home__metals td:nth-child(2) { text-align: right; }
.ng-home__metals th:last-child, .ng-home__metals td:last-child { text-align: right; }
.ng-home__metals td {
	padding: 0.7rem 1.6rem;
	border-top: 1px solid #f1eee6;
	color: #2b2620;
}
.ng-home__metals td:nth-child(2) { color: #630606; font-weight: 700; }
.ng-home__quote-note {
	margin: 0;
	padding: 1rem 1.6rem 1.3rem;
	border-top: 1px solid #ddd7c9;
	color: #7a7468;
	font-size: 1.15rem;
}

/* ---------- sections ---------- */
.ng-home__section { padding: 3.2rem 0 0.8rem; }
.ng-home__section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 2rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}
.ng-home__section-head h2 {
	font-size: 2.8rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0;
}
/* CTA affordance (owner 2026-07-27: text links read as labels, people
   missed them). Real buttons: 44px+ touch target, full clickable area,
   visible border, hover fill, focus ring. */
.ng-home__section-link {
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.9rem 1.8rem;
	border: 2px solid #630606;
	color: #630606 !important;
	background: #fff;
	font-weight: 800;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.ng-home__section-link:hover {
	background: #630606;
	color: #fff !important;
}
.ng-home__section-link:focus-visible {
	outline: 3px solid #c99a3f;
	outline-offset: 2px;
}
/* Inside the category cards: pinned to the bottom, full width - the
   entire strip is the tap target. */
.ng-home__cat .ng-home__section-link {
	margin-top: auto;
	width: 100%;
}
.ng-home__section-note {
	color: #a5802f;
	font-weight: 700;
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

/* ---------- category grid ---------- */
.ng-home__cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid #ddd7c9;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
}
.ng-home__cat {
	padding: 1.6rem;
	border-right: 1px solid #ddd7c9;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.ng-home__cat:last-child { border-right: 0; }
/* Badge sits top-LEFT: the F-pattern's first fixation point - the
   count is primary info now that the 01-04 ordinals are gone. */
.ng-home__cat-top {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}
.ng-home__badge {
	background: #630606;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	padding: 0.45rem 1.2rem;
	border-radius: 99px;
}
.ng-home__cat h3 { font-size: 1.7rem; font-weight: 700; margin: 0; }
.ng-home__cat p { color: #4a4438; font-size: 1.25rem; line-height: 1.55; margin: 0 0 0.6rem; flex-grow: 1; }

/* real product photo (best sellers) */
.ng-home__media {
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	background: #fff;
	padding: 0.4rem;
}
.ng-home__media .ng-home__img {
	max-height: 170px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* image placeholder until the owner picks gallery photos */
.ng-home__ph {
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 150px;
	background: #f1eee6;
	border: 1px dashed #c9c2b2;
	color: #9a948a;
	font-size: 1.15rem;
	padding: 1rem;
	text-decoration: none;
}

/* ---------- best sellers ---------- */
.ng-home__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem;
}
.ng-home__product {
	border: 1px solid #ddd7c9;
	background: #fff;
	border-radius: 14px;
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.ng-home__product h3 { font-size: 1.45rem; font-weight: 700; margin: 0; }
.ng-home__product h3 a { color: #2b2620 !important; text-decoration: none; }
.ng-home__product h3 a:hover { color: #630606 !important; }
.ng-home__price-rows { margin: 0; display: grid; gap: 0.5rem; }
.ng-home__price-rows > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}
.ng-home__price-rows dt { color: #7a7468; font-size: 1.2rem; }
.ng-home__price-rows dd { margin: 0; color: #630606; font-weight: 800; font-size: 1.5rem; white-space: nowrap; }
/* by class, not position - the per-gram sub-rows shifted nth-child
   and the big Cumpărăm value fell back to maroon (owner catch) */
.ng-home__price-rows .ng-home__row--buy dd { color: #a5802f; font-weight: 700; font-size: 1.3rem; }
/* per-gram in its row's color, tucked right under the value (owner
   2026-07-27: the lone grey lei/gram read as the buy-back rate) */
.ng-home__per-gram {
	font-size: 1.1rem;
	margin: -0.2rem 0 0.2rem;
	/* the shared flex-row rule pushes lone text to the start - force
	   the per-gram to the END, under its value, like every price card
	   on the site (owner consistency catch) */
	justify-content: flex-end !important;
	text-align: right;
}
.ng-home__per-gram--sell { color: #630606; }
.ng-home__per-gram--buy { color: #a5802f; }
.ng-home__add.button {
	border-radius: 9px;
	margin-top: auto;
	text-align: center;
	background: #fff;
	color: #630606;
	border: 1px solid #630606;
	font-weight: 700;
	transition: background 0.2s, color 0.2s;
}
.ng-home__add.button:hover { background: #630606; color: #fff; }
/* non-purchasable (store closed / hours gate): neutral outline */
.ng-home__add--muted.button { border-color: #c9c2b2; color: #7a7468; }
.ng-home__add--muted.button:hover { background: #f1eee6; color: #4a4438; }

/* ---------- trust columns ---------- */
.ng-home__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3rem;
	margin-top: 3.6rem;
	padding-top: 2.6rem;
	border-top: 1px solid #ddd7c9;
}
.ng-home__trust h3 { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.8rem; }
.ng-home__trust p { color: #4a4438; font-size: 1.3rem; line-height: 1.6; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.ng-home__hero { grid-template-columns: 1fr; gap: 2.6rem; }
	.ng-home__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ng-home__cat:nth-child(2n) { border-right: 0; }
	.ng-home__cat { border-bottom: 1px solid #ddd7c9; }
	.ng-home__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ng-home__title { font-size: 3.2rem; }
}
@media (max-width: 640px) {
	.ng-home { padding: 2rem 1.4rem 1rem; }
	.ng-home__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ng-home__cats, .ng-home__products { grid-template-columns: 1fr; }
	.ng-home__cat { border-right: 0; }
	.ng-home__trust { grid-template-columns: 1fr; gap: 2rem; }
	.ng-home__title { font-size: 2.7rem; }
	.ng-home__gold-price { font-size: 3.2rem; }
}
