/* ============================================================
   KERNSTOFF CHEMIE GMBH
   Primary: #1c3d78 (navy)  |  Accent: #2aada0 (teal)
   Font: Open Sans 400/600/700  |  Spacing unit: 8px
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #2c2c3a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
address { font-style: normal; }

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy:        #1c3d78;
  --navy-dark:   #142d5c;
  --navy-light:  #2a5199;
  --teal:        #2aada0;
  --teal-dark:   #1e8a7e;
  --text:        #2c2c3a;
  --text-muted:  #5e6577;
  --border:      #d8dce4;
  --bg-light:    #f4f6f9;
  --bg-alt:      #e8ecf2;
  --dark:        #12172a;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.10);
  --shadow-md:   0 4px 14px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 30px rgba(0,0,0,.16);
  --radius:      3px;
  --header-h:    80px;
  --sec-py:      80px;
  --max-w:       1240px;
  --pad:         24px;
}

/* ── LAYOUT HELPERS ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: var(--sec-py) 0; }

/* ── TYPOGRAPHY HELPERS ────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── BUTTON ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  outline: none;
}
.btn--primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-img   { height: 48px; width: auto; }

/* Nav */
.main-nav { margin-left: auto; }
.nav-list  { display: flex; align-items: center; gap: 2px; }
.nav-link  {
  display: block;
  padding: 8px 11px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus { color: var(--navy); border-bottom-color: var(--navy); outline: none; }
.nav-link--cta {
  background: var(--navy);
  color: var(--white) !important;
  border-bottom-color: transparent !important;
  border-radius: var(--radius);
  padding: 8px 18px;
  margin-left: 6px;
}
.nav-link--cta:hover,
.nav-link--cta:focus { background: var(--navy-dark); }

/* Header contacts */
.header-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}
.header-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.header-contact-item:hover { color: var(--navy); }
.hc-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--teal); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/images/pexels-photo-3862369.jpg');
  background-size: cover;
  background-position: center;
  background-color: #1a2840;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(12,26,54,.90) 0%,
    rgba(12,26,54,.62) 55%,
    rgba(12,26,54,.28) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 720px;
  padding: 80px 0;
}
.hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(.9375rem, 2vw, 1.1875rem);
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 560px;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about {
  position: relative;
  padding: 0;
  min-height: 520px;
  display: flex;
  align-items: stretch;
}
.about-bg {
  position: absolute; inset: 0;
  background-image: url('/images/pexels-photo-1108572.jpg');
  background-size: cover;
  background-position: center;
  background-color: #243047;
}
.about-overlay {
  position: absolute; inset: 0;
  background: rgba(12,26,54,.72);
}
.about-content {
  position: relative; z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: var(--sec-py) 0;
}
.about-box {
  background: var(--white);
  max-width: 580px;
  width: 100%;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.about-box .section-label { display: block; }
.about-box p {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}
.about-box p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════
   PRODUCTS
══════════════════════════════════════════════════════════════ */
.products { background: var(--bg-light); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
}
.product-card__icon {
  width: 52px; height: 52px;
  color: var(--navy);
  margin-bottom: 20px;
}
.product-card__icon svg { width: 100%; height: 100%; }
.product-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.product-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   INDUSTRIES
══════════════════════════════════════════════════════════════ */
.industries { background: var(--white); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--border);
  background: var(--bg-light);
}
.industry-item__icon {
  width: 52px; height: 52px;
  color: var(--navy);
  margin-bottom: 14px;
}
.industry-item__icon svg { width: 100%; height: 100%; }
.industry-item h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* ══════════════════════════════════════════════════════════════
   SUSTAINABILITY
══════════════════════════════════════════════════════════════ */
.sustainability { position: relative; padding: 0; }
.sust-bg {
  position: absolute; inset: 0;
  background-image: url('/images/pexels-photo-2760243.jpg');
  background-size: cover;
  background-position: center;
  background-color: #1a2840;
}
.sust-overlay {
  position: absolute; inset: 0;
  background: rgba(12,26,54,.82);
}
.sust-content {
  position: relative; z-index: 1;
  padding: var(--sec-py) 0;
}
.sust-box {
  background: var(--white);
  padding: 48px 56px;
  max-width: 980px;
}
.sust-box .section-title { margin-bottom: 36px; }
.sust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
}
.sust-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.sust-item__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  color: var(--teal);
  margin-top: 2px;
}
.sust-item__icon svg { width: 100%; height: 100%; }
.sust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}
.sust-item p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   QUALITY
══════════════════════════════════════════════════════════════ */
.quality { background: var(--bg-light); }

.quality-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  align-items: start;
}
.quality-text {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.quality-text p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.quality-pillars { display: flex; flex-direction: column; }
.quality-pillar {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.quality-pillar:first-child { padding-top: 0; }
.quality-pillar:last-child  { border-bottom: none; }
.quality-pillar__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-alt);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: right;
  padding-top: 3px;
}
.quality-pillar__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}
.quality-pillar__body p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact { background: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  min-height: 440px;
  box-shadow: var(--shadow-md);
}
.contact-info-panel {
  background: var(--navy);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  justify-content: center;
}
.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.contact-info-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.contact-info-item__icon svg { width: 22px; height: 22px; }
.contact-info-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info-item__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.contact-info-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}
a.contact-info-item__value:hover { color: var(--teal); }
address.contact-info-item__value { font-style: normal; }

.contact-map { overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.70); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px 56px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col--brand {
  display: flex; flex-direction: column; gap: 20px;
}
.footer-logo-link { display: inline-block; }
.footer-logo {
  height: 44px; width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255,255,255,.50);
}
.footer-contact-brief {
  font-size: .875rem;
  line-height: 1.9;
}
.footer-contact-brief a { color: rgba(255,255,255,.70); }
.footer-contact-brief a:hover { color: var(--teal); }

.footer-col__heading {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.60);
  padding: 2px 0;
}
.footer-nav a:hover { color: var(--teal); }
.footer-address {
  font-size: .875rem;
  line-height: 1.9;
  color: rgba(255,255,255,.60);
}

.footer-bottom { background: rgba(0,0,0,.28); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .8125rem;
  color: rgba(255,255,255,.40);
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – TABLET ≤ 1080px
══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  :root { --sec-py: 64px; --pad: 20px; }

  .header-contact { display: none; }

  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .industries-grid  { grid-template-columns: repeat(4, 1fr); }

  .quality-layout {
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
  .sust-box { padding: 40px 40px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE ≤ 768px
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --sec-py: 48px; --header-h: 64px; --pad: 16px; }

  /* Mobile header */
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--navy);
    box-shadow: var(--shadow-md);
    margin-left: 0;
    padding: 8px 0;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding: 14px 20px;
    font-size: .9375rem;
    border-bottom: 1px solid var(--bg-alt);
    border-left: none;
  }
  .nav-link:hover { background: var(--bg-light); border-bottom-color: var(--bg-alt); }
  .nav-link--cta {
    margin: 10px 16px 8px;
    border-radius: var(--radius);
    text-align: center;
    border-bottom: none !important;
  }

  /* Hero */
  .hero-content { padding: 48px 0; }
  .hero-title   { font-size: clamp(1.75rem, 6vw, 2.4rem); }

  /* About */
  .about-content  { justify-content: center; }
  .about-box      { max-width: 100%; padding: 32px 24px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }

  /* Industries */
  .industries-grid { grid-template-columns: repeat(2, 1fr); }

  /* Sustainability */
  .sust-box  { padding: 32px 24px; }
  .sust-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Quality */
  .quality-layout { grid-template-columns: 1fr; gap: 36px; }
  .quality-text   { position: static; }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .contact-map { min-height: 320px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 4px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – SMALL PHONE ≤ 480px
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .quality-pillar__number { font-size: 1.4rem; width: 36px; }
}
