/*
 * Shyn Media — main.css
 * Additional component styles loaded after style.css
 * Loaded via wp_enqueue_style in inc/enqueue.php
 */

/* ============================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: var(--color-surface);
  clip: auto !important;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* WordPress Generated Classes */
.sticky        { }
.bypostauthor  { }
.alignleft     { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright    { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter   { display: block; margin: 0 auto 1rem; }

/* WordPress Pagination */
.navigation .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}

.navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-base);
}

.navigation .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.navigation .page-numbers.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* ============================================================
   HERO GLOW ACCENT LINE
   ============================================================ */
.hero--home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 30%, var(--color-border) 70%, transparent 100%);
  opacity: 0.4;
}

/* ============================================================
   ANIMATED GRADIENT TEXT (hero accent)
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, #60A5FA 50%, var(--color-cta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ============================================================
   MOBILE HAMBURGER ANIMATION
   ============================================================ */
.nav-hamburger.is-open .nav-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open .nav-hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.is-open .nav-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   STAT COUNTER ANIMATION
   ============================================================ */
.cred-bar__number {
  display: block;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   HERO SOCIAL PROOF SCROLL ANIMATION
   ============================================================ */
.hero__proof {
  animation: fade-in-up 0.6s ease both;
  animation-delay: 0.4s;
  opacity: 0;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__headline {
  animation: fade-in-up 0.5s ease both;
  animation-delay: 0.05s;
}

.hero__subhead {
  animation: fade-in-up 0.5s ease both;
  animation-delay: 0.15s;
}

.hero__ctas {
  animation: fade-in-up 0.5s ease both;
  animation-delay: 0.25s;
}

.hero__eyebrow {
  animation: fade-in-up 0.4s ease both;
}

/* ============================================================
   GLOWING CTA BUTTON PULSE
   ============================================================ */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

.btn--primary.pulse {
  animation: pulse-glow 2.5s ease infinite;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 500;
  color: var(--color-text-muted);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-surface-3);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================================
   NOTICE BANNER (optional top announcement bar)
   ============================================================ */
.notice-bar {
  background: var(--color-accent-dim);
  border-bottom: 1px solid rgba(59,130,246,0.2);
  padding: 10px var(--gutter);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.notice-bar a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header + .notice-bar {
  margin-top: 68px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding-top: 68px;
}

.error-404__code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-border);
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

/* ============================================================
   DARK / LIGHT MODE TOGGLE BUTTON
   ============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

/* Dark mode: show moon, hide sun */
.theme-toggle__icon--moon { display: block; }
.theme-toggle__icon--sun  { display: none; }

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun  { display: block; }

/* Logo swap: dark bg = white logo; light mode = coloured logo */
.logo-dark  { display: block; }
.logo-light { display: none; }

[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ============================================================
   TESTIMONIALS HORIZONTAL SCROLL
   ============================================================ */
.testimonials-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: 1rem;
  /* Bleed slightly past container for visual breathing room */
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.testimonials-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}

.testimonials-scroll-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.testimonials-scroll {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.testimonials-scroll .testimonial-card {
  /* Fixed width: show exactly 3 on desktop */
  width: calc((min(1200px, 100vw) - 2 * var(--gutter, 1.5rem) - 2 * 1.5rem) / 3);
  min-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .testimonials-scroll .testimonial-card {
    width: calc((100vw - 2 * var(--gutter, 1.5rem) - 1.5rem) / 2);
  }
}

@media (max-width: 600px) {
  .testimonials-scroll .testimonial-card {
    width: calc(100vw - 2 * var(--gutter, 1.5rem) - 2rem);
  }
}

/* ============================================================
   LIGHT MODE OVERRIDES
   All CSS custom properties remapped for light theme
   ============================================================ */
[data-theme="light"] {
  --color-bg:           #F8FAFF;
  --color-surface:      #FFFFFF;
  --color-surface-2:    #EEF2FF;
  --color-surface-3:    #E0E8FF;
  --color-text:         #0D1220;
  --color-text-muted:   #4A5568;
  --color-text-subtle:  #718096;
  --color-border:       #D1D9F0;
  --color-border-subtle:#E8EEFF;
  --color-accent:       #2563EB;
  --color-accent-dim:   rgba(37,99,235,0.08);
  --color-cta:          #EA6E0A;
}

[data-theme="light"] body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

[data-theme="light"] .site-header {
  background: rgba(248,250,255,0.92);
  border-bottom-color: var(--color-border);
}

[data-theme="light"] .site-footer {
  background: #EEEEF6;
  border-top: 1px solid var(--color-border);
}

[data-theme="light"] .nav-link {
  color: var(--color-text);
}

[data-theme="light"] .nav-link:hover {
  color: var(--color-accent);
}

[data-theme="light"] .nav-dropdown {
  background: #FFFFFF;
  border-color: var(--color-border);
  box-shadow: 0 8px 32px rgba(13,18,32,0.12);
}

[data-theme="light"] .section--surface,
[data-theme="light"] .section--dark {
  background: var(--color-surface);
}

[data-theme="light"] .card,
[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .proof-card {
  background: #FFFFFF;
  border-color: var(--color-border);
}

[data-theme="light"] .cred-bar {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

[data-theme="light"] .hero {
  background: var(--color-bg);
}

[data-theme="light"] .hero__headline,
[data-theme="light"] .hero__subhead,
[data-theme="light"] .section__title,
[data-theme="light"] .proof-card__client,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
  color: var(--color-text);
}

[data-theme="light"] .mobile-menu {
  background: #FFFFFF;
}

[data-theme="light"] .mobile-menu__link,
[data-theme="light"] .mobile-menu__sub-link {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}

[data-theme="light"] .footer-col__title {
  color: var(--color-text);
}

[data-theme="light"] .footer-col__link {
  color: var(--color-text-muted);
}

[data-theme="light"] .footer-col__link:hover {
  color: var(--color-accent);
}

[data-theme="light"] .footer-bottom {
  border-top-color: var(--color-border);
  color: var(--color-text-muted);
}

[data-theme="light"] .btn--secondary {
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="light"] .btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */

/* Nav: hide CTA text on small screens, show toggle + hamburger */
@media (max-width: 900px) {
  .nav-cta-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Nav actions spacing */
  .nav-actions {
    gap: 0.375rem;
  }

  /* Hero */
  .hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .hero__headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    line-height: 1.2;
  }

  .hero__subhead {
    font-size: 1rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section padding */
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Grid — always stack on mobile */
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr !important;
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem;
  }

  /* Cred bar */
  .cred-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cred-bar__number {
    font-size: 2rem;
  }

  /* Proof cards */
  .proof-card {
    flex-direction: column !important;
    gap: 2rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  /* About strip */
  .about-strip {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Blog cards */
  .blog-card__image {
    height: 180px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Section titles */
  .section__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Process / scope lists */
  .scope-grid {
    grid-template-columns: 1fr !important;
  }

  /* Page hero */
  .page-hero {
    padding: 6rem 0 3rem;
  }

  .page-hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  /* CTA sections */
  .cta-section {
    padding: 3rem 0;
  }

  .cta-section .btn {
    width: 100%;
    justify-content: center;
  }

  /* Inline CTAs in blog posts */
  .post-cta-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .cred-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .hero__eyebrow {
    font-size: 0.75rem;
  }

  .btn--lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* ============================================================
   HERO — SPLIT LAYOUT
   ============================================================ */
.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero__copy {
  max-width: 600px;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Smaller eyebrow pill */
.hero__eyebrow--sm {
  font-size: var(--text-xs);
  padding: 0.375rem 0.875rem;
  gap: 0.375rem;
}

.hero__eyebrow--sm svg {
  width: 13px;
  height: 13px;
}

/* Portrait image */
.hero__portrait {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  background: radial-gradient(circle at 60% 30%, #FDAE6B 0%, #F47D30 45%, #D95F00 100%);
  border-radius: var(--radius-2xl);
  overflow: visible;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-2xl);
  display: block;
}

/* Floating stat badges */
.hero__portrait-badge {
  position: absolute;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 110px;
  z-index: 2;
}

.hero__portrait-badge--tl {
  top: 2rem;
  left: -2rem;
}

.hero__portrait-badge--br {
  bottom: 2rem;
  right: -2rem;
}

.hero__portrait-badge-num {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-cta);
  line-height: 1;
}

.hero__portrait-badge-label {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* ============================================================
   CLIENT STRIP — Infinite Marquee
   ============================================================ */
.client-strip {
  padding: 1.5rem 0 1.75rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* "Trusted by" / "& many others" row */
.client-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter, 1.5rem);
  margin-bottom: 1.25rem;
  max-width: var(--container-max, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.client-strip__label {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  margin: 0;
}

/* The overflow-hidden viewport */
.client-marquee-outer {
  position: relative;
  overflow: hidden;
  cursor: grab;
  /* Left & right fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.client-marquee-outer.is-dragging {
  cursor: grabbing;
}

/* The scrolling track — 2× the logo set width */
.client-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  /* Animation: moves from -50% → 0% = left-to-right scroll */
  animation: marquee-ltr 65s linear infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* Pause on hover so users can read */
.client-marquee-outer:hover .client-marquee-track {
  animation-play-state: paused;
}

/* Pause when dragging is active (JS adds class) */
.client-marquee-outer.is-dragging .client-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-ltr {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* Individual logo items */
.client-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
}

.client-marquee-item img {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  /* Make all logos consistent on dark bg */
  filter: brightness(0) invert(1) opacity(0.55);
  transition: filter 0.3s ease;
  pointer-events: none;
  display: block;
}

.client-marquee-outer:hover .client-marquee-item img {
  filter: brightness(0) invert(1) opacity(0.85);
}

/* Light mode: dark logos on light bg */
[data-theme="light"] .client-strip {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="light"] .client-marquee-item img {
  filter: brightness(0) opacity(0.45);
}

[data-theme="light"] .client-marquee-outer:hover .client-marquee-item img {
  filter: brightness(0) opacity(0.75);
}

/* Mobile — speed up slightly so it still reads as motion */
@media (max-width: 768px) {
  .client-marquee-track {
    gap: 1.75rem;
    animation-duration: 45s;
  }

  .client-marquee-item img {
    height: 38px;
    max-width: 100px;
  }

  .client-strip__header {
    padding: 0 1rem;
  }
}

/* ============================================================
   SERVICE CARD ICON — Smaller Size
   ============================================================ */
.service-card__icon--sm {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-bottom: 0.875rem;
}

.service-card__icon--sm svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   AUTHORITY GRID — "Why Brands Bring Me In"
   ============================================================ */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.authority-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base);
}

.authority-item:hover {
  border-color: var(--color-accent);
}

.authority-item__icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.authority-item__icon svg {
  width: 20px;
  height: 20px;
}

.authority-item__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.authority-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   TESTIMONIAL CAROUSEL
   ============================================================ */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.testimonial-carousel__track {
  display: flex;
  will-change: transform;
  /* transition added by JS */
}

.testimonial-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 0.75rem;
  box-sizing: border-box;
}

/* Carousel navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.carousel-btn:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-btn--prev {
  left: 0.5rem;
}

.carousel-btn--next {
  right: 0.5rem;
}

/* Dots navigation */
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.is-active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   FIT GRID — Objection Handling (Yes / No columns)
   ============================================================ */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.fit-col {
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.fit-col--yes {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}

.fit-col--no {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.15);
}

.fit-col__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.fit-col__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fit-col__icon--yes {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}

.fit-col__icon--no {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.fit-col__icon svg {
  width: 18px;
  height: 18px;
}

.fit-col__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.fit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.fit-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  padding-left: 1.375rem;
  position: relative;
}

.fit-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-text-subtle);
  font-size: 0.8rem;
  top: 1px;
}

.fit-col--yes .fit-list li::before {
  content: '✓';
  color: #22C55E;
  font-weight: 700;
  font-size: 0.875rem;
}

.fit-col--no .fit-list li::before {
  content: '✗';
  color: #EF4444;
}

/* ============================================================
   PROCESS STEPS — "What Happens Next"
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base);
}

.process-step:hover {
  border-color: var(--color-accent);
}

.process-step__num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.process-step__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   TWO-COL CONTENT GRID — responsive layout class
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ============================================================
   FEATURED IMAGE — Blog post height constraint
   ============================================================ */
.featured-image--post {
  max-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-top: 2rem;
  margin-bottom: 0;
}

.featured-image--post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   BLOG POST — Post-end CTA + More from blog
   ============================================================ */
.post-end-cta {
  /* shown by default */
}

/* "More from blog" section */
.related-posts-section {
  padding: 3.5rem 0;
}

.related-posts-section h2 {
  font-size: var(--text-3xl);
  margin-bottom: 2rem;
}

/* ============================================================
   METRIC CARDS — Case studies upgrade
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.metric-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}

.metric-card__value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-cta);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: -0.02em;
}

.metric-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ============================================================
   LIGHT MODE — New components
   ============================================================ */
[data-theme="light"] .authority-item {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

[data-theme="light"] .client-strip {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="light"] .carousel-btn {
  background: white;
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="light"] .hero__portrait-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--color-border);
  box-shadow: 0 4px 16px rgba(13,18,32,0.1);
}

[data-theme="light"] .hero__portrait-badge-num {
  color: var(--color-cta);
}

[data-theme="light"] .hero__portrait-badge-label {
  color: var(--color-text-muted);
}

[data-theme="light"] .fit-col--yes {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.18);
}

[data-theme="light"] .fit-col--no {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.13);
}

[data-theme="light"] .process-step {
  background: white;
}

[data-theme="light"] .metric-card {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

[data-theme="light"] .carousel-dot {
  background: var(--color-border);
}

/* ============================================================
   MOBILE RESPONSIVE — New Components
   ============================================================ */
@media (max-width: 768px) {

  /* Hero split */
  .hero__split {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero__copy {
    max-width: 100%;
    order: 2;
  }

  .hero__visual {
    order: 1;
    justify-content: center;
  }

  .hero__portrait {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero__portrait-badge--tl {
    left: 0;
    top: 1rem;
  }

  .hero__portrait-badge--br {
    right: 0;
    bottom: 1rem;
  }

  .hero__eyebrow {
    justify-content: center;
  }

  /* Client strip */
  .client-strip__logos {
    gap: 0.625rem 1.5rem;
  }

  .client-logo {
    font-size: var(--text-xs);
  }

  /* Authority grid */
  .authority-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Testimonial carousel: 1 at a time */
  .testimonial-slide {
    flex: 0 0 100%;
    padding: 0;
  }

  .carousel-btn--prev { left: 0.25rem; }
  .carousel-btn--next { right: 0.25rem; }

  /* Fit grid */
  .fit-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Process steps */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Two-col content grid */
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Metrics grid */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog featured image */
  .featured-image--post {
    max-height: 300px;
  }

  /* Hide post-end CTA on mobile */
  .post-end-cta {
    display: none;
  }
}

@media (max-width: 480px) {

  /* Hero portrait smaller */
  .hero__portrait {
    max-width: 200px;
  }

  .hero__portrait-badge {
    padding: 0.5rem 0.75rem;
    min-width: 85px;
  }

  .hero__portrait-badge-num {
    font-size: 1rem;
  }

  /* Metrics: keep 2-col */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1.125rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .post-sidebar,
  .post-cta-box,
  .cta-section,
  .nav-cta {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }
}
