/* ===========================
   OpenWorks - Modern Design
   =========================== */

:root {
  --bg: #ffffff;
  --bg-secondary: #f6faf8;
  --bg-tertiary: #edf7f2;
  --border: #e2ece7;
  --text: #1a2b22;
  --text-muted: #5a7468;
  --accent: #3db87a;
  --accent-hover: #2ea568;
  --accent-light: rgba(61, 184, 122, 0.1);
  --accent-border: rgba(61, 184, 122, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1100px;
  --container-pad: 2rem;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ===========================
   NAVIGATION
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  overflow: visible;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--text); }
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: 0.25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 1001;
  position: relative;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 70%, rgba(61, 184, 122, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(61, 184, 122, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(61, 184, 122, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  background: var(--accent-light);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #28a065 0%, #3db87a 50%, #5ecf95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.service-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-secondary);
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(61, 184, 122, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ===========================
   CARDS
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 184, 122, 0.12);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ===========================
   STATS
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===========================
   PAGE HERO
   =========================== */
.page-hero {
  padding: 9rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label {
  display: block;
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===========================
   COMPANY TABLE
   =========================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr {
  border-bottom: 1px solid var(--border);
}
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  width: 180px;
  padding: 1.25rem 1rem 1.25rem 0;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: top;
  white-space: nowrap;
}
.company-table td {
  padding: 1.25rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===========================
   CONTACT
   =========================== */
.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 560px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-item-value {
  font-size: 0.92rem;
}
.contact-item-value a { color: var(--text); }
.contact-item-value a:hover { color: var(--accent); }

/* ===========================
   BLOG LAYOUT
   =========================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
  padding: 8rem 0 6rem;
  min-width: 0;
}
.blog-main {
  min-width: 0;
  overflow: hidden;
}
.post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}
.post-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.post-meta a { color: var(--text-muted); }
.post-meta a:hover { color: var(--accent); }
.post-meta-sep { color: var(--border); }
.post-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); }
.post-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.btn-read {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
.btn-read:hover { text-decoration: underline; }

/* Sidebar */
.sidebar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a { color: var(--text-muted); }
.sidebar-widget a:hover { color: var(--text); }
.sidebar-post-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  background: var(--bg-secondary);
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--text);
  color: #cdd9d4;
  border-top: none;
  padding: 4rem 0 2rem;
}
.site-footer .nav-logo { color: #fff; }
.site-footer .footer-brand p { color: #8ba89e; }
.site-footer .footer-col h4 { color: #8ba89e; }
.site-footer .footer-col a { color: #8ba89e; }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-col p { color: #8ba89e; }
.site-footer .footer-bottom { border-top-color: #2e3f38; }
.site-footer .footer-bottom p { color: #8ba89e; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-col p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ===========================
   POST FULL
   =========================== */
.post-full {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2rem;
}
.post-full-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.post-full-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 1rem 0;
  line-height: 1.3;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.post-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.post-full-content {
  line-height: 1.85;
  font-size: 0.95rem;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.post-full-content img,
.post-full-content table,
.post-full-content iframe {
  max-width: 100%;
}
.post-full-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-full-content h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.post-full-content h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}
.post-full-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.post-full-content ul,
.post-full-content ol {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-full-content li { margin-bottom: 0.4rem; }
.post-full-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.post-full-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.post-full-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
}
.post-full-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-full-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ===========================
   PROSE (Privacy etc.)
   =========================== */
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
}
.prose strong { color: var(--text); }

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   CARD LIST
   =========================== */
.card-list {
  list-style: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.card-list li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ===========================
   FEATURES GRID
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition);
}
.feature-item:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
}
.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.feature-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ===========================
   BLOG PREVIEW
   =========================== */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-preview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.blog-preview-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.blog-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.blog-preview-cat {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
}
.blog-preview-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.blog-preview-card h3 a { color: var(--text); }
.blog-preview-card h3 a:hover { color: var(--accent); }
.blog-preview-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  padding: 7rem 0;
  background: var(--accent);
  border-top: none;
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--accent);
}
.cta-section .btn-primary:hover {
  background: #f0faf5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-contact-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.cta-contact-info a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================
   ABOUT PAGE EXTRAS
   =========================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}
.about-intro-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 1rem 0 1.5rem;
  line-height: 1.3;
}
.about-intro-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-intro-stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-stat {
  background: var(--bg-secondary);
  padding: 1.75rem;
  text-align: center;
}
.about-stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}
.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 3rem; }
  .about-intro-stats { flex-direction: row; flex-wrap: wrap; }
  .about-stat { flex: 1; min-width: 120px; }
}

@media (max-width: 768px) {
  :root { --container-pad: 1rem; }
  .post-full {
    padding: 1.25rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 0;
  }
  .post-full-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }
  .post-full-title { font-size: 1.45rem; }
  .post-full-content { font-size: 0.95rem; }
  .post-full-content pre {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    background: var(--bg);
    padding: 2rem 1.5rem;
    gap: 0;
    align-items: stretch;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .nav-links.open li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }
  .nav-links.open a::after { display: none; }
  .nav-toggle { display: flex; }

  .blog-layout { grid-template-columns: 1fr; padding: 7rem 0 4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .company-table th { width: 120px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
  :root { --container-pad: 0.875rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .contact-card { padding: 1.5rem; }
  .post-card { padding: 1.25rem; }
  .blog-hero { padding: 1.5rem 0 1.25rem; }
}

/* ── Blog Hero ─────────────────────────────────────────────── */
.blog-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.blog-hero h1 {
  font-size: 2rem;
  margin: 0.5rem 0 0.75rem;
}
.blog-hero p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.blog-categories-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.category-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.category-badge:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Post category link (inline in post-meta) ──────────────── */
.post-category-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}
.post-category-link:hover { text-decoration: underline; }

/* ── Category Hero (category pages) ───────────────────────── */
.category-hero {
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.category-hero h1 {
  font-size: 1.75rem;
  margin: 0.4rem 0 0.6rem;
}
.category-hero p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.btn-back {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.btn-back:hover { text-decoration: underline; }

/* ── Sidebar categories as badges ──────────────────────────── */
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-category-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.sidebar-category-badge:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.sidebar-category-badge span {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 1rem;
}

/* ── Sidebar tags ───────────────────────────────────────────── */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sidebar-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #f0f0f0;
  border-radius: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── No posts ───────────────────────────────────────────────── */
.no-posts-message, .no-posts {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
}
