/*
Theme Name: Ecomm Decoded
Theme URI: https://ecommdecoded.com
Author: Ecomm Decoded
Author URI: https://ecommdecoded.com
Description: A custom WordPress theme for Ecomm Decoded — e-commerce consulting. Modern, fast, Gumroad-inspired design with yellow/teal/blue/pink accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomm-decoded
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ═══════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Core palette */
  --background:    #ffffff;
  --foreground:    #1e1e1e;
  --secondary-bg:  #f9f8f5;
  --border:        #ebebeb;
  --border-light:  rgba(0,0,0,0.06);
  --text-muted:    rgba(30,30,30,0.6);
  --text-faint:    rgba(30,30,30,0.4);

  /* Gumroad brand palette */
  --gum-yellow:    #F2CE3A;
  --gum-teal:      #2BB596;
  --gum-blue:      #8BA1D3;
  --gum-pink:      #E787A0;

  /* Functional aliases */
  --accent:        var(--gum-yellow);
  --accent-fg:     var(--foreground);

  /* Typography */
  --font-body:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display:  'Outfit', system-ui, -apple-system, sans-serif;

  /* Sizing */
  --radius:        0.75rem;
  --radius-xl:     1rem;
  --radius-2xl:    1.25rem;
  --radius-full:   9999px;
  --container:     1400px;
  --px:            1.25rem;
  --px-md:         2rem;
}

/* ═══════════════════════════════════════════════════════════
   2. RESET / BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  font-size: 1rem;
}

::selection {
  background-color: rgba(242, 206, 58, 0.3);
  color: var(--foreground);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { line-height: 1.7; }

.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-white { color: #fff; }
.text-center { text-align: center; }

.text-xl { font-size: 1.25rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }

/* ═══════════════════════════════════════════════════════════
   4. LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-1 { grid-template-columns: 1fr; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.shrink-0 { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   5. BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gum-yellow);
  color: var(--foreground);
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(242, 206, 58, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 206, 58, 0.35);
  filter: brightness(0.97);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--gum-teal);
  background: rgba(43, 181, 150, 0.05);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline-light:hover {
  border-color: var(--gum-teal);
  background: rgba(43, 181, 150, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
}

.btn-full { width: 100%; }

.btn svg,
.btn .arrow {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s;
}
.btn:hover svg,
.btn:hover .arrow {
  transform: translateX(4px);
}

/* Arrow character for buttons */
.arrow::after { content: '\2192'; }

/* ═══════════════════════════════════════════════════════════
   6. CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--background);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.card--teal:hover  { border-color: rgba(43,181,150,0.5); }
.card--blue:hover  { border-color: rgba(139,161,211,0.5); }
.card--pink:hover  { border-color: rgba(231,135,160,0.5); }
.card--yellow:hover { border-color: rgba(242,206,58,0.5); }

.card-secondary {
  background: var(--secondary-bg);
}

/* Icon containers */
.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}
.icon-box--teal   { background: rgba(43,181,150,0.1); color: var(--gum-teal); }
.icon-box--blue   { background: rgba(139,161,211,0.1); color: var(--gum-blue); }
.icon-box--pink   { background: rgba(231,135,160,0.1); color: var(--gum-pink); }
.icon-box--yellow { background: rgba(242,206,58,0.1); color: var(--gum-yellow); }

/* Dot bullet */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.dot--teal   { background: var(--gum-teal); }
.dot--blue   { background: var(--gum-blue); }
.dot--pink   { background: var(--gum-pink); }
.dot--yellow { background: var(--gum-yellow); }

/* Number badge */
.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.num-badge--teal   { background: var(--gum-teal); }
.num-badge--blue   { background: var(--gum-blue); }
.num-badge--pink   { background: var(--gum-pink); }
.num-badge--yellow { background: var(--gum-yellow); }

/* ═══════════════════════════════════════════════════════════
   7. NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.navbar--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.navbar__logo img {
  height: 32px;
  width: auto;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gum-yellow);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link--active {
  color: var(--foreground);
}
.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.navbar__cta {
  display: none;
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--foreground);
}
.navbar__hamburger svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 99;
  padding: 2rem var(--px);
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu--open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  color: var(--foreground);
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu .btn-primary {
  margin-top: 1.5rem;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--foreground);
  color: rgba(255,255,255,0.8);
  border-top: 3px solid var(--gum-teal);
}

.footer__inner {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer__link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer__link:hover {
  color: var(--gum-yellow);
}

.footer__logo img {
  height: 24px;
  width: auto;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  max-width: 20rem;
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__legal-links a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer__legal-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* LinkedIn icon */
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer__social a:hover {
  border-color: var(--gum-yellow);
  color: var(--gum-yellow);
}

/* ═══════════════════════════════════════════════════════════
   9. SECTIONS (Shared)
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: 6rem 0;
}
.section--lg {
  padding: 8rem 0;
}
.section--bg-secondary {
  background: var(--secondary-bg);
}
.section--bg-dark {
  background: var(--foreground);
  color: #fff;
}
.section--bg-dark h2,
.section--bg-dark h3 {
  color: #fff;
}
.section--border-top {
  border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════════════
   10. HOME PAGE
   ═══════════════════════════════════════════════════════════ */
/* Hero */
.hero {
  padding-top: 8rem;
  padding-bottom: 10rem;
  text-align: center;
}
.hero__title { max-width: 62rem; margin: 0 auto; }
.hero__sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 2.5rem auto 0;
  font-weight: 500;
}
.hero__cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero — Services page (left-aligned) */
.hero--left {
  text-align: left;
  padding-bottom: 5rem;
}
.hero--left .hero__sub {
  margin-left: 0;
  margin-right: 0;
}

/* Ticker */
.ticker {
  padding: 1.25rem 0;
  background: var(--gum-teal);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.ticker__item {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  padding: 0 1.5rem;
}
.ticker__sep {
  opacity: 0.4;
  padding: 0 1.5rem;
}

/* Service cards on home */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card__list {
  margin-bottom: 2rem;
}
.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.service-card__meta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.service-card__meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}

/* CTA section (light bg) */
.cta-section {
  padding: 6rem 0;
  background: var(--secondary-bg);
  text-align: center;
}
.cta-section p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

/* CTA section (dark bg) */
.cta-dark {
  padding: 8rem 0;
  background: var(--foreground);
  color: #fff;
  text-align: center;
}
.cta-dark h2 { color: #fff; }
.cta-dark p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.6);
  max-width: 40rem;
  margin: 1rem auto 2.5rem;
}
.cta-dark .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   11. SERVICES PAGE
   ═══════════════════════════════════════════════════════════ */
/* Audit section */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.audit-sidebar {
  position: relative;
}

.audit-pricing {
  padding: 1.5rem;
  background: rgba(43,181,150,0.1);
  border: 1px solid rgba(43,181,150,0.2);
  border-radius: var(--radius-2xl);
  margin-bottom: 2rem;
}
.audit-pricing .flex {
  margin-bottom: 1.5rem;
}

/* Included items */
.included-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--background);
  border: 1px solid var(--border-light);
  transition: border-color 0.2s;
  margin-bottom: 1rem;
}
.included-item:hover {
  border-color: rgba(43,181,150,0.5);
}
.included-item svg,
.included-item .check-icon {
  color: var(--gum-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Who it's for box */
.who-box {
  padding: 2rem;
  background: var(--foreground);
  color: #fff;
  border-radius: var(--radius-2xl);
}
.who-box h3 { color: #fff; margin-bottom: 0.75rem; }
.who-box p { color: rgba(255,255,255,0.7); }

/* Sprints grid */
.sprints-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.sprint-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sprint-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sprint-card__bestfor {
  padding: 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}
.sprint-card__bestfor--teal   { background: rgba(43,181,150,0.05); border: 1px solid rgba(43,181,150,0.1); }
.sprint-card__bestfor--blue   { background: rgba(139,161,211,0.05); border: 1px solid rgba(139,161,211,0.1); }
.sprint-card__bestfor--pink   { background: rgba(231,135,160,0.05); border: 1px solid rgba(231,135,160,0.1); }
.sprint-card__bestfor--yellow { background: rgba(242,206,58,0.05); border: 1px solid rgba(242,206,58,0.1); }

.sprint-card__bestfor strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.sprint-card__bestfor p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sprint-card__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

.sprint-card__link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  gap: 0.5rem;
  transition: color 0.2s;
}
.sprint-card__link:hover { color: var(--gum-teal); }
.sprint-card__link .arrow { transition: transform 0.2s; }
.sprint-card__link:hover .arrow { transform: translateX(4px); }

/* Retainer */
.retainer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.retainer__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
}
.retainer__list .check-icon {
  color: var(--gum-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.retainer__card {
  background: var(--background);
  color: var(--foreground);
  padding: 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.retainer__card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--foreground);
}

/* ═══════════════════════════════════════════════════════════
   12. DIGITAL PRODUCTS PAGE
   ═══════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .icon-box {
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

.product-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════════════
   13. BLOG / INSIGHTS
   ═══════════════════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.post-card {
  background: var(--background);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.post-card__image {
  width: 100%;
  height: 12rem;
  background: var(--secondary-bg);
  overflow: hidden;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder gradient for posts without images */
.post-card__image--placeholder {
  background: linear-gradient(135deg, var(--gum-teal), var(--gum-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(255,255,255,0.3);
  font-weight: 800;
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}
.post-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.post-card__title a {
  transition: color 0.2s;
}
.post-card__title a:hover {
  color: var(--gum-teal);
}
.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}
.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gum-teal);
  transition: gap 0.2s;
}
.post-card__read-more:hover {
  gap: 0.625rem;
}

/* Single post */
.post-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 0 6rem;
}
.post-article h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0 1rem;
}
.post-article h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 2rem 0 0.75rem;
}
.post-article p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.post-article ul, .post-article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}
.post-article ul { list-style: disc; }
.post-article ol { list-style: decimal; }
.post-article li { margin-bottom: 0.5rem; }
.post-article strong { color: var(--foreground); }
.post-article code {
  background: var(--secondary-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-article blockquote {
  border-left: 3px solid var(--gum-yellow);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--secondary-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-article a {
  color: var(--gum-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-article a:hover {
  color: var(--foreground);
}

/* Post CTA banner */
.post-cta {
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: var(--radius-2xl);
  margin-top: 3rem;
  border-left: 4px solid var(--gum-yellow);
}
.post-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Post nav */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
  gap: 2rem;
}
.post-nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.post-nav a:hover { color: var(--gum-teal); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--gum-yellow);
  background: rgba(242,206,58,0.1);
}
.pagination .current {
  background: var(--gum-yellow);
  border-color: var(--gum-yellow);
  color: var(--foreground);
}

/* ═══════════════════════════════════════════════════════════
   14. ABOUT / CONTACT / LEGAL PAGES
   ═══════════════════════════════════════════════════════════ */
.page-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 0 6rem;
}
.page-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0 1rem;
}
.page-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 2rem 0 0.75rem;
}
.page-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.page-content ul {
  list-style: disc;
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}
.page-content li { margin-bottom: 0.5rem; }

/* Contact form placeholder */
.contact-form-placeholder {
  background: var(--secondary-bg);
  padding: 3rem;
  border-radius: var(--radius-2xl);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   15. 404 PAGE
   ═══════════════════════════════════════════════════════════ */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 4rem var(--px);
}
.page-404__big {
  font-size: clamp(8rem, 20vw, 16rem);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--secondary-bg);
  line-height: 1;
  margin-bottom: -1rem;
}

/* ═══════════════════════════════════════════════════════════
   16. ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger items */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance animation (CSS only, plays once) */
.hero-animate {
  animation: fadeInUp 0.8s ease-out both;
}
.hero-animate--delay-1 { animation-delay: 0.2s; }
.hero-animate--delay-2 { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   17. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root {
    --px: 2rem;
  }

  .section    { padding: 8rem 0; }
  .section--lg { padding: 10rem 0; }

  .hero {
    padding-top: 10rem;
    padding-bottom: 12rem;
  }
  .hero__sub { font-size: 1.5rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sprints-grid  { grid-template-columns: repeat(2, 1fr); }

  .service-card--retainer {
    grid-column: 1 / -1;
    max-width: 36rem;
    margin: 0 auto;
  }

  .audit-grid {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }

  .retainer {
    grid-template-columns: 7fr 5fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 4rem;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .navbar__links  { display: flex; }
  .navbar__cta    { display: flex; }
  .navbar__hamburger { display: none; }

  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .posts-grid    { grid-template-columns: repeat(3, 1fr); }

  .audit-sidebar {
    position: sticky;
    top: 7rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   18. WORDPRESS SPECIFIC
   ═══════════════════════════════════════════════════════════ */
/* Admin bar offset */
.admin-bar .navbar {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}

/* WordPress alignment classes */
.alignwide  { max-width: 64rem; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(-50vw + 50%); }
.aligncenter { text-align: center; }

/* Screen reader text (accessibility) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--background);
  clip: auto !important;
  clip-path: none;
  color: var(--foreground);
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  padding: 15px 23px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Final overrides */
#retainer { scroll-margin-top: 120px; }

/* About page */
.about .hero.hero--left {
  padding-bottom: 2.5rem !important;
}
.about .section {
  padding-top: 1.5rem !important;
}
.about .about-content-tight {
  max-width: 48rem;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  padding: 0 0 3rem !important;
}
.about .about-content-tight p {
  text-align: left !important;
}

/* Sprint forms left-aligned */
.page-conversion-sprint .page-content,
.page-tracking-sprint .page-content,
.page-marketplace-sprint .page-content,
.page-operation-sprint .page-content,
.page-operations-sprint .page-content,
.page-conversion-sprint .wpforms-container,
.page-tracking-sprint .wpforms-container,
.page-marketplace-sprint .wpforms-container,
.page-operation-sprint .wpforms-container,
.page-operations-sprint .wpforms-container {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Mobile fixes */
@media (max-width: 767px) {
  .hero { padding-top: 6.5rem; }

  .mobile-menu a.btn,
  .mobile-menu a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.5rem;
    padding: 0 1.25rem;
    margin-top: 1.5rem;
    border-bottom: none;
    font-size: 1.125rem;
    line-height: 1;
    text-align: center;
  }

  .service-card--retainer .btn,
  .retainer__card .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.25rem !important;
    padding: 0 1rem !important;
    font-size: 1rem !important;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .animate-on-scroll,
  .stagger-item {
    opacity: 1;
    transform: none;
  }
}

.text-muted {
  color: var(--foreground) !important;
}
