/*
Theme Name: Burst Analytics
Theme URI: https://letsburst.com
Author: Burst Analytics, Inc.
Author URI: https://letsburst.com
Description: Marketing theme for Burst Analytics — AI-powered, real-time sentiment intelligence for Customer Experience (CX) and Employee Performance, Engagement & Retention (EPM). Built faithfully from the Burst Analytics design system.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: burst
Tags: business, marketing, custom-colors, custom-menu, featured-images, two-columns, full-width-template
*/

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5em;
  font-weight: var(--fw-bold);
}

p { margin: 0 0 1em; }

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

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a.unstyled, a.unstyled:hover { color: inherit; text-decoration: none; }

::selection { background: var(--gold-200); color: var(--ink); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

html { scroll-behavior: smooth; }

/* Inline icons rendered from the SVG sprite. Size is set per context; this is the fallback. */
.i { width: 18px; height: 18px; display: inline-block; flex: none; vertical-align: middle; }
.i use { pointer-events: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--blue-600); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-md);
  letter-spacing: -0.01em; line-height: 1; cursor: pointer;
  padding: 14px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--action); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-gold { background: var(--gold-400); color: var(--ink); }
.btn-gold:hover { background: var(--gold-500); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--blue-600); border-color: var(--border-default); }
.btn-ghost:hover { background: var(--neutral-100); color: var(--blue-700); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { background: var(--neutral-100); color: var(--blue-800); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn .i { width: 18px; height: 18px; }

/* ============================================================
   Eyebrow
   ============================================================ */
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-hover);
  margin: 0 0 16px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-400); display: inline-block; }
.eyebrow.on-dark { color: var(--gold-400); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.header-logo { display: inline-flex; }
.header-logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm);
  color: var(--text-body); letter-spacing: 0.01em; text-decoration: none;
}
.nav a:hover { color: var(--blue-600); text-decoration: none; }
.nav a.current { color: var(--blue-600); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 18px; font-size: var(--text-sm); }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin-left: 8px;
  background: transparent; border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); color: var(--blue-600); cursor: pointer;
}
.nav-toggle .i { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
.mobile-nav { display: none; }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { scroll-margin-top: 90px; }
.section { padding: 92px 0; }
.section-head { max-width: 660px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, var(--text-4xl)); font-weight: 800; color: var(--ink); margin: 0 0 16px; letter-spacing: -0.02em; line-height: var(--leading-snug); }
.section-head p { font-size: var(--text-lg); color: var(--text-muted); margin: 0; }
.grey { background: var(--neutral-50); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.74); padding: 56px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 26px; margin-bottom: 16px; }
.footer-brand p { font-size: var(--text-sm); color: rgba(255,255,255,0.6); max-width: 34ch; margin: 0; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col-title { font-family: var(--font-display); font-size: var(--text-2xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 14px; }
.footer-cols a, .footer-cols address { display: block; color: rgba(255,255,255,0.78); font-size: var(--text-sm); text-decoration: none; font-style: normal; line-height: 1.7; }
.footer-cols a:hover { color: var(--gold-400); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }
.footer-bottom p { margin: 0; }

/* ============================================================
   Generic content (page.php, index.php, 404.php)
   ============================================================ */
.page-hero { padding: 64px 0 0; }
.page-title { font-size: clamp(2.25rem, 4vw, var(--text-5xl)); font-weight: 800; color: var(--ink); margin: 0; max-width: 20ch; }
.page-meta { color: var(--text-subtle); font-size: var(--text-sm); margin: 12px 0 0; }
.entry-content { max-width: 740px; }
.entry-content > * { margin-bottom: 1.1em; }
.entry-content h2 { font-size: var(--text-2xl); margin: 1.4em 0 0.5em; }
.entry-content h3 { font-size: var(--text-xl); margin: 1.3em 0 0.5em; }
.entry-content a { color: var(--blue-600); text-decoration: underline; }
.entry-content a:hover { color: var(--blue-700); }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold-400); color: var(--text-muted); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

.post-list { display: grid; gap: 28px; max-width: 760px; }
.post-card { padding-bottom: 26px; border-bottom: 1px solid var(--border-subtle); }
.post-card h2 { font-size: var(--text-2xl); margin: 0 0 8px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue-600); }
.post-card .post-meta { color: var(--text-subtle); font-size: var(--text-sm); margin: 0 0 12px; }
.post-card p { color: var(--text-muted); margin: 0 0 12px; }
.read-more { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--blue-600); text-decoration: none; }
.read-more:hover { color: var(--blue-700); }

.pagination { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); color: var(--text-body); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); }
.pagination .page-numbers.current { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.pagination a.page-numbers:hover { background: var(--neutral-100); text-decoration: none; }

/* ============================================================
   Shared responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.97); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav .wrap { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; padding-bottom: 18px; }
  .mobile-nav a {
    font-family: var(--font-display); font-weight: 500; font-size: var(--text-md);
    color: var(--text-body); text-decoration: none; padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .mobile-nav a.current { color: var(--blue-600); }
  .mobile-nav .btn { margin-top: 12px; justify-content: center; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .footer-top { flex-direction: column; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
