/*
Theme Name: GAP Turbos MTC
Theme URI: https://gap-turbos.com
Author: Marketing the Change
Author URI: https://marketingthechange.com
Description: FSE block theme for GAP Turbos. UK turbocharger reconditioning, DPF cleaning, mobile UK-wide, trade wholesale, and approved-fitter directory. Workshop Navy + Hi-Vis Amber system, Sora + Inter + JetBrains Mono. WooCommerce integrated. Since 1986.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gap-turbos-mtc
Tags: full-site-editing, block-templates, block-patterns, automotive, woocommerce
*/

/* Colour tokens (documented; theme.json owns the runtime values) */
:root {
  --clr-workshop-navy: #0F1E3A;
  --clr-steel-blue: #1A2E52;
  --clr-hi-vis-amber: #F5A623;
  --clr-amber-deep: #D48812;
  --clr-bright-paper: #F7F5F0;
  --clr-ink: #111318;
  --clr-bone-white: #F5F5F2;
  --clr-steel-grey: #8A94A6;
  --clr-deep-steel: #25344F;
  --clr-signal-red: #C43728;
  --clr-passed-green: #3F8250;
}

/* Skip link (WCAG) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--clr-hi-vis-amber);
  color: var(--clr-ink);
  padding: 12px 20px;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; outline: 3px solid var(--clr-ink); }

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--clr-hi-vis-amber);
  outline-offset: 2px;
}

/* Warranty flag inline */
.gt-warranty-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-hi-vis-amber);
  color: var(--clr-ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.gt-warranty-flag::before {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5l8-3z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5l8-3z'/></svg>") no-repeat center / contain;
}

/* Trust pills */
.gt-trust-pill {
  display: inline-block;
  background: var(--clr-hi-vis-amber);
  color: var(--clr-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* Signal red disclosure block */
.gt-disclosure {
  background: rgba(196, 55, 40, 0.08);
  border-left: 3px solid var(--clr-signal-red);
  padding: 20px 24px;
  color: var(--clr-ink);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Image overlay treatments */
.img-navy-wash { position: relative; overflow: hidden; isolation: isolate; }
.img-navy-wash img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-navy-wash::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,58,0.35) 0%, rgba(15,30,58,0.72) 100%);
  pointer-events: none; z-index: 1;
}

.img-amber-spec {
  position: relative; overflow: hidden; isolation: isolate;
  border: 2px solid var(--clr-hi-vis-amber); border-radius: 6px;
}
.img-amber-spec img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.08) saturate(0.9); }

.img-paper-frame {
  padding: 12px; background: var(--clr-bright-paper);
  border: 1px solid #E5E1D8; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(17,19,24,0.05);
}
.img-paper-frame img { width: 100%; height: auto; display: block; border-radius: 2px; }

/* Motion (respect reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .gt-fade-in { animation: gtFadeIn 300ms ease-out both; }
  @keyframes gtFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* WooCommerce buy-box tuning (only classes we control) */
.gt-buybox {
  background: var(--clr-steel-blue);
  color: var(--clr-bone-white);
  padding: 32px;
  border-radius: 8px;
}
.gt-buybox .price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 32px;
  color: var(--clr-hi-vis-amber);
  font-weight: 400;
}

/* Garage locator */
.gt-garage-card {
  background: var(--clr-bright-paper);
  border: 1px solid #E5E1D8;
  border-left: 3px solid var(--clr-hi-vis-amber);
  padding: 24px;
  border-radius: 4px;
}
.gt-garage-card h3 { margin: 0 0 8px; font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 20px; color: var(--clr-ink); }
.gt-garage-card .rating { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; color: var(--clr-amber-deep); }

/* Utility */
.gt-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.gt-container { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 80px); }
