/* Q-Con GmbH (q-con.eu) — static rebuild */

:root {
  --navy: #3f4267;
  --navy-deep: #16163f;
  --navy-soft: #434362;
  --gold: #d3b574;
  --text: #3f4267;
  --text-muted: #6b6e8a;
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --max: 1140px;
  --font: "Roboto", system-ui, sans-serif;
  --font-serif: "Merriweather", Georgia, serif;
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 500;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(63, 66, 103, 0.08);
}

.header-inner {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  width: 210px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(63, 66, 103, 0.25);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 680px);
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22, 22, 63, 0.55) 0%, rgba(22, 22, 63, 0.35) 45%, rgba(22, 22, 63, 0.2) 100%),
    url("../assets/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero .divider {
  width: 72px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem 0 1.25rem;
}

.hero p {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Clients */
.clients {
  padding: 1.75rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(63, 66, 103, 0.08);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.clients-track img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.9;
}

/* Feature bands */
.feature {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.feature:nth-child(odd) {
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature.reverse .feature-grid {
  direction: rtl;
}

.feature.reverse .feature-grid > * {
  direction: ltr;
}

.feature .gold-line {
  width: 56px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.feature h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.feature-visual img {
  width: min(360px, 100%);
  margin-inline: auto;
}

/* Team */
.team {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background: #fff;
}

.team-intro {
  padding: 3.5rem 1.25rem 2.25rem;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  color: #fff;
  margin-bottom: 2.5rem;
}

.team-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.team-card {
  margin: 0;
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  background: var(--bg-soft);
}

.team-card figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

/* CTA strip */
.cta-strip {
  position: relative;
  padding: 4rem 1.25rem;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(22, 22, 63, 0.72), rgba(22, 22, 63, 0.72)),
    url("../assets/hero.jpg") center / cover no-repeat;
}

.cta-strip h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

/* Inner pages */
.page-hero {
  padding: 4.5rem 1.25rem 3rem;
  background:
    linear-gradient(rgba(22, 22, 63, 0.7), rgba(22, 22, 63, 0.7)),
    url("../assets/hero.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.page-hero .eyebrow {
  margin: 0 0 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.page-body {
  width: min(100% - 2.5rem, 900px);
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
}

.page-body h2,
.page-body h3,
.page-body h4 {
  color: var(--navy);
}

.page-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.contact-layout {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-copy h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.contact-copy .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.contact-details {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 2rem;
}

.contact-details h2 {
  margin-top: 0;
  font-weight: 400;
}

.contact-details ul {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-details a {
  color: #fff;
}

.contact-form {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 1.75rem;
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-status--success {
  background: rgba(211, 181, 116, 0.25);
  color: var(--navy);
}

.form-status--error {
  background: rgba(180, 40, 40, 0.1);
  color: #8a1f1f;
}

.form-status a {
  color: inherit;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(63, 66, 103, 0.2);
  border-radius: 6px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .feature-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature.reverse .feature-grid {
    direction: ltr;
  }

  .feature-visual {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(63, 66, 103, 0.1);
    padding: 0.75rem 1rem 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(63, 66, 103, 0.08);
  }

  .hero h1 {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
