/*
Theme Name: ServerVK Industrial Hub
Theme URI: https://servervk.eu
Author: ServerVK.eu
Author URI: https://servervk.eu
Description: Profesjonalny motyw Industrial High-Tech dla portalu maszyn budowlanych i nowych technologii. Zaprojektowany z myślą o Core Web Vitals, semantycznym HTML5 i pełnej responsywności Mobile First.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: servervk
Tags: blog, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, two-columns, right-sidebar
*/

/* ============================================================
   DESIGN TOKENS & CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --clr-orange:        #FF6B00;
  --clr-orange-dark:   #E05A00;
  --clr-orange-light:  #FF8C33;
  --clr-orange-glow:   rgba(255, 107, 0, 0.18);

  --clr-graphite:      #2C3E50;
  --clr-graphite-dark: #1A252F;
  --clr-graphite-mid:  #34495E;
  --clr-graphite-light:#4A6278;

  --clr-white:         #FFFFFF;
  --clr-offwhite:      #F5F6F8;
  --clr-light-grey:    #E8EAED;
  --clr-mid-grey:      #9AA5B4;
  --clr-text-body:     #3D4F61;

  /* Semantic */
  --clr-bg-page:       var(--clr-offwhite);
  --clr-bg-card:       var(--clr-white);
  --clr-bg-header:     var(--clr-graphite-dark);
  --clr-bg-footer:     var(--clr-graphite-dark);
  --clr-accent:        var(--clr-orange);
  --clr-text-heading:  var(--clr-graphite);
  --clr-text-muted:    var(--clr-mid-grey);

  /* Typography */
  --font-heading:      'Montserrat', 'Segoe UI', sans-serif;
  --font-body:         'Inter', 'Segoe UI', sans-serif;
  --font-mono:         'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.375rem;
  --text-xl:    1.75rem;
  --text-2xl:   2.25rem;
  --text-3xl:   3rem;
  --text-4xl:   3.75rem;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Layout */
  --container-max:   1200px;
  --container-wide:  1400px;
  --header-h:        72px;

  /* Effects */
  --shadow-sm:   0 1px 3px rgba(44,62,80,0.08), 0 1px 2px rgba(44,62,80,0.05);
  --shadow-md:   0 4px 16px rgba(44,62,80,0.10), 0 2px 6px rgba(44,62,80,0.07);
  --shadow-lg:   0 12px 40px rgba(44,62,80,0.14), 0 4px 12px rgba(44,62,80,0.08);
  --shadow-orange: 0 4px 24px rgba(255,107,0,0.30);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  --transition-fast:   150ms ease;
  --transition-base:   260ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   420ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Industrial texture overlay */
  --noise-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--clr-text-body);
  background-color: var(--clr-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--clr-orange-dark); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text-heading);
  letter-spacing: -0.02em;
}

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.container--wide {
  max-width: var(--container-wide);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-orange  { color: var(--clr-orange); }
.text-white   { color: var(--clr-white); }
.text-muted   { color: var(--clr-text-muted); }
.text-center  { text-align: center; }
.text-upper   { text-transform: uppercase; letter-spacing: 0.08em; }

/* Section spacing */
.section { padding-block: var(--space-3xl); }
.section--sm { padding-block: var(--space-2xl); }
.section--dark {
  background: var(--clr-graphite);
  color: var(--clr-white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--clr-white);
}
.section--accent {
  background: var(--clr-orange);
  color: var(--clr-white);
}

/* Section header */
.section-header {
  margin-bottom: var(--space-2xl);
}
.section-header--center {
  text-align: center;
}
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-orange);
  background: var(--clr-orange-glow);
  padding: 4px 12px;
  border-radius: 2px;
  border-left: 3px solid var(--clr-orange);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  color: var(--clr-graphite);
}
.section-title--light { color: var(--clr-white); }
.section-subtitle {
  font-size: var(--text-md);
  color: var(--clr-text-muted);
  max-width: 56ch;
  margin-top: var(--space-sm);
}
.section-subtitle--light { color: rgba(255,255,255,0.7); }

/* Divider accent line */
.accent-line {
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-orange), var(--clr-orange-light));
  border-radius: 2px;
  margin-top: var(--space-sm);
}
.section-header--center .accent-line {
  margin-inline: auto;
}

/* ============================================================
   BUTTONS / CTA
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform var(--transition-base);
}
.btn:hover::after { transform: translateX(100%) skewX(-15deg); }

/* Primary – Safety Orange */
.btn--primary {
  background: var(--clr-orange);
  color: var(--clr-white);
  border-color: var(--clr-orange);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: var(--clr-orange-dark);
  border-color: var(--clr-orange-dark);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,107,0,0.40);
}
.btn--primary:active { transform: translateY(0); }

/* Secondary – outline */
.btn--secondary {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--clr-white);
  color: var(--clr-white);
  transform: translateY(-2px);
}

/* Ghost on light bg */
.btn--ghost {
  background: transparent;
  color: var(--clr-orange);
  border-color: var(--clr-orange);
}
.btn--ghost:hover {
  background: var(--clr-orange);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
}
.btn--lg {
  padding: 18px 36px;
  font-size: var(--text-base);
}

/* Arrow icon helper */
.btn .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--clr-bg-header);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.site-header.scrolled {
  background: rgba(26, 37, 47, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}
.site-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.site-name span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--clr-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Primary navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.primary-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 24px);
  height: 2px;
  background: var(--clr-orange);
  border-radius: 1px;
  transition: transform var(--transition-fast);
}
.primary-nav a:hover {
  color: var(--clr-white);
  background: rgba(255,255,255,0.07);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after {
  transform: translateX(-50%) scaleX(1);
}
.primary-nav .current-menu-item a {
  color: var(--clr-white);
}

/* CTA in nav */
.nav-cta {
  margin-left: var(--space-md);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--clr-white);
  border-radius: 1px;
  transition: all var(--transition-base);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--clr-graphite-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero.png');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform-origin: center;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.00); }
  to   { transform: scale(1.06); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 37, 47, 0.88) 0%,
    rgba(44, 62, 80, 0.72) 50%,
    rgba(26, 37, 47, 0.60) 100%
  );
}
/* Industrial grid lines overlay */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-3xl);
  max-width: 700px;
  animation: fadeSlideUp 0.8s var(--transition-slow) both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: var(--space-lg);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--clr-orange);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 5.5vw, var(--text-4xl));
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}
.hero__title .highlight {
  color: var(--clr-orange);
  position: relative;
}
.hero__title .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-orange), transparent);
  border-radius: 2px;
}

.hero__desc {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* Stats bar inside hero */
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-block: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.hero__stats-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.hero__stat-item {
  display: flex;
  flex-direction: column;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--clr-orange);
  line-height: 1;
}
.hero__stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ============================================================
   TICKER / BREAKING NEWS BAR
   ============================================================ */
.news-ticker {
  background: var(--clr-orange);
  padding-block: 10px;
  overflow: hidden;
}
.news-ticker__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.ticker-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-white);
  background: rgba(0,0,0,0.15);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: inline-flex;
  gap: var(--space-xl);
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-content span {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-white);
}
.ticker-content span::before {
  content: '▶';
  margin-right: var(--space-sm);
  opacity: 0.7;
  font-size: 0.6em;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CATEGORY CARDS GRID (3-column)
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-light-grey);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: inherit;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-orange), var(--clr-orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--clr-orange-glow) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-lg);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-orange-light);
  color: inherit;
}
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover::after  { opacity: 1; }

.category-card__icon {
  width: 56px;
  height: 56px;
  background: var(--clr-orange-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
  transition: background var(--transition-base), transform var(--transition-base);
}
.category-card:hover .category-card__icon {
  background: var(--clr-orange);
  transform: scale(1.08);
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-graphite);
  position: relative;
  z-index: 1;
}

.category-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.category-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--clr-light-grey);
  position: relative;
  z-index: 1;
}
.category-card__count {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-orange);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.category-card__link {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--clr-graphite-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}
.category-card:hover .category-card__link { color: var(--clr-orange); }

/* ============================================================
   ARTICLE / POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.posts-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Featured post (spans 2 cols) */
.post-card--featured {
  grid-column: span 2;
}

.post-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-light-grey);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,107,0,0.25);
  color: inherit;
}

.post-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--clr-graphite-light);
}
.post-card--featured .post-card__thumb {
  aspect-ratio: 21/9;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__cat-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white);
  background: var(--clr-orange);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.post-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  font-family: var(--font-heading);
}
.post-card__meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-graphite);
  line-height: 1.3;
  transition: color var(--transition-fast);
  margin-bottom: 0;
}
.post-card--featured .post-card__title {
  font-size: var(--text-xl);
}
.post-card:hover .post-card__title { color: var(--clr-orange); }

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.post-card__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--clr-light-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-card__readmore {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}
.post-card:hover .post-card__readmore { gap: 8px; }

/* ============================================================
   SPECS TABLE
   ============================================================ */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.specs-table thead {
  background: var(--clr-graphite);
}
.specs-table thead th {
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white);
  text-align: left;
}
.specs-table thead th:first-child {
  border-right: 2px solid var(--clr-orange);
}
.specs-table tbody tr {
  border-bottom: 1px solid var(--clr-light-grey);
  transition: background var(--transition-fast);
}
.specs-table tbody tr:last-child { border-bottom: none; }
.specs-table tbody tr:hover { background: rgba(255,107,0,0.04); }
.specs-table tbody td {
  padding: var(--space-md) var(--space-lg);
  color: var(--clr-text-body);
}
.specs-table tbody td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--clr-graphite);
  border-right: 2px solid var(--clr-light-grey);
}
.specs-table .highlight-cell {
  color: var(--clr-orange);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc {
  background: var(--clr-offwhite);
  border-left: 4px solid var(--clr-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  margin-block: var(--space-xl);
}
.toc__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-graphite);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.toc__title::before {
  content: '≡';
  font-size: 1.2em;
  color: var(--clr-orange);
}
.toc ol {
  list-style: decimal;
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.toc li { list-style: decimal; }
.toc a {
  font-size: var(--text-sm);
  color: var(--clr-graphite-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.toc a:hover { color: var(--clr-orange); }

/* ============================================================
   SINGLE ARTICLE LAYOUT
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}

.article-content {
  min-width: 0;
}
.article-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--clr-light-grey);
  position: relative;
}
.article-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--clr-orange);
}
.article-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--clr-graphite);
}
.article-content p { margin-bottom: var(--space-md); }
.article-content ul, .article-content ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li {
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-sm);
}
.article-content ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--clr-orange);
  font-size: 0.6em;
  top: 0.35em;
}
.article-content ol { list-style: decimal; }
.article-content ol li { margin-bottom: var(--space-sm); }
.article-content strong { color: var(--clr-graphite); }
.article-content blockquote {
  border-left: 4px solid var(--clr-orange);
  padding: var(--space-md) var(--space-xl);
  background: var(--clr-orange-glow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: var(--space-lg);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--clr-graphite);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.sidebar-widget {
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-light-grey);
}
.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-graphite);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--clr-orange);
}

/* ============================================================
   NEWSLETTER / CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-graphite-dark) 0%, var(--clr-graphite) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border: 60px solid rgba(255,107,0,0.08);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; right: 80px;
  width: 200px; height: 200px;
  border: 40px solid rgba(255,107,0,0.05);
  border-radius: 50%;
}
.cta-banner__text { position: relative; z-index: 1; }
.cta-banner__title {
  font-size: var(--text-2xl);
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
}
.cta-banner__desc {
  color: rgba(255,255,255,0.65);
  max-width: 46ch;
  margin-bottom: 0;
}
.cta-banner__actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.newsletter-input {
  flex: 1;
  min-width: 220px;
  padding: 14px var(--space-lg);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
  outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: var(--clr-orange); }

/* ============================================================
   TAG / BADGE CLOUD
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.tag {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-graphite-light);
  background: var(--clr-offwhite);
  border: 1px solid var(--clr-light-grey);
  padding: 5px 12px;
  border-radius: 100px;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.tag:hover {
  color: var(--clr-white);
  background: var(--clr-orange);
  border-color: var(--clr-orange);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}
.pagination a,
.pagination span {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-light-grey);
  color: var(--clr-graphite);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.pagination a:hover,
.pagination .current {
  background: var(--clr-orange);
  border-color: var(--clr-orange);
  color: var(--clr-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-graphite-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand__logo {
  height: 48px;
  margin-bottom: var(--space-md);
}
.footer-brand__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 32ch;
  margin-bottom: var(--space-lg);
}
.footer-socials {
  display: flex;
  gap: var(--space-sm);
}
.footer-social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.footer-social-link:hover {
  background: var(--clr-orange);
  border-color: var(--clr-orange);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--clr-orange);
  display: inline-block;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-nav a::before {
  content: '›';
  color: var(--clr-orange);
  font-weight: 700;
}
.footer-nav a:hover { color: var(--clr-white); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.55);
}
.footer-contact-list .icon {
  color: var(--clr-orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-list a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-contact-list a:hover { color: var(--clr-orange); }

.footer-bottom {
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--clr-orange); }
.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}
.footer-bottom-accent {
  color: var(--clr-orange);
  font-weight: 700;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding-block: var(--space-md);
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumbs a:hover { color: var(--clr-orange); }
.breadcrumbs .sep { color: var(--clr-orange); }
.breadcrumbs .current { color: var(--clr-graphite); font-weight: 600; }

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-lg);
  z-index: 9999;
  padding: var(--space-sm) var(--space-lg);
  background: var(--clr-orange);
  color: var(--clr-white);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-md); }

/* ============================================================
   WORDPRESS SPECIFIC CLASSES
   ============================================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  text-align: center;
  padding-top: var(--space-xs);
}
.alignleft  { float: left; margin-right: var(--space-lg); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-lg); margin-bottom: var(--space-md); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--space-md); }
.wp-block-image { margin-block: var(--space-lg); }
.wp-block-image img { border-radius: var(--radius-md); }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid      { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { grid-column: span 2; }
  .article-layout  { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .cta-banner      { flex-direction: column; text-align: center; }
  .cta-banner__desc { margin-inline: auto; }
  .hero__stats-inner { gap: var(--space-lg); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
    --space-2xl: 2rem;
    --header-h:  60px;
  }

  .site-header .container { gap: var(--space-md); }

  /* Mobile nav */
  .menu-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--clr-graphite-dark);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    transform: translateY(-110%);
    transition: transform var(--transition-base);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 999;
    border-top: 2px solid var(--clr-orange);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a {
    display: block;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .primary-nav a::after { display: none; }
  .nav-cta { margin: var(--space-md) 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .site-logo { height: 36px; }
  .site-name  { display: none; }

  .hero { min-height: 480px; }
  .hero__content { padding-block: var(--space-2xl); }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .categories-grid  { grid-template-columns: 1fr; }
  .posts-grid       { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: span 1; }

  .footer-grid      { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .cta-banner { padding: var(--space-xl); }
  .cta-banner__actions { flex-direction: column; width: 100%; }
  .cta-banner__actions .btn { justify-content: center; }

  .newsletter-form { flex-direction: column; }
  .newsletter-input { min-width: unset; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .news-ticker, .sidebar, .pagination { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-content { max-width: 100%; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  h1,h2,h3 { page-break-after: avoid; }
}
