/* Kröks GmbH — kroeks.de */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --red: #f90a0a;
  --navy: #272c40;
  --text-muted: #d5d5d5;
  --line: rgba(255, 255, 255, 0.2);
  --header-h: 97px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.container { width: min(1170px, 100% - 30px); margin-inline: auto; }

.h-xl { font-size: 35px; font-weight: 500; line-height: 1.15; }
.h-md { font-size: 26px; font-weight: 500; line-height: 1.3; }
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 39px;
  border: 0;
  border-radius: 0;
  background: var(--red);
  color: #000;
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover, .btn:focus-visible { opacity: 0.85; }
.btn--white { background: #fff; }
.btn--dark { background: #000; color: var(--red); }
.btn--sm { min-height: 50px; padding: 10px 26px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.home .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom: 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo img { width: 170px; height: auto; }
.nav-toggle, .nav-toggle-btn { display: none; }
.main-nav ul { display: flex; gap: 45px; }
.main-nav a { font-size: 16px; font-weight: 300; transition: color 0.2s; }
.main-nav a:hover, .footer-nav a:hover { color: var(--red); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 90px 0; }
.section--line { border-bottom: 1px solid var(--line); }
.section > .container { position: relative; z-index: 1; }

/* background image + colour overlay */
.has-bg { background-size: cover; background-position: center; }
.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay, transparent);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 200px) 0 250px;
  background: #000 url('../img/bg-hero.webp') 50% 100% / cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  margin: 0 auto 50px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: clamp(34px, 4.6vw, 66px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Markets (home + page) */
.markets { padding: 80px 0 90px; background: #000; }
.markets .h-xl { margin-bottom: 50px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 30px; }
.card img { width: 100%; aspect-ratio: 270 / 174; object-fit: cover; }
.card h3 { margin-top: 20px; }
.card p { margin-top: 12px; color: var(--text-muted); line-height: 1.5; }
.markets--page { padding: 90px 0; background: var(--navy); }
.markets--page .card-grid { gap: 60px 30px; }

/* Solutions (home) */
.solutions {
  padding: 80px 0 100px;
  background: #272626 url('../img/bg-solutions.webp') 43% 0 / cover no-repeat;
}
.solutions .h-xl { margin-bottom: 50px; }
.tile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.tile {
  position: relative;
  width: calc((100% - 60px) / 3);
  aspect-ratio: 370 / 241;
  overflow: hidden;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.29); }
.tile h3 {
  position: absolute;
  inset: auto 10px 12px;
  z-index: 1;
  text-align: center;
}

/* Partnership band */
.band {
  padding: 75px 0 90px;
  background-image: url('../img/bg-partnership.webp');
  background-attachment: fixed;
  --overlay: rgba(249, 10, 10, 0.92);
}
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.band p { margin-top: 22px; color: var(--navy); font-weight: 500; }

/* Kröks at a glance */
.glance {
  background-image: url('../img/bg-glance.webp');
  --overlay: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.8) 100%);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.split__media img { width: 100%; object-fit: cover; }
.glance .split__media img { aspect-ratio: 570 / 424; }
.glance p { margin: 22px 0 30px; color: var(--text-muted); }

/* Call to action */
.cta {
  padding: 90px 0 100px;
  background: #000 url('../img/bg-cta.webp') 50% 100% / cover no-repeat;
  text-align: center;
}
.cta .h-xl { margin-bottom: 54px; }

/* Inquiry form */
.inquiry {
  background-image: url('../img/bg-inquiry.webp');
  --overlay: rgba(0, 0, 0, 0.85);
}
.inquiry--plain { background: #262626; border-bottom: 1px solid var(--line); }
.form-card {
  width: min(570px, 100%);
  margin: 0 auto;
  padding: 55px 80px 50px;
  background: #282626 url('../img/bg-form.webp') 50% 0 / 1389px auto no-repeat;
}
.form-card .h-xl { margin-bottom: 20px; }
.form-card__lead { max-width: 380px; margin: 0 auto 28px; font-weight: 500; line-height: 1.4; }
.field { display: block; margin-bottom: 26px; }
.field span { display: block; margin-bottom: 8px; line-height: 1.6; }
.field input, .field textarea {
  display: block;
  width: 100%;
  height: 50px;
  padding: 15px 26px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  font: inherit;
  outline: none;
  transition: background 0.2s;
}
.field textarea { height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { background: rgba(255, 255, 255, 0.34); }
.form-card .btn { margin-top: 30px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Form result dialog */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
}
.dialog.is-open { display: flex; }
.dialog__box {
  width: min(360px, 100%);
  padding: 40px 30px 30px;
  background: #282626;
  border: 1px solid var(--line);
  text-align: center;
}
.dialog__title { font-weight: 700; }
.dialog__text { margin: 6px 0 24px; font-size: 14px; }
.dialog__close {
  padding: 8px 30px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.dialog__close:hover { background: #fff; color: #000; }

/* ---------- Inner pages ---------- */
.page-title { padding: 100px 0; border-bottom: 1px solid var(--line); background-color: #333; }
.page-title--image { background-image: url('../img/bg-page-title.webp'); --overlay: rgba(0, 0, 0, 0.85); }
.page-title--dark { background-color: #262626; }

/* Solutions page */
.solutions-list { padding: 100px 0; background: var(--navy); }
.solutions-list li { padding: 20px 0; }
.solutions-list li + li { margin-top: 30px; }
.solutions-list .split__media img { aspect-ratio: 570 / 382; }
.solutions-list p { margin-top: 10px; color: var(--text-muted); line-height: 1.4; }

/* About */
.about { padding: 100px 0; background: #000; }
.about .split__media img { aspect-ratio: 570 / 497; }
.about p + p { margin-top: 26px; }
.about .lead { font-weight: 500; margin-bottom: 50px; }
.about .muted { line-height: 1.6; }
.presentation {
  padding: 80px 0 100px;
  background-image: url('../img/bg-presentation.webp');
  --overlay: rgba(0, 0, 0, 0.9);
}
.presentation .h-xl { margin-bottom: 50px; }
.presentation img { width: 100%; aspect-ratio: 1170 / 557; object-fit: cover; }

/* Contacts */
.contacts { padding: 100px 0; background: #d5d5d5; color: #000; }
.contacts__inner { display: flex; align-items: center; gap: 30px; }
.contact-card {
  flex: 0 0 auto;
  width: min(470px, 100%);
  padding: 60px 30px;
  background: #fff;
  font-weight: 500;
  text-align: center;
}
.contact-card__name { font-size: 32px; line-height: 1.3; margin-bottom: 30px; }
.contact-card .h-md { margin-bottom: 14px; }
.contact-card p + p { margin-top: 26px; }
.contact-card .btn { margin-top: 40px; }
.rev { unicode-bidi: bidi-override; direction: rtl; }
.contacts__map { flex: 1; text-align: center; font-weight: 500; }
.contacts__map a { border-bottom: 1px solid currentColor; }
.contacts__map a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #000; }
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  padding: 72px 0 60px;
}
.footer-logo { font-size: 24px; font-weight: 700; line-height: 1.2; }
.footer-logo i { font-style: normal; color: var(--red); }
.footer-logo span { font-weight: 500; }
.footer-nav { align-self: start; }
.footer-nav li + li { margin-top: 12px; }
.site-footer__bottom { border-top: 1px solid var(--line); font-size: 12px; font-weight: 400; }
.site-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { width: calc((100% - 30px) / 2); }
  .hero { padding: calc(var(--header-h) + 130px) 0 200px; }
  .band { background-attachment: scroll; }
  .contacts__inner { flex-direction: column; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --header-h: 70px; }
  .h-xl { font-size: 28px; }
  .h-md { font-size: 22px; }
  .section, .markets, .solutions, .cta, .presentation, .about, .solutions-list, .contacts, .markets--page { padding: 60px 0; }
  .page-title { padding: 50px 0; }
  .hero { padding: calc(var(--header-h) + 80px) 0 150px; }
  .logo img { width: 140px; }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 9px;
    cursor: pointer;
  }
  .nav-toggle-btn span { display: block; height: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    padding: 20px 0 30px;
    background: #000;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 18px; }

  .card-grid { grid-template-columns: 1fr; gap: 40px; }
  .tile { width: 100%; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr; }
  .form-card { padding: 40px 20px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; padding: 45px 0; }
  .footer-logo { grid-column: 1 / -1; }
}
