/*
Theme Name: Jayasinghe Consulting — Claude
Theme URI: https://jayasingheconsulting.com
Description: Child theme of Twenty Twenty-Five for jayasingheconsulting.com. Ports the React prototype (two audience tracks, wordmark-led brand, Claude palette) into WordPress block patterns. v0.2 matches the prototype tokens.css and pages-org.jsx / pages-smb.jsx content.
Author: Opi Jayasinghe
Author URI: https://jayasingheconsulting.com
Template: twentytwentyfive
Version: 0.2.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jayasinghe-claude
*/

/* ============================================================
   Component CSS — ported from the prototype's tokens.css.
   theme.json handles palette/type/spacing; this file owns the
   small component visuals the block editor can't express on
   its own (eyebrow dot, accent rule, marquee, svc-card hover,
   wordmark lockup, track-switch, on-dark variants).
   ============================================================ */

/* Body track variable — flipped to green on the SMB template
   via the body-class hook in functions.php. */
body {
  --jc-accent: var(--wp--preset--color--brand-orange);
}
body.track-smb {
  --jc-accent: var(--wp--preset--color--brand-green);
}

/* ─── Eyebrow + dot ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jc-accent);
  margin: 0 0 var(--wp--preset--spacing--20) 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--jc-accent);
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }

/* ─── Accent rule ───────────────────────────────────────── */
.accent-rule {
  display: block;
  width: 56px; height: 3px;
  background: var(--jc-accent);
  border: 0;
  margin: 0 0 var(--wp--preset--spacing--30) 0;
}
.accent-rule.is-blue  { background: var(--wp--preset--color--brand-blue);  }
.accent-rule.is-green { background: var(--wp--preset--color--brand-green); }

/* ─── Pill button shape ────────────────────────────────── */
.wp-block-button.pill-btn .wp-block-button__link {
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 500;
  font-size: 15px;
  border-width: 1.5px;
  border-style: solid;
}
.wp-block-button.pill-btn .wp-block-button__link .arrow {
  display: inline-block;
  transition: transform .15s ease;
  margin-left: 6px;
}
.wp-block-button.pill-btn:hover .wp-block-button__link .arrow {
  transform: translateX(3px);
}

/* ─── Wordmark lockup ──────────────────────────────────── */
.jc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
}
.jc-wordmark .jc-wm-name {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--wp--preset--color--brand-dark);
  text-transform: uppercase;
}
.jc-wordmark .jc-wm-divider {
  width: 1px;
  height: 13px;
  background: rgba(20,20,19,.22);
  margin: 0 2px;
}
.jc-wordmark .jc-wm-sub {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--jc-accent);
  padding-left: 0.2em;
  text-transform: uppercase;
}
.dark-bg .jc-wordmark .jc-wm-name    { color: var(--wp--preset--color--brand-light); }
.dark-bg .jc-wordmark .jc-wm-divider { background: rgba(250,249,245,.25); }

/* Footer variant — slightly larger */
.jc-wordmark.is-footer .jc-wm-name { font-size: 16px; }
.jc-wordmark.is-footer .jc-wm-sub  { font-size: 11px; letter-spacing: 0.4em; }
.jc-wordmark.is-footer .jc-wm-divider { height: 14px; }

/* Hide the CONSULTING suffix on narrow screens */
@media (max-width: 960px) {
  .jc-wordmark .jc-wm-divider,
  .jc-wordmark .jc-wm-sub { display: none; }
}

/* ─── Track switcher pill ──────────────────────────────── */
.jc-track-switch {
  display: inline-flex;
  background: var(--wp--preset--color--brand-light-gray);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 500;
  font-size: 13px;
}
.jc-track-switch a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--wp--preset--color--brand-dark);
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.jc-track-switch a.is-active {
  background: var(--wp--preset--color--brand-dark);
  color: var(--wp--preset--color--brand-light);
}
.jc-track-switch a:not(.is-active):hover { color: var(--jc-accent); }

/* ─── Service card ─────────────────────────────────────── */
.svc-card {
  background: var(--wp--preset--color--brand-light);
  border: 1px solid var(--wp--preset--color--brand-light-gray);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--40);
  transition: transform .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
  gap: var(--wp--preset--spacing--20);
  position: relative;
  height: 100%;
}
.svc-card:hover {
  transform: translateY(-3px);
  border-color: var(--wp--preset--color--brand-dark);
}
.svc-card .svc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--wp--preset--color--brand-orange) 12%, transparent);
  color: var(--wp--preset--color--brand-orange);
  margin-bottom: var(--wp--preset--spacing--20);
}
.svc-card.is-blue  .svc-icon { background: color-mix(in srgb, var(--wp--preset--color--brand-blue)  14%, transparent); color: var(--wp--preset--color--brand-blue);  }
.svc-card.is-green .svc-icon { background: color-mix(in srgb, var(--wp--preset--color--brand-green) 14%, transparent); color: var(--wp--preset--color--brand-green); }
body.track-smb .svc-card .svc-icon { background: color-mix(in srgb, var(--wp--preset--color--brand-green) 12%, transparent); color: var(--wp--preset--color--brand-green); }

.svc-card .svc-link {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--wp--preset--color--brand-dark);
  text-decoration: none !important;
  border-bottom: 1.5px solid var(--jc-accent);
  padding-bottom: 2px;
  margin-top: auto;
  align-self: flex-start;
}

/* ─── Marquee ──────────────────────────────────────────── */
.jc-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.jc-marquee-track {
  display: inline-flex;
  gap: var(--wp--preset--spacing--60);
  align-items: center;
  animation: jc-marquee 40s linear infinite;
  white-space: nowrap;
  padding-right: var(--wp--preset--spacing--60);
}
.jc-marquee-item {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--wp--preset--color--brand-mid-gray);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.jc-marquee-item::after {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--wp--preset--color--brand-mid-gray);
  opacity: .6;
}
@keyframes jc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Stat card (recent work section) ──────────────────── */
.stat-card {
  background: color-mix(in srgb, var(--wp--preset--color--brand-light) 6%, var(--wp--preset--color--brand-dark));
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-light) 12%, transparent);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--40);
}
.stat-card .stat-num {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--jc-accent);
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  color: var(--wp--preset--color--brand-mid-gray);
  margin-top: 8px;
}

/* ─── Dark band (case study, footer, engagement section) ── */
.dark-bg {
  background: var(--wp--preset--color--brand-dark);
  color: var(--wp--preset--color--brand-light);
}
.dark-bg h1, .dark-bg h2, .dark-bg h3 { color: var(--wp--preset--color--brand-light); }
.dark-bg p { color: var(--wp--preset--color--brand-mid-gray); }
.dark-bg .accent-rule { background: var(--jc-accent); }

/* ─── Honesty bar tick item (SMB) ──────────────────────── */
.honesty-item .honesty-title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--wp--preset--color--brand-dark);
  margin: 0 0 4px;
}
.honesty-item .honesty-title::before {
  content: '✓ ';
  color: var(--jc-accent);
  font-weight: 700;
}
.honesty-item .honesty-body {
  font-size: 13px;
  color: var(--wp--preset--color--brand-dark);
  opacity: .75;
  margin: 0;
}

/* ─── Italic emphasis for headlines ────────────────────── */
.ital {
  font-family: var(--wp--preset--font-family--body);
  font-style: italic;
  font-weight: 400;
}
