/* ===================================================
   pages.css — Shared styles for all subpages
   (what-we-do, founder-bio, privacy, terms, impressum)
   =================================================== */

/* ===== RESET & TOKENS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --midnight: #0A1628;
  --deep: #0F1D32;
  --steel-blue: #4A90D9;
  --electric-blue: #2D7DD2;
  --ice-blue: #7EB8F0;
  --snow: #F7F9FC;
  --mist: #E8EDF4;
  --slate: #8494A7;
  --graphite: #3D4F63;
  --charcoal: #1E2A3A;
  --chrome: #DCE3EA;
  --titanium: #B0BEC5;
  --iron: #6B7B8D;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--graphite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION (subpage variant with back link) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 144, 217, 0.15);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  letter-spacing: 3px;
}

.nav-logo span { color: var(--steel-blue); }

.nav-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.nav-back:hover { color: var(--steel-blue); }
.nav-back svg { width: 16px; height: 16px; }

/* ===== FOOTER (subpage variant) ===== */
.footer {
  background: var(--midnight);
  border-top: 1px solid rgba(74, 144, 217, 0.1);
  padding: 32px 40px;
  text-align: center;
}

.footer-text {
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.5px;
}

.footer-text span { color: var(--steel-blue); }

.footer-legal {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 400;
  color: var(--iron);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BOTTOM CTA SECTION (shared by what-we-do & founder-bio) ===== */
.bottom-section {
  background: var(--midnight);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.bottom-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 144, 217, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 217, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bottom-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bottom-quote {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 40px;
}

.bottom-quote em {
  font-style: normal;
  color: var(--steel-blue);
  font-weight: 500;
}

.bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel-blue);
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 8px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.bottom-link:hover {
  background: rgba(74, 144, 217, 0.1);
  border-color: var(--steel-blue);
}

.bottom-link svg { width: 16px; height: 16px; }

/* ===== HERO (subpage variant with grid pattern) ===== */
.hero {
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 144, 217, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 217, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ========================================
   WHAT-WE-DO PAGE
   ======================================== */

/* what-we-do hero */
.page-what-we-do body {
  background: var(--midnight);
}

.page-what-we-do .hero {
  padding: 160px 40px 80px;
  text-align: center;
}

.page-what-we-do .hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-what-we-do .hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.page-what-we-do .hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.page-what-we-do .hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

/* what-we-do cards */
.cards-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

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

.card {
  background: var(--charcoal);
  border-top: 2px solid var(--steel-blue);
  border-radius: 0 0 8px 8px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 14px;
}

.card-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}

.card-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.card-desc em {
  font-style: normal;
  color: var(--ice-blue);
  font-weight: 400;
}

.card:last-child {
  grid-column: 2 / 3;
}

/* what-we-do bottom section — remove top border (already has grid bg) */
.page-what-we-do .bottom-section {
  border-top: none;
}

/* ========================================
   FOUNDER-BIO PAGE
   ======================================== */

.page-founder-bio body {
  background: var(--snow);
}

/* founder-bio hero */
.page-founder-bio .hero {
  padding: 160px 40px 100px;
}

.page-founder-bio .hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--midnight));
  pointer-events: none;
}

.page-founder-bio .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.page-founder-bio .hero-content {
  padding-top: 10px;
}

.page-founder-bio .hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.page-founder-bio .hero-name {
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.page-founder-bio .hero-role {
  font-size: 20px;
  font-weight: 400;
  color: var(--steel-blue);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.page-founder-bio .hero-hook {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  max-width: 580px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}

/* founder photo */
.hero-photo-wrap {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.25s forwards;
}

.hero-photo {
  width: 340px;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--charcoal);
  border: 1px solid rgba(74, 144, 217, 0.15);
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events: none;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(165deg, var(--charcoal) 0%, var(--midnight) 100%);
  position: relative;
  overflow: hidden;
}

.photo-placeholder::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08), transparent 70%);
}

.photo-initials {
  font-size: 64px;
  font-weight: 700;
  color: rgba(74, 144, 217, 0.25);
  letter-spacing: 6px;
  position: relative;
}

.photo-note {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(132, 148, 167, 0.5);
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* founder bio content */
.bio-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.bio-narrative {
  max-width: 640px;
}

.bio-paragraph {
  font-size: 17px;
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: 24px;
}

.bio-paragraph.bridge {
  font-size: 20px;
  font-weight: 500;
  color: var(--midnight);
  margin: 40px 0;
  padding: 28px 0;
  border-top: 2px solid var(--mist);
  border-bottom: 2px solid var(--mist);
  line-height: 1.6;
}

.bio-paragraph.closing {
  font-size: 18px;
  font-weight: 500;
  color: var(--midnight);
  margin-top: 40px;
  line-height: 1.7;
}

/* facts sidebar */
.facts-sidebar {
  position: sticky;
  top: 100px;
}

.facts-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
}

.facts-header {
  background: var(--midnight);
  padding: 20px 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel-blue);
}

.facts-list {
  padding: 8px 0;
}

.fact-item {
  padding: 14px 24px;
  border-bottom: 1px solid var(--mist);
}

.fact-item:last-child {
  border-bottom: none;
}

.fact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}

.fact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--midnight);
  line-height: 1.5;
}

.fact-value.highlight {
  color: var(--steel-blue);
}

/* ========================================
   LEGAL PAGES (privacy, terms, impressum)
   ======================================== */

.page-legal body {
  background: var(--snow);
}

.page-legal .hero {
  padding: 140px 40px 80px;
}

.page-legal .hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-legal .hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 20px;
}

.page-legal .hero-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* legal content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--midnight);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.legal-content p {
  font-size: 16px;
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--graphite);
}

.legal-content li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--steel-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-content a:hover {
  color: var(--electric-blue);
}

.legal-content .effective-date {
  font-size: 14px;
  color: var(--slate);
  font-weight: 400;
}

.legal-content .placeholder {
  color: var(--slate);
  font-style: italic;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* what-we-do */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card:last-child {
    grid-column: auto;
  }
}

/* founder-bio */
@media (max-width: 900px) {
  .page-founder-bio .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-photo-wrap { order: -1; }
  .hero-photo {
    width: 240px;
    height: 300px;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .facts-sidebar {
    position: static;
  }
}

/* all subpages small screens */
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .footer { padding: 32px 24px; }
  .footer-legal { flex-wrap: wrap; gap: 16px; }
  .bottom-section { padding: 60px 24px; }

  /* what-we-do */
  .page-what-we-do .hero { padding: 140px 24px 60px; }
  .cards-section { padding: 30px 24px 70px; }
  .cards-grid { grid-template-columns: 1fr; }

  /* founder-bio */
  .page-founder-bio .hero { padding: 140px 24px 70px; }
  .bio-section { padding: 50px 24px; }

  /* legal pages */
  .page-legal .hero { padding: 120px 24px 60px; }
  .legal-content { padding: 40px 24px 60px; }
}
