/* ==============================================================
   ScorpionTrack Custom WordPress Theme — Main Stylesheet
   Production-ready CSS for all sections
   ============================================================== */

/* Google Fonts are loaded via an early <link rel="stylesheet"> + preconnect in header.php (child theme).
   The previous @import here was a redundant, render-blocking late-discovery font fetch that delayed LCP.
   Do NOT re-add an @import for fonts. — perf fix, v1.2.0, Aug 2026 */

/* ============================================================
   DESIGN TOKENS — ScorpionTrack Brand
   ============================================================ */
:root {
  /* Colours */
  --st-blue: #386DB4;
  --st-navy: #0F2140;
  --st-light-blue: #7AABDF;
  --st-very-light-blue: #EFF4FB;
  --st-lime: #86E026;
  --st-lime-hover: #74c41f;
  --st-white: #FFFFFF;
  --st-dark-text: #1A2B45;
  --st-body-text: #4A5568;
  --st-light-text: #CBD5E0;
  --st-border: #E2E8F0;

  /* Typography */
  --font-heading: 'Exo 2', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing scale (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 56px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Layout */
  --max-width: 1200px;
  --section-padding: var(--sp-12) var(--sp-3);
  --section-padding-lg: var(--sp-16) var(--sp-3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,33,64,0.08);
  --shadow-md: 0 4px 16px rgba(15,33,64,0.1);
  --shadow-lg: 0 8px 32px rgba(15,33,64,0.12);
  --shadow-card: 0 2px 12px rgba(15,33,64,0.08);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 250ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--st-dark-text);
  background: var(--st-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  line-height: 1.6;
}

.overline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-height: 48px;
  text-decoration: none;
  box-shadow: none;
}

/* Scoped to actual buttons/links — NOT wp-block-button wrapper divs */
a.btn-primary,
button.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link {
  background: var(--st-lime);
  color: var(--st-navy);
}

a.btn-primary:hover,
button.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover {
  background: var(--st-lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(134, 224, 38, 0.3);
}

a.btn-primary:active,
button.btn-primary:active,
.wp-block-button.btn-primary .wp-block-button__link:active {
  transform: translateY(0);
}

/* Prevent wrapper div from inheriting button styles */
div.wp-block-button.btn-primary {
  background: transparent;
}

/* Scoped to actual buttons/links — NOT wp-block-button wrapper divs */
a.btn-secondary,
button.btn-secondary,
.wp-block-button.btn-secondary .wp-block-button__link {
  background: transparent;
  color: var(--st-white);
  border: 2px solid rgba(255,255,255,0.4);
}

a.btn-secondary:hover,
button.btn-secondary:hover,
.wp-block-button.btn-secondary .wp-block-button__link:hover {
  border-color: var(--st-white);
  background: rgba(255,255,255,0.08);
}

.btn-outline {
  background: transparent;
  color: var(--st-blue);
  border: 2px solid var(--st-blue);
}

.btn-outline:hover {
  background: var(--st-blue);
  color: var(--st-white);
}

/* ============================================================
   SECTION: HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--st-navy) 0%, #162D52 50%, var(--st-blue) 100%);
  overflow: hidden;
  padding: var(--sp-10) var(--sp-3);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero-content {
  color: var(--st-white);
}

.hero-overline {
  color: var(--st-lime);
  margin-bottom: var(--sp-2);
}

.hero h1 {
  margin-bottom: var(--sp-3);
  font-weight: 800;
}

.hero h1 span {
  color: var(--st-lime);
}

.hero-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-4);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 100%;
  border-radius: 12px;
}

/* ============================================================
   SECTION: TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--st-white);
  border-bottom: 1px solid var(--st-border);
  padding: var(--sp-5) var(--sp-3);
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

/* Site-wide icon pattern — rounded square, 48x48, 24x24 SVG.
   Two colour variants, chosen by background:
     - .trust-icon       → BLUE on light backgrounds
     - .trust-icon-lime  → LIME on dark backgrounds
   Only the colour changes; size/shape/stroke are identical.
   See CLAUDE.md "Icons — site-wide consistency rule". */
.trust-icon,
.trust-icon-lime {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.trust-icon {
  background: var(--st-very-light-blue, #EFF4FB);
  color: var(--st-blue, #386DB4);
}

.trust-icon-lime {
  background: rgba(134, 224, 38, 0.1);
  color: var(--st-lime-hover, #74c41f);
}

.trust-icon svg,
.trust-icon-lime svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.trust-icon svg { color: var(--st-blue, #386DB4); }
.trust-icon-lime svg { color: var(--st-lime-hover, #74c41f); }

.trust-item h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--st-navy);
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--st-body-text);
  line-height: 1.4;
}

/* ============================================================
   SECTION: CATEGORIES (Shop by Vehicle)
   ============================================================ */
.categories {
  background: var(--st-very-light-blue);
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.section-header .overline {
  color: var(--st-blue);
  margin-bottom: var(--sp-1);
  display: block;
}

.section-header h2 {
  color: var(--st-navy);
  margin-bottom: var(--sp-2);
}

.section-header p {
  color: var(--st-body-text);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.category-card {
  background: var(--st-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card .card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--st-navy), var(--st-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image .vehicle-icon {
  font-size: 3rem;
  opacity: 0.2;
  color: var(--st-white);
}

.card-image .product-count {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--st-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.category-card .card-body {
  padding: var(--sp-3);
}

.category-card h3 {
  font-family: var(--font-heading);
  color: var(--st-navy);
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--st-body-text);
  line-height: 1.5;
  margin-bottom: var(--sp-2);
}

.category-card .card-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--st-lime-hover);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
}

.category-card:hover .card-link {
  gap: 10px;
  color: var(--st-lime);
}

/* ============================================================
   SECTION: BEST SELLERS / PRODUCT SHOWCASE
   ============================================================ */
.products {
  background: var(--st-navy);
  padding: var(--section-padding-lg);
  position: relative;
  overflow: hidden;
}

.products::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,109,180,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.products .section-header .overline {
  color: var(--st-lime);
}

.products .section-header h2 {
  color: var(--st-white);
}

.products .section-header p {
  color: rgba(255,255,255,0.7);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.product-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.product-card .product-image {
  height: 200px;
  background: linear-gradient(180deg, rgba(56,109,180,0.2) 0%, rgba(15,33,64,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  position: relative;
}

.product-image .thatcham-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  background: var(--st-blue);
  color: var(--st-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-image img {
  max-height: 170px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-card .product-info {
  padding: var(--sp-3);
}

.product-card h3 {
  color: var(--st-white);
  font-family: var(--font-heading);
  margin-bottom: 6px;
  font-size: 1rem;
}

.product-card .product-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: var(--sp-2);
}

.product-card .product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sp-2);
}

.product-features .feature-tag {
  background: rgba(122,171,223,0.12);
  color: var(--st-light-blue);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-card .product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.product-price .price {
  color: var(--st-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.product-price .price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.product-price .btn-buy {
  background: var(--st-lime);
  color: var(--st-navy);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--duration) var(--ease);
  font-family: var(--font-body);
}

.product-price .btn-buy:hover {
  background: var(--st-lime-hover);
  transform: translateY(-1px);
}

/* ============================================================
   SECTION: WHY CHOOSE ScorpionTrack
   ============================================================ */
.why-choose {
  background: linear-gradient(180deg, #162D52 0%, var(--st-navy) 100%);
  padding: var(--section-padding-lg);
  position: relative;
}

.why-choose .section-header .overline {
  color: var(--st-lime);
}

.why-choose .section-header h2 {
  color: var(--st-white);
}

.why-choose .section-header p {
  color: rgba(255,255,255,0.7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: var(--sp-4);
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(122,171,223,0.2);
  transform: translateY(-2px);
}

.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(134,224,38,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
}

.feature-card .icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--st-lime);
}

.feature-card h3 {
  color: var(--st-white);
  margin-bottom: var(--sp-1);
  font-size: 1.05rem;
}

.feature-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================================
   SECTION: REVIEWS / SOCIAL PROOF
   ============================================================ */
.reviews {
  background: var(--st-white);
  padding: var(--section-padding);
}

.reviews .section-header .overline {
  color: var(--st-blue);
}

.reviews .section-header h2 {
  color: var(--st-navy);
}

.trustpilot-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  padding: var(--sp-4);
  background: var(--st-very-light-blue);
  border-radius: 12px;
}

.tp-score {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--st-navy);
}

.tp-stars {
  display: flex;
  gap: 4px;
}

.tp-star {
  width: 28px;
  height: 28px;
  background: #00b67a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.tp-star svg {
  width: 16px;
  height: 16px;
  color: var(--st-white);
}

.tp-info {
  color: var(--st-body-text);
  font-size: 0.9rem;
}

.tp-info strong {
  color: var(--st-navy);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.review-card {
  background: var(--st-very-light-blue);
  border-radius: 12px;
  padding: var(--sp-4);
  position: relative;
}

.review-card .review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-1);
}

.review-stars .star {
  color: #FFB800;
  font-size: 1rem;
}

.review-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--st-navy);
  margin-bottom: var(--sp-1);
  font-size: 0.95rem;
}

.review-card .review-text {
  color: var(--st-body-text);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: var(--sp-2);
  font-style: italic;
}

.review-card .reviewer {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--st-navy);
}

.review-card .review-date {
  font-size: 0.75rem;
  color: var(--st-body-text);
}

/* ============================================================
   SECTION: CTA / GET STARTED
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--st-blue) 0%, var(--st-navy) 100%);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134,224,38,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.cta-content {
  color: var(--st-white);
}

.cta-content .overline {
  color: var(--st-lime);
  margin-bottom: var(--sp-1);
  display: block;
}

.cta-content h2 {
  margin-bottom: var(--sp-2);
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: var(--sp-4);
  max-width: 480px;
}

.cta-content .cta-buttons {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.cta-form {
  background: var(--st-white);
  border-radius: 16px;
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
}

.cta-form h3 {
  font-family: var(--font-heading);
  color: var(--st-navy);
  margin-bottom: var(--sp-1);
  font-size: 1.3rem;
}

.cta-form .form-subtitle {
  color: var(--st-body-text);
  font-size: 0.9rem;
  margin-bottom: var(--sp-3);
}

.form-group {
  margin-bottom: var(--sp-2);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--st-navy);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--st-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--st-dark-text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  background: var(--st-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(56,109,180,0.1);
}

.form-submit {
  width: 100%;
  margin-top: var(--sp-1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--st-navy);
  padding: var(--sp-6) var(--sp-3) var(--sp-4);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-brand .logo-text {
  color: var(--st-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand .powered-by {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.footer-nav {
  display: flex;
  gap: var(--sp-4);
}

.footer-nav-column h4 {
  color: var(--st-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--sp-2);
}

.footer-nav-column ul {
  list-style: none;
}

.footer-nav-column li {
  margin-bottom: 8px;
}

.footer-nav-column a {
  color: rgba(255,255,255,0.6);
  transition: color var(--duration) var(--ease);
  font-size: 0.8rem;
}

.footer-nav-column a:hover {
  color: var(--st-lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-bottom-left {
  display: flex;
  gap: var(--sp-3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  transition: color var(--duration) var(--ease);
}

.footer-bottom a:hover {
  color: var(--st-lime);
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-body {
    margin: 0 auto var(--sp-4);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-section .container {
    grid-template-columns: 1fr;
  }

  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: var(--sp-6) var(--sp-3);
  }

  .hero-buttons {
    gap: var(--sp-1);
  }

  .trust-bar .container {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .cta-form {
    padding: var(--sp-3);
  }

  .footer-nav {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
  }

  .hero {
    min-height: 60vh;
    padding: var(--sp-4) var(--sp-2);
  }

  .hero .container {
    gap: var(--sp-3);
  }

  .btn {
    font-size: 0.8rem;
    padding: 12px 24px;
    min-height: 44px;
  }

  .section-header {
    margin-bottom: var(--sp-4);
  }

  .trust-bar .container {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .cta-section .container {
    gap: var(--sp-4);
  }

  .cta-form {
    padding: var(--sp-3);
  }

  .footer {
    padding: var(--sp-3) var(--sp-2) var(--sp-2);
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   PRE-FOOTER TRUST STRIP (ECM-2081)
   ============================================================ */
.st-pre-footer-trust {
  background: var(--st-navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-5) var(--sp-3);
}
.st-pre-footer-trust .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.st-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: center;
}
.st-trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
/* Footer trust strip uses .trust-icon-lime (lime variant, dark background).
   Icon pattern is defined once at the top of this stylesheet.
   Never add custom icon sizing here — see CLAUDE.md "Icons — site-wide consistency rule". */

.st-trust-strip__copy h4 {
  color: var(--st-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 2px 0;
  line-height: 1.3;
}
.st-trust-strip__copy p {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .st-trust-strip {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}

/* ============================================================
   FULL FOOTER (WordPress theme footer)
   ============================================================ */
.st-footer {
  background: var(--st-navy);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-6) var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.st-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.st-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.st-footer-social {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-2);
}
.st-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.st-social-icon:hover {
  background: var(--st-lime);
  color: var(--st-navy);
}
.st-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,0.6);
}
.st-footer-contact li {
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.st-footer-contact a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.st-footer-contact a:hover {
  color: var(--st-lime);
}
.st-footer-legal {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}
.st-footer-legal li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.78rem;
}
.st-footer-legal li a:hover {
  color: var(--st-white);
}
.st-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.st-footer-brand img {
  max-width: 180px;
  height: auto;
}
.st-footer-sublogo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--st-white);
}
.st-footer-sublogo span {
  color: var(--st-blue);
}
.st-footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-style: italic;
}
.st-footer-col h4 {
  color: var(--st-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--sp-2);
}
.st-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.st-footer-col ul li {
  margin-bottom: 8px;
}
.st-footer-col ul li a,
.st-footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  font-size: 0.85rem;
}
.st-footer-col ul li a:hover,
.st-footer-col a:hover {
  color: var(--st-lime);
}
.st-footer-col p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.st-footer-col p strong {
  color: var(--st-white);
}
.st-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-3);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.st-footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.st-footer-bottom a:hover {
  color: var(--st-white);
}
@media (max-width: 1100px) {
  .st-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-4);
  }
  .st-footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .st-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .st-footer-brand {
    grid-column: auto;
  }
  .st-footer {
    padding: var(--sp-6) var(--sp-3) var(--sp-3);
  }
}
