/* =========================================================
   df-mp.tech — website styles
   Light, clean, minimal. Serif display + clean sans UI.
   ========================================================= */

:root {
  /* Palette — df-mp tech brand: brown + olive logo, cream ground, pine dark.
     (Colours sampled from the df-mp tech logo and 2026 presentation template.) */
  --bg:        #ffffff;   /* white base — matches the template slide background */
  --bg-soft:   #f4f5f2;   /* light neutral grey for alternating sections (no cream) */
  --bg-ink:    #2c3932;   /* pine green for dark sections/footer (template dk2) */
  --ink:       #232a25;   /* near-black text */
  --muted:     #616a63;   /* secondary text */
  --line:      #e7e3da;   /* hairline borders */
  --line-soft: #f0ece4;
  --brand:     #7a5b46;   /* df-mp wordmark brown */
  --brand-dk:  #5f4635;
  --olive:     #b5b763;   /* logo circuit / olive accent (decorative) */
  --accent:    #afbd1f;   /* logo circuit green (bright) — buttons, dots, decorative */
  --accent-dk: #6d7a12;   /* readable olive-green for accent text on white */
  --coral:     #e15c3d;   /* tertiary highlight (template accent3) */
  --on-ink:    #eef2ee;   /* text on dark */
  --on-ink-mut:#a7b2ab;

  /* Type — clean grotesk, echoing the brand's Neue Haas Grotesk */
  --serif: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Metrics */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --pad-section: clamp(64px, 9vw, 128px);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Language toggle mechanics ---------- */
/* Elements carry both languages; body class decides which shows. */
[data-lang]        { display: none; }
body.lang-de [data-lang="de"] { display: revert; }
body.lang-en [data-lang="en"] { display: revert; }
/* Inline variants keep flow */
span[data-lang], a[data-lang], strong[data-lang], em[data-lang], li[data-lang] {
  display: none;
}
body.lang-de span[data-lang="de"],
body.lang-de a[data-lang="de"],
body.lang-de strong[data-lang="de"],
body.lang-de em[data-lang="de"],
body.lang-de li[data-lang="de"] { display: revert; }
body.lang-en span[data-lang="en"],
body.lang-en a[data-lang="en"],
body.lang-en strong[data-lang="en"],
body.lang-en em[data-lang="en"],
body.lang-en li[data-lang="en"] { display: revert; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

section { padding-block: var(--pad-section); }

.section-soft { background: var(--bg-soft); }
.section-ink  { background: var(--bg-ink); color: var(--on-ink); }
.section-ink .muted { color: var(--on-ink-mut); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 1.1rem;
}
.section-ink .eyebrow { color: var(--olive); }

.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 500;
  font-size: .98rem;
  padding: .82em 1.5em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #9aab19; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.section-ink .btn-ghost { border-color: rgba(255,255,255,.22); color: var(--on-ink); }
.section-ink .btn-ghost:hover { border-color: #fff; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  color: var(--accent-dk);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  border-bottom: 1px solid transparent;
}
.textlink:hover { border-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .12rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.brand .dot { color: var(--accent-dk); }
.brand-logo { height: 30px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 26px; } }
.site-footer .brand-logo { filter: brightness(0) invert(1); opacity: .92; }
.brand .suffix {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dk);
  transform: translateY(-.55em);
  margin-left: .1em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink);
  padding: .3em 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--accent-dk); }
.nav-links a.active { border-color: var(--accent-dk); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 600;
}
.lang-toggle button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: .42em .8em;
  color: var(--muted);
  font: inherit;
  letter-spacing: .04em;
  transition: background .15s ease, color .15s ease;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }
.lang-toggle a {
  display: inline-flex;
  align-items: center;
  padding: .42em .8em;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.lang-toggle a.active { background: var(--ink); color: #fff; }
.lang-toggle a:hover:not(.active) { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .3em;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero .lead { max-width: 40ch; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 2.6rem);
}
.hero-aside .stat + .stat { margin-top: 1.6rem; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

/* ---------- Generic section head ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card.hoverable:hover {
  border-color: #cdd3dd;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(33,27,22,.35);
}
.card .k-index {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent-dk);
  margin-bottom: .8rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .98rem; }

.section-ink .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-ink .card p { color: var(--on-ink-mut); }

/* Expertise list style */
.pillars .card { display: flex; flex-direction: column; gap: .2rem; }
.pillars .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(111,138,30,.12);
  color: var(--accent-dk);
  margin-bottom: 1rem;
}
.pillars .icon svg { width: 22px; height: 22px; }

/* ---------- Case cards ---------- */
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--bg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.case-card:hover {
  border-color: #cdd3dd;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(33,27,22,.35);
}
.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dk);
  background: rgba(111,138,30,.14);
  border-radius: 100px;
  padding: .32em .8em;
  margin-bottom: 1rem;
}
.case-card h3 { font-size: 1.22rem; }
.case-meta {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: .5rem;
}
.case-meta li { display: flex; gap: .8rem; font-size: .92rem; }
.case-meta .m-lbl { color: var(--muted); min-width: 92px; flex-shrink: 0; }
.case-meta .m-val { font-weight: 500; }

/* ---------- Team ---------- */
.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.person:hover {
  border-color: #cdd3dd;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(33,27,22,.35);
}
.person .photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef0ec, #e2e6df);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-family: var(--serif);
  font-size: 2.4rem;
}
.person .p-body { padding: 1.4rem 1.4rem 1.6rem; }
.person .role { color: var(--accent-dk); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.person h3 { margin: .35rem 0 .2rem; }
.person .p-tech { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.matters { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.matters .m-title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.matters li.matter { font-size: .92rem; padding-left: 1rem; position: relative; margin-bottom: .5rem; }
.matters li.matter::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Callout / CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .display { max-width: 16ch; margin-inline: auto; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Awards strip ---------- */
.awards { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.awards .award {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .55em 1.3em;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
.awards .award b { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.contact-block h3 { font-size: 1.05rem; }
.contact-block p { color: var(--muted); }
.contact-block a.textlink { font-size: 1.02rem; }
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-ink); color: var(--on-ink); padding-block: clamp(48px, 6vw, 76px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand .suffix { color: var(--olive); }
.footer-col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-mut); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--on-ink); font-size: .95rem; opacity: .82; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-note { color: var(--on-ink-mut); font-size: .9rem; max-width: 42ch; margin-top: 1rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--on-ink-mut);
}
.footer-bottom a { color: var(--on-ink-mut); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Placeholder banner ---------- */
.placeholder-note {
  background: rgba(111,138,30,.08);
  border: 1px solid rgba(111,138,30,.30);
  color: #4f5a12;
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  font-size: .9rem;
  margin-bottom: 2rem;
}
.placeholder-note b { color: #3c460d; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(30px,5vw,48px); }
.page-hero .display { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-hero .lead { max-width: 60ch; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .8rem; }

/* ---------- Hero media image ---------- */
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: clamp(1.8rem, 4vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.hero-stats .stat .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stats .stat .lbl { color: var(--muted); font-size: .95rem; margin-top: .35rem; max-width: 22ch; }

/* ---------- Photo background on dark CTA band ---------- */
.section-ink.cta-band {
  background-image: linear-gradient(rgba(12,17,24,.78), rgba(12,17,24,.9)), url(../img/ai-network.jpg);
  background-size: cover;
  background-position: center;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; display: flex; gap: 2.5rem; }
  .hero-aside .stat + .stat { margin-top: 0; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem clamp(20px,5vw,40px) 1.2rem;
    transform: translateY(-140%);
    transition: transform .3s ease;
    box-shadow: 0 24px 40px -30px rgba(0,0,0,.4);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a.active { border-color: var(--line-soft); color: var(--accent-dk); }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero-aside { flex-direction: column; gap: 1.5rem; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
