/*
Theme Name: Common Scaling
Theme URI: https://commonscaling.com
Author: Common Scaling
Author URI: https://commonscaling.com
Description: Custom theme for Common Scaling performance marketing website, built from Bolt.new HTML export.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: common-scaling
*/

/* ===== RESET / BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #F7F3EC;
  color: #14241F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
/* ===== FONT WEIGHT UTILITIES ===== */
.font-800 { font-weight: 800; }
.font-700 { font-weight: 700; }
.font-600 { font-weight: 600; }
.font-500 { font-weight: 500; }
/* ===== SCROLL FADE-UP ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ===== FLOATING MOCKUP CARDS ===== */
@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.float-card {
  animation: floatA 4s ease-in-out infinite;
}
/* ===== STAT STRIP SCROLL ===== */
.stat-scroll-track {
  display: flex;
  width: max-content;
  animation: statScroll 30s linear infinite;
}
@keyframes statScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.stat-scroll-inner {
  display: flex;
  align-items: center;
}
.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
}
.stat-number {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #14241F;
  line-height: 1;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #14241F;
  opacity: 0.5;
  font-weight: 500;
  max-width: 88px;
  line-height: 1.35;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: #14241F;
  opacity: 0.15;
  flex-shrink: 0;
}
/* ===== FAQ ACCORDION ===== */
.faq-body {
  display: none;
  animation: faqOpen 0.25s ease;
}
.faq-body.open {
  display: block;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-icon {
  transition: transform 0.25s ease;
}
.faq-icon.open {
  transform: rotate(180deg);
}
/* ===== CLIENT LOGO MARQUEE ===== */
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logoScroll 28s linear infinite;
}
.logo-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-marquee-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 8px;
  flex-shrink: 0;
}
.logo-slot {
  flex-shrink: 0;
}
/* Placeholder shown until a real logo image is swapped in */
.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: #EAF2EC;
  border: 1px solid rgba(20, 36, 31, 0.08);
  color: rgba(20, 36, 31, 0.45);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 148px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.logo-placeholder:hover {
  background: #fff;
  color: rgba(20, 36, 31, 0.75);
  border-color: rgba(20, 36, 31, 0.18);
}
/* Real logo image style (used when placeholder is swapped out) */
.logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s;
  display: block;
}
.logo-img:hover {
  filter: grayscale(0) opacity(1);
}
/* ===== HEADER SCROLL SHADOW ===== */
#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(20, 36, 31, 0.08);
}
