/* ============================================================
   Volkswagen Osnabrück — Corporate Website
   Design language: dark industrial, bold typography
   ============================================================ */

/* ---------- Local Fonts (Oshkosh Defense style) ---------- */
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-1.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-2.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/font-3.woff2") format("woff2");
}

:root {
  --c-primary: #1F1F1F;
  --c-secondary: #454543;
  --c-text: #000000;
  --c-accent: #7B9057;
  --c-muted: #A7A9A6;
  --c-light: #E0E0E0;
  --c-teal: #46ABB1;
  --c-gold: #CA9300;
  --c-white: #FFFFFF;
  --c-bg-gray: #F1F1F1;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  /* overflow-x: hidden; */ /* Avoid hiding real layout issues */
}


html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4 { font-family: "Archivo", Arial, sans-serif; font-weight: 700; line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.01em; text-transform: uppercase; }
h1 { font-size: 32px; }
h2 { font-size: 30px; }
h3 { font-size: 1.4rem; }
h4 { text-transform: uppercase; letter-spacing: 0.04em; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}
.row { display: flex; flex-wrap: wrap; gap: 30px; }
.hidden { display: none !important; }

/* ---------- Small mono label ---------- */
.eyebrow {
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-secondary);
  margin-bottom: 12px;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  border: 2px solid var(--c-secondary);
  border-radius: 2px;
  background: transparent;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}
.btn .arrow { display: inline-block; font-size: 1.1rem; line-height: 1; transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { color: var(--c-white); background: var(--c-primary); border-color: var(--c-primary); }
.btn.btn-light { color: var(--c-white); border-color: var(--c-white); }
.btn.btn-light:hover { background: var(--c-white); color: var(--c-primary); }
.btn.btn-accent { border-color: var(--c-accent); color: var(--c-accent); }
.btn.btn-accent:hover { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}
.site-header.scrolled { background: rgba(0, 0, 0, 0.92); }

.top-bar {
  border-bottom: 1px solid rgba(212, 212, 212, 0.18);
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: flex-end; gap: 34px; }
.top-bar a {
  font-family: "Source Code Pro", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-white);
  letter-spacing: 0.12em;
  transition: color 0.3s;
}
.top-bar a:hover { color: var(--c-light); }

.main-nav { padding: 14px 0; }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: auto; height: 42px; filter: brightness(0) invert(1); }
.brand .brand-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand .brand-name small { display: block; font-family: "Source Code Pro", monospace; font-weight: 600; font-size: 0.62rem; color: var(--c-muted); letter-spacing: 0.2em; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--c-white);
  padding: 10px 12px;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-light); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--c-white); border-radius: 2px; transition: all 0.3s; }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-primary);
    padding: 10px 20px 20px;
    gap: 2px;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a::after { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--c-primary);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.fade { animation: kenburns 18s ease-in-out infinite alternate; }
.hero-slide.active { opacity: 1; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

.hero .container { position: relative; z-index: 2; padding-bottom: 35px; }
.hero-card {
  background: var(--c-white);
  border-radius: 6px;
  padding: 25px;
  max-width: 560px;
  margin: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(31, 31, 31, 0.08);
}
.hero-card .eyebrow { color: var(--c-secondary); }
.hero-card h1 { margin-bottom: 20px; line-height: 1.08; letter-spacing: -0.01em; }
.hero-card h1 .hero-sub {
  display: block;
  font-family: "Source Code Pro", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  margin-top: 10px;
}
.hero-card p { line-height: 1.55; margin-bottom: 0; }
.hero-card .btn { margin-top: 32px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 70px 0; }
.section-dark { background: var(--c-primary); color: var(--c-white); }
.section-gray { background: var(--c-bg-gray); }
.section-light { background: var(--c-light); }
.section-dark .eyebrow { color: var(--c-muted); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-dark h2 { color: var(--c-white); }

.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { display: block; }
.section-head p { max-width: 640px; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head h2 { line-height: 1.25; }

/* Ensure section headers and their children can shrink */
.section-head, .section-head > * {
  min-width: 0;
  max-width: 100%;
}

/* Three column stat / info grid */
.col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.col-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.col-3 > *, .col-2 > * { min-width: 0; }
.mission-heading { grid-column: 1 / -1; }
.mission-lead { grid-column: 1 / 3; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; align-items: start; }
.stat .num {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  color: var(--c-accent);
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.stat .label {
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--c-light);
  margin-top: 8px;
  letter-spacing: 0.1em;
}
.stats > * { min-width: 0; }

/* ============================================================
   SERVICE / PRODUCT CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards > * { min-width: 0; }

@media (min-width: 1280px) {
  .section-light .container {
    max-width: 1720px;
  }

  .card .cover {
    height: 350px;
  }

  .card .body {
    min-height: 70px;
  }
}

.card { background: var(--c-white); border-radius: 6px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,0.16); }
.card .cover { position: relative; height: 250px; background-size: cover; background-position: center; display: flex; align-items: flex-end; object-fit: cover; }
.card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,31,31,0) 55%, rgba(0,0,0,0.8) 100%); min-width: 0; }
.card .cover h3 { color: #fff; position: relative; z-index: 2; padding: 20px 20px; margin: 0; font-size: 1.5rem; letter-spacing: 0.04em; line-height: 1.15; }
.card .body { background: var(--c-secondary); color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card .body p { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.card .body .arrow { color: var(--c-light); font-size: 1.3rem; flex-shrink: 0; transition: transform 0.3s; }
.card:hover .body .arrow { transform: translateX(6px); color: var(--c-accent); }
.card a { display: block; }

/* ============================================================
   LIST (clients)
   ============================================================ */
.client-list { list-style: none; margin: 0; padding: 0; max-width: 860px; margin-left: auto; margin-right: auto; }
.client-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-light);
  font-size: 1.05rem;
}
.client-list li::before {
  content: "›";
  color: var(--c-accent);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.client-list li:nth-child(even) { background: #fafafa; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-grid > * { min-width: 0; }
.team-card { background: var(--c-white); border-radius: 6px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
.team-card .photo { height: 220px; background-size: cover; background-position: center; }
.team-card .info { padding: 20px; }
.team-card .info h3 { margin-bottom: 4px; font-size: 1.2rem; }
.team-card .info .role { font-family: "Source Code Pro", monospace; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; color: var(--c-secondary); letter-spacing: 0.1em; }

/* ============================================================
   VIDEO / IMAGE EMBED
   ============================================================ */
.media-frame { border-radius: 10px; overflow: hidden; background: #000; }
.media-frame img, .media-frame video { width: 100%; display: block; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-grid > * { min-width: 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: "Source Code Pro", monospace; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; color: var(--c-secondary); letter-spacing: 0.04em; }
.form-control {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--c-primary); }
textarea.form-control { min-height: 140px; resize: vertical; }
.file-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--c-white); border: 1px solid #c9c9c9; border-radius: 4px; padding: 10px 16px; cursor: pointer; font-family: "Source Code Pro", monospace; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.file-btn:hover { background: var(--c-light); }
.file-name { font-size: 0.85rem; color: var(--c-secondary); margin-left: 10px; }

.contact-info .info-item { margin-bottom: 22px; }
.contact-info .info-item .eyebrow { margin-bottom: 4px; }
.contact-info .info-item p { margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--c-primary); color: var(--c-muted); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid > * { min-width: 0; }
.site-footer h4 { color: var(--c-white); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 0.92rem; letter-spacing: 0.02em; transition: color 0.3s; }
.site-footer ul a:hover { color: var(--c-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; letter-spacing: 0.02em; }
.footer-bottom a { color: var(--c-muted); }
.footer-bottom a:hover { color: var(--c-white); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--c-white);
  padding-top: 120px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.72)); }
.page-hero .container { position: relative; z-index: 2; text-align: center; padding-bottom: 50px; }
.page-hero .eyebrow { color: var(--c-light); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; line-height: 1.06; }
.page-hero h1 { font-size: 32px; }
/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--c-secondary); color: var(--c-white); padding: 60px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; min-width: 0; }
.cta-band h2 { color: var(--c-white); margin: 0; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; }

/* ============================================================
   CHECKLIST (capability lists)
   ============================================================ */
.check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.check-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--c-light); font-size: 0.98rem; line-height: 1.45; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "›"; position: absolute; left: 4px; top: 8px; color: var(--c-accent); font-size: 1.35rem; font-weight: 700; line-height: 1; }

/* ============================================================
   MOBILE REFINEMENTS (narrow viewports)
   Fixes genuine overflow/cropping without changing desktop.
   ============================================================ */
@media (max-width: 1024px) {
  .container { max-width: 100%; } /* Use full width within this breakpoint */
  h1, .page-hero h1 { font-size: 26px; }
  h2 { font-size: 25px; }
  .page-hero h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }

  /* Typography Scale */
  h1, .page-hero h1 { font-size: 1.2rem; }
  h2 { font-size: 1.3rem; line-height: 1.25; }
  p { font-size: 0.9rem; line-height: 1.6; }
  .eyebrow { font-size: 0.72rem; }

  /* Header */
  .main-nav { padding: 12px 0; }
  .brand img { height: 42px; }
  .top-bar { display: block; padding: 6px 0; }
  .top-bar .container { gap: 24px; }
  .top-bar a { font-size: 0.7rem; }

  /* Hero */
  .hero { min-height: 90vh; align-items: flex-end; }
  .hero .container { width: 100%; padding: 0 20px 70px; }

  .hero-card {
    width: 100%;
    min-height: 540px;
    padding: 25px;
    min-width: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-card .eyebrow { font-size: 0.72rem; margin-bottom: 10px; }
  .hero-card h1 { font-size: 1.55rem; line-height: 1.08; margin-bottom: 14px; }
  .hero-card h1 .hero-sub { font-size: 0.8rem; margin-top: 8px; }
  .hero-card p { font-size: 0.9rem; line-height: 1.5; }
  .hero-card .btn { font-size: 0.75rem; padding: 12px 14px; margin-top: auto; align-self: flex-start; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { margin-top: 10px; }
  .section-head p { max-width: 360px; }
  .col-3, .col-2, .contact-grid, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .col-2 { gap: 24px; }
  .mission-heading, .mission-lead { grid-column: auto; }

  /* Stats */
  .section-dark { padding: 30px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .stat .num { font-size: 1.25rem; line-height: 1.08; }
  .stat .label { font-size: 0.65rem; line-height: 1.35; }

  /* Cards */
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card .cover { height: 190px; }
  .card .cover h3 { font-size: 1.1rem; padding: 12px; }
  .card .body { padding: 16px; }
  .card .body p { font-size: 0.86rem; line-height: 1.45; }

  /* Facility / Environment */
  .media-frame img { height: auto; object-fit: cover; }
  .section .col-2 .media-frame { order: initial; } /* Reference order: text, then image */

  /* CTA */
  .cta-band { padding: 30px 0; }
  .cta-band .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-band h2 { font-size: 16px; }
  .cta-band p { font-size: 0.85rem; }
  .cta-band .btn { height: 30px; font-size: 0.8rem; }

  /* Footer */
  .site-footer { padding: 30px 0 20px; }
  .footer-grid { gap: 24px; margin-bottom: 24px; }
  .site-footer h4 { font-size: 0.9rem; margin-bottom: 8px; }
  .site-footer p, .site-footer ul a, .site-footer ul li { font-size: 0.8rem; line-height: 1.5; }
  .site-footer ul li { margin-bottom: 6px; }
  .footer-bottom { font-size: 0.7rem; padding-top: 16px; }
}

@media (max-width: 390px) {
  /* The 2-column stats layout is now maintained on small screens */
}

/* ============================================================
   NO-JS FALLBACK (content must never stay hidden)
   ============================================================ */
html:not(.js) .reveal { opacity: 1; transform: none; transition: none; }
html:not(.js) .reveal.visible { opacity: 1; transform: none; }
