/*
Theme Name: GTM Wave
Theme URI: https://gtmwave.com
Author: GTM Wave
Author URI: https://gtmwave.com
Description: Official GTM Wave WordPress theme — built for high-conversion landing pages and editorial blogs. Dark, modern, performance-first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: gtmwave
Tags: dark, blog, business, marketing, one-column, two-columns, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   GTM WAVE — DESIGN TOKENS
   ========================================================================== */

:root {
  /* Brand Colors — sourced from gtmwave.com live site */
  --color-bg:          #FFFFFF;
  --color-bg-alt:      #F8FAFC;
  --color-bg-card:     #F1F5F9;
  --color-bg-card-alt: #E2E8F0;
  --color-border:      rgba(0, 0, 0, 0.08);
  --color-border-mid:  rgba(0, 0, 0, 0.14);

  /* Accent System — matched from gtmwave.com live site */
  --color-accent:          #5B5BD6;
  --color-accent-bright:   #7C7CE8;
  --color-accent-glow:     rgba(91, 91, 214, 0.22);
  --color-accent-2:        #8B5CF6;
  --color-accent-gradient: linear-gradient(135deg, #5B5BD6 0%, #8B5CF6 100%);
  --color-wave-gradient:   linear-gradient(135deg, #4343C8 0%, #7C3AED 50%, #4343C8 100%);

  /* Text */
  --color-text:        #1E293B;
  --color-text-muted:  #64748B;
  --color-text-faint:  #94A3B8;
  --color-heading:     #0F172A;

  /* Semantic */
  --color-success: #10B981;
  --color-danger:  #EF4444;

  /* Typography */
  --font-display: 'Syne', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 32px rgba(59, 130, 246, 0.3);
  --shadow-glow:   0 0 60px rgba(59, 130, 246, 0.15);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width:      1200px;
  --max-width-blog: 760px;
  --nav-height:     82px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

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

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

/* Solid white background so the body grid texture stays
   purely decorative and never bleeds through page content. */
.site-main,
.site-content,
#content,
#page,
.wp-site-blocks,
.entry-content,
main {
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
  z-index: 1;
}

body { margin: 0 !important; padding: 0 !important; overflow-x: hidden; }

/* Subtle grid background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

img, video, svg { max-width: 100%; display: block; }
a { color: var(--color-accent-bright); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

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

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--color-heading); }

/* Hide plugin-injected breadcrumbs & page titles site-wide */
.breadcrumbs,
.breadcrumb,
.rank-math-breadcrumb,
.yoast-breadcrumb,
.woocommerce-breadcrumb,
.page-header-breadcrumb,
.elementor-location-header .breadcrumbs { display: none !important; }
em, i { font-style: italic; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--color-bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-sm);
}
code { padding: 2px 6px; }
pre { padding: var(--space-md); overflow-x: auto; margin: var(--space-md) 0; }
pre code { background: none; border: none; padding: 0; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--max-width-blog);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent-gradient);
  border-radius: 2px;
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }
.text-center .section-label { margin-left: auto; margin-right: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(91, 91, 214, 0.30);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7C7CE8 0%, #A78BFA 100%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: inherit;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(91, 91, 214, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(91, 91, 214, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-mid);
}

.btn-secondary:hover {
  background: var(--color-bg-card);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91, 91, 214, 0.12);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 12px 20px;
}
.btn-ghost:hover {
  color: var(--color-accent);
  background: rgba(91, 91, 214, 0.10);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  border-color: var(--color-border-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(59, 130, 246, 0.08);
}

.card:hover::before { opacity: 1; }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 22px;
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--color-heading);
}

.card__body {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Hard reset — WordPress injects <ul><li> into menus */
#site-header ul,
#site-header ol,
#site-header li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
#site-header li::before,
#site-header li::marker {
  content: none !important;
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition:
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-logo {
  flex-shrink: 0;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: var(--space-xs);
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-menu .nav-menu__list {
  display: flex !important;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo a {
  display: flex;
  align-items: center;
}

/* Kill bullets on ALL nested menu elements */
.nav-menu li,
.nav-menu ul,
.nav-menu ul li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-menu > li::marker,
.nav-menu > li::before {
  display: none !important;
  content: none !important;
}

/* --- Nav link base state --- */
.nav-menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast);
  background: transparent !important;
}

/* --- Hover: accent color only, no background --- */
.nav-menu a:hover {
  color: var(--color-accent) !important;
  background: transparent !important;
}

/* --- Active/current page: same as default, no highlight ---
     WordPress adds current-menu-item, current_page_item, current-menu-ancestor
     to the active page. We explicitly reset all of them. */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_ancestor > a,
.nav-menu a.current_page_item {
  color: var(--color-text-muted) !important;
  background: transparent !important;
  font-weight: 500 !important;
}

.nav-menu .current-menu-item > a:hover,
.nav-menu .current_page_item > a:hover,
.nav-menu .current-menu-ancestor > a:hover,
.nav-menu .current_page_ancestor > a:hover,
.nav-menu a.current_page_item:hover {
  color: var(--color-accent) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* WordPress wraps the logo in <a class="custom-logo-link"> or <figure> —
   force both to stay left-aligned and not stretch full width */
.footer-brand .custom-logo-link,
.footer-brand figure,
.footer-brand .wp-block-site-logo {
  display: inline-flex !important;
  align-self: flex-start !important;
  width: auto !important;
  margin: 0 0 var(--space-md) 0 !important;
}

.footer-brand img,
.footer-brand .custom-logo {
  height: 32px;
  width: auto;
  display: block;
  margin: 0;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: 28ch;
  margin-bottom: 0;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-col ul li a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--text-sm);
  color: var(--color-accent-bright);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--color-accent); }
  50% { box-shadow: 0 0 16px var(--color-accent), 0 0 24px var(--color-accent); }
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.hero__title .gradient-text {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

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

.hero__note {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ==========================================================================
   BLOG / CONTENT STYLES
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--color-border-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.post-card__thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: var(--color-bg-card-alt);
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.post-card:hover .post-card__thumbnail img {
  transform: scale(1.04);
}

.post-card__thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

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

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.post-card__cat {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  background: var(--color-accent-glow);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.post-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.post-card__title {
  font-size: var(--text-xl);
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  flex: 1;
}

.post-card__title a {
  color: var(--color-heading);
}

.post-card__title a:hover { color: var(--color-accent-bright); }

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

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.post-card__read-time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.single-post {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.post-header {
  max-width: var(--max-width-blog);
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-lg);
  text-align: center;
}

.post-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.post-header__cat {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-bright);
  background: var(--color-accent-glow);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.post-header__date,
.post-header__read-time,
.post-header__author {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-header__title {
  font-size: clamp(var(--text-3xl), 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.post-header__excerpt {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.post-featured-img {
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.post-featured-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

.post-content {
  max-width: var(--max-width-blog);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.post-content h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.post-content h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.post-content h4 {
  font-size: var(--text-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.post-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  list-style: revert;
  margin: var(--space-md) 0;
  padding-left: 1.5rem;
}

.post-content li {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--color-accent-bright);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.3);
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration-color: var(--color-accent-bright);
}

.post-content img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--text-sm);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.post-content thead {
  background: var(--color-bg-card);
}

.post-content th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-heading);
  border-bottom: 1px solid var(--color-border-mid);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.post-content tbody tr:hover { background: var(--color-bg-card); }

.post-author-box {
  max-width: var(--max-width-blog);
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.post-author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-box__name {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.post-author-box__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background: var(--color-bg-card);
  border-color: var(--color-accent);
  color: var(--color-accent-bright);
}

.pagination .current {
  background: var(--color-accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   BADGE / TAGS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--blue {
  background: var(--color-accent-glow);
  color: var(--color-accent-bright);
}

.badge--green {
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
}

.badge--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #A78BFA;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: var(--text-sm);
}

.comparison-table thead tr {
  background: var(--color-bg-card);
}

.comparison-table th {
  padding: 20px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-heading);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border-mid);
}

.comparison-table th:first-child { text-align: left; }
.comparison-table th:last-child { border-right: none; }

.comparison-table th.featured {
  background: var(--color-accent-glow);
  color: var(--color-accent-bright);
}

.comparison-table td {
  padding: 16px 20px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-align: center;
  vertical-align: middle;
}

.comparison-table td:first-child { text-align: left; color: var(--color-text); }
.comparison-table td:last-child { border-right: none; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--color-bg-card); }

.comparison-table td.featured {
  background: rgba(59, 130, 246, 0.04);
}

.check { color: var(--color-success); font-size: 18px; }
.cross { color: var(--color-text-faint); font-size: 18px; }

/* ==========================================================================
   SEARCH
   ========================================================================== */

.search-form {
  display: flex;
  gap: var(--space-xs);
  max-width: 500px;
  margin: 0 auto;
}

.search-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
}

.search-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.search-form button {
  padding: 14px 24px;
  background: var(--color-accent-gradient);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: var(--text-sm);
}

/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

.fade-in {
  animation: fadeInUp 0.6s var(--transition-smooth) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger > * { animation: fadeInUp 0.6s var(--transition-smooth) both; }
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.3s; }
.stagger > *:nth-child(5) { animation-delay: 0.4s; }
.stagger > *:nth-child(6) { animation-delay: 0.5s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .nav-right { gap: var(--space-sm); }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(7, 8, 13, 0.97);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-xs);
  }

  .menu-toggle { display: flex; }

  .nav-cta .btn { font-size: var(--text-xs); padding: 10px 16px; }

  .grid-2,
  .grid-3,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .hero__actions { flex-direction: column; align-items: stretch; max-width: 300px; margin-left: auto; margin-right: auto; }

  .post-author-box { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .container--narrow { padding: 0 var(--space-md); }
  .post-content { padding: 0 var(--space-md); }
  .post-header { padding: 0 var(--space-md); }
}

/* ==========================================================================
   WORDPRESS BLOCK EDITOR
   ========================================================================== */

.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-quote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

.alignwide {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.gradient-text {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent-bright); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--color-accent);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-link:focus { top: 0; }