
/* ====================================================================
   WarsawCorporate.biz — Premium Corporate Advisory Boutique
   Design System: Deep Slate + Electric Blue + Clean White
   ==================================================================== */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Base Palette */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* Accent */
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;

  /* Gold/Platinum accent */
  --gold: #d4a853;
  --platinum: #c0c6cc;

  /* Semantic */
  --bg-body:      var(--slate-950);
  --bg-section:   var(--slate-900);
  --bg-card:      var(--slate-800);
  --bg-card-hover:var(--slate-700);
  --text-primary: var(--slate-100);
  --text-secondary:var(--slate-400);
  --text-muted:   var(--slate-500);
  --accent:       var(--blue-500);
  --accent-light: var(--blue-400);
  --border:       rgba(148,163,184,0.12);

  /* Layout */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.4);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-300); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- UTILITY ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- SCROLL ANIMATIONS ---------- */
.anim-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.anim-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.anim-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.anim-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .anim-reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .anim-reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .anim-reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .anim-reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .anim-reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .anim-reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger-children .anim-reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger-children .anim-reveal:nth-child(8) { transition-delay: 0.56s; }
.stagger-children .anim-reveal:nth-child(9) { transition-delay: 0.64s; }

/* ---------- HEADER / GLASSMORPHISM NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.60);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.logo-link { display: flex; align-items: center; gap: 0; }
.logo-link svg { height: 36px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-300);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--slate-200);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--slate-950) 0%, var(--slate-900) 40%, #0c1a3d 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 60%);
  border-radius: 50%;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(96,165,250,0.05) 0%, transparent 60%);
  border-radius: 50%;
  animation: heroGlow 10s ease-in-out 2s infinite alternate;
}
@keyframes heroGlow {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(20px, -20px); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-400);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.8s 0.2s both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 22px;
  animation: fadeSlideUp 0.8s 0.35s both;
}
.hero h1 span {
  display: inline;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--slate-400);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
  animation: fadeSlideUp 0.8s 0.5s both;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: fadeSlideUp 0.8s 0.65s both;
}
.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--blue-500);
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
  color: #fff;
}
.hero-cta svg { width: 18px; height: 18px; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero grid decoration */
.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--slate-900);
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---------- ARTICLE CARDS (Grid) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(59,130,246,0.2);
}
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 800 / 440;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-img-wrap .card-cat-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--slate-100);
  line-height: 1.45;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.card:hover .card-body h3 { color: var(--blue-400); }
.card-body p {
  font-size: 0.88rem;
  color: var(--slate-400);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-400);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.card:hover .card-read-more { gap: 10px; }
.card-read-more svg { width: 14px; height: 14px; }

/* ---------- CATEGORY PAGE HEADER ---------- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--slate-900) 0%, var(--slate-950) 100%);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.page-header p {
  color: var(--slate-400);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- ARTICLE PAGE ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 140px 0 80px;
}
.article-main {}
.article-main .article-hero-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}
.article-main .article-hero-img img {
  width: 100%; height: auto;
  display: block;
}
.article-main h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 28px;
}
/* TOC */
.toc {
  background: var(--slate-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.toc-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}
.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
}
.toc ol li a {
  font-size: 0.9rem;
  color: var(--slate-300);
  display: flex;
  gap: 8px;
  transition: color var(--transition), padding-left var(--transition);
}
.toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  color: var(--slate-500);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 20px;
}
.toc ol li a:hover { color: var(--blue-400); padding-left: 4px; }
.toc ol li.toc-h3 { padding-left: 28px; }
.toc ol li.toc-h3 a { font-size: 0.85rem; color: var(--slate-400); }

/* Article prose */
.article-prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 48px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.article-prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-200);
  margin: 32px 0 12px;
}
.article-prose p {
  color: var(--slate-300);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.85;
}
.article-prose strong { color: var(--slate-100); }
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-prose thead { background: var(--slate-800); }
.article-prose th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--slate-200);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-prose td {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: var(--slate-300);
}
.article-prose tbody tr:hover { background: rgba(59,130,246,0.04); }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.sidebar-card {
  background: var(--slate-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.sidebar-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-post {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  transition: transform var(--transition);
}
.sidebar-post:hover { transform: translateX(4px); }
.sidebar-post-img {
  width: 72px; height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.sidebar-post-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-text h5 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-200);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color var(--transition);
}
.sidebar-post:hover .sidebar-post-text h5 { color: var(--blue-400); }
.sidebar-post-text span {
  font-size: 0.72rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--slate-900);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-about p {
  color: var(--slate-400);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 16px;
}
.footer-contact h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  margin-bottom: 14px;
}
.footer-contact p {
  color: var(--slate-400);
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-contact a { color: var(--blue-400); }
.footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--slate-500);
}
.footer-bar-links { display: flex; gap: 24px; }
.footer-bar-links a { color: var(--slate-500); }
.footer-bar-links a:hover { color: var(--blue-400); }

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(20px);
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; }
  .hamburger { display: flex; }

  .hero { min-height: 80vh; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); }

  .card-grid { grid-template-columns: 1fr; }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }
  .article-sidebar {
    position: static;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .section { padding: 60px 0; }
  .hero { min-height: 70vh; }
}
