/* NduwsFamily site layer — composes on DS tokens (colors/typography/spacing) */

:root {
  --container-max: 1296px;
  --gutter: clamp(18px, 4vw, 64px);
  --section-space: clamp(72px, 10vw, 150px);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --fs-accent: clamp(40px, 5.4vw, 72px);
  --fs-h1: clamp(34px, 4.4vw, 60px);
  --fs-h2: clamp(27px, 3.2vw, 42px);
  --fs-h3: clamp(20px, 2.25vw, 28px);
  --fs-h4: clamp(18px, 1.8vw, 22px);
  --fs-body-lg: clamp(17px, 1.3vw, 20px);
  --fs-body: clamp(15px, 1.1vw, 17px);
  --fs-small: clamp(13px, 0.9vw, 14px);

  --shadow-card: 0 6px 24px rgba(0, 59, 99, 0.10);
  --shadow-float: 0 18px 48px rgba(0, 59, 99, 0.18);
  --header-h: 76px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-size: var(--fs-body);
  overflow-x: clip;
}

a { color: var(--link-color); }
a:hover { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 300;
  background: var(--color-primary); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius-pill);
  text-decoration: none; transition: top 160ms ease-out;
}
.skip-link:focus-visible { top: 14px; color: #fff; }

.nf-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nf-section { padding-block: var(--section-space); position: relative; }
.nf-section--tight { padding-block: calc(var(--section-space) * 0.55); }
.nf-section--white { background: var(--color-white); }
.nf-section--tint { background: var(--surface-tint); }
.nf-section--dark { background: var(--surface-dark); color: var(--text-on-dark); }

.nf-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-primary);
}
.nf-kicker::before {
  content: ""; width: 26px; height: 4px; border-radius: 2px;
  background: var(--color-accent);
}
.nf-section--dark .nf-kicker { color: var(--color-secondary); }
.nf-kicker--eco { color: var(--color-sustainability); }
.nf-kicker--eco::before { background: var(--color-sustainability); }

.nf-h1, .nf-h2, .nf-h3 { font-weight: 900; line-height: 1.06; margin: 0; color: var(--color-primary-dark); text-wrap: balance; }
.nf-h1 { font-size: var(--fs-h1); }
.nf-h2 { font-size: var(--fs-h2); }
.nf-h3 { font-size: var(--fs-h3); }
.nf-section--dark .nf-h2, .nf-section--dark .nf-h3 { color: #fff; }
.nf-accent-word { color: var(--color-primary); }
.nf-section--dark .nf-accent-word { color: var(--color-secondary); }

.nf-lead { font-size: var(--fs-body-lg); line-height: 1.6; color: var(--text-muted); max-width: 62ch; text-wrap: pretty; }
.nf-section--dark .nf-lead { color: var(--text-on-dark-muted); }

/* ---------- Header ---------- */
.nf-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nf-header__row {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.nf-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.nf-header__logo img { height: 54px; width: auto; display: block; }
.nf-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nf-navitem { position: relative; }
.nf-navlink {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; color: var(--color-primary-dark);
  text-decoration: none; background: transparent; border: 0;
  font-family: inherit; cursor: pointer; position: relative;
}
.nf-navlink::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px;
  height: 3px; border-radius: 2px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 180ms ease-out;
}
.nf-navlink:hover { color: var(--color-primary); text-decoration: none; }
.nf-navlink:hover::after, .nf-navlink[aria-current="page"]::after,
.nf-navitem.is-open > .nf-navlink::after { transform: scaleX(1); }
.nf-navlink svg { transition: transform 160ms ease-out; }
.nf-navitem.is-open > .nf-navlink svg { transform: rotate(180deg); }

.nf-dd {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--color-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-float); border: 1px solid var(--border-subtle);
  padding: 10px; display: none; flex-direction: column; gap: 2px;
}
.nf-dd::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 7px;
}
.nf-navitem.is-open .nf-dd { display: flex; }
.nf-dd a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 700; color: var(--color-primary-dark);
  text-decoration: none;
}
.nf-dd a:hover { background: var(--surface-tint); color: var(--color-primary); text-decoration: none; }
.nf-dd__sep { height: 1px; background: var(--border-subtle); margin: 6px 8px; }

.nf-header__actions { display: flex; align-items: center; gap: 12px; }
.nf-lang {
  display: inline-flex; border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill); overflow: hidden;
}
.nf-lang button {
  border: 0; background: transparent; font-family: inherit;
  font-weight: 700; font-size: 13px; padding: 7px 13px; cursor: pointer;
  color: var(--color-primary); min-width: 44px;
}
.nf-lang button[aria-pressed="true"] { background: var(--color-primary); color: #fff; }

.nf-burger {
  display: none; border: 0; background: transparent; cursor: pointer;
  padding: 10px; border-radius: var(--radius-sm); color: var(--color-primary);
}

/* Mobile nav */
@media (max-width: 1080px) {
  .nf-nav {
    display: none; position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--color-white); border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-float);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
  }
  .nf-header.is-menu-open .nf-nav { display: flex; }
  .nf-burger { display: inline-flex; }
  .nf-navitem { width: 100%; }
  .nf-navlink { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 17px; }
  .nf-navlink::after { display: none; }
  .nf-dd {
    position: static; box-shadow: none; border: 0;
    background: var(--surface-tint); border-radius: var(--radius-md);
    margin: 2px 0 8px;
  }
  .nf-header__cta { display: none; }
}

/* ---------- Hero slider ---------- */
.nf-hero { position: relative; overflow: clip; background: linear-gradient(165deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%); }
.nf-hero__viewport { position: relative; min-height: min(88vh, 780px); }
.nf-hero__slide {
  position: absolute; inset: 0; display: grid; align-content: center;
  visibility: hidden;
}
.nf-hero__slide.is-active { visibility: visible; }
.nf-hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-block: clamp(48px, 7vw, 90px) clamp(90px, 10vw, 130px);
}
.nf-hero__title { font-size: var(--fs-accent); line-height: 1.02; font-weight: 900; margin: 0; color: var(--color-primary-dark); }
.nf-hero__visual { position: relative; display: grid; place-items: center; }
.nf-hero__product { width: min(100%, 480px); filter: drop-shadow(0 30px 44px rgba(0, 59, 99, 0.28)); }
.nf-hero__blob {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.15) 70%);
  z-index: 0;
}
.nf-hero__visual > * { position: relative; z-index: 1; }
.nf-hero__controls {
  position: absolute; bottom: clamp(56px, 7vw, 84px); left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.nf-hero__dots { display: flex; gap: 10px; pointer-events: auto; }
.nf-hero__dot {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.nf-hero__dot span {
  display: block; width: 34px; height: 6px; border-radius: 3px;
  background: rgba(0, 59, 99, 0.25); overflow: hidden; position: relative;
}
.nf-hero__dot span i {
  position: absolute; inset: 0; border-radius: 3px; background: var(--color-primary-dark);
  transform: scaleX(0); transform-origin: left; display: block;
}
.nf-hero__arrows { display: flex; gap: 10px; pointer-events: auto; }
.nf-arrowbtn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--color-primary-dark);
  background: rgba(255,255,255,0.65); color: var(--color-primary-dark);
  display: grid; place-items: center; cursor: pointer;
  transition: background 140ms ease-out;
}
.nf-arrowbtn:hover { background: #fff; }

@media (max-width: 860px) {
  .nf-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .nf-hero__visual { order: -1; }
  .nf-hero__product { width: min(62vw, 340px); }
  .nf-hero__ctas, .nf-hero__badges { justify-content: center; }
}

/* ---------- Marquee / promise strip ---------- */
.nf-marquee { overflow: clip; white-space: nowrap; }
.nf-marquee__track { display: inline-flex; gap: clamp(28px, 4vw, 64px); align-items: center; will-change: transform; }
.nf-marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 900; font-size: clamp(18px, 2vw, 26px); color: var(--color-primary-dark);
}
.nf-marquee__item svg { color: var(--color-primary); flex: 0 0 auto; }
.nf-marquee__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); }

/* ---------- Product scroller ---------- */
.nf-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 24vw, 300px);
  gap: 20px; overflow-x: auto; padding: 8px var(--gutter) 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}
.nf-scroller > * { scroll-snap-align: start; }

.nf-pack-ph {
  background: var(--surface-tint); border-radius: var(--radius-md);
  aspect-ratio: 1; display: grid; place-items: center; align-content: center;
  gap: 8px; text-align: center; padding: 16px;
  border: 2px dashed var(--border-strong);
}
.nf-pack-ph svg { color: var(--color-primary); opacity: 0.75; }
.nf-pack-ph strong { font-size: 26px; font-weight: 900; color: var(--color-primary-dark); }
.nf-pack-ph small { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Cards / grids ---------- */
.nf-grid { display: grid; gap: 20px; }
.nf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nf-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .nf-grid--4 { grid-template-columns: repeat(2, 1fr); } .nf-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .nf-grid--2, .nf-grid--3, .nf-grid--4 { grid-template-columns: 1fr; } }

.nf-card {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: clamp(20px, 2.4vw, 30px);
}
.nf-section--dark .nf-card { background: rgba(255,255,255,0.07); box-shadow: none; color: #fff; }

.nf-icon-disc {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-tint); color: var(--color-primary);
  display: grid; place-items: center; flex: 0 0 auto;
}
.nf-icon-disc--eco { background: var(--color-sustainability-soft); color: var(--color-sustainability); }
.nf-icon-disc--accent { background: var(--color-accent-soft); color: var(--color-primary-dark); }
.nf-section--dark .nf-icon-disc { background: rgba(255,255,255,0.12); color: var(--color-secondary); }

/* ---------- Process (pinned steps) ---------- */
.nf-process { counter-reset: step; }
.nf-process__step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius-md);
}
.nf-process__step.is-active { background: rgba(255,255,255,0.10); }
.nf-process__num {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 900; font-size: 19px;
  background: rgba(255,255,255,0.14); color: var(--color-secondary);
}
.nf-process__step.is-active .nf-process__num { background: var(--color-accent); color: var(--color-primary-dark); }

/* ---------- FAQ ---------- */
.nf-faq details {
  background: var(--color-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: clip;
}
.nf-faq details + details { margin-top: 12px; }
.nf-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: var(--fs-h4);
  color: var(--color-primary-dark); min-height: 44px;
}
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary svg { flex: 0 0 auto; color: var(--color-primary); transition: transform 180ms ease-out; }
.nf-faq details[open] summary svg { transform: rotate(45deg); }
.nf-faq .nf-faq__body { padding: 0 22px 20px; line-height: 1.6; color: var(--text-muted); max-width: 72ch; }

/* ---------- Photo slots ---------- */
.nf-slot { position: relative; border-radius: var(--radius-md); overflow: clip; background: var(--surface-tint); }
.nf-slot__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-slot__chip {
  position: absolute; top: 12px; right: 12px; z-index: 5; pointer-events: none;
  background: rgba(0, 59, 99, 0.82); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ---------- Footer ---------- */
.nf-footer { background: var(--surface-dark); color: var(--text-on-dark); }
.nf-footer a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; }
.nf-footer a:hover { color: #fff; text-decoration: underline; }
.nf-footer__top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(24px, 3vw, 44px); padding-block: clamp(48px, 6vw, 80px) 40px;
}
.nf-footer__col strong { display: block; font-size: 15px; margin-bottom: 14px; color: var(--color-secondary); }
.nf-footer__col nav { display: flex; flex-direction: column; gap: 10px; }
.nf-footer__news { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.nf-footer__news input {
  flex: 1; min-width: 180px; border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: #fff; padding: 11px 18px; font-family: inherit; font-size: 14.5px;
}
.nf-footer__news input::placeholder { color: rgba(255,255,255,0.55); }
.nf-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-on-dark-muted);
}
@media (max-width: 1024px) { .nf-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nf-footer__top { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.nf-flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.nf-center { text-align: center; }
.nf-mt-lg { margin-top: clamp(28px, 4vw, 48px); }
.nf-mt-md { margin-top: 20px; }
.nf-maxw { max-width: 780px; margin-inline: auto; }

.nf-eyebrow-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent-soft); color: var(--color-primary-dark);
  font-size: 12.5px; font-weight: 700; border-radius: var(--radius-pill);
  padding: 6px 14px;
}

@media (max-height: 640px) {
  .nf-hero__grid { padding-bottom: 170px; }
  .nf-hero__controls { bottom: 44px; }
}

/* Leaflet map frame */
.nf-map {
  border-radius: var(--radius-lg); overflow: clip; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle); position: relative; z-index: 0;
}
.nf-map .leaflet-container { font-family: inherit; }

@media (max-width: 500px) {
  :root { --header-h: 64px; }
  .nf-header__logo img { height: 44px; }
  .nf-scroller { grid-auto-columns: 82vw; }
}
