/*
Theme Name: CourtWired Theme
Theme URI: https://example.com/pixelbound-theme
Author: Austin Jones
Author URI: https://example.com
Description: A clean, conversion-focused WordPress theme inspired by Backlinko with bold typography, gradient hero, and content-forward layouts.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixelbound-theme
*/

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --brand-primary: #c3692f;
  --brand-primary-2: #e08a47;
  --brand-text: #1c140f;
  --brand-bg: #fcf7f3;
  --brand-muted: #5a483e;
  --brand-contrast: #2c211a;
  --brand-border: #efd9cb;
  --brand-soft: #f6e9df;
  --brand-soft-hover: #f1e0d4;
  --brand-separator: #dec8ba;
  --brand-highlight: #f9f2ea;
  --brand-hero-subtle: #f0d8c7;
  --brand-hero-label: #e6c8b2;
  --brand-shadow: rgba(44, 33, 26, 0.14);
  --brand-shadow-soft: rgba(44, 33, 26, 0.07);
  --brand-hero-start: #3a2417;
  --brand-hero-mid: #5a3b28;
  --brand-hero-accent-1: rgba(195, 105, 47, 0.22);
  --brand-hero-accent-2: rgba(224, 138, 71, 0.22);
  --brand-news-start: #422918;
  --brand-news-end: #63412a;
  --brand-soft-text: #f1e1d5;
  --brand-footer: #2f1e16;
  --brand-footer-text: #f0e4da;
  --brand-panel: #f8f1eb;
  --brand-border-strong: #e2cdbf;
  --brand-footer-link: #ead7c8;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--brand-text);
  background-color: var(--brand-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary);
}

.post-content a {
	color: #2563EB;
}

.post-content a:hover {
	color: #1D4ED8;
}

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

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.mobile-menu-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--brand-text);
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-text);
  letter-spacing: -0.5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.main-menu {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.main-menu li {
  list-style: none;
}

.main-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-primary,
.wp-block-button__link {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
  box-shadow: 0 10px 30px var(--brand-shadow);
}

.btn-primary:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px var(--brand-shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
}

.btn-secondary:hover {
  background: var(--brand-soft-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: radial-gradient(circle at 10% 20%, var(--brand-hero-accent-1) 0, transparent 32%),
    radial-gradient(circle at 80% 0, var(--brand-hero-accent-2) 0, transparent 30%),
    linear-gradient(135deg, var(--brand-hero-start), var(--brand-hero-mid));
  color: var(--brand-highlight);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 30px 80px var(--brand-shadow);
}

.hero .site-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  color: #fff;
}

.hero-subtitle {
  max-width: 540px;
  font-size: 18px;
  color: var(--brand-hero-subtle);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  color: var(--brand-hero-label);
  font-size: 14px;
}

.hero-card {
  background: #ffffff;
  color: var(--brand-text);
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 25px 70px var(--brand-shadow);
  display: grid;
  gap: 12px;
}

.hero-card-title {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
}

.hero-card-list {
  display: grid;
  gap: 8px;
}

.hero-card-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--brand-highlight);
  font-weight: 700;
  font-size: 13px;
}

.badge.dark {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

/* Section */
.section {
  padding: 72px 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 13px;
}

.section-title {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.8px;
}

.section-description {
  color: var(--brand-muted);
  font-size: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 15px 45px var(--brand-shadow-soft);
  display: grid;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px var(--brand-shadow);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 800;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--brand-muted);
}

.categories-grid .card {
  align-content: start;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 700;
}

.card-link::after {
  content: '>';
  transition: transform 0.2s ease;
}

.card:hover .card-link::after {
  transform: translateX(2px);
}

/* Resource Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.resource-card {
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px var(--brand-shadow-soft);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-muted);
  font-size: 13px;
}

.resource-meta span::before {
  content: '|';
  margin: 0 6px;
  color: var(--brand-separator);
}

.resource-meta span:first-child::before {
  content: '';
  margin: 0;
}

.resource-title {
  font-size: 18px;
  margin: 0;
  font-weight: 800;
}

.resource-excerpt {
  margin: 0;
  color: var(--brand-muted);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--brand-news-start), var(--brand-news-end));
  color: var(--brand-highlight);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: center;
}

.newsletter h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.newsletter p {
  margin: 6px 0 0;
  color: var(--brand-soft-text);
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter input[type='email'] {
  flex: 1 1 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
  font-size: 15px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  border-radius: 22px;
  padding: 32px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: center;
  box-shadow: 0 25px 60px var(--brand-shadow);
}

.cta h3 {
  margin: 0;
  font-size: 24px;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-text);
  font-weight: 700;
  min-width: 42px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pagination .page-numbers:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px var(--brand-shadow);
  border-color: var(--brand-border-strong);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 12px 30px var(--brand-shadow);
}

.entry-content form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.entry-content input[type='text'],
.entry-content input[type='email'],
.entry-content input[type='url'],
.entry-content input[type='tel'],
.entry-content textarea,
.entry-content select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.entry-content input[type='text']:focus,
.entry-content input[type='email']:focus,
.entry-content input[type='url']:focus,
.entry-content input[type='tel']:focus,
.entry-content textarea:focus,
.entry-content select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.15rem rgba(31, 141, 242, 0.25);
}

.entry-content textarea {
  min-height: 140px;
  resize: vertical;
}

.entry-content input[type='submit'],
.entry-content button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry-content input[type='submit']:hover,
.entry-content button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px var(--brand-shadow);
}

/* Footer */
.site-footer {
  background: var(--brand-footer);
  color: var(--brand-footer-text);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--brand-footer-link);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Post template */
.post-header {
  margin: 24px 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--brand-muted);
  font-size: 14px;
}

.post-meta span::before {
  content: '|';
  margin: 0 6px;
  color: var(--brand-separator);
}

.post-meta span:first-child::before {
  content: '';
  margin: 0;
}

.post-content {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px var(--brand-shadow-soft);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--brand-text);
}

.post-content p {
  color: var(--brand-contrast);
}

.post-related {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.post-related h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.5px;
}

blockquote {
  border-left: 4px solid var(--brand-primary);
  padding-left: 16px;
  color: var(--brand-contrast);
}

code {
  background: var(--brand-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

.author-bio {
  margin-top: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: var(--brand-panel);
}

.author-avatar img {
  border-radius: 50%;
}

.author-details h4 {
  margin: 0 0 6px;
}

.author-details p {
  margin: 0;
  color: var(--brand-contrast);
}

/* Responsive */
@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-top: 10px;
  }

  .site-container {
    padding: 0 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-navigation {
    width: 100%;
    order: 3;
  }

  .main-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 4px;
    margin-top: 8px;
  }

  body.nav-open .main-menu {
    display: flex;
  }

  .main-menu a {
    display: block;
    width: 100%;
  }

  .header-actions {
    display: none;
  }

  .header-actions .btn {
    flex: 1 1 160px;
    justify-content: center;
  }

  body.nav-open .mobile-menu-cta {
    display: block;
    margin-top: 8px;
  }

  .mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 64px 0 52px;
    text-align: center;
  }

  .hero .site-container {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .hero-card {
    text-align: left;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 26px;
  }

  .resources-grid,
  .cards-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .resource-card,
  .card {
    padding: 16px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    margin: 0 12px;
    text-align: left;
  }

  .newsletter input[type='email'] {
    height: 44px;
    min-height: 44px;
    max-height: 48px;
    padding: 10px 12px;
    line-height: 1.3;
  }

  .newsletter form {
    flex-direction: column;
  }

  .post-content {
    padding: 18px;
  }

  .post-related .resources-grid {
    grid-template-columns: 1fr;
  }

  .author-bio {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .resource-meta {
    font-size: 12px;
  }

  .header-actions .btn,
  .hero-actions .btn,
  .newsletter input[type='email'],
  .newsletter button {
    width: 100%;
  }
}



