/* ORDIX GLOBAL — shared site design system.
   Palette: deep charcoal/black + gold + white + warm neutrals.
   Type: Space Grotesk (display/headlines) + Inter (body/UI). */

:root {
  --bg: #08090B;
  --bg-panel: #101113;
  --bg-panel-raised: #17181b;
  --gold: #D6AD62;
  --gold-soft: #E7C78E;
  --white: #FFFFFF;
  --light-bg: #F5F5F3;
  --muted: #8f929a;
  --muted-soft: #B9BBC0;
  --border: #242528;
  --border-soft: #1a1b1e;
  --ease: cubic-bezier(.22,.9,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: rgba(7,9,15,0.92); backdrop-filter: blur(8px);
  z-index: 100;
}
nav .logo { display: flex; align-items: center; }
nav .logo img { height: 30px; width: auto; display: block; }
nav .nav-right { display: flex; align-items: center; gap: 16px; }
nav .links { display: flex; gap: 22px; align-items: center; }
nav .links a {
  color: var(--muted-soft); text-decoration: none; font-size: 14.5px; font-weight: 500;
  position: relative; padding: 4px 0; transition: color .2s var(--ease);
}
nav .links a:hover, nav .links a.active { color: var(--white); }
nav .links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
nav .links a:hover::after, nav .links a.active::after { width: 100%; }
nav .nav-cta {
  background: var(--gold); color: #07090F; padding: 9px 16px; border-radius: 6px;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--white); padding: 8px 10px; font-size: 18px; cursor: pointer; }

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-panel);
  flex-shrink: 0;
}
.lang-btn {
  background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease);
  font-family: 'Inter', Arial, sans-serif; white-space: nowrap;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--gold); color: #07090F; }
.lang-btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
@media (max-width: 420px) { .lang-btn { padding: 5px 8px; font-size: 11.5px; } }

.lang-notice {
  background: var(--bg-panel-raised); border-bottom: 1px solid var(--border);
  color: var(--muted-soft); font-size: 13px; text-align: center; padding: 10px 24px;
}
.lang-notice[hidden] { display: none; }

@media (max-width: 860px) {
  nav .links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--bg-panel); border-left: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 80px 28px 28px;
    transform: translateX(100%); transition: transform .3s var(--ease);
  }
  nav .links.open { transform: translateX(0); }
  nav .links a { font-size: 16px; width: 100%; padding: 10px 0; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ----------
   No real photography exists for this project (network-blocked sandbox,
   documented in business/assets/image-asset-log.md) - so instead of a weak
   background texture, the hero commits fully to a bold graphic treatment:
   large scale, strong gold presence, a slow scroll-linked drift on the
   line art so it reads as deliberate motion design, not decoration. */
.hero {
  position: relative; padding: 80px 24px 56px; text-align: center; overflow: hidden;
  border-top: none;
}
.hero-art {
  position: absolute; inset: -5% -5%; z-index: 0; opacity: .7; pointer-events: none; overflow: hidden;
  will-change: transform;
}
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }

/* Showcase rotation - progressive enhancement over the single static image
   above. .showcase-track only exists once JS has run; without it, the
   single <img> displays normally with no rotation. */
.showcase-track { position: absolute; inset: 0; }
.showcase-track .showcase-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  opacity: 0; transition: opacity 1s var(--ease);
}
.showcase-track .showcase-slide.active { opacity: 1; }
.showcase-meta {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.showcase-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold);
  background: rgba(8,9,11,0.55); border: 1px solid rgba(214,173,98,0.35);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}
.showcase-dots { display: flex; gap: 7px; }
.showcase-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.3); transition: background .2s var(--ease), transform .2s var(--ease);
}
.showcase-dot.active { background: var(--gold); transform: scale(1.3); }
.showcase-dot:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
@media (max-width: 640px) {
  .showcase-meta { left: 16px; bottom: 16px; flex-wrap: wrap; }
}

.hero-photo::after {
  /* Uniform base darkening for overall legibility, plus a radial scrim
     darkest right where the centered headline sits - the photo stays
     most visible toward the edges/corners for visual interest. */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(8,9,11,0.88) 0%, rgba(8,9,11,0.5) 60%, transparent 100%),
    rgba(8,9,11,0.5);
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; color: var(--gold); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px;
  border: 1px solid rgba(214,173,98,0.35); padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); margin: 0 0 22px; font-weight: 700; }
.hero h1 .gold { color: var(--gold); }
.hero p.sub { color: var(--muted-soft); max-width: 620px; margin: 0 auto 36px; font-size: 18px; line-height: 1.6; }

/* .hero-xl: the full-impact homepage hero only - inner-page headers (buyers,
   manufacturers, categories, etc.) stay the compact version above. */
.hero-xl {
  min-height: 86vh; display: flex; align-items: center; justify-content: center; padding: 0 24px;
}
.hero-xl .hero-art { opacity: .85; }
/* .hero-xl::after removed - .hero-photo::after now handles the scrim
   directly over the real photo. When no photo is present (.hero-art
   SVG fallback only), the plain dark background is legible on its own. */
.hero-xl .hero-content { padding: 64px 0; }
.hero-xl h1 { font-size: clamp(38px, 7vw, 78px); }
@media (max-width: 640px) {
  .hero-xl { min-height: 76vh; padding: 0 20px; }
}

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 7px;
  font-weight: 600; text-decoration: none; font-size: 15px; transition: transform .18s var(--ease), opacity .18s var(--ease), box-shadow .18s var(--ease);
  border: none; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: #07090F; box-shadow: 0 8px 24px -8px rgba(214,173,98,0.5); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(214,173,98,0.65); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid rgba(214,173,98,0.5); }
.btn-outline:hover { border-color: var(--gold); background: rgba(214,173,98,0.08); }
.btn-ghost { background: transparent; color: var(--muted-soft); border: 1px solid var(--border); }

/* ---------- Sections ---------- */
section { padding: 88px 24px; border-top: 1px solid var(--border-soft); }
section.tight { padding-top: 48px; padding-bottom: 48px; }
/* Alternate background tone so sections aren't visually identical stacked boxes */
section.alt { background: var(--bg-panel); }
section.feature {
  background: radial-gradient(ellipse at 20% 0%, rgba(214,173,98,0.08), transparent 55%), var(--bg);
}
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow-sm { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 10px; }
section h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; font-weight: 700; }
section p.lead { color: var(--muted-soft); margin-bottom: 28px; max-width: 640px; font-size: 16.5px; }
.section-head p.lead { margin-left: auto; margin-right: auto; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.split.reverse { direction: rtl; } .split.reverse > * { direction: ltr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse { direction: ltr; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1120px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(214,173,98,0.4); background: var(--bg-panel-raised); }
.card h3 { margin-top: 0; color: var(--white); font-size: 17.5px; font-weight: 600; }
.card ol, .card ul { color: var(--muted-soft); padding-left: 20px; margin-bottom: 0; }
.card ol li, .card ul li { margin-bottom: 7px; }
.card p { color: var(--muted-soft); margin-bottom: 0; }

/* ---------- Category grid: asymmetric, excavators featured ---------- */
.category-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px;
  max-width: 1120px; margin: 0 auto;
}
.category-card { text-align: left; position: relative; overflow: hidden; }
.category-card.priority {
  grid-row: 1 / 3; border-color: rgba(214,173,98,0.55);
  background: linear-gradient(160deg, var(--bg-panel-raised), var(--bg-panel) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 32px;
}
.category-card.priority .icon-wrap {
  width: 84px; height: 84px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(214,173,98,0.22), rgba(214,173,98,0.06));
  margin-bottom: 24px;
}
.category-card.priority .icon-wrap svg { width: 42px; height: 42px; }
.category-card.priority h3 { font-size: 24px; }

/* Photo-backed category cards - used where a real (AI-illustrative,
   disclosed as such) image exists; cards without one keep the icon
   treatment above rather than using a placeholder. */
.category-card.has-photo { padding: 0; display: flex; flex-direction: column; }
.category-card.has-photo .cat-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.category-card.has-photo .cat-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.category-card.has-photo:hover .cat-photo img { transform: scale(1.06); }
.category-card.has-photo .cat-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.category-card.priority.has-photo { padding: 0; justify-content: flex-start; min-height: 0; }
.category-card.priority.has-photo .cat-photo { aspect-ratio: 16/10; }
.category-card.priority.has-photo .cat-body { padding: 26px 28px; }
.category-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(214,173,98,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.category-card .icon-wrap svg { width: 24px; height: 24px; }
.category-card .badge {
  position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase;
}
@media (max-width: 860px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card.priority { grid-column: 1 / 3; min-height: 220px; }
}
/* Mobile: horizontal swipe carousel instead of a stacked column of cards */
@media (max-width: 580px) {
  .category-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    padding-bottom: 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .category-card { flex: 0 0 78%; scroll-snap-align: start; }
  .category-card.priority { flex: 0 0 86%; min-height: 260px; }
}

/* JS-appended category cards (website/config.js ordixRenderCategoryGrid)
   become direct grid/flex children of .category-grid, not a nested box -
   keeps the asymmetric grid and mobile carousel both working correctly. */
.category-grid-auto { display: contents; }

/* ---------- Process steps: connected animated timeline ---------- */
.steps { max-width: 820px; margin: 0 auto; position: relative; padding-left: 4px; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: var(--border);
}
.steps .timeline-fill {
  position: absolute; left: 21px; top: 22px; width: 2px; height: 0; background: var(--gold);
  transition: height 1.1s var(--ease);
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; }
.step-num {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-panel);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px;
  transition: border-color .4s var(--ease), color .4s var(--ease), background .4s var(--ease);
}
.step.in-view .step-num { border-color: var(--gold); color: var(--gold); background: rgba(214,173,98,0.1); }
.step h3 { margin: 4px 0 6px; font-size: 17px; }
.step p { color: var(--muted-soft); margin: 0; font-size: 15px; }
.step .owner { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item {
  text-align: left; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.trust-item .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(214,173,98,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.trust-item .icon-wrap svg { width: 22px; height: 22px; }
.trust-item p { color: var(--muted-soft); margin: 0; }

/* ---------- Forms ---------- */
form { display: grid; gap: 16px; max-width: 580px; }
form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form .row-2 { grid-template-columns: 1fr; } }
label { font-size: 13.5px; color: var(--muted-soft); display: block; margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 7px; border: 1px solid var(--border);
  background: #0c0f18; color: var(--white); font-family: inherit; font-size: 15px;
  transition: border-color .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.consent { font-size: 13px; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); }

.confirm-box {
  display: none; background: var(--bg-panel); border: 1px solid var(--gold);
  border-radius: 12px; padding: 22px; margin-top: 16px;
}
.confirm-box.show { display: block; }

/* ---------- Motion ----------
   Progressive enhancement: content is visible by default. The hidden
   "about to reveal" state only applies once html.js is present (set by
   an inline script in <head> before paint) AND prefers-reduced-motion
   is not set. If JS fails to load, or motion is reduced, everything
   just renders normally - never permanently invisible. */
html.js:not(.reduced-motion) .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js:not(.reduced-motion) .reveal.in { opacity: 1; transform: translateY(0); }
html.js:not(.reduced-motion) .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.js:not(.reduced-motion) .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
html.js:not(.reduced-motion) .reveal-stagger.in > *:nth-child(1) { transition-delay: .03s; }
html.js:not(.reduced-motion) .reveal-stagger.in > *:nth-child(2) { transition-delay: .10s; }
html.js:not(.reduced-motion) .reveal-stagger.in > *:nth-child(3) { transition-delay: .17s; }
html.js:not(.reduced-motion) .reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }

/* ---------- Route map (illustrative, not literal geography) ---------- */
.route-map { max-width: 820px; margin: 0 auto; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.route-lines path { stroke-dasharray: 6 7; }
html.js:not(.reduced-motion) .route-lines path { animation: dash-flow 6s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -130; } }

/* ---------- FAQ accordion (native <details>, works with zero JS) ---------- */
.accordion-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px;
  margin-bottom: 12px; background: var(--bg-panel);
}
.accordion-item summary {
  cursor: pointer; font-weight: 600; font-size: 16px; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 400; margin-left: 12px; }
.accordion-item[open] summary::after { content: "–"; }
.accordion-item p { color: var(--muted-soft); margin: 14px 0 0; }

footer { padding: 44px 24px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border-soft); }
footer a { color: var(--gold); text-decoration: none; }
footer .fine-print { font-size: 12.5px; margin-top: 12px; max-width: 540px; margin-left: auto; margin-right: auto; color: var(--muted); }

/* ---------- Mobile sticky CTA bar ----------
   Keeps the primary action reachable at all times on mobile, where a
   user is less likely to scroll back up to a CTA they passed. Desktop
   doesn't need this - the nav's "Contact" button and in-page CTAs are
   already always within reach. */
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  .mobile-cta-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(8,9,11,0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
  }
  .mobile-cta-bar .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: 14px; }
  body { padding-bottom: 74px; }
}
