/* =========================================================
   Palette: main blue rgb(13,78,146) + its tints (main blue
   mixed with white) + white. No other colours are used.
   ========================================================= */
:root {
  --blue: rgb(13, 78, 146);       /* main / "deep" blue            */
  --blue-600: rgb(66, 117, 170);  /* 78% blue — secondary text     */
  --blue-400: rgb(98, 140, 184);  /* 65% blue                      */
  --blue-300: rgb(158, 184, 211); /* 40% blue                      */
  --blue-200: rgb(207, 220, 233); /* 20% blue                      */
  --blue-100: rgb(231, 237, 244); /* 10% blue                      */
  --blue-50:  rgb(243, 246, 250); /*  5% blue                      */
  --white: rgb(255, 255, 255);

  --text: var(--blue);
  --muted: var(--blue-600);
  --radius: 16px;
  --shadow: 0 8px 28px rgba(13, 78, 146, 0.08);
  --shadow-hover: 0 16px 40px rgba(13, 78, 146, 0.16);
  --nav-h: 60px; /* updated from JS with the real nav height */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nav (sticky, shadow once scrolled) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 rgba(13, 78, 146, 0);
  transition: box-shadow .25s ease;
}
.nav.is-scrolled { box-shadow: 0 4px 18px rgba(13, 78, 146, 0.28); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}
.nav__brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.nav__links a:hover { opacity: 1; border-color: var(--white); }

.lang {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  overflow: hidden;
}
.lang__btn {
  background: transparent;
  color: var(--white);
  border: 0;
  padding: 5px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang__btn.is-active { background: var(--white); color: var(--blue); }

/* ---------- Wave dividers ---------- */
.wave {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: -2px; /* overlap the next section to hide sub-pixel seams */
  line-height: 0;
  /* bottom strip in the next section's colour so a fractional-pixel row never shows */
  background: linear-gradient(to bottom, var(--wave-bg) 95%, var(--wave-front) 95%);
}
.wave svg {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  overflow: visible; /* front wave extends slightly below to cover anti-aliased edge */
}
.wave--flip svg { transform: scaleX(-1); }
.wave__back  { fill: var(--wave-back); }
.wave__front { fill: var(--wave-front); }

.wave--hero-about         { --wave-bg: var(--blue-100); --wave-back: var(--blue-200); --wave-front: var(--white); }
.wave--about-stats        { --wave-bg: var(--white);    --wave-back: var(--blue-200); --wave-front: var(--blue); }
.wave--stats-products     { --wave-bg: var(--blue);     --wave-back: var(--blue-300); --wave-front: var(--blue-50); }
.wave--products-partners  { --wave-bg: var(--blue-50);  --wave-back: var(--blue-200); --wave-front: var(--blue); }
.wave--partners-contacts  { --wave-bg: var(--blue);     --wave-back: var(--blue-300); --wave-front: var(--white); }
.wave--contacts-footer    { --wave-bg: var(--white);    --wave-back: var(--blue-200); --wave-front: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 45%, var(--blue-100) 100%);
  padding: 72px 0 40px;
  text-align: center;
}
/* oversized logo watermark at ~5% opacity */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: url("assets/logo-vertical.png") center / min(1600px, 180%) auto no-repeat;
  opacity: 0.05;
  mix-blend-mode: multiply; /* logo PNG has a white background — let it disappear */
  pointer-events: none;
}
.hero__inner {
  position: relative; /* paints above the watermark; no z-index so the logo can blend with the gradient */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: min(520px, 90%);
  height: auto;
  mix-blend-mode: multiply; /* hide the logo's white box on the gradient */
}
.hero__tagline {
  margin: 28px 0 0;
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--blue);
  font-weight: 500;
  max-width: 640px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 78, 146, 0.22); }
.btn--solid { background: var(--blue); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { background: var(--blue-50); }
.btn:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section__title {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.6vw, 36px);
  color: var(--blue);
  line-height: 1.2;
}
/* short deep-blue underline */
.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--blue);
}
.section__title--center { text-align: center; }
.section__title--center::after { margin-left: auto; margin-right: auto; }

.section__lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- About ---------- */
.about { background: var(--white); padding-bottom: 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}
.about__text p { margin: 0 0 14px; color: var(--muted); }
.about__media { margin: 0; }
.about__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--blue);
  color: var(--white);
  padding: 28px 0 36px;
}
.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats__item {
  text-align: center;
  padding: 8px 16px;
}
.stats__item + .stats__item { border-left: 1px solid rgba(255, 255, 255, 0.25); }
.stats__num {
  display: block;
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.stats__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
}

/* ---------- Products ---------- */
.products { background: var(--blue-50); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-300);
}

.card--main {
  grid-column: 1 / -1;
  flex-direction: row;
}
.card--main .card__media {
  flex: 1 1 52%;
  background: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Sofeel source image has a thin dark strip on the top edge — crop it */
.card--main .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transform-origin: center 60%;
}
.card--main .card__body { flex: 1 1 48%; padding: 36px; justify-content: center; }

.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__brand {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-400);
}
.card__title { margin: 4px 0 8px; color: var(--blue); font-size: 19px; line-height: 1.3; }
.card--main .card__title { font-size: clamp(30px, 4vw, 42px); letter-spacing: 0.03em; }
.card__type { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.card__desc { margin: 0; color: var(--muted); font-size: 15px; }
.card__volume {
  margin: 20px 0 0;
  align-self: flex-start;
  background: var(--blue-100);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 999px;
}

/* "Coming soon" cards: dashed border, lighter look */
.card--soon {
  border: 2px dashed var(--blue-300);
  box-shadow: none;
}
.card--soon:hover { border-color: var(--blue-400); box-shadow: var(--shadow); }
.card__media--soon {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  border-bottom: 2px dashed var(--blue-200);
}
.card__media--soon svg { width: 34%; height: auto; fill: var(--blue-300); }
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Distributors (deep blue) ---------- */
.partners { background: var(--blue); color: var(--white); }
.partners .section__title { color: var(--white); }
.partners .section__title::after { background: var(--blue-300); } /* deep blue would vanish on deep blue */
.partners__inner { max-width: 960px; }
.partners__intro {
  text-align: center;
  font-size: 18px;
  max-width: 760px;
  margin: 0 auto 40px;
  opacity: 0.92;
}
.partners__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.partners__list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color .25s ease, transform .25s ease;
}
.partners__list li:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }
.partners__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.partners__list span { padding-top: 2px; }
.partners__cta { text-align: center; margin: 40px 0 0; font-size: 17px; font-weight: 600; }
.partners__cta a { color: var(--white); text-underline-offset: 4px; }

/* ---------- Contacts ---------- */
.contacts { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-400);
}
.contact-card a {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 8px 0 28px;
  font-size: 14px;
}
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__inner { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav__links { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: center; gap: 2px 18px; }
  .nav__links a { font-size: 14px; }
  .lang { margin-left: auto; }
}

@media (max-width: 680px) {
  .hero { padding: 48px 0 32px; }
  .section { padding: 52px 0; }
  .about { padding-bottom: 0; }
  .about__grid { padding-bottom: 40px; }

  .card--main { flex-direction: column; }
  .card--main .card__body { padding: 22px; }

  .partners__list { grid-template-columns: 1fr; }
  .partners__list li { padding: 20px; }

  .btn { min-width: 0; flex: 1 1 200px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stats__item + .stats__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
  .stats__item { padding: 14px 8px; }
}

@media (max-width: 440px) {
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .card:hover, .btn:hover, .partners__list li:hover { transform: none; }
}
