/* ════════════════════════════════════════════════════════════
   FJ — UX layer (load AFTER style.css)
   Readability, navigation and mobile fixes. No layout rewrite:
   delete this file's <link> tag to roll back.
════════════════════════════════════════════════════════════ */

/* ── 1. Readability: contrast + minimum label sizes ── */
:root{
  --txt2:rgba(255,255,255,0.62);
  --txt3:rgba(255,255,255,0.45);
  --nav-h:60px;
}
html{-webkit-text-size-adjust:100%;overflow-x:hidden;}
@supports (overflow:clip){html{overflow-x:clip;}}

.nav-links a{font-size:0.7rem;}
.lang-btn{font-size:0.64rem;color:rgba(255,255,255,0.55);}
.hero-ey{font-size:0.6rem;}
.hero-model-tag{font-size:0.58rem;}
.hero-cta-wrap a{font-size:0.7rem;}
.hero-cta-wrap a.main{font-size:0.76rem;}
.section-tag,.fs-tag,.prod-colors-title{font-size:0.62rem;}
.prod-flag{font-size:0.6rem;}
.color-swatch-name{font-size:0.56rem;max-width:68px;color:rgba(255,255,255,0.55);}
.fs-link{font-size:0.7rem;}
.cf-label{font-size:0.62rem;color:rgba(255,255,255,0.55);}
.bcta-meta{font-size:0.7rem;color:rgba(255,255,255,0.45);}
.foot-col-title{font-size:0.62rem;}
.foot-links a{color:rgba(255,255,255,0.55);}
.foot-copy{font-size:0.68rem;color:rgba(255,255,255,0.4);}
.foot-sec a{font-size:0.64rem;color:rgba(255,255,255,0.45);}
.lb-caption{font-size:0.62rem;color:rgba(255,255,255,0.55);}

/* ── 2. Navigation ── */
/* Anchor targets no longer hide under the fixed nav */
[id]{scroll-margin-top:calc(var(--nav-h) + 4px);}
.nav-links a.is-active{color:var(--txt);}
.nav-links a:not(.nc).is-active{box-shadow:0 1px 0 0 rgba(255,255,255,0.6);padding-bottom:0.35rem;}

a:focus-visible,button:focus-visible,[role="button"]:focus-visible,
.cf-input:focus-visible{outline:2px solid #fff;outline-offset:3px;}

/* Selected finish shown next to "Available finishes" */
.sel-finish{color:var(--txt);margin-left:0.6em;}
.sel-finish::before{content:'— ';color:var(--txt3);}

/* Per-model enquiry button under the price list */
.prod-cta{margin-top:1.8rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;}
.prod-cta .btn-w{text-align:center;}

/* Price tabs (mobile only — see below) */
.price-tabs{display:none;}

/* Logos keep their proportions and never push the page wider */
.tech-grid>*,.besp-inner>*,.feature-section>*,.prod-info>*{min-width:0;}
.tech-card-logo img{height:auto!important;width:auto;max-height:52px;max-width:100%;}
.pb img,.fs-img img,.prod-logo img{max-width:100%;}

.model-strip>*{min-width:0;}

/* Tablets: third model card was pushed off-screen, wheel image was cropped */
@media(min-width:769px) and (max-width:1024px){
  .ms-item{padding:1.3rem 1rem;gap:0.9rem;}
  .ms-thumb{width:64px;}
  .ms-arrow{display:none;}
  .prod-img-panel{height:min(78vh,62vw);}
}

/* The fade at the bottom of each wheel photo no longer blocks taps on the photo */
.prod-img-panel::after{pointer-events:none;}

/* Bigger invisible hit area for the hero dots */
.hero-dot{position:relative;}
.hero-dot::after{content:'';position:absolute;inset:-16px -5px;}

/* Hamburger from tablet down (nav row gets too tight below 1024px) */
@media(max-width:1024px){
  nav{padding:0 0.7rem 0 1.5rem;}
  nav .nav-links,nav .lang-switcher{display:none!important;}
  .nav-hamburger{display:flex;width:44px;height:44px;padding:0;align-items:center;justify-content:center;}
  /* style.css hid the drawer's language buttons too — bring them back */
  .nav-drawer .lang-switcher{display:flex!important;margin-left:0;gap:0.6rem;}
  .nav-drawer{gap:1.4rem;padding:calc(var(--nav-h) + 1rem) 1.5rem 2rem;overflow-y:auto;}
  .nav-drawer a{padding:0.55rem 1.2rem;color:rgba(255,255,255,0.85);}
  .nav-drawer .lang-btn{font-size:0.8rem;padding:0.75rem 0.9rem;min-width:48px;}
}

/* ════════════ PHONES ════════════ */
@media(max-width:768px){

  nav{padding:0 0.5rem 0 1.2rem;}

  /* ── Hero: fits the visible screen, wheel no longer sits on the text ── */
  .hero{width:100%;height:100vh;height:100svh;min-height:540px;}
  .hero-t1,.hero-t2{font-size:clamp(1rem,5.9vw,2.2rem);}
  .hero-slide{height:52%;bottom:27%;}
  .hero-fade{height:44%;background:linear-gradient(to bottom,transparent 0%,var(--bg) 58%);}
  .hero-model-wrap{bottom:9.6rem;left:1.2rem;}
  .hero-cta-wrap{left:1.2rem;right:1.2rem;bottom:2.3rem;align-items:stretch;gap:0.15rem;text-align:center;}
  .hero-cta-wrap a{font-size:0.62rem;min-height:44px;display:flex;align-items:center;justify-content:center;}
  .hero-cta-wrap a.main{font-size:0.66rem;min-height:48px;background:var(--txt);color:var(--bg);}
  .hero-dots{bottom:1.1rem;}

  /* ── Model strip ── */
  .ms-item{min-height:76px;}
  .ms-sub{font-size:0.66rem;}

  /* ── Product ── */
  .prod-img-panel::after{height:48px;} /* was 180px: covered most of the wheel on phones */
  .prod-desc,.fs-body,.tech-card-body{font-size:1rem;line-height:1.75;}
  .prod-desc{margin-bottom:1.5rem;}
  .prod-colors-title{font-size:0.62rem;}
  .sel-finish{display:block;margin:0.45rem 0 0;font-size:0.74rem;letter-spacing:0.18em;}
  .sel-finish::before{content:none;}
  .prod-badges{flex-wrap:nowrap;}
  .pb{flex:1 1 auto;min-width:0;}
  .pb img{height:auto!important;max-height:26px;max-width:100%;}
  .color-swatches{gap:0.7rem 0.75rem;}
  .color-swatch img{width:46px;height:46px;}
  .color-swatch-name{display:none;}
  .prod-flag{font-size:0.58rem;padding:0.4rem 0.7rem;}
  .prod-colors-note{font-size:0.85rem;}

  /* Prices: one diameter at a time instead of three stacked lists */
  .price-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border:1px solid var(--border);}
  .price-tab{min-height:46px;font-family:var(--Y);font-size:0.95rem;font-weight:700;letter-spacing:0.02em;
    color:var(--txt2);background:none;border:0;border-right:1px solid var(--border);cursor:pointer;}
  .price-tab:last-child{border-right:0;}
  .price-tab[aria-selected="true"]{background:var(--txt);color:var(--bg);}
  .has-tabs .price-col{display:none;padding:0.5rem 0 0;border-bottom:0;}
  .has-tabs .price-col.is-active{display:block;}
  .has-tabs .price-diam{display:none;}
  .price-row{padding:0.6rem 0.2rem;}
  .price-size,.price-eur{font-size:0.95rem;}
  .prod-prices-note,.prod-prices-footer{font-size:0.85rem;}
  .prod-cta{margin-top:1.4rem;}
  .prod-cta .btn-w{width:100%;padding:1rem 1rem;font-size:0.64rem;}

  /* ── Feature / tech ── */
  .fs-link{min-height:44px;font-size:0.66rem;}
  .tech-card-logo{margin-bottom:1.4rem;padding-bottom:1.4rem;}

  /* ── Contact ── */
  .bcta{padding:1.6rem 1.2rem;}
  .bcta-title{font-size:1.3rem;}
  .bcta-meta{line-height:1.7;}
  .cf-input{font-size:16px;padding:0.85rem 0.9rem;min-height:48px;} /* 16px stops iOS zoom-on-focus */
  .cf-label{font-size:0.6rem;}
  .cf-submit{width:100%;min-height:50px;}

  /* ── Footer ── */
  .foot-links{gap:0;}
  .foot-links a{display:block;padding:0.6rem 0;font-size:0.72rem;}
  .foot-sec{gap:0.6rem;}
  .foot-sec a{display:inline-block;padding:0.7rem 0.6rem;}

  /* ── Lightbox ── */
  .lb-close{top:0.6rem;right:0.6rem;min-width:44px;min-height:44px;font-size:1.9rem;}
  .lb-prev,.lb-next{font-size:2.4rem;padding:1.2rem 0.9rem;}
  .lb-img{max-width:100vw;}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .hero-slide,.prod-img-panel img.main-img{transition:none;}
}
