/* Ohvale România. White studio ground, black ink, the logo's lime, and its slant for slabs.
   Layout idea: the range stands on one ground line, photographed at one scale. */
@font-face { font-family: Archivo; src: url('/assets/fonts/archivo-expanded-800i.woff') format('woff'); font-weight: 800; font-style: italic; font-stretch: 125%; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/assets/fonts/intertight-var.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --ink: #000000;
  --paper: #FFFFFF;
  --lime: #D1FF00;
  --graphite: #434648;
  --pit: #F2F4EA;
  --mist: #D5D8DA;
  --display: Archivo, 'Arial Black', Arial, sans-serif;
  --text: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--graphite); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--lime); }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1304px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.stack { display: flex; flex-direction: column; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 46em; }
.rule { border-top: 2px solid var(--ink); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; }

.display { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-style: italic; letter-spacing: -0.01em; }
.h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; text-wrap: balance; }
.h1.xl { font-size: clamp(48px, 6.2vw, 90px); line-height: 0.95; }
.h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.lead { max-width: 34em; font-size: 19px; color: var(--graphite); }
.small { max-width: 60em; font-size: 15px; color: var(--graphite); }
.u { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 0; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn:hover { color: var(--lime); }
.btn.big { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* header */
.top { border-bottom: 2px solid var(--ink); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 40px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 600; }
.top nav a { padding: 12px 0; }
.top nav a[aria-current] { border-bottom: 3px solid var(--lime); }
.top-end { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; font-size: 14px; font-weight: 700; }
.lang a, .lang span { padding: 12px 8px; }
.lang a { color: var(--graphite); }
.lang span { border-bottom: 3px solid var(--lime); }
.top-end .narrow { display: none; }
/* phones and tablets: logo, language and quote button share one row, the whole menu sits on the next */
@media (max-width: 1000px) {
  .top-in { gap: 0 10px; padding-top: 8px; padding-bottom: 0; }
  .logo { flex: 1 1 120px; max-width: 200px; min-width: 0; }
  .logo img { width: 100%; height: auto; }
  .top-end { gap: 8px; }
  .top nav { order: 3; width: 100%; }
}

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.wrap.hero { padding-top: 56px; padding-bottom: 72px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-photo { flex: 1.15 1 460px; min-width: 0; display: flex; justify-content: center; }
.hero-photo img { width: 100%; max-width: 640px; }
.model-hero { padding-top: 20px; padding-bottom: 72px; }
.model-hero .hero-photo img { max-width: 760px; }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--graphite); }
/* the four wheel sizes, drawn to scale at 8 px per inch; picking one brings in its model */
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.scale { display: flex; align-items: flex-end; gap: 22px; padding: 0 12px; border-bottom: 2px solid var(--ink); }
.scale a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: inherit; text-decoration: none; cursor: pointer; }
.scale span { font-size: 14px; font-weight: 600; color: var(--graphite); }
.scale i { display: flex; align-items: center; justify-content: center; width: calc(var(--d) * var(--k, 1)); height: calc(var(--d) * var(--k, 1)); border: 2px solid var(--ink); border-radius: 50%; font-style: normal; font-size: 17px; font-weight: 700; transition: background-color .15s; }
.scale a:hover i { background: var(--pit); }
.scale a.on span { color: var(--ink); font-weight: 700; }
.scale a.on i { background: var(--lime); font-size: 22px; font-weight: 800; }
/* the texts of the four models share one grid cell, so the layout keeps the height of the longest */
.hero-panels { display: grid; }
.hero-panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 28px; visibility: hidden; opacity: 0; }
.hero-panel.is-on { visibility: visible; opacity: 1; }
/* the stage clips the motorcycles as they roll in from the right and leave to the left */
.stage { position: relative; width: 100%; max-width: 700px; aspect-ratio: 1280 / 800; overflow: hidden; border-bottom: 2px solid var(--ink); }
.stage .bike { position: absolute; left: calc((100% - var(--w)) / 2); bottom: 0; width: var(--w); max-width: none; height: auto; transform-origin: 82% 100%; visibility: hidden; }
.stage .bike.is-on, .stage .bike.is-out { visibility: visible; }
@keyframes roll-in { 0% { transform: translateX(135%); } 76% { transform: translateX(-1.2%) rotate(-0.7deg); } 100% { transform: none; } }
@keyframes roll-out { to { transform: translateX(-135%); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-panel.is-on { transition: opacity .3s ease .12s; }
  .stage .bike.is-on.roll { animation: roll-in .95s cubic-bezier(.2, .75, .25, 1) both; }
  .stage .bike.is-out { animation: roll-out .5s cubic-bezier(.55, 0, .9, .4) both; }
}
@media (prefers-reduced-motion: reduce) { .stage .bike.is-out { visibility: hidden; } }
/* once the photo no longer fits beside the text, it moves up next to the picker, so the change stays in view */
@media (max-width: 1000px) {
  .wrap.hero[data-hero-root] { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; }
  .hero[data-hero-root] .hero-text { display: contents; }
  .hero[data-hero-root] .hero-photo { order: 2; flex: none; justify-content: flex-start; }
  .hero[data-hero-root] .pick { order: 3; }
  .hero[data-hero-root] .hero-panels:last-child { order: 4; }
}
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.slab { padding: 12px 28px; background: var(--lime); transform: skewX(-12deg); }
.slab > div { display: flex; flex-direction: column; transform: skewX(12deg); }
.slab span { font-size: 14px; font-weight: 600; }
.slab strong { font-size: 30px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the range on one ground line */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 48px 0; }
.step { display: flex; flex-direction: column; min-width: 0; }
.step-photo { display: flex; align-items: flex-end; height: 200px; border-bottom: 2px solid var(--ink); }
.step-text { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 0 0; }
.step-text h3 { font-size: 24px; line-height: 1.2; }
.step-text p { font-size: 16px; color: var(--graphite); }
.step-text .inch { padding: 4px 0; font-size: 52px; line-height: 1; color: var(--ink); }
.step-text .inch.is-new { align-self: flex-start; margin-left: -12px; padding: 4px 18px 4px 12px; background: var(--lime); transform: skewX(-12deg); }
.inch.is-new span { display: inline-block; transform: skewX(12deg); }
.step-text .price { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.step-text .u { align-self: flex-start; }

/* bands */
.band-black { background: var(--ink); color: #FFFFFF; }
.band-black .wrap { gap: 40px 56px; padding-top: 64px; padding-bottom: 64px; }
.band-black h3 { margin-bottom: 12px; font-size: 26px; line-height: 1.15; color: var(--lime); }
.band-black p { color: var(--mist); }
.band-pit { background: var(--pit); }
.band-lime { background: var(--lime); }

/* news and gallery */
.news, .gallery figure { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; }
.news img, .gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
img.contain { object-fit: contain; background: #FFFFFF; }
.news time { font-size: 14px; font-weight: 600; color: var(--graphite); }
.news h3 a { text-decoration: none; }
.news h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news img.contain, .story img.contain { object-fit: contain; background: #FFFFFF; }
.story > img { width: 100%; max-width: 900px; aspect-ratio: 3 / 2; object-fit: cover; }
/* a one-word title such as „Confidențialitate” must still fit a phone screen */
.story .h1 { font-size: clamp(26px, 6.6vw, 64px); overflow-wrap: anywhere; }
.story time { font-size: 15px; font-weight: 600; color: var(--graphite); }
.story-text h2 { margin-bottom: 6px; font-size: 22px; line-height: 1.2; }
.story-text { display: flex; flex-direction: column; gap: 20px; max-width: 40em; font-size: 19px; }
.story-text .small a { min-height: 0; display: inline; font-weight: 600; }
/* articles: subheadings, photos with captions, lists, a box of key facts, then the models and more to read */
.story .lead { max-width: 36em; font-size: 21px; }
.story-text h2 { margin: 16px 0 0; font-size: 26px; line-height: 1.2; }
.story-text p a, .story-text li a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
.story-text figure { margin: 8px 0; }
.story-text figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-text figure.contain img { object-fit: contain; background: #FFFFFF; }
.story-text figcaption { margin-top: 8px; font-size: 14px; color: var(--graphite); }
.story-text ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 1.1em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 8px 0; border: 2px solid var(--ink); background: var(--ink); }
.facts div { padding: 12px 16px; background: var(--paper); }
.facts dt { font-size: 13px; font-weight: 600; color: var(--graphite); }
.facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.story-models, .story-more { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; border-top: 2px solid var(--ink); }
.story-models .step-photo { height: 150px; }
.story-models .btn { align-self: flex-start; }
.news h3 { font-size: 22px; line-height: 1.25; }
.news p { font-size: 16px; color: var(--graphite); }
.gallery figcaption { font-size: 16px; font-weight: 600; }

/* tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.prices { border: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.prices caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.prices th, .prices td { padding: 12px 16px; border-bottom: 1px solid var(--ink); text-align: left; }
.prices thead th { font-size: 14px; font-weight: 600; color: var(--graphite); }
.prices tbody tr:last-child th, .prices tbody tr:last-child td { border-bottom: 0; }
.prices td { white-space: nowrap; }
.prices .list { font-weight: 700; }
.specs { min-width: 760px; font-size: 16px; }
.specs th, .specs td { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.specs thead th { border-bottom: 2px solid var(--ink); font-size: 17px; }
.specs tbody th { width: 19%; font-weight: 600; }
.specs td { color: var(--graphite); }
.specs td span { display: block; }
.specs td span + span { margin-top: 6px; }
.tag { display: inline-block; margin-left: 4px; padding: 1px 8px; background: var(--lime); font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* quote form */
.offer { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: 72px; padding-bottom: 72px; }
.offer-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lead-dark { max-width: 30em; font-size: 19px; }
.direct { display: flex; flex-direction: column; font-size: 19px; font-weight: 700; }
.direct a { align-self: flex-start; padding: 10px 0; }
.num { font-variant-numeric: tabular-nums; }
form { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 32px; border: 2px solid var(--ink); background: #FFFFFF; }
form label { margin-top: 12px; font-size: 14px; font-weight: 600; }
form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
form label:first-child { margin-top: 0; }
input, select, textarea { min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0; background: #FFFFFF; font: inherit; color: var(--ink); }
textarea { padding: 12px 14px; resize: vertical; }
form .btn { align-self: flex-start; min-height: 52px; margin-top: 18px; padding: 0 30px; font-size: 17px; }
.hint { margin-top: 8px; font-size: 14px; color: var(--graphite); }
.hint a { text-decoration: underline; text-underline-offset: 3px; }

/* footer */
.foot { background: var(--ink); color: #FFFFFF; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; padding-top: 56px; padding-bottom: 48px; }
.foot-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { align-self: flex-start; height: 36px; width: auto; }
.foot-brand p { font-size: 15px; color: var(--mist); }
.foot-co { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mist); }
.foot-co strong { color: #FFFFFF; }
.foot-co.dark { color: var(--graphite); }
.foot-co.dark strong { color: var(--ink); }
.foot nav { display: flex; flex-direction: column; font-size: 14px; }
.foot nav a { padding: 12px 0; color: #FFFFFF; }

/* accessories */
.acc-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 56px; }
.acc-top .intro { flex: 1 1 380px; gap: 20px; }
/* the two photos stand on one line and their captions start level, whatever the caption length */
.acc-photos { flex: 1.2 1 420px; min-width: 0; display: grid; grid-template-columns: 0.72fr 1fr; grid-template-rows: auto auto; gap: 10px 24px; }
.acc-photos figure { margin: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.acc-photos img { width: 100%; height: auto; align-self: end; }
.acc-photos figcaption { font-size: 14px; color: var(--graphite); }
.acc-list { display: flex; flex-direction: column; gap: 40px; }
/* the group picker stays at the top of the screen while the list scrolls, so another group is always one tap away */
.acc-filter { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); }
.acc-filter label { font-size: 15px; font-weight: 600; }
.acc-filter select { flex: 1 1 auto; min-width: 0; max-width: 440px; font-weight: 600; }
.acc-index { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.acc-group { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px; }
.acc-group .prices td[colspan] { text-align: right; color: var(--graphite); }
.acc-group .prices { width: 100%; max-width: 940px; table-layout: fixed; }
/* the price columns keep their width, so a narrow table squeezes the product name and never the prices */
.acc-group .prices th:nth-child(2) { width: 18%; }
.acc-group .prices th:nth-child(3) { width: 166px; }
.acc-group .prices th:nth-child(4) { width: 128px; }
.acc-group .prices tbody th { font-weight: 600; }
.acc-group .prices td:nth-child(2) { color: var(--graphite); white-space: normal; }
.acc-group .prices th:nth-child(n+3), .acc-group .prices td:nth-child(n+3) { text-align: right; }

@media (max-width: 700px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .stack, .offer { padding-top: 56px; padding-bottom: 56px; }
  /* header on phones: tighter language switch and button, and the five menu items spread over one line */
  .lang a, .lang span { padding: 12px 5px; }
  .top-end .btn { min-height: 44px; padding: 0 12px; font-size: 14px; }
  .top-end .wide { display: none; }
  .top-end .narrow { display: inline; }
  .top nav { justify-content: space-between; gap: 0 8px; font-size: clamp(12.5px, 3.9vw, 15px); }
  .scale { gap: 10px; padding: 0 6px; }
  .scale i { --k: 0.6; font-size: 14px; }
  .scale a.on i { font-size: 16px; }
  .acc-top { gap: 32px; }
  form { padding: 20px; }
  .prices { font-size: 15px; }
  .prices th, .prices td { padding: 10px 8px; }

  /* accessories: each product becomes a small card, name and fit on the left, the two prices on the right */
  .acc-filter select { max-width: none; }
  .acc-group .prices, .acc-group .prices tbody { display: block; }
  .acc-group .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .acc-group .prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--ink); }
  .acc-group .prices tbody tr:last-child { border-bottom: 0; }
  .acc-group .prices th, .acc-group .prices td { display: block; width: auto; padding: 0; border: 0; }
  .acc-group .prices tbody th { grid-area: 1 / 1; font-size: 16px; }
  .acc-group .prices td:nth-child(2) { grid-area: 2 / 1; font-size: 14px; }
  .acc-group .prices td:nth-child(2):not(:empty)::before { content: attr(data-l) " "; }
  .acc-group .prices td:nth-child(3) { grid-area: 1 / 2; align-self: end; font-size: 16px; font-weight: 700; }
  .acc-group .prices td:nth-child(4) { grid-area: 2 / 2; font-size: 14px; color: var(--graphite); }
  .acc-group .prices td:nth-child(4)::after { content: " " attr(data-l); }
  .acc-group .prices td[colspan] { grid-area: 1 / 2 / 3 / 3; align-self: center; font-size: 15px; font-weight: 400; }

  /* specifications: one block per characteristic, each version named above its own value */
  .specs { min-width: 0; }
  .specs, .specs tbody, .specs tr, .specs th, .specs td { display: block; }
  .specs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .specs tr { padding: 14px 0; border-bottom: 1px solid var(--ink); }
  .specs tbody th, .specs td { width: auto; padding: 0; border: 0; }
  .specs tbody th { margin-bottom: 6px; }
  .specs td + td { margin-top: 12px; }
  .specs td[data-v]::before { content: attr(data-v); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--ink); }
}
/* small phones: headings and the price slab scale with the screen, so one long word or price still fits */
@media (max-width: 400px) {
  .h1 { font-size: 10.2vw; }
  .slab strong { font-size: clamp(22px, 7.6vw, 30px); }
}
/* the smallest phones, 320 px wide */
@media (max-width: 340px) {
  .scale { gap: 6px; padding: 0 4px; }
  .prices { font-size: 14px; }
  .prices th, .prices td { padding: 10px 5px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
