/* =============================================================
   R24K THEME OVERRIDES
   Loads after r24k-kit.css. Overrides accent color and adds
   layout components not covered by the kit.
   ============================================================= */

/* --- Accent override for r24k.com --- */
.r24k-scope {
  --color-accent:       #003087;
  --color-accent-hover: #002266;
}

/* --- WordPress-specific resets --- */
body.r24k-scope {
  margin: 0;
  padding: 0;
}

/* --- Layout helpers --- */
.r24k-scope .section {
  padding: var(--s-9) 0;
}

.r24k-scope .section-sm {
  padding: var(--s-7) 0;
}

.r24k-scope .section-lg {
  padding: var(--s-9) 0;
}

.r24k-scope .bg-surface-2 {
  background: var(--color-surface-2);
}

.r24k-scope .bg-surface-3 {
  background: var(--color-surface-3);
}

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

/* --- Hero --- */
.r24k-scope .hero {
  padding: var(--s-9) 0;
}

.r24k-scope .hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--s-4);
}

.r24k-scope .hero-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  margin-bottom: var(--s-6);
  max-width: 600px;
}

.r24k-scope .hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* --- Stats bar --- */
.r24k-scope .stats-bar {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  padding: var(--s-5) 0;
}

.r24k-scope .stats-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}

.r24k-scope .stat-number {
  color: var(--color-accent);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* --- Feature grid --- */
.r24k-scope .feature-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.r24k-scope .feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--s-6);
  transition: var(--transition-med);
}

.r24k-scope .feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.r24k-scope .feature-icon {
  align-items: center;
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: var(--s-4);
  width: 44px;
}

.r24k-scope .feature-icon svg {
  height: 22px;
  width: 22px;
}

.r24k-scope .feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--s-2);
}

.r24k-scope .feature-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* --- Step / how-it-works --- */
.r24k-scope .steps {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.r24k-scope .step {
  position: relative;
}

.r24k-scope .step-num {
  align-items: center;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  margin-bottom: var(--s-3);
  width: 28px;
}

.r24k-scope .step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--s-2);
}

.r24k-scope .step-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* --- Testimonials --- */
.r24k-scope .testimonials {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.r24k-scope .testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--s-6);
}

.r24k-scope .testimonial-quote {
  color: var(--color-text-muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--s-5);
}

.r24k-scope .testimonial-author {
  align-items: center;
  display: flex;
  gap: var(--s-3);
}

.r24k-scope .testimonial-avatar {
  background: var(--color-surface-3);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  height: 40px;
  width: 40px;
}

.r24k-scope .testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

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

/* --- Pricing cards --- */
.r24k-scope .pricing-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.r24k-scope .pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--s-7);
  position: relative;
}

.r24k-scope .pricing-card-highlight {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.r24k-scope .pricing-card-badge {
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  left: 50%;
  letter-spacing: 0.03em;
  padding: 3px 12px;
  position: absolute;
  top: -12px;
  transform: translateX(-50%);
}

.r24k-scope .pricing-period {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}

.r24k-scope .pricing-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-1);
}

.r24k-scope .pricing-detail {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: var(--s-5);
}

.r24k-scope .pricing-features {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
}

.r24k-scope .pricing-features li {
  align-items: center;
  color: var(--color-text-muted);
  display: flex;
  font-size: 14px;
  gap: var(--s-2);
  padding: 4px 0;
}

.r24k-scope .pricing-features li::before {
  color: var(--color-accent);
  content: "✓";
  font-weight: 700;
}

/* --- Client logos --- */
.r24k-scope .client-grid {
  align-items: center;
  display: grid;
  gap: var(--s-7);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  justify-items: center;
  opacity: 0.65;
}

.r24k-scope .client-grid img {
  filter: grayscale(100%);
  max-height: 40px;
  max-width: 140px;
  object-fit: contain;
  transition: var(--transition-med);
}

.r24k-scope .client-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Section header --- */
.r24k-scope .section-header {
  margin-bottom: var(--s-7);
  max-width: 640px;
}

.r24k-scope .section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.r24k-scope .section-overline {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
  text-transform: uppercase;
}

.r24k-scope .section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--s-3);
}

.r24k-scope .section-desc {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* --- Blog cards --- */
.r24k-scope .blog-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.r24k-scope .blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-med);
}

.r24k-scope .blog-card:hover {
  box-shadow: var(--shadow-md);
}

.r24k-scope .blog-card-image {
  aspect-ratio: 16 / 9;
  background: var(--color-surface-3);
  object-fit: cover;
  width: 100%;
}

.r24k-scope .blog-card-body {
  padding: var(--s-5);
}

.r24k-scope .blog-card-meta {
  color: var(--color-text-subtle);
  font-size: 12px;
  margin-bottom: var(--s-2);
}

.r24k-scope .blog-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--s-2);
}

.r24k-scope .blog-card-title a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.r24k-scope .blog-card-excerpt {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* --- Footer --- */
.r24k-scope .site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding: var(--s-7) 0 var(--s-5);
}

.r24k-scope .footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 2fr repeat(3, 1fr);
}

.r24k-scope .footer-brand {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--s-3);
}

.r24k-scope .footer-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.r24k-scope .footer-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-4);
  text-transform: uppercase;
}

.r24k-scope .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.r24k-scope .footer-links li {
  margin-bottom: var(--s-2);
}

.r24k-scope .footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.r24k-scope .footer-links a:hover {
  color: var(--color-text);
  opacity: 1;
}

.r24k-scope .footer-bottom {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  font-size: 13px;
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .r24k-scope .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .r24k-scope .hero {
    padding: var(--s-7) 0;
  }

  .r24k-scope .section {
    padding: var(--s-7) 0;
  }
}

@media (max-width: 480px) {
  .r24k-scope .footer-grid {
    grid-template-columns: 1fr;
  }

  .r24k-scope .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .r24k-scope .hero-actions .btn {
    width: 100%;
  }
}

/* --- Navigation --- */
.r24k-scope .site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.r24k-scope .nav-wrap {
  align-items: center;
  display: flex;
  height: 60px;
  justify-content: space-between;
}

.r24k-scope .nav-brand {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.r24k-scope .nav-brand a:hover {
  opacity: 1;
}

.r24k-scope .nav-menu {
  align-items: center;
  display: flex;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.r24k-scope .nav-menu a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.r24k-scope .nav-menu a:hover,
.r24k-scope .nav-menu .current-menu-item a {
  color: var(--color-text);
  opacity: 1;
}

.r24k-scope .nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  padding: var(--s-2);
}

.r24k-scope .nav-toggle svg {
  color: var(--color-text);
  height: 24px;
  width: 24px;
}

@media (max-width: 768px) {
  .r24k-scope .nav-toggle {
    display: block;
  }

  .r24k-scope .nav-menu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: var(--s-3);
    position: absolute;
    right: var(--s-5);
    top: 56px;
    width: 220px;
  }

  .r24k-scope .nav-menu.is-open {
    display: flex;
  }

  .r24k-scope .nav-menu li {
    width: 100%;
  }

  .r24k-scope .nav-menu a {
    border-radius: var(--radius-md);
    display: block;
    padding: var(--s-3) var(--s-4);
  }

  .r24k-scope .nav-menu a:hover {
    background: var(--color-surface-2);
  }
}

/* --- Main content --- */
.r24k-scope .site-main {
  min-height: 60vh;
}

.r24k-scope .entry-content > * {
  margin-bottom: var(--s-5);
}

.r24k-scope .entry-content h2 {
  margin-top: var(--s-7);
}

.r24k-scope .entry-content h3 {
  margin-top: var(--s-6);
}

.r24k-scope .page-header {
  padding: var(--s-7) 0 var(--s-5);
}

.r24k-scope .page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* --- Pagination --- */
.r24k-scope .pagination,
.r24k-scope .nav-links {
  align-items: center;
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  margin-top: var(--s-7);
}

.r24k-scope .pagination a,
.r24k-scope .pagination span,
.r24k-scope .nav-links a,
.r24k-scope .nav-links span {
  align-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  padding: 0 10px;
  transition: var(--transition);
}

.r24k-scope .pagination a:hover,
.r24k-scope .nav-links a:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  opacity: 1;
}

.r24k-scope .pagination .current,
.r24k-scope .nav-links .current {
  background: var(--color-accent);
  color: #fff;
}

/* --- Post navigation --- */
.r24k-scope .post-navigation {
  border-top: 1px solid var(--color-border);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
}

.r24k-scope .post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}

.alignleft {
  float: left;
  margin-right: var(--s-5);
}
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.alignleft {
  float: left;
  margin-right: var(--s-5);
}

.alignright {
  float: right;
  margin-left: var(--s-5);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: var(--s-2);
}
