/* ==========================================================================
   Altego Bikes — main design system
   Dark / gold theme, consistent with the configurator (configurateur/index_v2.html)
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111112;
  --bg2: #1a1a1c;
  --bg3: #222224;
  --accent: #E0B43C;
  --accent2: #c49e2e;
  --text: #f0f0f0;
  --muted: #8a8a8a;
  --border: #2e2e32;
  --green: #4caf6f;
  --red: #e05050;

  --header-h: 72px;
  --max-w: 1180px;
  --radius: 10px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / hamburger nav ---------- */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 950;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(17, 17, 18, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

#menu-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px;
}
#menu-toggle img { width: 23px; height: 23px; }
#menu-toggle .menu-icon-close {
  display: none;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
#menu-toggle .menu-icon-close::before,
#menu-toggle .menu-icon-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #111;
  transform-origin: center;
}
#menu-toggle .menu-icon-close::before { transform: translate(-50%, -50%) rotate(45deg); }
#menu-toggle .menu-icon-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
#menu-toggle.open .menu-icon-open { display: none; }
#menu-toggle.open .menu-icon-close { display: block; }
#menu-toggle.open .menu-label { display: none; }

body.nav-lock #site-header {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: #000;
}
body.nav-lock .header-logo,
body.nav-lock .header-cta {
  visibility: hidden;
}

.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 22px;
  width: auto;
}

.header-cta {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.header-cta:hover { background: var(--accent); color: #111; }
.header-cta span.short { display: none; }

@media (max-width: 720px) {
  :root { --header-h: 56px; }
  #site-header { padding: 0 12px; }
  #menu-toggle { gap: 7px; padding: 8px 4px; font-size: 12px; }
  #menu-toggle img { width: 19px; height: 19px; }
  .header-logo img { height: 16px; }
  .header-cta { padding: 8px 12px; font-size: 11px; }
  .header-cta span.full { display: none; }
  .header-cta span.short { display: inline; }
}

/* ---------- Hamburger overlay menu (same on desktop & mobile) ---------- */

#nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  display: none;
  overflow-y: auto;
  padding: calc(var(--header-h) + 32px) 24px 40px;
}
#nav-overlay.open { display: block; }

.nav-groups {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.nav-group { padding: 22px 0; border-bottom: 1px solid var(--border); }
.nav-group:first-child { padding-top: 0; }
.nav-group-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}

.nav-sub { margin-top: 14px; }
.nav-sub li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 4px;
  font-size: 15px;
  color: var(--muted);
  transition: color .2s;
}
.nav-sub li a:hover { color: var(--accent); }

.link-icon { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }

.nav-social-wrap { max-width: 640px; margin: 32px auto 0; padding-bottom: 24px; text-align: center; border-bottom: 1px solid var(--border); }
.nav-social-wrap .nav-group-title { margin-bottom: 20px; }
.nav-social {
  display: flex;
  gap: 22px;
  justify-content: center;
}
.nav-social a {
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.nav-social a img { width: 22px; height: 22px; object-fit: contain; }
.nav-social a:hover { opacity: .7; }

.nav-updates {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
}
.nav-updates a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 4px;
  font-size: 15px;
  color: var(--muted);
  transition: color .2s;
}
.nav-updates a:hover { color: var(--accent); }

.nav-lang-country { max-width: 640px; margin: 0 auto; padding-top: 24px; text-align: center; }
.nav-lang-country-widget {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  cursor: pointer;
}
.nav-lang-country-widget:hover { opacity: .8; }
.nav-lang-country .lcw-item { font-size: 15px; }

body.nav-lock { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(var(--header-h) + 20px) 24px 90px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.15) 40%, rgba(10,10,10,.9) 100%);
  z-index: -1;
}
.hero-countdown {
  background: rgba(255,255,255,.96);
  color: #111;
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 360px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.hero-countdown-label { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 12px; }
.hero-countdown-grid { display: flex; gap: 14px; margin-bottom: 16px; }
.hero-countdown-unit { text-align: center; }
.hero-countdown-unit .num { font-size: 26px; font-weight: 800; }
.hero-countdown-unit .lbl { font-size: 10px; text-transform: uppercase; color: #777; letter-spacing: .06em; }
.btn-primary {
  display: inline-block;
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

/* ---------- Product intro (black block, ENDURØ-ALL) ---------- */

.product-intro {
  background: #0c0c0d;
  padding: 90px 24px;
}
.product-intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-intro h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: .02em;
}
.product-intro .tagline {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .1em;
  margin-top: 6px;
}
.product-intro .specs-line {
  color: var(--muted);
  font-size: 15px;
  margin-top: 18px;
}
.product-intro .price-line {
  font-style: italic;
  color: var(--muted);
  margin-top: 14px;
  font-size: 14px;
}
.product-intro .price-line .price-val { color: var(--text); font-weight: 700; font-style: normal; }
.btn-outline {
  display: inline-block;
  margin-top: 26px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 24px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--accent); color: #111; }
.product-intro .render-wrap img { border-radius: var(--radius); }

@media (max-width: 860px) {
  .product-intro .wrap { grid-template-columns: 1fr; gap: 32px; }
  .product-intro .render-wrap { order: -1; }
}

/* ---------- Mission ---------- */

.mission {
  padding: 90px 24px;
  text-align: center;
  background: var(--bg);
}
.mission h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 18px;
}
.mission p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- Feature grid ---------- */

.features {
  padding: 20px 24px 90px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-card img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.feature-card .f-title { font-size: 14px; font-weight: 700; line-height: 1.3; }

.features-cta { text-align: center; margin-top: 36px; }
.features-cta a { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- Feature detail sections (OMNI page) ---------- */

.feature-detail {
  padding: 70px 24px;
  border-top: 1px solid var(--border);
}
.feature-detail .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.feature-detail:nth-child(even) .wrap { direction: rtl; }
.feature-detail:nth-child(even) .wrap > * { direction: ltr; }
.feature-detail img { border-radius: var(--radius); }
.feature-detail .eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.feature-detail h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 14px; }
.feature-detail p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.feature-detail ul { margin-top: 10px; }
.feature-detail ul li {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.5;
}
.feature-detail ul li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 860px) {
  .feature-detail .wrap { grid-template-columns: 1fr; gap: 24px; }
  .feature-detail:nth-child(even) .wrap { direction: ltr; }
}

/* ---------- Spec table ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14px;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 6px; }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { color: var(--text); font-weight: 600; }

/* ---------- Configurator option cards ---------- */

.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 0 24px 80px;
}
.option-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.option-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.option-card img { border-radius: var(--radius); margin-bottom: 20px; }
.option-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 28px; }
.option-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 8px; }

.option-card-cta {
  margin: 24px -28px -28px;
  margin-top: auto;
  padding: 18px 24px;
  background: var(--accent);
  border-radius: 0 0 12px 12px;
}
.option-card-cta .oc-label { display: block; font-size: 15px; font-weight: 800; color: #111; }
.option-card-cta .oc-price { display: block; font-size: 13px; font-weight: 600; color: rgba(17,17,17,.75); margin-top: 4px; }
.option-card-cta .oc-price--steps { font-size: 16px; }

.option-card-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 4px auto 20px;
}
.option-card-links .btn-outline,
.btn-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  padding: 11px 16px;
  font-size: 12.5px;
}
.btn-icon { width: 14px; height: 14px; margin-right: 6px; flex-shrink: 0; }
.btn-video {
  background: #e0393e;
  border: 1.5px solid transparent;
  color: #fff;
  border-radius: 24px;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-video:hover { background: #c22d32; transform: translateY(-1px); }

@media (max-width: 720px) {
  .option-cards { grid-template-columns: 1fr; }
}

/* ---------- Contact prompt ---------- */

.contact-prompt {
  background: var(--bg2);
  padding: 70px 24px;
  text-align: center;
}
.contact-prompt p { max-width: 480px; margin: 0 auto 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }

.tutorial-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 50px 24px 90px;
}

/* ---------- Page hero (simple page title band, used by inner pages) ---------- */

.page-hero {
  padding: calc(var(--header-h) + 60px) 24px 30px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-hero p { color: var(--muted); margin-top: 12px; max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Stub / coming soon ---------- */

.stub-body {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 100px;
}
.stub-body .stub-inner { max-width: 480px; }
.stub-body h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.stub-body p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Footer ---------- */

#site-footer {
  background: #0c0c0d;
  border-top: 1px solid var(--border);
  padding: 36px 24px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.footer-social a img { width: 20px; height: 20px; object-fit: contain; }
.footer-social a:hover { opacity: .7; }

.footer-updates {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-updates a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-updates a:hover { color: var(--text); }

.footer-legal {
  max-width: var(--max-w);
  margin: 30px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.footer-legal-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-legal-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}
.footer-legal .legal-links a { margin-right: 18px; color: var(--muted); }
.footer-legal .legal-links a:hover { color: var(--text); }

.footer-lang-country-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  cursor: pointer;
  font-family: inherit;
}
.footer-lang-country-widget:hover { opacity: .8; }
.lcw-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lcw-label { color: var(--text); font-weight: 600; }
.lcw-item .fi { border-radius: 2px; flex: none; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: stretch; }
  .footer-legal-left { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal-divider { display: none; }
  .footer-lang-country-widget { flex-wrap: wrap; gap: 6px 14px; font-size: 11px; }
  .footer-copyright { order: 3; width: 100%; text-align: center; font-style: italic; margin-top: 6px; }
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; padding: 0 24px 90px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .chev { color: var(--accent); transition: transform .25s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
