/*
Theme Name: Inspectio Research Onepager
Theme URI: https://inspectio.at
Author: inspectio Forschungsinstitut Inc.
Description: Responsive bilingual onepager theme for inspectio Forschungsinstitut Inc. with DE/EN language switcher, research methods, expertise and team sections.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: inspectio-research-onepager
*/

:root {
  --blue-950: #071d33;
  --blue-900: #0a2948;
  --blue-800: #10395f;
  --blue-600: #1f6fb2;
  --cyan: #4fb3ff;
  --green: #7abd45;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ee;
  --bg: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(7, 29, 51, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 228, 238, 0.9);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff 0 25%, transparent 26%), linear-gradient(135deg, var(--blue-900), var(--green));
  color: white;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 10px 24px rgba(10, 41, 72, 0.18);
}
.logo-img {
  width: 160px;
  max-height: 56px;
  object-fit: contain;
}
.brand-text strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  color: var(--blue-900);
  line-height: 1;
}
.brand-text span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 800;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: #334155;
}
.nav-links a:hover { color: var(--blue-600); }

.language-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #eaf1f8;
  border: 1px solid var(--line);
}
.language-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  color: #426078;
  background: transparent;
  cursor: pointer;
}
.language-toggle button.active {
  background: var(--blue-900);
  color: white;
  box-shadow: 0 8px 20px rgba(10, 41, 72, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(7, 29, 51, 0.96) 0%, rgba(7, 29, 51, 0.86) 46%, rgba(7, 29, 51, 0.28) 100%),
    url('https://images.unsplash.com/photo-1581093458791-9d15482442f6?auto=format&fit=crop&w=1800&q=85') center/cover;
  color: white;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
  padding: 82px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(79, 179, 255, 0.12);
  border: 1px solid rgba(79, 179, 255, 0.35);
  color: #bde5ff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  max-width: 850px;
}
.hero p {
  margin: 28px 0 0;
  max-width: 690px;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: var(--blue-950); }
.btn-secondary { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.2); }

.research-panel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
}
.panel-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.metric {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
}
.metric strong {
  display: block;
  color: white;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.06em;
}
.metric span {
  display: block;
  margin-top: 8px;
  color: #c8e7ff;
  font-size: 0.9rem;
}

.section { padding: 86px 0; }
.section-header {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}
.section-kicker {
  color: var(--blue-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  margin-bottom: 10px;
}
h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--blue-900);
  background: #eaf5ff;
  font-size: 1.55rem;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.card p { margin: 0; color: var(--muted); }

.methods { background: white; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.method {
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.method span {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--blue-900);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.method h3 { margin: 20px 0 8px; color: var(--blue-950); }
.method p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}
.image-card {
  min-height: 540px;
  border-radius: var(--radius);
  overflow: hidden;
  background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=85') center/cover;
  box-shadow: var(--shadow);
  position: relative;
}
.image-card::after {
  content: "Research-grade HMI studies";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 29, 51, 0.82);
  color: white;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.process-list { display: grid; gap: 14px; }
.process-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}
.step {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--blue-950);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.process-item h3 { margin: 0 0 5px; }
.process-item p { margin: 0; color: var(--muted); }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.expertise {
  min-height: 330px;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.expertise-img {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.expertise-content { padding: 22px; }
.expertise h3 { margin: 0 0 8px; color: var(--blue-950); }
.expertise p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.person {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.avatar {
  height: 230px;
  background: linear-gradient(135deg, #dbeafe, #eef8ff);
  display: grid;
  place-items: center;
  color: var(--blue-900);
  font-size: 4rem;
  font-weight: 900;
}
.person-content { padding: 22px; }
.person h3 { margin: 0 0 4px; color: var(--blue-950); }
.role { color: var(--blue-600); font-weight: 800; margin-bottom: 12px; }
.person p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.cta {
  padding: 86px 0;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  color: white;
}
.cta-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.cta h2 { color: white; }
.cta p { color: #c7ddf2; font-size: 1.1rem; }
.contact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card p { margin: 0 0 12px; }

footer {
  background: #051525;
  color: #9fb6ca;
  padding: 28px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .hero-inner, .section-header, .split, .cta-box { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .expertise-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .research-panel { max-width: 680px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav { height: auto; padding: 14px 0; }
  .brand-text strong { font-size: 1.2rem; }
  .brand-text span { font-size: 0.65rem; }
  .logo-mark { width: 44px; height: 44px; border-radius: 15px; }
  .hero-inner { padding: 56px 0; }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .metric-grid, .cards, .method-grid, .expertise-grid, .team-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .card, .method, .process-item, .contact-card { padding: 20px; }
  .image-card { min-height: 360px; }
  .avatar { height: 180px; }
}
