/* ==========================================================================
   Orion Metal Exchange — theme base (design system)
   Tokens · self-hosted fonts · reset · typography · header · footer · primitives
   Owner: homepage agent (P1). Consumed by every later phase.
   ========================================================================== */

/* ---- Self-hosted fonts (Inter headings, Karla body; variable woff2) ---- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Karla";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/karla-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Karla";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/karla-latin-italic.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
	--omx-navy:        #0B132B;   /* body text / dark footer / dark hero */
	--omx-hero-blue:   #08477C;   /* category + reviews banner blue */
	--omx-accent:      #0062B8;   /* links / phone buttons */
	--omx-teal:        #12B8A6;   /* announcement bar */
	--omx-coral:       #F95C67;   /* primary CTAs */
	--omx-coral-dark:  #f7434f;
	--omx-slate:       #374151;   /* secondary text */
	--omx-gold:        #B8860B;   /* Ask Price */
	--omx-white:       #ffffff;
	--omx-ink:         #0B132B;
	--omx-muted:       #6b7280;
	--omx-line:        #e3e7ee;
	--omx-bg-soft:     #f4f5f7;   /* solutions blocks / CTA band */
	--omx-bg:          #f5f7fa;   /* soft page bg / chip bg (used by blog.css) */
	--omx-yellow:      #f2d024;   /* "Consumer Affairs accredited" italic */

	--omx-head:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--omx-body:  "Karla", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--omx-maxw:   1140px;
	--omx-radius: 10px;
	--omx-radius-lg: 14px;
	--omx-shadow: 0 1px 4px rgba(11,19,43,.06);
	--omx-shadow-lg: 0 10px 30px rgba(11,19,43,.12);
	--omx-space:  20px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--omx-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--omx-slate);
	background: var(--omx-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--omx-head);
	color: var(--omx-navy);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
a { color: var(--omx-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font-family: inherit; }

/* ---- Layout container ---- */
.omx-container { max-width: var(--omx-maxw); margin: 0 auto; padding: 0 20px; }
.omx-section { padding: 64px 0; }
.omx-section--tight { padding: 40px 0; }

/* ---- Button primitives ---- */
.omx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--omx-head); font-weight: 700; font-size: 16px; line-height: 1.1;
	padding: 15px 30px; border-radius: 8px; border: 0; cursor: pointer;
	background: var(--omx-coral); color: #fff !important; text-decoration: none;
	transition: filter .15s ease, transform .05s ease; text-align: center;
}
.omx-btn:hover { filter: brightness(1.06); text-decoration: none; }
.omx-btn:active { transform: translateY(1px); }
.omx-btn--blue  { background: var(--omx-accent); }
.omx-btn--navy  { background: var(--omx-navy); }
.omx-btn--teal  { background: var(--omx-teal); }
.omx-btn--lg    { padding: 18px 40px; font-size: 18px; }
.omx-btn--block { display: flex; width: 100%; }
.omx-btn--ghost { background: transparent; color: var(--omx-accent) !important; border: 2px solid var(--omx-accent); }
.omx-btn--ghost:hover { background: var(--omx-accent); color: #fff !important; }

/* ---- Badge primitive ---- */
.omx-badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--omx-head); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
	padding: 5px 12px; border-radius: 999px; background: var(--omx-bg-soft); color: var(--omx-navy);
}
.omx-badge--gold { background: rgba(184,134,11,.12); color: var(--omx-gold); }

/* ---- Card primitive ---- */
.omx-card-base {
	background: #fff; border: 1px solid var(--omx-line); border-radius: var(--omx-radius-lg);
	box-shadow: var(--omx-shadow); overflow: hidden;
}

/* ==========================================================================
   Announcement bar (teal)
   ========================================================================== */
.omx-topbar {
	background: var(--omx-teal); color: #fff; text-align: center;
	font-family: var(--omx-head); font-weight: 600; font-size: 15px;
	padding: 10px 16px; line-height: 1.35;
}
.omx-topbar a { color: #fff; text-decoration: underline; font-weight: 700; white-space: nowrap; }
.omx-topbar a:hover { opacity: .9; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.omx-header { background: #fff; position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 0 rgba(11,19,43,.06); }
.omx-header__inner {
	max-width: var(--omx-maxw); margin: 0 auto; padding: 14px 20px;
	display: flex; align-items: center; gap: 24px;
}
.omx-logo { flex: 0 0 auto; }
.omx-logo img { height: 52px; width: auto; }
.omx-logo--text { font-family: var(--omx-head); font-weight: 800; color: var(--omx-navy); font-size: 24px; }

.omx-nav { margin-left: auto; }
.main-nav1 { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav1 > li { position: relative; }
.main-nav1 > li > a {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--omx-head); font-weight: 700; font-size: 16px; letter-spacing: .01em;
	color: var(--omx-navy); padding: 12px 16px; text-decoration: none; text-transform: uppercase;
	border-radius: 6px;
}
.main-nav1 > li > a:hover,
.main-nav1 > li.current-menu-item > a,
.main-nav1 > li.current_page_item > a { color: var(--omx-coral); }
.main-nav1 li.group > a::after {
	content: ""; width: 8px; height: 8px; margin-left: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
.main-nav1 li.group:hover > a::after { transform: rotate(225deg) translateY(0); }

/* Dropdown panels */
.main-nav1 ul.sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px;
	list-style: none; margin: 0; padding: 8px; background: #fff;
	border: 1px solid var(--omx-line); border-radius: 10px; box-shadow: var(--omx-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease; z-index: 300;
}
.main-nav1 li.group:hover > ul.sub-menu,
.main-nav1 li.group:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.main-nav1 ul.sub-menu li a {
	display: block; padding: 10px 14px; border-radius: 6px;
	font-family: var(--omx-body); font-weight: 600; font-size: 15px; color: var(--omx-slate); text-decoration: none;
}
.main-nav1 ul.sub-menu li a:hover { background: var(--omx-bg-soft); color: var(--omx-accent); }

/* Header CTA + icons */
.omx-header__cta { display: flex; align-items: center; gap: 10px; }
.omx-invest-btn { white-space: nowrap; padding: 13px 22px; font-size: 15px; }
.omx-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 44px; height: 44px; border-radius: 8px; background: transparent; border: 0;
	color: var(--omx-navy); cursor: pointer; text-decoration: none;
}
.omx-icon-btn:hover { background: var(--omx-bg-soft); color: var(--omx-accent); }
.omx-icon-btn svg { width: 24px; height: 24px; }
.omx-cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 999px; background: var(--omx-coral); color: #fff;
	font-family: var(--omx-head); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* Mobile toggle */
.omx-burger {
	display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
	color: var(--omx-navy); align-items: center; justify-content: center; margin-left: auto;
}
.omx-burger svg { width: 28px; height: 28px; }

/* Mobile drawer (JS-driven; markup derived from .main-nav1) */
.omx-drawer { position: fixed; inset: 0; z-index: 500; visibility: hidden; }
.omx-drawer.is-open { visibility: visible; }
.omx-drawer__scrim { position: absolute; inset: 0; background: rgba(11,19,43,.5); opacity: 0; transition: opacity .2s ease; }
.omx-drawer.is-open .omx-drawer__scrim { opacity: 1; }
.omx-drawer__panel {
	position: absolute; top: 0; right: 0; width: min(86vw, 360px); height: 100%; background: #fff;
	transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
	display: flex; flex-direction: column; box-shadow: var(--omx-shadow-lg);
}
.omx-drawer.is-open .omx-drawer__panel { transform: translateX(0); }
.omx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--omx-line); }
.omx-drawer__close { width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--omx-navy); cursor: pointer; }
.omx-drawer nav ul { list-style: none; margin: 0; padding: 8px 0; }
.omx-drawer nav li { border-bottom: 1px solid #f0f2f5; }
.omx-drawer nav a { display: block; padding: 14px 20px; font-family: var(--omx-head); font-weight: 700; color: var(--omx-navy); text-transform: uppercase; font-size: 15px; text-decoration: none; position: relative; }
.omx-drawer nav li.group > a::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.omx-drawer nav li.group.is-open > a::after { transform: translateY(-30%) rotate(225deg); }
.omx-drawer nav ul.sub-menu { padding: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease; background: #f7f9fc; }
.omx-drawer nav li.group.is-open > ul.sub-menu { max-height: 520px; padding: 4px 0 10px; }
.omx-drawer nav ul.sub-menu a { text-transform: none; font-weight: 600; font-family: var(--omx-body); color: var(--omx-slate); padding: 10px 20px 10px 34px; font-size: 15px; }
.omx-drawer nav ul.sub-menu a::after { display: none; }
.omx-drawer__foot { margin-top: auto; padding: 18px 20px; border-top: 1px solid var(--omx-line); display: grid; gap: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
/* CTA band */
.omx-foot-cta { background: var(--omx-bg-soft); text-align: center; padding: 60px 20px; }
.omx-foot-cta h2 { font-size: 34px; color: var(--omx-hero-blue); max-width: 900px; margin: 0 auto 26px; font-weight: 700; }
.omx-foot-cta h2 strong { font-weight: 800; color: var(--omx-navy); }
.omx-foot-cta .omx-btn { font-size: 18px; padding: 16px 34px; }
.omx-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--omx-head); font-weight: 600; color: var(--omx-navy); font-size: 15px; }
.omx-rating__stars { color: #00b67a; font-size: 20px; letter-spacing: 2px; }
.omx-rating__word { font-weight: 800; }
.omx-rating a { color: var(--omx-accent); }

/* Footer order form band */
.omx-foot-order { background: #0e1830; color: #e8edf5; padding: 48px 20px; }
.omx-foot-order__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.omx-foot-order h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.omx-foot-order p { color: #b9c4d6; margin: 0 auto 24px; max-width: 560px; }
.omx-foot-order .orion-leadform { text-align: left; }
.omx-foot-order .orion-field label { color: #cfd8e6; }
.omx-foot-order .orion-consent { color: #aab6c8; font-size: 13px; }
.omx-foot-order .orion-consent a { color: #9fc4ef; }

/* Footer columns */
.omx-footer { background: var(--omx-navy); color: #c7cfdd; padding: 56px 20px 28px; }
.omx-footer__cols {
	max-width: var(--omx-maxw); margin: 0 auto;
	display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 32px;
}
.omx-footer h3 { color: #fff; font-size: 20px; margin: 0 0 18px; }
.omx-footer ul { list-style: none; margin: 0; padding: 0; }
.omx-footer li { margin: 0 0 12px; }
.omx-footer a { color: #c7cfdd; font-weight: 600; text-decoration: none; }
.omx-footer a:hover { color: #fff; }
.omx-footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.omx-footer__contact svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; fill: var(--omx-coral); }
.omx-footer__logo { margin-bottom: 18px; }
.omx-footer__logo img { height: 46px; filter: brightness(0) invert(1); }
.omx-footer__bottom {
	max-width: var(--omx-maxw); margin: 34px auto 0; padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.12);
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
	font-size: 14px; color: #9aa6bb;
}
.omx-footer__bottom a { color: #c7cfdd; }
.omx-footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Floating mini-cart button (bottom-right) — WHITE, matching source
   (position:fixed; bottom:30px; right:30px; ~40-48px; navy cart glyph + count) */
.omx-cart-fab {
	position: fixed; right: 30px; bottom: 30px; z-index: 170;
	width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
	background: #fff; color: var(--omx-navy);
	border: 1px solid rgba(11,19,43,.08); box-shadow: 0 6px 20px rgba(11,19,43,.22);
	display: inline-flex; align-items: center; justify-content: center;
}
.omx-cart-fab:hover { box-shadow: 0 8px 26px rgba(11,19,43,.28); }
.omx-cart-fab svg { width: 22px; height: 22px; }
.omx-cart-fab .omx-cart-count { top: -3px; right: -3px; background: var(--omx-navy); color: #fff; }

/* ==========================================================================
   Fixed-bottom spot ticker (white marquee) — global on catalog surfaces
   Source: #price-ticker { position:fixed; bottom:0; left:0; width:100%; z-index }
   ========================================================================== */
body.has-omx-ticker { padding-bottom: 44px; }
.omx-ticker {
	position: fixed; left: 0; bottom: 0; width: 100%; z-index: 150;
	background: #fff; border-top: 1px solid var(--omx-line);
	box-shadow: 0 -2px 10px rgba(11,19,43,.06); height: 40px; overflow: hidden;
}
.omx-ticker__marquee {
	display: flex; width: max-content; height: 100%; align-items: center;
	animation: omx-marquee 45s linear infinite; will-change: transform;
}
.omx-ticker:hover .omx-ticker__marquee { animation-play-state: paused; }
.omx-ticker__item {
	display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
	font-family: var(--omx-head); font-size: 14px; padding: 0 26px;
}
.omx-ticker__metal { font-weight: 800; color: var(--omx-navy); letter-spacing: .03em; text-transform: uppercase; }
.omx-ticker__price { font-weight: 700; color: #1f2937; }
.omx-ticker__chg { font-weight: 700; font-size: 13px; }
.omx-ticker__chg--up { color: #1a8a3a; }
.omx-ticker__chg--down { color: #d1263b; }
@keyframes omx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .omx-ticker__marquee { animation: none; } }
@media (max-width: 680px) {
	.omx-ticker { height: 36px; }
	.omx-ticker__item { font-size: 13px; padding: 0 18px; }
	body.has-omx-ticker { padding-bottom: 40px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	/* Mobile header = logo (left) + hamburger (far right) ONLY, matching source. */
	.omx-nav,
	.omx-header__cta .omx-invest-btn,
	.omx-header__cta .omx-icon-btn { display: none; }
	.omx-header__cta { margin-left: auto; gap: 0; }
	.omx-burger { display: inline-flex; margin-left: 0; }
	.omx-header__inner { gap: 12px; }
	.omx-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
	.omx-topbar { font-size: 13px; }
	.omx-logo img { height: 42px; }
	.omx-section { padding: 44px 0; }
	.omx-foot-cta h2 { font-size: 26px; }
	.omx-footer__cols { grid-template-columns: 1fr; }
	.omx-footer__bottom { flex-direction: column; align-items: flex-start; }
}
