/*
 * theme-2026.css — Felicitas 2026 Global Design System
 * Navbar · Footer · Bento Grid · IBM Plex Superfamily
 * Apply to every page via <link rel="stylesheet" href="css/theme-2026.css">
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;600&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --f26-bg:        #F9F9F9;
  --f26-surface:   #FFFFFF;
  --f26-ink:       #1A1A1A;
  --f26-muted:     #6B6B6B;
  --f26-border:    #E0E0E0;
  --f26-radius:    16px;
  --f26-serif:     'IBM Plex Serif', Georgia, serif;
  --f26-sans:      'IBM Plex Sans', system-ui, sans-serif;
  --f26-mono:      'IBM Plex Mono', monospace;
  --f26-teal:      #4A9B8E;
  --f26-nav-h:     68px;
}

/* ── Global body override ──────────────────────────────────────────────────── */
body {
  background-color: var(--f26-bg);
  font-family: var(--f26-sans);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR — Glassmorphism sticky
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--f26-nav-h);
  z-index: 1000;
  background: rgba(249, 249, 249, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 224, 224, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(249, 249, 249, 0.92);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand — IBM Plex Serif */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.navbar-brand span {
  font-family: var(--f26-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--f26-ink);
  letter-spacing: -0.02em;
}

/* Nav links — IBM Plex Sans */
.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.navbar-nav li { margin: 0; }

.nav-link {
  font-family: var(--f26-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--f26-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--f26-ink);
  background: rgba(0, 0, 0, 0.05);
}

.nav-link.nav-cta {
  background: var(--f26-ink);
  color: #fff !important;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 10px;
  margin-left: 8px;
  transition: opacity 0.2s ease;
}

.nav-link.nav-cta:hover {
  opacity: 0.82;
  background: var(--f26-ink);
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--f26-ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }

  .navbar-menu {
    display: none;
    position: absolute;
    top: var(--f26-nav-h);
    left: 0;
    right: 0;
    background: rgba(249, 249, 249, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--f26-border);
    padding: 16px 20px 24px;
  }

  .navbar-menu.open { display: block; }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .nav-link { padding: 10px 12px; width: 100%; }
  .nav-link.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* Body offset for fixed navbar */
body { padding-top: var(--f26-nav-h) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER — Global CTA + Info
   ═══════════════════════════════════════════════════════════════════════════ */

.f26-footer {
  background: #111111;
  color: #CBD2D9;
  font-family: var(--f26-sans);
}

/* CTA Block */
.f26-footer-cta {
  padding: 80px 28px 64px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 680px;
  margin: 0 auto;
}

.f26-footer-cta h2 {
  font-family: var(--f26-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 40px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.f26-footer-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #FFFFFF;
  color: #111111;
  font-family: var(--f26-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--f26-radius);
  transition: opacity 0.2s ease;
  margin-bottom: 48px;
}

.f26-footer-btn:hover { opacity: 0.88; }

/* Three badges */
.f26-footer-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.f26-badge {
  background: rgba(255, 255, 255, 0.04);
  padding: 20px 16px;
  text-align: center;
}

.f26-badge-value {
  font-family: var(--f26-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
  display: block;
  margin-bottom: 4px;
}

.f26-badge-label {
  font-family: var(--f26-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.45);
}

/* Nav + info row */
.f26-footer-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 640px) {
  .f26-footer-body { grid-template-columns: 1fr; gap: 32px; }
  .f26-footer-badges { grid-template-columns: 1fr; }
}

.f26-footer-col-title {
  font-family: var(--f26-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 16px;
}

.f26-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f26-footer-nav a {
  font-family: var(--f26-sans);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.f26-footer-nav a:hover { color: #FFFFFF; }

.f26-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f26-footer-contact a {
  font-family: var(--f26-sans);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}

.f26-footer-contact a:hover { color: #FFFFFF; }

/* Bottom bar */
.f26-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.f26-footer-bottom p {
  font-family: var(--f26-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
  letter-spacing: 0.3px;
}

.f26-footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.f26-footer-bottom a:hover { color: rgba(255, 255, 255, 0.7); }

.f26-footer-social {
  display: flex;
  gap: 16px;
}

.f26-footer-social a {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}

.f26-footer-social a:hover { color: rgba(255, 255, 255, 0.7); }

/* ═══════════════════════════════════════════════════════════════════════════
   BENTO GRID — Blog archive
   ═══════════════════════════════════════════════════════════════════════════ */

.f26-blog-hero {
  padding: 72px 28px 48px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.f26-blog-hero h1 {
  font-family: var(--f26-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--f26-ink);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.f26-blog-hero p {
  font-family: var(--f26-sans);
  font-size: 1rem;
  color: var(--f26-muted);
  margin: 0;
  line-height: 1.65;
}

/* Bento grid container */
.f26-bento {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 100px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: auto;
  gap: 12px;
}

@media (max-width: 768px) {
  .f26-bento { grid-template-columns: 1fr; }
}

/* Base card */
.f26-card {
  background: var(--f26-surface);
  border: 1px solid var(--f26-border);
  border-radius: var(--f26-radius);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  position: relative;
}

.f26-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  text-decoration: none;
}

/* Featured card — spans full height of first two rows */
.f26-card-featured {
  grid-row: span 2;
  padding: 36px;
  background: var(--f26-ink);
}

.f26-card-featured .f26-card-category { color: rgba(255,255,255,0.45); }
.f26-card-featured .f26-card-title    { color: #FFFFFF; }
.f26-card-featured .f26-card-excerpt  { color: rgba(255,255,255,0.6); }
.f26-card-featured .f26-card-cta      { color: rgba(255,255,255,0.7); }
.f26-card-featured:hover .f26-card-cta { color: #FFFFFF; }

/* Card anatomy */
.f26-card-category {
  font-family: var(--f26-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--f26-muted);
  margin-bottom: 14px;
  display: block;
}

.f26-card-title {
  font-family: var(--f26-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--f26-ink);
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.f26-card-featured .f26-card-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 16px;
}

.f26-card-excerpt {
  font-family: var(--f26-sans);
  font-size: 0.875rem;
  color: var(--f26-muted);
  line-height: 1.65;
  margin: 0 0 auto;
  flex-grow: 1;
}

.f26-card-cta {
  font-family: var(--f26-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--f26-muted);
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.f26-card:hover .f26-card-cta { gap: 10px; color: var(--f26-ink); }

/* Scroll reveal — visible by default, JS adds animation */
.f26-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.f26-reveal.animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.f26-reveal.animated.visible {
  opacity: 1;
  transform: none;
}

/* Navbar scroll JS helper */
.navbar-scrolled-js {
  background: rgba(249, 249, 249, 0.95) !important;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07) !important;
}

/* ── Mobile: reduce hero top padding ─────────────────────────────────────── */
@media (max-width: 768px) {
  .f26-blog-hero {
    padding-top: 40px !important;
    padding-bottom: 32px !important;
  }
}
