/* =========================================
   FVB (namespaced) — FULL CSS
   - Hero layout split by ratios (normalized)
   - Navbar fixed while scrolling
   - Language toggle without page jump
   - Smooth scrolling
   - Collection layout: 10% | 20 | 20 | 20 | 20 | 10
   ========================================= */

:root{
  --fvb-bg: #ffffff;
  --fvb-black: #0f0f0f;
  --fvb-white: #ffffff;
  --fvb-text: rgba(0,0,0,0.88);
  --fvb-muted: rgba(0,0,0,0.62);
  --fvb-border: rgba(0,0,0,0.14);

  /* ========= HERO ratios (your numbers) ========= */
  --fvb-total: 105;
  --fvb-r-nav: 10;
  --fvb-r-top: 20;
  --fvb-r-shoe: 50;
  --fvb-r-cta: 10;
  --fvb-r-certs: 15;

  --fvb-h-nav:   calc(100vh * var(--fvb-r-nav) / var(--fvb-total));
  --fvb-h-top:   calc(100vh * var(--fvb-r-top) / var(--fvb-total));
  --fvb-h-shoe:  calc(100vh * var(--fvb-r-shoe) / var(--fvb-total));
  --fvb-h-cta:   calc(100vh * var(--fvb-r-cta) / var(--fvb-total));
  --fvb-h-certs: calc(100vh * var(--fvb-r-certs) / var(--fvb-total));

  /* Shoe size + position */
  --fvb-shoe-scale: 0.90;
  --fvb-shoe-y: 6vh;

  /* Certificates size controls */
  --fvb-cert-pad-y: 10px;
  --fvb-cert-pad-x: 12px;
  --fvb-cert-badge: 44px;

  /* Collection exact gutters */
  --fvb-collection-gutter: 10vw; /* 10% each side */
  --fvb-collection-gap: 16px;
}

/* Smooth scroll */
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body.fvb-page{
  margin: 0;
  background: var(--fvb-bg);
}

/* =========================================
   Language switch (NO teleport)
   Important: radios must be BEFORE .fvb-app in HTML
   ========================================= */

/* keep the radios out of document flow + avoid "scroll to input" */
.fvb-lang{
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* global i18n (works everywhere inside .fvb-app) */
.fvb-i18n{ display: none; }
#fvb-lang-da:checked ~ .fvb-app .fvb-i18n--da{ display: inline; }
#fvb-lang-da:checked ~ .fvb-app .fvb-i18n--en{ display: none; }
#fvb-lang-en:checked ~ .fvb-app .fvb-i18n--da{ display: none; }
#fvb-lang-en:checked ~ .fvb-app .fvb-i18n--en{ display: inline; }

/* =========================================
   HERO (full screen)
   ========================================= */

.fvb-hero{
  position: relative;
  height: 100vh;
  /* mobile-friendly viewport: use svh when supported */
  height: 100svh;
  overflow: hidden;
  background: var(--fvb-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* Background slider layer */
.fvb-hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--fvb-bg);
}

.fvb-hero__bgimg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 55%;
  opacity: 0;
  animation: fvbBgFade 12s infinite;
  transform: translateY(var(--fvb-shoe-y)) scale(var(--fvb-shoe-scale));
  filter: saturate(1.05) contrast(1.02);
}

.fvb-hero__bgimg--1{ animation-delay: 0s; }
.fvb-hero__bgimg--2{ animation-delay: 3s; }
.fvb-hero__bgimg--3{ animation-delay: 6s; }
.fvb-hero__bgimg--4{ animation-delay: 9s; }

@keyframes fvbBgFade{
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .fvb-hero__bgimg{ animation: none; opacity: 0; }
  .fvb-hero__bgimg--1{ opacity: 1; }
}

/* NAVBAR fixed */
.fvb-hero__nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--fvb-h-nav);
  background: var(--fvb-black);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  display: grid;
  align-items: center;
}

.fvb-hero__navinner{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fvb-hero__navlinks{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fvb-hero__link{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.fvb-hero__link:hover{ background: rgba(255,255,255,0.12); }

/* Flags */
.fvb-hero__lang{ display: inline-flex; gap: 10px; align-items: center; }
.fvb-hero__flag{
  width: 36px; height: 24px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
}
.fvb-hero__flag img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Selected flag indicator */
#fvb-lang-da:checked ~ .fvb-app .fvb-hero label[for="fvb-lang-da"],
#fvb-lang-en:checked ~ .fvb-app .fvb-hero label[for="fvb-lang-en"]{
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}

/* HERO content pushed under fixed navbar */
.fvb-hero__content{
  position: relative;
  z-index: 2;
  margin-top: var(--fvb-h-nav);
  height: calc(100vh - var(--fvb-h-nav));
  height: calc(100svh - var(--fvb-h-nav));
  padding: 0 16px;
  display: grid;
  align-items: stretch;
}

/* exact viewport split in hero */
.fvb-hero__stack{
  width: min(1100px, 100%);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-rows: var(--fvb-h-top) var(--fvb-h-shoe) var(--fvb-h-cta) var(--fvb-h-certs);
  gap: 0;
}

/* TOP (logo + subtitle) */
.fvb-hero__top{
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.fvb-hero__logo{
  width: min(380px, 86%);
  max-height: calc(var(--fvb-h-top) * 0.55);
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.fvb-hero__subtitle{
  margin: 0;
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fvb-muted);
  font-weight: 700;
  padding: 0 8px;
}

/* SHOE “stage” placeholder */
.fvb-hero__shoe-space{ height: 100%; }

/* CTA */
.fvb-hero__cta{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.fvb-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

/* keep your current button colors */
.fvb-btn--primary{
  color: #fff;
  background: rgb(69, 180, 69);
}
.fvb-btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

.fvb-btn--secondary{
  color: #0f0f0f;
  background: rgb(246, 239, 239);
}
.fvb-btn--secondary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.16);
}

/* CERTS (single row, scroll horizontally if needed) */
.fvb-hero__bottom{
  display: grid;
  align-items: center;
  overflow: hidden;
}

.fvb-certs{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 0 2px;
  -webkit-overflow-scrolling: touch;
}

.fvb-certs::-webkit-scrollbar{ height: 8px; }
.fvb-certs::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.18); border-radius: 999px; }
.fvb-certs::-webkit-scrollbar-track{ background: transparent; }

.fvb-cert{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--fvb-cert-pad-y) var(--fvb-cert-pad-x);
  border: 1px solid var(--fvb-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
}

.fvb-cert__badge{
  width: var(--fvb-cert-badge);
  height: var(--fvb-cert-badge);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fvb-black);
  background: #fff;
  border: 1px solid var(--fvb-border);
}

.fvb-cert__text{ display: grid; gap: 2px; text-align: left; }
.fvb-cert__title{ font-size: 13px; font-weight: 900; color: rgba(0,0,0,0.84); }
.fvb-cert__note{ font-size: 12px; color: var(--fvb-muted); }

/* anchor offset under fixed navbar */
#fvb-collection,
#fvb-bestsellers,
#fvb-women,
#fvb-men,
#fvb-certs{
  scroll-margin-top: calc(var(--fvb-h-nav) + 18px);
}

/* Mobile safety */
@media (max-width: 520px){
  .fvb-btn{ padding: 12px 14px; font-size: 12px; }
  .fvb-hero__link{ font-size: 12px; padding: 7px 9px; }
  :root{
    --fvb-cert-badge: 40px;
    --fvb-cert-pad-y: 8px;
    --fvb-cert-pad-x: 10px;
    --fvb-shoe-scale: 0.88;
  }
}

/* =========================================
   COLLECTION — exact 10% | 20 | 20 | 20 | 20 | 10
   How it works:
   - section has padding-inline: 10vw  -> left/right 10%
   - grid lives inside remaining 80vw
   - 4 equal columns -> each is ~20vw (minus small gap)
   ========================================= */

.fvb-collection{
  background: var(--fvb-bg);
  padding-top: calc(var(--fvb-h-nav) + 28px);
  padding-bottom: 70px;

  padding-left: var(--fvb-collection-gutter);
  padding-right: var(--fvb-collection-gutter);

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.fvb-collection__inner{
  width: 100%;
}

.fvb-collection__title{
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--fvb-text);
}

.fvb-collection__group{
  margin-top: 28px;
}

.fvb-collection__subtitle{
  margin: 0 0 14px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 900;
  letter-spacing: 0.01em;
  color: rgba(0,0,0,0.82);
}

.fvb-collection__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--fvb-collection-gap);
}

/* Cards */
.fvb-card{
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--fvb-border);
  border-radius: 16px;
  background: var(--fvb-bg);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.fvb-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

.fvb-card__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
}

.fvb-card__price{
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.88);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.fvb-card__rating{
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.86);
  font-weight: 900;
  font-size: 12px;
}

.fvb-card__star{ font-size: 13px; line-height: 1; }
.fvb-card__reviews{ font-weight: 800; color: rgba(0,0,0,0.65); }

/* Responsive */
@media (max-width: 980px){
  .fvb-collection{
    padding-left: 16px;
    padding-right: 16px;
  }
  .fvb-collection__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  .fvb-collection__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Sustainability section (FVB namespaced)
   Uses same 10% side gutters as Collection
   ========================================= */

#fvb-sustainability{
  scroll-margin-top: calc(var(--fvb-h-nav) + 18px);
}

.fvb-sus{
  background: var(--fvb-bg);
  padding-top: calc(var(--fvb-h-nav) + 28px);
  padding-bottom: 70px;
  padding-left: var(--fvb-collection-gutter);
  padding-right: var(--fvb-collection-gutter);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.fvb-sus__inner{
  width: 100%;
}

.fvb-sus__title{
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--fvb-text);
}

.fvb-sus__lead{
  margin: 0 auto 22px;
  max-width: 86ch;
  text-align: center;
  color: var(--fvb-muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
}

/* Highlight cards */
.fvb-sus__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.fvb-sus__card{
  border: 1px solid var(--fvb-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  padding: 16px 16px 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
}

.fvb-sus__icon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--fvb-black);
  background: rgba(0,0,0,0.04);
  margin-bottom: 10px;
}

.fvb-sus__cardtitle{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: rgba(0,0,0,0.84);
}

.fvb-sus__text{
  margin: 0;
  color: var(--fvb-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Proof strip */
.fvb-sus__proof{
  margin-top: 18px;
  border: 1px solid var(--fvb-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fvb-sus__proofitem{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
}

.fvb-sus__proofk{
  font-weight: 900;
  font-size: 18px;
  color: rgba(0,0,0,0.86);
}

.fvb-sus__proofv{
  font-size: 13px;
  color: var(--fvb-muted);
  line-height: 1.4;
}

/* Details */
.fvb-sus__details{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.fvb-sus__detail{
  border: 1px solid var(--fvb-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 36px rgba(0,0,0,0.05);
  overflow: hidden;
}

.fvb-sus__summary{
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 900;
  color: rgba(0,0,0,0.84);
}

.fvb-sus__summary::-webkit-details-marker{ display: none; }

.fvb-sus__detailbody{
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 14px 16px 16px;
}

/* Responsive */
@media (max-width: 980px){
  .fvb-sus{
    padding-left: 16px;
    padding-right: 16px;
  }
  .fvb-sus__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fvb-sus__proof{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .fvb-sus__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Footer (matches navbar vibe)
   ========================================= */

.fvb-footer{
  background: var(--fvb-black);
  color: rgba(255,255,255,0.90);
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 56px 0 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* same 10% side gutters as your Collection/Sustainability */
.fvb-footer__inner{
  padding-left: var(--fvb-collection-gutter);
  padding-right: var(--fvb-collection-gutter);
}

.fvb-footer__top{
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: 26px;
  align-items: start;
}

.fvb-footer__brand{ max-width: 62ch; }

.fvb-footer__logo{
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.1;
}

.fvb-footer__tagline{
  margin: 10px 0 10px;
  color: rgba(255,255,255,0.70);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.fvb-footer__note{
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.7;
}

/* footer columns */
.fvb-footer__cols{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.fvb-footer__heading{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-bottom: 10px;
}

.fvb-footer__link{
  display: inline-flex;
  padding: 7px 0;
  text-decoration: none;
  color: rgba(255,255,255,0.66);
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
}

.fvb-footer__link:hover{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* bottom bar */
.fvb-footer__bottom{
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.fvb-footer__copy{
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 700;
}

/* tiny “brand marks” */
.fvb-footer__mini{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fvb-footer__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.32);
}

/* Responsive */
@media (max-width: 980px){
  .fvb-footer__inner{
    padding-left: 16px;
    padding-right: 16px;
  }
  .fvb-footer__top{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .fvb-footer__cols{
    grid-template-columns: 1fr;
  }
}

#fvb-sustainability{
  scroll-margin-top: -5px;
}

#fvb-collection{
  scroll-margin-top: -5px;
}


/* Make shoes sit more to the LEFT inside the square */
.fvb-card__img{
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* this is the important part */
  object-position: left center;

  /* optional: reduce left padding so it actually reaches the left more */
  padding: 18px 18px 18px 8px;

  display: block;
}
