/* ═══════════════════════════════════════════════════
   ALVIRO BLOG — Shared Styles
   ═══════════════════════════════════════════════════ */

:root {
  --navy:        #1A345E;
  --blue:        #2F5CB5;
  --blue-light:  #3D6FCC;
  --teal:        #00B4CC;
  --text:        #111827;
  --body:        #4F5D77;
  --muted:       #6B7280;
  --bg:          #F8FAFC;
  --bg-alt:      #F1F5F9;
  --surface:     #FFFFFF;
  --border:      #E5E7EB;
  --border-hi:   rgba(47,92,181,0.22);
  --shadow-sm:   0 1px 3px rgba(26,52,94,0.08), 0 1px 2px rgba(26,52,94,0.04);
  --shadow-md:   0 4px 16px rgba(26,52,94,0.10), 0 2px 6px rgba(26,52,94,0.06);
  --shadow-lg:   0 12px 40px rgba(26,52,94,0.14), 0 4px 12px rgba(26,52,94,0.08);
  --f: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── NAVIGATION ─────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 600; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

/* ── HAMBURGER ──────────────────────────── */
.nav-mobile-cta { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.nav-burger:hover { background: rgba(255,255,255,0.1); }
.nav-burger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  width: 100%;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ─────────────────────────────── */
.footer {
  background: #0d1e3a;
  padding: 56px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-wrap img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 280px;
}
.footer-location {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  margin-top: 10px;
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ── BLOG LISTING ───────────────────────── */
.blog-hero {
  background: var(--surface);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(47,92,181,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
}
.blog-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.blog-hero .breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.blog-hero .breadcrumb a:hover { text-decoration: underline; }
.blog-hero .breadcrumb svg { opacity: 0.4; }
.blog-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 12px;
}
.blog-hero p {
  font-size: 17px;
  color: var(--body);
  line-height: 1.7;
  max-width: 560px;
}

/* ── CATEGORY FILTERS ───────────────────── */
.blog-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
}
.filter-btn {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--f);
  color: var(--body);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ── POST CARDS ─────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 36px 0 80px;
}
.post-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-card-body {
  padding: 28px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-category {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.post-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 10px;
}
.post-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card h3 a:hover { color: var(--blue); }
.post-excerpt {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-meta time { font-weight: 500; }
.post-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.post-read-link:hover { gap: 8px; }
.post-read-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── EMPTY STATE ────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 64px 24px;
  grid-column: 1 / -1;
}
.blog-empty p {
  font-size: 16px;
  color: var(--muted);
}

/* ── ARTICLE ────────────────────────────── */
.article-hero {
  background: var(--surface);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(47,92,181,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.article-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-hero .breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.article-hero .breadcrumb a:hover { text-decoration: underline; }
.article-hero .breadcrumb svg { opacity: 0.4; }
.article-category {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.article-meta time { font-weight: 500; }
.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ── ARTICLE BODY ───────────────────────── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy);
  margin: 48px 0 16px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
}
.article-body p {
  font-size: 17px;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  font-size: 17px;
  color: var(--body);
  line-height: 1.8;
  margin: 0 0 20px 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body blockquote p {
  font-size: 16px;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0;
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.article-body a:hover { color: var(--blue-light); }

/* ── ARTICLE FOOTER ─────────────────────── */
.article-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.article-back:hover {
  border-color: var(--blue);
  gap: 12px;
}
.article-back:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 960px) {
  .nav { overflow: visible; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    padding: 0 0 12px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-mobile-cta { display: block; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 32px;
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-mobile-cta {
    display: block;
    margin: 12px 24px 4px;
    padding: 13px 24px;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  .nav-mobile-cta:hover { background: var(--blue-light); }

  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .blog-hero h1 { font-size: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 30px; }
  .article-body { padding: 36px 20px 64px; }
  .article-body h2 { font-size: 22px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 16px; }
  .article-footer { padding: 0 20px 64px; }
}
