/*
Theme Name: Chuck Price
Theme URI: https://chuckprice.org
Author: Chuck Price
Author URI: https://chuckprice.org
Description: Custom WordPress theme for chuckprice.org — SEO, AEO, GEO, PPC, and CRO consulting for law firms, B2B SaaS, and professional services.
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: chuckprice
Tags: custom, seo, consulting, professional-services
*/

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  --color-primary:        #1a73e8;
  --color-primary-dark:   #1557b0;
  --color-primary-light:  #dbeafe;
  --color-dark:           #0f172a;
  --color-navy:           #172554;
  --color-slate-dark:     #334155;
  --color-slate-mid:      #475569;
  --color-slate-light:    #64748b;
  --color-bg:             #eef3f8;
  --color-bg-alt:         #f1f5f9;
  --color-bg-light:       #f8fbff;
  --color-white:          #ffffff;
  --color-border:         #dbe4ee;
  --color-border-light:   #e2e8f0;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;

  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  --shadow-sm:  0 4px 12px rgba(15,23,42,0.05);
  --shadow-md:  0 8px 20px rgba(15,23,42,0.07);
  --shadow-lg:  0 16px 34px rgba(15,23,42,0.10);

  --max-width: 1120px;
  --section-pad: 72px 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-slate-dark);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* =====================================================
   TYPOGRAPHY SCALE
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }
h4 { font-size: 18px; }
p  { color: var(--color-slate-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.wrap {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: var(--section-pad);
}

.text-center { text-align: center; }

.grid-2, .grid-3, .grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.grid-2 > * { flex: 1 1 460px; }
.grid-3 > * { flex: 1 1 300px; }
.grid-4 > * { flex: 1 1 240px; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn, .btn-outline {
  display: inline-block;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26,115,232,0.24);
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.btn-dark {
  background: var(--color-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,0.20);
}
.btn-dark:hover { opacity: 0.85; color: #fff; text-decoration: none; }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.24);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; text-decoration: none; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cta-group.center { justify-content: center; }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card-light {
  background: var(--color-bg-light);
  border: 1px solid #dce8f7;
  border-radius: var(--radius-md);
  padding: 26px;
}
.card-featured {
  background: linear-gradient(180deg,#fff 0%,var(--color-bg-light) 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 12px 28px rgba(26,115,232,0.12);
  position: relative;
}
.badge {
  display: inline-block;
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.badge-dark {
  background: var(--color-dark);
  right: 20px;
  left: auto;
}

/* =====================================================
   EYEBROW LABELS
   ===================================================== */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.eyebrow-muted {
  color: var(--color-slate-light);
}

/* =====================================================
   SECTION BACKGROUNDS
   ===================================================== */
.bg-white  { background: var(--color-white); }
.bg-alt    { background: var(--color-bg-alt); }
.bg-light  { background: var(--color-bg-light); }
.bg-dark   { background: var(--color-dark); }
.bg-gradient-dark {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-navy) 100%);
}

.section-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 52px 32px;
  box-shadow: var(--shadow-md);
}

/* =====================================================
   HIGHLIGHT / CALLOUT BOX
   ===================================================== */
.callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.callout p { color: #1e3a8a; margin: 0; }

.callout-dark {
  background: var(--color-dark);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.callout-dark p { color: #e2e8f0; }
.callout-dark strong { color: #fff; }

/* =====================================================
   STAT / PROOF NUMBERS
   ===================================================== */
.stat-number {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.05;
  margin-bottom: 10px;
}

/* =====================================================
   SCOPE LEGEND
   ===================================================== */
.scope-legend {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 24px;
}
.scope-legend p { color: var(--color-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 10px; }
.scope-legend .grid-4 > div { font-size: 13px; color: var(--color-slate-mid); }
.scope-legend strong { color: var(--color-dark); }

/* =====================================================
   FAQ ITEMS
   ===================================================== */
.faq-item {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.faq-item h3 { font-size: 19px; margin-bottom: 8px; }
.faq-item p  { font-size: 15px; color: var(--color-slate-mid); }

/* =====================================================
   DIVIDER
   ===================================================== */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* =====================================================
   BLOG ARCHIVE
   ===================================================== */
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card .post-meta {
  font-size: 13px;
  color: var(--color-slate-light);
  font-weight: 600;
}
.post-card h2 { font-size: 22px; margin: 0; }
.post-card h2 a { color: var(--color-dark); }
.post-card h2 a:hover { color: var(--color-primary); text-decoration: none; }
.post-card p { font-size: 15px; color: var(--color-slate-mid); }
.post-card .read-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
}
.post-card .read-more:hover { text-decoration: none; opacity: 0.85; }

/* =====================================================
   SINGLE POST
   ===================================================== */
.post-content {
  max-width: 780px;
  margin: 0 auto;
}
.post-content h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.post-content .post-meta { font-size: 14px; color: var(--color-slate-light); font-weight: 600; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.post-content h2, .post-content h3 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.post-content p  { margin-bottom: 1.25rem; color: var(--color-slate-dark); line-height: 1.75; }
.post-content ul, .post-content ol { color: var(--color-slate-dark); margin-bottom: 1.25rem; line-height: 1.75; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}
.post-content code {
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-form .form-group {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-dark);
  font-family: var(--font-base);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-bio-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.about-bio-wrap p {
  font-size: 17px;
  color: var(--color-slate-dark);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.credential-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.credential-item .label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-slate-light);
  margin-bottom: 4px;
}
.credential-item .value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-dark);
  background: var(--color-white);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 767px) {
  :root { --section-pad: 48px 16px; }
  .section-box { padding: 36px 18px; border-radius: var(--radius-lg); }
  .grid-2 > *, .grid-3 > *, .grid-4 > * { flex: 1 1 100%; }
  .credential-grid { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; align-items: flex-start; }
  .cta-group.center { align-items: center; }
}

@media (max-width: 480px) {
  .btn, .btn-outline, .btn-dark, .btn-ghost { width: 100%; text-align: center; }
  .cta-group { width: 100%; }
}
