/* ===================== FONTS ===================== */
@font-face {
  font-family: 'AeonikPro';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/AeonikPro-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'AeonikPro';
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/AeonikPro-Medium.otf') format('opentype');
}
@font-face {
  font-family: 'AeonikPro';
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/AeonikPro-Bold.otf') format('opentype');
}

/* ===================== BASE ===================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --header-h: 60px;
  --pad-x: 2.865%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'AeonikPro', -apple-system, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

p { line-height: 1.2; }

strong, b { font-weight: 700; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: var(--white);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 21px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: clamp(2rem, 6vw, 7rem);
  font-size: 21px;
}
.nav a { transition: opacity 0.2s ease; }
.nav a:hover { opacity: 0.55; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===================== FLOATING MARK ===================== */
.dots {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8.41vw;
  z-index: 90;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dots svg { width: 100%; height: auto; display: block; }
.dots path { fill: var(--black); }
.dots.is-hidden { opacity: 0; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-video { position: absolute; inset: 0; }
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;        /* 16:9 */
  min-width: 177.78vh;    /* cover */
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===================== GROUP ===================== */
.group { display: flex; flex-wrap: wrap; }
.group-text {
  flex: 1 1 100%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 31px 31px 120px;
}
.group-text p {
  font-size: clamp(21px, 1.25vw, 26px);
  line-height: 1.2;
  max-width: 70ch;
}
.group-photo {
  flex: 1 1 100%;
  min-height: 52vh;
  background: url('assets/img/group-cover.jpg') center center / cover no-repeat;
}

/* ===================== VISION ===================== */
.vision {
  background: var(--white);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8% var(--pad-x);
}
.vision-carousel {
  width: 40%;
  position: relative;
}
.slides { position: relative; }
.slide {
  display: none;
  font-size: clamp(21px, 1.25vw, 26px);
  line-height: 1.2;
}
.slide.is-active { display: block; }
.carousel-nav {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  margin-top: 48px;
}
.arrow {
  background: none;
  border: none;
  cursor: pointer;
  width: 56px;
  padding: 8px 0;
}
.arrow svg { width: 100%; height: auto; display: block; }
.arrow:hover { opacity: 0.55; }

/* ===================== BRANDS ===================== */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4%;
  padding: 10% var(--pad-x);
  background: var(--white);
}
.brand-info { width: 38%; }
.brand-photo { width: 46%; }
.brand-photo img { width: 100%; height: auto; display: block; }

.brand-logo { display: block; height: auto; margin-bottom: 36px; }
.brand--deka .brand-logo { max-width: 200px; }
.brand--almeco .brand-logo { max-width: 244px; }

.brand-link {
  position: relative;
  display: inline-block;
  font-size: 18px;
  padding-bottom: 6px;
  margin-bottom: 40px;
  overflow: hidden;
}
.brand-link span { position: relative; z-index: 1; }
.brand-link::before,
.brand-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: var(--black);
}
/* base underline */
.brand-link::before { width: 100%; }
/* animated arrow sweep */
.brand-link::after {
  width: 100%;
  transform: translateX(-103%);
  transition: transform 0.4s ease-in-out;
}
.brand-link:hover::after { transform: translateX(0); }
/* arrow head on the sweeping line */
.brand-link {
  background-image: none;
}

.brand-copy p { font-size: clamp(15px, 1vw, 18px); margin-bottom: 1.1em; }
.brand-copy p:last-child { margin-bottom: 0; }

/* ===================== CONTACT / FOOTER ===================== */
.contact {
  background: var(--black);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6%;
  padding: 5.625vw 12.813vw 2.865vw var(--pad-x);
}
.contact-form-wrap { flex: 0 0 32%; }
.contact-info { flex: 0 0 44%; }

/* form */
.contact-form { display: flex; flex-direction: column; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white);
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  padding: 10px 0;
  margin-bottom: 28px;
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.85); }
.contact-form textarea::placeholder { opacity: 0.7; }
.field-label { font-size: 18px; margin-bottom: 4px; }
.send {
  align-self: flex-start;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white);
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  padding: 8px 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.send:hover { opacity: 0.6; }
.send:disabled { opacity: 0.5; cursor: default; }

/* honeypot: visually hidden, kept out of the tab order */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.form-status {
  font-size: 16px;
  line-height: 1.4;
  margin-top: 18px;
  min-height: 1.2em;
}
.form-status.is-success { color: #fff; }
.form-status.is-error { color: #ff8a8a; }

.acceptance {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  margin-top: 26px;
}
.acceptance input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 8px 0 0;
  vertical-align: -2px;
  accent-color: #fff;
}
.acceptance a { font-weight: 700; text-decoration: underline; }
.acceptance a:hover { opacity: 0.7; }

/* info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.info-block { display: flex; gap: 6%; }
.info-block h2 {
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 47%;
  margin: 0;
  line-height: 1.2;
}
.info-block h2 sup { font-size: 0.55em; vertical-align: super; }
.info-detail { display: flex; flex-direction: column; }
.info-detail a, .info-detail span { font-size: 18px; line-height: 1.4; }
.info-detail a { transition: opacity 0.2s ease; }
.info-detail a:hover { opacity: 0.6; }
.footer-logo { margin-top: 8px; }
.footer-logo img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .vision-carousel { width: 55%; }
  .brand-info { width: 42%; }
  .brand-photo { width: 50%; }
}

@media (max-width: 767px) {
  :root { --header-h: 56px; }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    padding: 0 var(--pad-x);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open { max-height: 60vh; }
  .nav a { padding: 18px 0; width: 100%; border-bottom: 1px solid #eee; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .dots {
    top: auto; left: auto;
    bottom: 20px; right: 20px;
    transform: none;
    width: 34px;
  }

  .group-text { padding: 28px 24px 64px; }
  .group-text p, .slide { font-size: 21px; }
  .group-photo { min-height: 38vh; }

  .vision { padding: 64px 24px; }
  .vision-carousel { width: 100%; }
  .carousel-nav { justify-content: flex-start; }

  .brand { flex-direction: column; padding: 64px 24px; gap: 40px; }
  .brand--deka { flex-direction: column-reverse; }
  .brand-info, .brand-photo { width: 100%; }
  .brand-photo img { width: 100%; }

  .contact { flex-direction: column; padding: 64px 24px; gap: 56px; }
  .contact-form-wrap, .contact-info { flex: 1 1 auto; width: 100%; }
  .contact-info { gap: 36px; }
  .info-block { flex-direction: column; gap: 8px; }
  .info-block h2 { flex-basis: auto; }
  .footer-logo img { max-width: 260px; }
}

/* ===================== LEGAL PAGE ===================== */
.legal {
  padding: calc(var(--header-h) + 64px) var(--pad-x) 96px;
  background: var(--white);
}
.legal-inner { max-width: 860px; margin: 0 auto; }
.legal-inner h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
}
.legal-updated { color: #777; font-size: 16px; margin-bottom: 40px; }
.legal-inner h2 {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin: 44px 0 14px;
}
.legal-inner h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 10px;
}
.legal-inner p { font-size: 17px; line-height: 1.6; margin-bottom: 16px; color: #1a1a1a; }
.legal-inner ul { margin: 0 0 18px; padding-left: 22px; }
.legal-inner li { font-size: 17px; line-height: 1.6; margin-bottom: 10px; color: #1a1a1a; }
.legal-inner a { text-decoration: underline; word-break: break-word; }
.legal-inner a:hover { opacity: 0.6; }

.legal-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 56px var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.legal-footer img { width: 240px; max-width: 70vw; height: auto; }
.legal-footer p { font-size: 16px; opacity: 0.85; }
.legal-footer a { text-decoration: none; }
.legal-footer .legal-back { font-size: 16px; text-decoration: underline; }
.legal-footer .legal-back:hover { opacity: 0.6; }
