/*
Theme Name: Traffic2Lead
Theme URI: https://traffic2lead.com
Author: Traffic2Lead
Description: Performance marketing and affiliate network theme for Traffic2Lead. Signal Yellow editorial design with pay-per-lead landing pages, lead capture forms and SEO structured data.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traffic2lead
Tags: business, one-column, custom-logo, custom-menu, editor-style, block-styles, wide-blocks
*/

/* ---------------------------------------------------------------
   Design tokens — Signal Yellow
---------------------------------------------------------------- */
:root {
  --background: #faf8f3;
  --foreground: #1a1a1a;
  --surface: #ffffff;
  --secondary: #f3f0e8;
  --muted-foreground: #6b6b66;
  --border: #e0dcd2;
  --accent: #f5c026;
  --accent-foreground: #1a1a1a;
  --primary: #1a1a1a;
  --primary-foreground: #faf8f3;
  --maxw: 1152px;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---------------------------------------------------------------
   Reset / base
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--accent); color: var(--accent-foreground);
  padding: 10px 16px; clip: auto; width: auto; height: auto;
}

/* ---------------------------------------------------------------
   Layout helpers
---------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { border-bottom: 1px solid var(--border); }
.section--dark { background: var(--primary); color: var(--primary-foreground); border-bottom: 1px solid var(--foreground); }
.section--muted { background: var(--secondary); }
.pad { padding: 64px 0; }
@media (min-width: 768px) { .pad { padding: 80px 0; } .pad-hero { padding: 96px 0; } }
.pad-hero { padding: 64px 0; }
.rule-grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-split { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .grid-split-alt { grid-template-columns: 1fr 1.1fr; gap: 40px; }
}

/* ---------------------------------------------------------------
   Typography utilities
---------------------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; padding-bottom: 2px; }
.h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); }
.h3 { font-family: var(--font-display); font-size: 1.25rem; }
.lead { font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); max-width: 34rem; }
.small { font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.mark { background: var(--accent); color: var(--accent-foreground); padding: 0 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }

/* ---------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--foreground); background: var(--accent);
  color: var(--accent-foreground); padding: 14px 24px;
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-weight: 600; }
.btn--ghost { background: transparent; }
.link-underline { font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo img { height: 44px; width: auto; object-fit: contain; }
.site-logo__text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.nav-desktop { display: none; align-items: center; gap: 32px; }
@media (min-width: 860px) { .nav-desktop { display: flex; } .nav-toggle { display: none; } }
.nav-desktop ul { display: flex; align-items: center; gap: 32px; }
.nav-desktop a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none; transition: color 0.15s; }
.nav-desktop a:hover, .nav-desktop .current-menu-item > a { color: var(--foreground); }
.nav-toggle { background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--background); padding: 16px 20px; }
.nav-mobile.is-open { display: block; }
@media (min-width: 860px) { .nav-mobile.is-open { display: none; } }
.nav-mobile li { margin-bottom: 12px; }
.nav-mobile a { font-size: 1rem; font-weight: 500; text-decoration: none; }

/* ---------------------------------------------------------------
   Cards, lists, panels
---------------------------------------------------------------- */
.card { border: 1px solid var(--foreground); background: var(--surface); padding: 28px; }
.card--soft { border: 1px solid var(--border); background: var(--secondary); }
.card-link { display: block; text-decoration: none; transition: transform 0.15s ease; }
.card-link:hover { transform: translateY(-4px); }
.icon { width: 28px; height: 28px; }
.icon-sm { width: 16px; height: 16px; flex: 0 0 auto; }
.step { border-top: 2px solid var(--foreground); padding-top: 20px; }
.step__num { font-family: var(--font-display); font-size: 0.875rem; color: var(--muted-foreground); }
.checklist li { display: flex; gap: 12px; font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--foreground); background: var(--foreground); }
.tile-grid li { display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 20px 16px; font-size: 0.875rem; font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--border); padding-top: 24px; }
.stat-grid dt { font-size: 0.75rem; color: var(--muted-foreground); }
.stat-grid dd { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 0; }
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--foreground); background: var(--foreground); }
@media (min-width: 640px) { .terms-grid { grid-template-columns: repeat(4, 1fr); } }
.terms-grid > div { background: var(--surface); padding: 24px 20px; }
.terms-grid dt { font-size: 0.75rem; color: var(--muted-foreground); }
.terms-grid dd { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin: 4px 0 0; }
.figure-frame { border: 1px solid var(--foreground); background: var(--surface); padding: 12px; margin: 0; }
.figure-frame--sm { max-width: 420px; margin-left: auto; margin-right: auto; }
.figure-frame--md { max-width: 672px; margin-left: auto; margin-right: auto; }
.figure-frame img { display: block; width: 100%; height: auto; }
.faq { border-top: 1px solid var(--foreground); }
.faq > div { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq dt { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.faq dd { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 24px 20px; max-width: var(--maxw); margin: 0 auto; }
.band img { width: 40px; height: 40px; background: var(--surface); border-radius: 4px; padding: 4px; object-fit: contain; }
.band__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); }
.band ul { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 0.875rem; color: rgba(250, 248, 243, 0.8); }

/* ---------------------------------------------------------------
   Lead form
---------------------------------------------------------------- */
.lead-form { border: 1px solid var(--foreground); background: var(--surface); padding: 24px; }
@media (min-width: 640px) { .lead-form { padding: 32px; } }
.lead-form h2 { font-size: 1.5rem; }
.lead-form label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.lead-form input, .lead-form select, .lead-form textarea {
  margin-top: 6px; width: 100%; border: 1px solid var(--border);
  background: var(--background); padding: 10px 12px; font-size: 0.875rem; outline: none;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--foreground); box-shadow: 0 0 0 2px var(--accent);
}
.lead-form .field { margin-top: 16px; }
.lead-form button { width: 100%; justify-content: center; }
.form-note { margin-top: 12px; font-size: 0.75rem; color: var(--muted-foreground); }
.form-success { display: flex; gap: 12px; margin-top: 24px; border: 1px solid var(--foreground); background: rgba(245, 192, 38, 0.3); padding: 16px; font-size: 0.875rem; font-weight: 500; }
.form-error { margin-top: 16px; border: 1px solid #b42318; background: #fee4e2; padding: 12px; font-size: 0.875rem; }

/* ---------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer { background: var(--primary); color: var(--primary-foreground); border-top: 1px solid var(--border); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px; display: grid; gap: 40px; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: repeat(3, 1fr); } }
.site-footer .eyebrow { color: rgba(250, 248, 243, 0.6); }
.site-footer a { color: rgba(250, 248, 243, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: rgba(250, 248, 243, 0.7); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; background: var(--background); border-radius: 4px; padding: 4px; object-fit: contain; }
.footer-brand p { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--primary-foreground); }
.footer-tag { margin-top: 8px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.footer-list { margin-top: 16px; display: grid; gap: 12px; font-size: 0.875rem; }
.footer-list li { display: flex; gap: 8px; align-items: flex-start; }
.footer-list svg { color: var(--accent); margin-top: 3px; }
.site-footer__legal { border-top: 1px solid rgba(250, 248, 243, 0.12); padding: 20px; }
.site-footer__legal p { max-width: var(--maxw); margin: 0 auto; font-size: 0.75rem; color: rgba(250, 248, 243, 0.5); }

/* ---------------------------------------------------------------
   Editor / blog content
---------------------------------------------------------------- */
.entry { max-width: 46rem; margin: 0 auto; padding: 64px 20px; }
.entry h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.entry h2 { font-size: 1.75rem; margin-top: 40px; }
.entry h3 { font-size: 1.25rem; margin-top: 32px; }
.entry p, .entry ul, .entry ol { margin-top: 16px; }
.entry ul li, .entry ol li { list-style: disc; margin-left: 20px; }
.entry ol li { list-style: decimal; }
.entry a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry blockquote { margin: 24px 0; border-left: 3px solid var(--accent); padding-left: 16px; font-style: italic; }
.entry img { margin-top: 24px; border: 1px solid var(--border); }
.post-card { border: 1px solid var(--foreground); background: var(--surface); padding: 24px; text-decoration: none; display: block; }
.post-card:hover { transform: translateY(-3px); }
.pagination { display: flex; gap: 12px; margin-top: 40px; font-size: 0.875rem; }

.grid-faq { gap: 40px; }
@media (min-width: 768px) { .grid-faq { grid-template-columns: 0.8fr 1.2fr; } }
