/*
Theme Name: IgniteRise Digital
Theme URI: https://igniterisedigital.com
Author: IgniteRise Digital
Description: Custom theme for IgniteRise Digital — paid media and Shopify CRO. Homepage, three service pages, blog and case studies.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: igniterise
*/

/* ---------- Tokens ---------- */
:root {
  --brand: #FF8F42;
  --brand-hover: #E87A2E;
  --brand-strong: #C2470F;
  --brand-light: #FFA158;
  --ink: #0F1115;
  --ink-body: #4B5159;
  --ink-muted: #6B7076;
  --ink-on-dark: #C3C7CC;
  --ink-muted-on-dark: #8E9298;
  --surface: #FFFFFF;
  --surface-alt: #F6F7F8;
  --border: #E4E7EA;
  --border-strong: #DFE3E7;
  --positive: #0E7C5A;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink-body); background: var(--surface); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: #9C390B; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
p, ul, ol { margin: 0; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
.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: 100; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 32px; }
.sec { padding-block: 96px; }
.sec--alt { background: var(--surface-alt); }
.sec--dark { background: var(--ink); }
.center { text-align: center; }
.center > * { margin-inline: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.span-2 { grid-column: span 2; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.split > * { flex: 1 1 320px; min-width: 0; }
.split > .main { flex: 999 1 500px; }
.split--wide-gap { gap: 56px; align-items: flex-start; }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 22px; }
.hero-title { font-size: 58px; font-weight: 800; max-width: 17ch; margin-bottom: 26px; }
.hero-title--xl { font-size: 64px; max-width: 15ch; }
.hero-lead { font-size: 19px; line-height: 1.6; max-width: 54ch; margin-bottom: 36px; }
.h2 { font-size: 42px; font-weight: 800; max-width: 22ch; margin-bottom: 20px; }
.h2 + .grid, .h2 + .split, .h2 + .stack { margin-top: 32px; }
.lead { font-size: 18px; line-height: 1.6; max-width: 58ch; }
.lead + .lead { margin-top: 20px; }
.section-intro { margin-bottom: 48px; }
.t-card { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.t-sub { font-size: 17px; font-weight: 700; margin-bottom: 9px; }
.small { font-size: 14px; line-height: 1.6; }
.caption { font-size: 13px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); }
.num { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brand-strong); margin-bottom: 16px; }
.is-positive { color: var(--positive); }
.is-flag { color: var(--brand-strong); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; background: var(--brand); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 700; border: 1px solid var(--brand); border-radius: 999px; cursor: pointer; text-align: center; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-alt); border-color: var(--brand); }
.btn--nav { min-height: 46px; padding: 0 24px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: 14px; padding: 32px 28px; }
.card--outline { border: 1px solid var(--border); }
.card--alt { background: var(--surface-alt); }
.card--lg { border-radius: 16px; }
.boxed { border-radius: 16px; overflow: hidden; background: var(--surface); }
.boxed--ink { border: 1px solid var(--ink); }
.boxed--alt { background: var(--surface-alt); }
.boxed--line { border: 1px solid var(--border); }
.boxed__head { padding: 16px 30px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--border); }
.boxed--line .boxed__head { background: var(--surface-alt); }
.boxed__head--ink { background: var(--ink); color: var(--brand-light); border-bottom: 0; }
.boxed__body { padding: 32px 30px; display: flex; flex-direction: column; gap: 24px; }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.note { padding: 24px 28px; background: var(--surface-alt); border-radius: 14px; color: var(--ink); }

/* Lists with dash / arrow markers */
.mark-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mark-list li { display: flex; gap: 12px; }
.mark-list li::before { content: '—'; font-weight: 800; flex: none; }
.mark-list--yes li::before { color: var(--positive); }
.mark-list--no li::before { color: var(--brand-strong); }
.mark-list--arrow li::before { content: '→'; color: var(--brand-strong); }
.fit-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

/* Numbered rows (service page "the work") */
.stack { display: flex; flex-direction: column; gap: 20px; }
.row-card { display: flex; flex-wrap: wrap; gap: 12px 28px; background: var(--surface); border-radius: 16px; padding: 34px 32px; }
.row-card .num { flex: 0 0 80px; font-size: 15px; margin: 0; }
.row-card > div { flex: 999 1 420px; min-width: 0; }

/* Steps */
.step .num { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.phase { border-top: 2px solid var(--border); padding-top: 22px; }
.phase:first-child { border-top-color: var(--brand); }
.phase .num { margin-bottom: 12px; }

/* ---------- Audit panel ---------- */
.audit-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.audit-panel__head { display: flex; align-items: center; gap: 9px; padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.audit-panel__head::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--brand); }
.audit-panel__body { padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; }
.audit-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 14px; }
.audit-row .mono { font-weight: 600; }
.verdict { margin-top: 6px; padding: 16px 18px; background: var(--surface-alt); border-radius: 8px; font-size: 14px; line-height: 1.55; color: var(--ink); }

/* ---------- Dark section ---------- */
.sec--dark .eyebrow { color: var(--ink-muted-on-dark); }
.sec--dark h2, .sec--dark h3 { color: #FFFFFF; }
.sec--dark p { color: var(--ink-on-dark); }
.sec--dark .link-light { color: var(--brand-light); font-weight: 600; }

/* ---------- Form ---------- */
.audit-form { background: var(--surface); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field-hint { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; width: 100%; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-strong); outline: none; box-shadow: 0 0 0 3px rgba(255, 143, 66, 0.25); }
.form-help { font-size: 12px; line-height: 1.5; color: var(--ink-muted); text-align: center; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: 84px; padding-block: 16px; }
.mark { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; color: var(--ink); }
.mark:hover { color: var(--ink); }
.mark-img { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.mark-word { font-size: 23px; font-weight: 800; letter-spacing: -0.035em; }
.mark-word .ignite { color: var(--brand); }
.mark-word .rise { color: var(--ink); }
.mark-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.42em; color: var(--ink); }
.nav-desktop { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-desktop ul { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; }
.nav-desktop a { white-space: nowrap; }
.nav-desktop a:not(.btn) { color: var(--ink-body); font-size: 14px; font-weight: 600; }
.nav-desktop a:not(.btn):hover { color: var(--ink); }
.nav-desktop .current-menu-item > a, .nav-desktop a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; margin-left: auto; padding: 0; background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-panel { display: none; flex-direction: column; padding: 8px 0 28px; }
.nav-panel.is-open { display: flex; }
.nav-panel ul { list-style: none; padding: 0; }
.nav-panel a:not(.btn) { display: block; color: var(--ink); font-size: 17px; font-weight: 600; padding: 14px 2px; border-bottom: 1px solid var(--border); }
.nav-panel a:not(.btn):hover { color: var(--brand-strong); }
.nav-panel .btn { margin-top: 26px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 36px; border-top: 1px solid var(--border); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; padding-bottom: 32px; }
.site-footer__cols > * { flex: 1 1 180px; min-width: 0; }
.site-footer__cols > .main { flex: 999 1 300px; }
.site-footer .tagline { font-size: 14px; color: var(--ink-muted); max-width: 38ch; margin-top: 16px; }
.site-footer h3 { font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; font-size: 14px; line-height: 1.9; color: var(--ink-muted); }
.site-footer ul a { color: var(--ink-body); }
.site-footer ul a:hover { color: var(--brand-strong); }
.site-footer .legal { font-size: 13px; color: var(--ink-muted); padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- Blog / case studies / generic pages ---------- */
.page-hero { padding-block: 80px 64px; background: var(--surface-alt); }
.page-hero .hero-title { margin-bottom: 0; }
.page-hero .hero-lead { margin: 20px 0 0; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: inherit; }
.post-card:hover { border-color: var(--brand); color: inherit; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card__body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { font-size: 21px; font-weight: 700; }
.post-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); }
.pagination { margin-top: 48px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--brand); border-color: var(--brand); }
.empty-state { max-width: 58ch; }

/* Article body (block editor output) */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 30px; font-weight: 800; margin-top: 1.8em; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); color: var(--ink); }
.prose img, .prose figure { border-radius: 14px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-alt); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--ink); }
.alignwide { max-width: 1056px; }
.aligncenter { margin-inline: auto; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 1081px) {
  .nav-panel, .nav-panel.is-open { display: none; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4, .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .sec { padding-block: 64px; }
  .h2 { font-size: 30px; }
  .hero-title, .hero-title--xl { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .lead { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .post-list { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .card, .row-card, .boxed__body { padding: 26px 22px; }
  .boxed__head { padding-inline: 22px; }
  .row-card .num { flex-basis: 100%; }
  .page-hero { padding-block: 56px 48px; }
}
