/*
Theme Name: WilloWare
Theme URI: https://willoware.com
Author: WilloWare Incorporated
Author URI: https://willoware.com
Description: Clean, minimal theme for WilloWare — Software for Dynamics GP & Business Central.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: willoware
Tags: software, business, clean, minimal
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ww-green-900: #04342C;
  --ww-green-800: #085041;
  --ww-green-700: #0F6E56;
  --ww-green-600: #1D9E75;
  --ww-green-400: #5DCAA5;
  --ww-green-200: #9FE1CB;
  --ww-green-100: #C8EFE2;
  --ww-green-50:  #E1F5EE;

  --ww-blue-800:  #0C447C;
  --ww-blue-700:  #185FA5;
  --ww-blue-50:   #E6F1FB;
  --ww-blue-100:  #B5D4F4;

  --ww-amber-800: #633806;
  --ww-amber-50:  #FAEEDA;
  --ww-amber-100: #FAC775;

  --ww-gray-900: #1A1A18;
  --ww-gray-800: #2C2C2A;
  --ww-gray-700: #444441;
  --ww-gray-600: #5F5E5A;
  --ww-gray-400: #888780;
  --ww-gray-200: #D3D1C7;
  --ww-gray-100: #ECEAE3;
  --ww-gray-50:  #F6F5F1;

  --ww-white: #FFFFFF;
  --ww-border: rgba(0,0,0,0.10);
  --ww-border-md: rgba(0,0,0,0.18);

  --ww-radius-sm: 6px;
  --ww-radius-md: 8px;
  --ww-radius-lg: 12px;

  --ww-nav-height: 56px;
  --ww-max-width: 1140px;
  --ww-content-width: 720px;

  --ww-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ww-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

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

body {
  font-family: var(--ww-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ww-gray-800);
  background: var(--ww-gray-50);
}

a {
  color: var(--ww-green-700);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ww-gray-900);
}
h1 { font-size: clamp(28px, 4vw, 36px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ww-gray-600); }

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

code, pre {
  font-family: var(--ww-font-mono);
  font-size: 0.875em;
  background: var(--ww-gray-100);
  border-radius: var(--ww-radius-sm);
}
code { padding: 2px 5px; }
pre { padding: 1rem 1.25rem; overflow-x: auto; }
pre code { background: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--ww-green-400);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--ww-gray-600);
  font-style: italic;
}

hr {
  border: none;
  border-top: 0.5px solid var(--ww-border);
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.ww-container {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ww-container--narrow {
  max-width: var(--ww-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ww-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.ww-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.ww-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* ============================================================
   COMPONENTS — BUTTONS
   ============================================================ */
.ww-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ww-font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--ww-radius-md);
  border: 0.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ww-btn:hover { text-decoration: none; }

.ww-btn--primary {
  background: var(--ww-green-700);
  color: #fff;
  border-color: var(--ww-green-700);
}
.ww-btn--primary:hover {
  background: var(--ww-green-800);
  border-color: var(--ww-green-800);
  color: #fff;
}

.ww-btn--ghost {
  background: transparent;
  color: var(--ww-gray-700);
  border-color: var(--ww-border-md);
}
.ww-btn--ghost:hover {
  background: var(--ww-gray-100);
  color: var(--ww-gray-900);
}

.ww-btn--outline-green {
  background: transparent;
  color: var(--ww-green-700);
  border-color: var(--ww-green-400);
}
.ww-btn--outline-green:hover {
  background: var(--ww-green-50);
}

.ww-btn--sm { font-size: 12px; padding: 6px 12px; }
.ww-btn--lg { font-size: 15px; padding: 12px 24px; }

/* ============================================================
   COMPONENTS — BADGES / TAGS
   ============================================================ */
.ww-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.6;
}
.ww-badge--gp    { background: var(--ww-green-50);  color: var(--ww-green-800); }
.ww-badge--bc    { background: var(--ww-blue-50);   color: var(--ww-blue-800); }
.ww-badge--both  { background: var(--ww-amber-50);  color: var(--ww-amber-800); }
.ww-badge--dev   { background: var(--ww-amber-50);  color: var(--ww-amber-800); }
.ww-badge--news  { background: var(--ww-gray-100);  color: var(--ww-gray-700); }
.ww-badge--release { background: var(--ww-green-50); color: var(--ww-green-800); }

/* ============================================================
   COMPONENTS — CARDS
   ============================================================ */
.ww-card {
  background: var(--ww-white);
  border: 0.5px solid var(--ww-border);
  border-radius: var(--ww-radius-lg);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ww-card:hover {
  border-color: var(--ww-border-md);
}
.ww-card--linked {
  display: block;
  color: inherit;
  text-decoration: none;
}
.ww-card--linked:hover { text-decoration: none; }

.ww-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ww-green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 18px;
  color: var(--ww-green-700);
}

.ww-card__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ww-gray-900);
  margin-bottom: 0.35rem;
}

.ww-card__desc {
  font-size: 13px;
  color: var(--ww-gray-600);
  line-height: 1.55;
  margin-bottom: 0;
}

.ww-card__meta {
  font-size: 12px;
  color: var(--ww-gray-400);
  margin-top: 0.75rem;
}

.ww-card__footer {
  border-top: 0.5px solid var(--ww-border);
  margin-top: 1rem;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   COMPONENTS — STAT CARD
   ============================================================ */
.ww-stat {
  background: var(--ww-gray-100);
  border-radius: var(--ww-radius-md);
  padding: 1rem 1.25rem;
}
.ww-stat__num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ww-green-700);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.ww-stat__label {
  font-size: 12px;
  color: var(--ww-gray-600);
}

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ww-white);
  border-bottom: 0.5px solid var(--ww-border);
  height: var(--ww-nav-height);
}

.site-header__inner {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.site-logo__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--ww-gray-900);
  letter-spacing: -0.01em;
}
.site-logo__tagline {
  font-size: 11px;
  color: var(--ww-gray-400);
  line-height: 1.2;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: stretch;
  height: var(--ww-nav-height);
  gap: 0;
  flex: 1;
}

.primary-nav__item {
  position: relative;
}

.primary-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 0.85rem;
  font-size: 13px;
  font-weight: 400;
  color: var(--ww-gray-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.primary-nav__link:hover,
.primary-nav__item:hover > .primary-nav__link {
  color: var(--ww-gray-900);
  text-decoration: none;
  border-bottom-color: var(--ww-border-md);
}
.primary-nav__link.current-menu-item,
.primary-nav__link.current-menu-ancestor {
  color: var(--ww-green-700);
  border-bottom-color: var(--ww-green-700);
  font-weight: 500;
}

/* Dropdown arrow */
.primary-nav__link .nav-arrow {
  font-size: 10px;
  color: var(--ww-gray-400);
  transition: transform 0.15s;
}
.primary-nav__item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown menu */
.primary-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 220px;
  background: var(--ww-white);
  border: 0.5px solid var(--ww-border);
  border-top: 2px solid var(--ww-green-700);
  border-radius: 0 0 var(--ww-radius-md) var(--ww-radius-md);
  padding: 0.5rem 0;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.primary-nav__item:hover .primary-nav__dropdown { display: block; }

.primary-nav__dropdown a {
  display: block;
  padding: 7px 1rem;
  font-size: 13px;
  color: var(--ww-gray-700);
  text-decoration: none;
  transition: background 0.1s;
}
.primary-nav__dropdown a:hover {
  background: var(--ww-gray-50);
  color: var(--ww-gray-900);
}

/* Nav CTA buttons */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0.5px solid var(--ww-border-md);
  border-radius: var(--ww-radius-md);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ww-gray-700);
  font-size: 18px;
}

/* ============================================================
   PLATFORM BAR (below nav on homepage)
   ============================================================ */
.platform-bar {
  background: var(--ww-gray-100);
  border-bottom: 0.5px solid var(--ww-border);
  padding: 0.6rem 0;
}
.platform-bar__inner {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.platform-bar__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ww-gray-400);
  white-space: nowrap;
}
.platform-bar__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.platform-bar__badge {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--ww-radius-md);
  border: 0.5px solid var(--ww-border);
  background: var(--ww-white);
  color: var(--ww-gray-600);
}
.platform-bar__badge--gp { background: var(--ww-green-50); color: var(--ww-green-800); border-color: var(--ww-green-200); }
.platform-bar__badge--bc { background: var(--ww-blue-50); color: var(--ww-blue-800); border-color: var(--ww-blue-100); }

/* ============================================================
   HERO
   ============================================================ */
.ww-hero {
  background: var(--ww-white);
  border-bottom: 0.5px solid var(--ww-border);
  padding: 4rem 0 3.5rem;
}
.ww-hero__inner {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}
.ww-hero__content { flex: 1; max-width: 580px; }
.ww-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--ww-green-50);
  color: var(--ww-green-800);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ww-hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ww-green-600);
  flex-shrink: 0;
}
.ww-hero__title {
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ww-gray-900);
  margin-bottom: 1.25rem;
}
.ww-hero__title em {
  font-style: normal;
  color: var(--ww-green-700);
}
.ww-hero__sub {
  font-size: 17px;
  color: var(--ww-gray-600);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 480px;
}
.ww-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ww-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

/* ============================================================
   PAGE LAYOUT — CONTENT + SIDEBAR
   ============================================================ */
.ww-layout {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

.ww-layout--full {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.ww-section {
  margin-bottom: 3rem;
}
.ww-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.ww-section__eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ww-gray-400);
  margin-bottom: 4px;
}
.ww-section__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ww-gray-900);
}
.ww-section__link {
  font-size: 13px;
  color: var(--ww-green-700);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}
.ww-section__link:hover { text-decoration: underline; }

/* ============================================================
   PRODUCT GRID (hairline-bordered cells)
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border: 0.5px solid var(--ww-border);
  border-radius: var(--ww-radius-lg);
  overflow: hidden;
  background: var(--ww-border);
}
.product-cell {
  background: var(--ww-white);
  padding: 1.1rem 1.25rem;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
}
.product-cell:hover {
  background: var(--ww-gray-50);
  text-decoration: none;
}
.product-cell__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.6rem;
}
.product-cell__icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ww-green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--ww-green-700);
  flex-shrink: 0;
}
.product-cell__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ww-gray-900);
  margin-bottom: 3px;
}
.product-cell__desc {
  font-size: 12px;
  color: var(--ww-gray-600);
  line-height: 1.5;
}
.product-cell__price {
  font-size: 11px;
  color: var(--ww-gray-400);
  margin-top: 6px;
}

/* ============================================================
   MODULE SINGLE PAGE
   ============================================================ */
.module-header {
  background: var(--ww-white);
  border-bottom: 0.5px solid var(--ww-border);
  padding: 2.5rem 0 2rem;
}
.module-header__inner {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.module-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.module-header__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.module-header__title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.module-header__desc {
  font-size: 16px;
  color: var(--ww-gray-600);
  line-height: 1.65;
  max-width: 560px;
}
.module-header__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
.module-price {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ww-gray-900);
  text-align: right;
}
.module-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--ww-gray-400);
}

/* ============================================================
   NEWS / BLOG LIST
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid var(--ww-border);
  border-radius: var(--ww-radius-lg);
  overflow: hidden;
  background: var(--ww-border);
}
.news-item {
  background: var(--ww-white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.news-item:hover {
  background: var(--ww-gray-50);
  text-decoration: none;
}
.news-item__cat {
  flex-shrink: 0;
  padding-top: 2px;
}
.news-item__body { flex: 1; min-width: 0; }
.news-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ww-gray-900);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-item__excerpt {
  font-size: 12px;
  color: var(--ww-gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item__date {
  font-size: 11px;
  color: var(--ww-gray-400);
  margin-top: 4px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: calc(var(--ww-nav-height) + 1.5rem); }

.sidebar-widget {
  background: var(--ww-white);
  border: 0.5px solid var(--ww-border);
  border-radius: var(--ww-radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-widget__title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ww-gray-400);
  margin-bottom: 0.75rem;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  font-size: 13px;
  color: var(--ww-green-700);
  text-decoration: none;
  border-radius: var(--ww-radius-sm);
  transition: background 0.1s;
}
.sidebar-link:hover {
  background: var(--ww-gray-50);
  text-decoration: none;
}
.sidebar-link .icon {
  font-size: 14px;
  color: var(--ww-gray-400);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* Category list in sidebar */
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ww-gray-700);
  text-decoration: none;
  border-radius: var(--ww-radius-sm);
}
.sidebar-cat-item:hover {
  background: var(--ww-gray-50);
  color: var(--ww-gray-900);
  text-decoration: none;
}
.sidebar-cat-item__count {
  font-size: 11px;
  color: var(--ww-gray-400);
  background: var(--ww-gray-100);
  padding: 1px 7px;
  border-radius: 100px;
}

/* ============================================================
   CONTENT AREA (single posts / pages)
   ============================================================ */
.entry-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ww-gray-800);
}
.entry-content h2 { margin: 2rem 0 0.75rem; font-size: 20px; }
.entry-content h3 { margin: 1.5rem 0 0.5rem; font-size: 17px; }
.entry-content h4 { margin: 1.25rem 0 0.4rem; }
.entry-content p  { margin-bottom: 1rem; }
.entry-content ul,
.entry-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.entry-content li { margin-bottom: 0.35rem; }
.entry-content a  { color: var(--ww-green-700); }
.entry-content a:hover { color: var(--ww-green-800); }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.25rem 0;
}
.entry-content th,
.entry-content td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 0.5px solid var(--ww-border);
}
.entry-content th {
  font-weight: 500;
  background: var(--ww-gray-50);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ww-gray-600);
}

/* Post header */
.entry-header { margin-bottom: 2rem; }
.entry-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 13px;
  color: var(--ww-gray-400);
}
.entry-header__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ww-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2rem;
}
.ww-pagination a,
.ww-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: var(--ww-radius-md);
  border: 0.5px solid var(--ww-border);
  color: var(--ww-gray-700);
  text-decoration: none;
  transition: background 0.12s;
}
.ww-pagination a:hover { background: var(--ww-gray-50); text-decoration: none; }
.ww-pagination .current {
  background: var(--ww-green-700);
  color: #fff;
  border-color: var(--ww-green-700);
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.ww-search {
  display: flex;
  gap: 0;
  border: 0.5px solid var(--ww-border-md);
  border-radius: var(--ww-radius-md);
  overflow: hidden;
  background: var(--ww-white);
}
.ww-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--ww-font-sans);
  outline: none;
  background: transparent;
  color: var(--ww-gray-800);
  min-width: 0;
}
.ww-search input[type="search"]::placeholder { color: var(--ww-gray-400); }
.ww-search button {
  background: var(--ww-green-700);
  color: #fff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}
.ww-search button:hover { background: var(--ww-green-800); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--ww-white);
  border-top: 0.5px solid var(--ww-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer__grid {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer__brand .site-logo { margin-bottom: 0.75rem; }
.site-footer__tagline {
  font-size: 13px;
  color: var(--ww-gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.site-footer__col-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ww-gray-400);
  margin-bottom: 0.75rem;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer__links a {
  font-size: 13px;
  color: var(--ww-gray-600);
  text-decoration: none;
}
.site-footer__links a:hover {
  color: var(--ww-green-700);
  text-decoration: none;
}
.site-footer__bottom {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  border-top: 0.5px solid var(--ww-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__copy {
  font-size: 12px;
  color: var(--ww-gray-400);
}
.site-footer__bottom-links {
  display: flex;
  gap: 1.25rem;
}
.site-footer__bottom-links a {
  font-size: 12px;
  color: var(--ww-gray-400);
  text-decoration: none;
}
.site-footer__bottom-links a:hover { color: var(--ww-gray-700); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ww-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ww-hero__stats { flex-direction: row; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--ww-nav-height);
    left: 0; right: 0;
    background: var(--ww-white);
    border-bottom: 0.5px solid var(--ww-border);
    padding: 1rem 0;
    height: auto;
    overflow-y: auto;
    max-height: calc(100vh - var(--ww-nav-height));
    z-index: 90;
  }
  .primary-nav.is-open .primary-nav__item { border-bottom: 0.5px solid var(--ww-border); }
  .primary-nav.is-open .primary-nav__link { height: 44px; padding: 0 1.5rem; }
  .primary-nav.is-open .primary-nav__dropdown {
    display: block;
    position: static;
    border: none;
    border-top: 0.5px solid var(--ww-border);
    box-shadow: none;
    background: var(--ww-gray-50);
    padding: 0.5rem 0 0.5rem 1rem;
  }
  .nav-toggle { display: flex; align-items: center; }
  .site-header__actions .ww-btn--ghost { display: none; }
  .ww-hero__inner { flex-direction: column; }
  .ww-hero__stats { flex-direction: row; }
  .module-header__top { flex-direction: column; }
  .module-header__actions { align-items: flex-start; }
}

@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--ww-gray-400); text-align: center; margin-top: 4px; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute;
}
.screen-reader-text:focus {
  clip: auto; height: auto; width: auto;
  top: 0; left: 0;
  background: var(--ww-white);
  padding: 1rem;
  z-index: 9999;
}
