/* ============================================================
   Datamars Livestock – Active Tag
   Rebuilt responsive demo (English)
   Plain CSS, fluid + responsive, original design preserved
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Frutiger Next Pro';
  src: url('../fonts/frutigernextpro-regular.woff2') format('woff2'),
       url('../fonts/frutigernextpro-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Frutiger Next Pro';
  src: url('../fonts/frutigernextpro-medium.woff2') format('woff2'),
       url('../fonts/frutigernextpro-medium.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --blue:        #2C3A90;
  --blue-deep:   #101116;
  --yellow:      #F9E300;
  --yellow-soft: #FFF481;
  --blue-pale:   #EBF2FC;
  --ink:         #101116;
  --grey:        #101116;
  --grey-soft:   #101116;
  --white:       #ffffff;

  --maxw: 1300px;
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 14px;

  --ease: cubic-bezier(.22,.61,.36,1);

  --font: 'Frutiger Next Pro', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: clamp(1.02rem, 1.1vw, 1.15rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: none; }
strong, .medium { font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(46px, 6vw, 84px); }

/* Fluid type scale */
.eyebrow {
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
}
.h-display {
  font-weight: 600;
  color: var(--blue);
  line-height: 1.06;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: -.015em;
}
.h-section {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -.015em;
}
.h-blue {
  font-weight: 600;
  color: var(--blue);
  line-height: 1.1;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--ink);
}
.muted { color: var(--grey); }
.center { text-align: center; }
.measure { max-width: 56ch; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .6em;
  height: 60px;
  padding-inline: 2em;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  border: 0;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn > * { display: inline-flex; align-items: center; line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--blue-deep); box-shadow: 0 8px 22px rgba(249,227,0,.35); }
.btn--yellow:hover { box-shadow: 0 12px 28px rgba(249,227,0,.45); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(44,58,144,.28); }
.btn--blue:hover { box-shadow: 0 12px 28px rgba(44,58,144,.4); }
.btn--dark { background: var(--blue-deep); color: #fff; box-shadow: 0 8px 22px rgba(16,17,22,.25); }
.btn--dark:hover { box-shadow: 0 12px 28px rgba(16,17,22,.35); }
.btn .ico { width: 14px; height: 15px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(16,17,22,.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
}
.brand img { height: clamp(30px, 4vw, 40px); width: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 60px;
  background: #fff;
  border: 1px solid rgba(16,17,22,.12);
  border-radius: 999px;
  padding: 0 16px;
}
.lang__btn .flag { width: 30px; height: 21px; border-radius: 3px; object-fit: cover; }
.lang__btn .caret { width: 16px; transition: transform .25s var(--ease); }
.lang[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(16,17,22,.1);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16,17,22,.14);
  padding: 6px;
  min-width: 180px;
  display: none;
  max-height: 320px;
  overflow: auto;
}
.lang[aria-expanded="true"] .lang__menu { display: block; }
.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: .95rem;
  text-align: left;
  color: var(--ink);
}
.lang__item:hover { background: var(--blue-pale); }
.lang__item .flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; }
.lang__item[aria-current="true"] { font-weight: 600; color: var(--blue); }

/* language: coming-soon items */
.lang__item--soon { opacity: .55; cursor: default; }
.lang__item--soon:hover { background: none; }
.lang__item .soon {
  margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 600;
  color: #6c6f7a; background: rgba(16,17,22,.06);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}


/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(28px, 5vw, 56px); }
/* full-width yellow pill block; product floats over its right side */
.hero__grid {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  border-radius: 999px;
  padding: clamp(40px, 5vw, 72px) clamp(44px, 6vw, 104px);
  min-height: clamp(320px, 30vw, 430px);
  margin-top: clamp(16px, 3vw, 40px);
}
.hero__text {
  position: relative;
  z-index: 2;
  width: min(54%, 540px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 30px;   /* clear the rounded left edge on smaller desktops */
}
.hero__eyebrow { width: clamp(180px, 22vw, 264px); height: auto; margin-bottom: 4px; }
.hero__title { overflow-wrap: break-word; hyphens: none; }
.hero__sub { color: var(--blue); font-weight: 400; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.hero__product {
  position: absolute;
  top: 50%;
  right: clamp(-52px, -3vw, -16px);
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 560px);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 30px 54px rgba(16,17,22,.30));
  z-index: 3;
}
/* NL hero product (collar only) 10% smaller */
html[data-lang="nl"] .hero__product { width: clamp(252px, 36vw, 504px); }
/* German hero title has a long compound word — cap smaller so it stays on 2 lines */
html[data-lang="de"] .hero__title { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }

.hero__statement {
  text-align: center;
  max-width: 740px;
  margin: clamp(48px, 7vw, 90px) auto 0;
}
.hero__statement .big {
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  color: var(--ink);
}
.hero__statement .small {
  margin-top: 18px;
  color: var(--grey);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  white-space: pre-line;
}

/* ============================================================
   GENERIC SPLIT (text + media)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.split--reverse .split__media { order: 2; }
.split__text { display: flex; flex-direction: column; gap: 18px; }
.split__text p { color: var(--grey); max-width: 46ch; }
.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blue-pale);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card--pad { padding: clamp(24px, 4vw, 56px); display: grid; place-items: center; }
.media-card--pad img { width: min(78%, 360px); }

/* ============================================================
   GAME / phones section
   ============================================================ */
/* Two phone screenshots masked inside a wide yellow band
   (only a horizontal slice of each phone is visible). */
.phone-band {
  max-width: 1040px;
  margin: clamp(30px, 4vw, 52px) auto 0;
}
.phone-band__inner {
  position: relative;
  background: linear-gradient(120deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(24px, 6vw, 90px);
}
.phone-band .phone {
  height: 168%;
  width: auto;
  align-self: center;
  filter: drop-shadow(0 24px 40px rgba(16,17,22,.22));
}
.phone-band .phone--top    { align-self: flex-start; }   /* shows top of the app   */
.phone-band .phone--bottom { align-self: flex-end;   }   /* shows bottom of the app */

/* ============================================================
   FEATURE TABS
   ============================================================ */
.tabs__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin: clamp(28px, 4vw, 48px) auto clamp(10px, 3vw, 30px);
  max-width: 920px;
  --progress: 0%;
}
/* grey track: spans only from the first node centre (12.5%) to the last (87.5%) */
.tabs__nav::before {
  content: "";
  position: absolute;
  left: 12.5%; right: 12.5%;
  bottom: 7px; height: 2px;
  background: rgba(16,17,22,.14);
}
/* blue fill: from the first node up to the active node */
.tabs__nav::after {
  content: "";
  position: absolute;
  left: 12.5%;
  bottom: 7px; height: 2px;
  width: calc(var(--progress));
  max-width: 75%;
  background: var(--blue);
  transition: width .35s var(--ease);
}
.tab {
  background: none;
  border: 0;
  padding: 0 4px 28px;
  position: relative;
  color: var(--grey-soft);
  font-weight: 600;
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  transition: color .25s var(--ease);
}
.tab__label { display: block; margin-bottom: 18px; }
.tab::after { /* node */
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 16px; height: 16px;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid rgba(16,17,22,.18);
  border-radius: 50%;
  transition: all .25s var(--ease);
}
.tab[aria-selected="true"] { color: var(--blue); }
.tab[aria-selected="true"]::after {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(44,58,144,.14);
}
.tabs__panels { margin-top: clamp(18px, 3vw, 32px); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* media-card--cover: image fills the whole card */
.media-card--cover {
  background: var(--blue-pale);
  aspect-ratio: 4 / 3;
}
.media-card--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   VIDEO
   ============================================================ */
.video-embed {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px rgba(16,17,22,.18);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   PRODUCTS (ear tag / neck collar)
   ============================================================ */
/* three products presented as one cohesive set: equal rhythm */
.products .product-row + .product-row { margin-top: clamp(28px, 4vw, 56px); }
.product-row .split__text { gap: 14px; }
.product-title { margin-bottom: 2px; }

.product-media {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  /* aspect-ratio is set inline per product to match the image (no cropping) */
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* gateway: taller mask, image bottom-aligned so the antenna gets headroom
   (the panel colour matches the card background, so no seam) */
.product-media--gw img { object-position: center bottom; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  margin-top: clamp(40px, 6vw, 80px);
  background: linear-gradient(120deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  border-radius: var(--radius-md);
  padding: clamp(26px, 4vw, 44px) clamp(26px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner__text {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  color: var(--ink);
  line-height: 1.15;
  max-width: 32ch;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 560px;
}
.testimonial__body {
  padding: clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 3vw, 40px);
}
.testimonial__quote {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.5;
}
.testimonial__who {
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.2;
}
.testimonial__media { position: relative; min-height: 360px; }
.testimonial__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.testimonial__media .btn { position: absolute; right: 20px; bottom: 20px; }

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.ecosystem .split__text p { color: var(--grey); max-width: 48ch; }
.ecosystem .media-card { background: transparent; overflow: visible; aspect-ratio: auto; }
.ecosystem .media-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.contact__title { color: var(--blue); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact__embed {
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.contact__embed iframe { display: block; width: 100%; min-height: 700px; border: 0; background: var(--blue-pale); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form input, .form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(16,17,22,.18);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,58,144,.14);
}
.form textarea { min-height: 110px; resize: vertical; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--grey); }
.form__consent a { color: #2f80ed; text-decoration: underline; }
.form__actions { display: flex; justify-content: flex-end; }
.req { color: #e03; }

.site-footer {
  text-align: center;
  padding-block: clamp(48px, 7vw, 90px) 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.site-footer img.logo { height: clamp(54px, 7vw, 78px); width: auto; }
.site-footer a.url { color: var(--ink); font-weight: 600; }
.socials { display: flex; gap: 22px; }
.socials a { transition: transform .2s var(--ease); }
.socials a:hover { transform: translateY(-3px); }
.socials img { width: 30px; height: 30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid {
    flex-direction: column-reverse;
    align-items: stretch;
    border-radius: 44px;
    padding: clamp(28px, 6vw, 44px);
    min-height: auto;
    text-align: left;
  }
  .hero__text { width: 100%; padding-left: 0; }
  .hero__product {
    position: static;
    transform: none;
    width: min(66%, 300px);
    margin: 0 auto clamp(6px, 2vw, 16px);
    display: block;
  }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__text p { max-width: none; }

  /* products: consistent order on mobile — name, description, then image */
  .products .split__text { order: 1; }
  .products .split__media { order: 2; }

  .testimonial { grid-template-columns: 1fr; }
  .testimonial__media { min-height: 320px; order: -1; }

  .contact { grid-template-columns: 1fr; }

  .phone-band__inner { aspect-ratio: 3 / 2; }
}

@media (max-width: 620px) {
  .tabs__nav { grid-template-columns: repeat(2, 1fr); gap: 18px 0; max-width: 420px; }
  /* remove the progress track/fill on mobile — keep only the 4 selectors */
  .tabs__nav::before, .tabs__nav::after { display: none; }
  .tab::before { display: none; }
  .tab { padding-bottom: 22px; }
  .tab::after { display: none; }
  .tab__label { margin-bottom: 0; }
  .tab[aria-selected="true"] .tab__label {
    border-bottom: 3px solid var(--blue); padding-bottom: 6px;
  }

  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-banner__text { max-width: none; }

  /* keep the full "Get in touch" button (no collapsed circle) */
  .site-header__inner { gap: 10px; }
  .brand img { height: 30px; }
  .header-actions { gap: 10px; }
  .header-actions .btn--yellow { padding-inline: 1.1em; font-size: .95rem; }
  .lang__btn { padding: 0 12px; }
  .hero__statement .small { white-space: normal; }

  /* single, fully-visible phone on small screens */
  .phone-band__inner {
    aspect-ratio: auto;
    padding: clamp(26px, 8vw, 44px);
    overflow: visible;
  }
  .phone-band .phone--bottom { display: none; }
  .phone-band .phone--top {
    height: auto;
    width: min(72%, 300px);
    align-self: center;
  }
}

/* ============================================================
   SCROLL ANIMATIONS + PARALLAX
   (classes are added by JS only when motion is allowed, so the
   page stays fully visible without JS / with reduced motion)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* staggered children (e.g. text blocks, product rows) */
.reveal-group > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  will-change: opacity, transform;
}
.reveal-group.in > * { opacity: 1; transform: none; }

/* parallax: contained images get a slight scale so movement
   never exposes the edges of their (overflow-hidden) cards */
.parallax { transform: translate3d(0, var(--py, 0), 0) scale(1.08); will-change: transform; }
.parallax-float { transform: translate3d(0, var(--py, 0), 0); will-change: transform; }

.site-header { transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(16,17,22,.08); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; }
  .parallax, .parallax-float { transform: none !important; }
}

/* ============================================================
   CASE STUDIES (IT / NL customer stories)
   ============================================================ */
.case-studies { }
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.case-study + .case-study { margin-top: clamp(40px, 6vw, 84px); }
.case-study--reverse .case-study__media { order: 2; }
.case-study__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--blue-pale);
}
.case-study__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.case-study__media .btn {
  position: absolute;
  left: 50%; bottom: clamp(18px, 4vw, 34px);
  transform: translateX(-50%);
  box-shadow: 0 10px 26px rgba(16,17,22,.28);
}
.case-study__text { display: flex; flex-direction: column; gap: 14px; }
.case-study__loc { color: var(--blue); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.case-study__text p { color: var(--grey); }

@media (max-width: 980px) {
  .case-study { grid-template-columns: 1fr; }
  .case-study--reverse .case-study__media { order: 0; }
  .case-study__media { order: -1; }
}
