/* ==========================================================================
   GrowthSparx — Design tokens (Spark Energy theme)
   ========================================================================== */
:root {
  --bg: #0e0e12;
  --surface: #17171d;
  --surface-2: #1e1e26;
  --surface-3: #26262f;
  --accent: #d85a30;
  --accent-hover: #e56c42;
  --accent-light: #f0997b;
  --accent-dark: #993c1d;
  --text: #f4efe9;
  --text-secondary: #a8a6a0;
  --text-muted: #6e6c67;
  --border: rgba(244, 239, 233, 0.1);
  --border-strong: rgba(244, 239, 233, 0.18);

  --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --container: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-sm {
  padding: 70px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(216, 90, 48, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 17px 34px;
  font-size: 16px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(216, 90, 48, 0.35) 0%, rgba(216, 90, 48, 0) 70%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(216, 90, 48, 0.14);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 22px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s;
}

.card-link:hover {
  gap: 10px;
}

/* Industry chip cards */
.chip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.chip-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.chip-card .card-icon {
  margin: 0 auto 16px;
}

.chip-card h4 {
  font-size: 15.5px;
  font-family: var(--font-body);
  font-weight: 600;
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.step {
  display: flex;
  gap: 20px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h4 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.author-name {
  font-size: 14.5px;
  font-weight: 600;
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 24px;
  margin-bottom: 12px;
}

.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 14.5px;
  padding-bottom: 20px;
  margin: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent-dark);
}

.cta-band .btn-primary:hover {
  background: var(--bg);
  color: var(--accent-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 16px 0 20px;
  max-width: 280px;
}

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

.footer-follow-label {
  margin: 0 0 12px !important;
  max-width: none !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .02em;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, color 0.25s;
  font-size: 14px;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col h5 {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
  padding: 170px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-header .eyebrow {
  margin-bottom: 18px;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 50px);
  max-width: 700px;
  margin-bottom: 18px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

/* Keep content visible even when JavaScript or a secondary asset is delayed. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: rgba(14, 14, 18, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.35s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 150px 0 80px;
  }

  .cta-band {
    padding: 40px 24px;
  }

  .hero-stats {
    gap: 32px;
  }
}

/* Conversion widgets */
.blog-lead-cta{margin:64px 0 12px;padding:34px;border:1px solid rgba(216,90,48,.34);border-radius:var(--radius-lg);background:linear-gradient(135deg,rgba(216,90,48,.13),rgba(23,23,29,.96))}
.blog-lead-copy h2{font-size:clamp(25px,4vw,36px);margin:0 0 10px}.blog-lead-copy>p:last-child{color:var(--text-secondary);margin-bottom:24px}
.blog-lead-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.blog-lead-fields label{display:grid;gap:7px;font-size:13px;color:var(--text-secondary)}
.blog-lead-fields input{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);color:var(--text);font:inherit}
.blog-lead-fields input:focus{outline:2px solid var(--accent-light);outline-offset:2px}.blog-lead-status{min-height:22px;margin-top:12px;color:var(--accent-light);font-size:14px}
.topic-hub-link{margin:0 0 34px;padding:16px 18px;border-left:3px solid var(--accent);border-radius:0 10px 10px 0;background:rgba(216,90,48,.1);color:var(--text-secondary)}.topic-hub-link a{color:var(--accent-light);font-weight:700}
.service-context-link{margin:32px 0;padding:15px 18px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);color:var(--text-secondary)}.service-context-link a{color:var(--accent-light);font-weight:700}
@media(max-width:760px){.blog-lead-cta{padding:25px 20px}.blog-lead-fields{grid-template-columns:1fr}}

/* ==========================================================================
   Article / blog prose
   ========================================================================== */
.prose {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.75;
}

.prose h2 {
  color: var(--text);
  font-size: 26px;
  margin: 48px 0 18px;
}

.prose h3 {
  color: var(--text);
  font-size: 20px;
  margin: 32px 0 14px;
}

.prose p {
  margin-bottom: 20px;
}

.prose ul,
.prose ol {
  margin: 0 0 20px 22px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  padding-left: 4px;
}

.prose li::marker {
  color: var(--accent-light);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  color: var(--text);
  font-style: italic;
  font-size: 18px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Post meta / tag chips */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 4px;
}

.tag {
  display: inline-block;
  background: rgba(216, 90, 48, 0.14);
  color: var(--accent-light);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ==========================================================================
   Mascot (Sparx)
   ========================================================================== */
.hero-mascot {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-mascot {
    display: none;
  }
}

.mascot {
  position: relative;
  width: var(--mascot-size, 220px);
  aspect-ratio: 1 / 1;
  display: inline-block;
  animation: mascot-float 4.5s ease-in-out infinite;
  contain: layout paint;
  will-change: transform;
}

.mascot--sm { --mascot-size: 64px; }
.mascot--md { --mascot-size: 160px; }
.mascot--lg { --mascot-size: 300px; }
.mascot--xl { --mascot-size: 420px; }

.mascot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}

.mascot-layer.is-active {
  opacity: 1;
  pointer-events: auto;
  filter: drop-shadow(0 0 18px rgba(216, 90, 48, 0.48));
}

.mascot.is-pointing {
  animation: mascot-tilt 1.6s ease-in-out infinite;
}

.mascot.is-launching {
  animation: mascot-launch 1s cubic-bezier(0.3, 0, 0.7, 1) both;
}

.mascot.is-celebrating {
  animation: mascot-bounce 0.7s var(--ease-out) both;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes mascot-tilt {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-8px); }
}

@keyframes mascot-launch {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(36px, -70px) rotate(10deg) scale(1.05); }
}

@keyframes mascot-bounce {
  0% { transform: scale(0.85) translateY(12px); }
  45% { transform: scale(1.1) translateY(-14px); }
  70% { transform: scale(0.96) translateY(0); }
  100% { transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mascot,
  .mascot.is-pointing,
  .mascot.is-launching,
  .mascot.is-celebrating,
  .mascot-layer.is-active {
    animation: none;
  }
}

/* Chat launcher */
.mascot-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.mascot-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 110px;
  z-index: 60;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: none;
}

.mascot-chat-panel.is-open {
  display: block;
}

.mascot-chat-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.mascot-chat-panel .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 680px) {
  .mascot-chat-launcher,
  .mascot-chat-panel {
    right: 16px;
  }
  .mascot-chat-panel {
    bottom: 96px;
    width: calc(100vw - 32px);
  }
}

.prose table { width:100%; border-collapse:collapse; margin:26px 0; font-size:15px; }
.prose th, .prose td { text-align:left; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.09); vertical-align:top; }
.prose th { color:var(--text); font-weight:600; background:rgba(216,90,48,.08); }
.prose td { color:var(--text-secondary); }
.prose tr:last-child td { border-bottom:none; }
.prose .tldr { background:var(--surface); border:1px solid rgba(216,90,48,.28); border-left:3px solid var(--accent); border-radius:12px; padding:18px 20px; margin:0 0 28px; }
.prose .tldr p { margin:0; }

/* Blog hub: compact three-column cards with a sticky trending rail */
.blog-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card-grid .card {
  padding: 18px;
  min-width: 0;
}

.blog-card-grid .card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 14px !important;
  border-radius: 9px !important;
}

.article-hero-media {
  padding: 0 0 24px;
}

.article-hero-media img {
  display: block;
  width: 100%;
  max-width: 1060px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 20px;
}

@media (max-width: 560px) {
  /* Keep article artwork compact in portrait view without distorting it. */
  .page-header + .article-hero-media {
    padding-bottom: 16px;
  }

  .page-header + .article-hero-media img,
  .page-header + .section[style*="padding-top:0"] > .container > img:first-child {
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 14px !important;
  }

  .page-header + .article-hero-media img {
    margin-bottom: 0 !important;
  }

  .page-header + .section[style*="padding-top:0"] > .container > img:first-child {
    margin-bottom: 24px !important;
  }
}

.blog-card-grid .card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 13px 0 10px !important;
}

.blog-card-grid .card p {
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-grid .post-card-meta {
  font-size: 11.5px;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-card-grid .tag {
  font-size: 10.5px;
  padding: 3px 9px;
}

.blog-card-grid .card-link {
  font-size: 13px;
}

.blog-trending {
  position: sticky;
  top: 92px;
}

.blog-trending-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.blog-trending h2 {
  font-size: 24px;
  margin: 7px 0 20px;
}

.trending-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.trending-number {
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.trending-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  transition: color .2s;
}

.trending-item:hover strong { color: var(--accent-light); }

.trending-item small {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  margin-top: 5px;
}

.trending-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: -3px 0 14px;
}

.trending-cta {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .blog-hub-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
  .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .blog-hub-layout { grid-template-columns: 1fr; }
  .blog-trending { position: static; }
  .blog-trending-inner { max-width: none; }
}

@media (max-width: 560px) {
  .blog-card-grid { grid-template-columns: 1fr; }
  .blog-card-grid .card { padding: 17px; }
  .blog-card-grid .card img {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-position: center;
  }

  /* Keep legacy article tables inside the phone viewport. */
  .prose > table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* WhatsApp topical-authority articles */
.article-main .container,
.faq-wrap,
.author-wrap {
  max-width: 820px;
}

.article-main .prose {
  max-width: none;
}

.article-toc {
  display: grid;
  gap: 9px;
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.article-toc strong {
  margin-bottom: 3px;
}

.article-toc a {
  text-decoration: none;
}

.cluster-panel {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.cluster-panel h2 {
  margin: 8px 0 22px;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-proof-card {
  overflow: hidden;
}

.work-proof-card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.case-result-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(216, 90, 48, .1);
  border: 1px solid rgba(216, 90, 48, .24);
}

.case-result-chip strong {
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 25px;
  white-space: nowrap;
}

.case-result-chip span {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.cluster-card {
  display: flex;
  min-width: 0;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  flex-direction: column;
  gap: 9px;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}

.cluster-card:hover {
  border-color: rgba(216, 90, 48, .55);
  transform: translateY(-2px);
}

.cluster-card span,
.cluster-card small {
  color: var(--text-secondary);
  font-size: 12px;
}

.cluster-card strong {
  line-height: 1.4;
}

.cluster-card small {
  margin-top: auto;
  color: var(--accent-light);
}

.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-card .avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  font-size: 18px;
}

.author-card p {
  margin: 8px 0 0;
  font-size: 15px;
}

.whatsapp-topic-hub {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid rgba(216, 90, 48, .32);
  border-radius: 16px;
  background: rgba(216, 90, 48, .06);
}

.whatsapp-topic-hub h2 {
  margin-top: 0;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.blog-page-button {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.blog-page-button:hover,
.blog-page-button[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.blog-page-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.blog-page-status {
  width: 100%;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .cluster-grid { grid-template-columns: 1fr; }
  .cluster-card { min-height: 0; }
  .cluster-panel { padding: 22px 18px; }
}

@media (max-width: 560px) {
  .article-toc { padding: 17px; }
  .author-card { flex-direction: column; }
  .blog-pagination { margin-top: 26px; }
}

/* Cluster pillar visuals */
.pillar-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:48px;align-items:center}.pillar-visual{display:block;contain:layout paint}.pillar-visual img{width:100%;height:auto;max-height:520px;object-fit:contain}.cluster-hero-media img{width:min(100%,1060px);margin:auto;height:auto;max-height:620px;object-fit:contain;border:1px solid var(--border);border-radius:24px;background:radial-gradient(circle at 50% 50%,rgba(216,90,48,.12),transparent 70%)}@media(max-width:900px){.pillar-hero-grid{grid-template-columns:1fr}.pillar-visual{max-width:680px}.pillar-header{padding-bottom:36px}}
@supports(content-visibility:auto){main>.section,main>.section-sm{content-visibility:auto;contain-intrinsic-size:auto 760px}}
