/* T4Test Engineering Consulting — styles.css */

:root {
  --primary: #0b3d91;
  --primary-dark: #082a66;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--primary);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-muted);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-left: 8px;
}

.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.lang-switch button.active {
  background: var(--primary);
  color: #fff;
}

.lang-switch button:hover:not(.active) {
  background: var(--bg-muted);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse at top right, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(11, 61, 145, 0.06) 0%, transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h1 .accent {
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero visual panel — staggered vertical stack, no overlaps */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.hero-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -4px rgb(15 23 42 / 0.12), 0 6px 10px -6px rgb(15 23 42 / 0.08);
}

.hero-card .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero-card h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text);
}

.hero-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
}

/* Subtle horizontal stagger for visual interest, no overlap */
.hero-card-1 { align-self: flex-start; width: 90%; }
.hero-card-2 { align-self: flex-end;   width: 90%; }
.hero-card-3 { align-self: flex-start; width: 90%; margin-left: 5%; }

.hero-card-1 .icon { color: var(--primary); background: rgba(11, 61, 145, 0.1); }
.hero-card-2 .icon { color: var(--accent); background: rgba(13, 148, 136, 0.1); }
.hero-card-3 .icon { color: #b45309; background: rgba(180, 83, 9, 0.08); }

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header.left {
  margin-left: 0;
  text-align: left;
}

.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Client trust bar ---------- */
.trust-bar {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.trust-bar p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.trust-logo {
  font-weight: 600;
  color: var(--text-light);
  font-size: 1rem;
  opacity: 0.75;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}

.trust-logo:hover {
  opacity: 1;
  color: var(--text);
}

/* ---------- Services / card grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.08), rgba(13, 148, 136, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card ul {
  list-style: none;
  margin-top: 14px;
}

.card ul li {
  padding: 5px 0 5px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}

.card ul li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ---------- Service areas & package tiers ---------- */
.area-block {
  margin-bottom: 72px;
}

.area-block:last-child {
  margin-bottom: 0;
}

.area-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.area-header .section-eyebrow {
  margin-bottom: 10px;
}

.area-header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.area-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tier-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  overflow: hidden;
}

.tier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.2s ease;
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.tier-card.tier-small::before {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.tier-card.tier-medium::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.tier-card.tier-large::before {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tier-card.tier-medium {
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.06);
}

.tier-card.tier-large {
  background: linear-gradient(180deg, #fafcff 0%, var(--bg) 100%);
}

.tier-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}

.tier-small .tier-badge { background: #64748b; }
.tier-medium .tier-badge { background: var(--accent); }
.tier-large .tier-badge { background: var(--primary); }

.tier-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}

.tier-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.tier-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tier-includes-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  display: block;
}

.tier-card ul {
  list-style: none;
  margin-bottom: 22px;
  flex-grow: 1;
}

.tier-card ul li {
  padding: 6px 0 6px 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  line-height: 1.5;
}

.tier-card ul li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.tier-ideal {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.tier-ideal strong {
  color: var(--text);
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* Tier CTA — "Request this package" button on each tier card */
.tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
  align-self: stretch;
}

.tier-cta:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tier-card.tier-medium .tier-cta {
  background: var(--accent);
}

.tier-card.tier-medium .tier-cta:hover {
  background: #0b7c72;
}

.tier-card.tier-large .tier-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.tier-card.tier-large .tier-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0b7c72 100%);
}

/* Services — closing note card */
.note-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  text-align: center;
  max-width: 780px;
  margin: 40px auto 0;
}

.note-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.note-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Home — area card (2-up) */
.area-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.area-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.area-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.area-preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.area-preview .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.08), rgba(13, 148, 136, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.area-preview h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.area-preview p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.area-preview .tiers-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 10px;
}

.area-preview .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
}

.area-preview .cta-link:hover { color: var(--accent); }

/* ---------- Industries chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}

/* ---------- Roadmap / PROmeter teaser ---------- */
.roadmap {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.roadmap-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.roadmap-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 16px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

.roadmap h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.roadmap h3 .product {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.roadmap p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Page header (for inner pages) ---------- */
.page-header {
  padding: 64px 0 40px;
  background:
    radial-gradient(ellipse at top right, rgba(13, 148, 136, 0.06) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--text);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* ---------- About / profile ---------- */
.profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.profile-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: sticky;
  top: 96px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.profile-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.profile-card .title {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.profile-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.profile-meta div {
  margin-bottom: 6px;
}

.profile-meta strong {
  color: var(--text);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  color: var(--text-light);
  font-weight: 600;
}

.profile-content h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.profile-content h2:not(:first-child) {
  margin-top: 40px;
}

.profile-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.profile-content ul {
  list-style: none;
  margin: 16px 0;
}

.profile-content ul li {
  padding: 8px 0 8px 22px;
  color: var(--text-muted);
  position: relative;
  line-height: 1.6;
}

.profile-content ul li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  padding: 5px 11px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
  color: var(--text);
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p, .contact-info a {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-info a:hover {
  color: var(--primary);
}

.form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form label.required::after {
  content: " *";
  color: var(--primary);
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 16px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.legal-content ul,
.legal-content ol {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

.legal-content .legal-address {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 12px 0 20px;
  color: var(--text);
}

.legal-content .legal-updated {
  display: inline-block;
  margin-top: 40px;
  padding: 6px 14px;
  background: var(--bg-muted);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 32px;
  background: var(--text);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #94a3b8;
  margin-left: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 340px; justify-self: center; }
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .nav-toggle { display: inline-flex; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .roadmap-inner { padding: 32px 20px; }
  .brand-sub { display: none; }
}
