/* ═══════════════════════════════════════════════════════════════════════════
 * assets/css/main.css — RushForLess supplementary styles
 * Critical above-fold CSS is inlined in header.php.
 * This file handles non-critical, below-fold, and reusable components.
 * Loaded with <link rel="stylesheet"> (non-blocking via browser speculation).
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Smooth scroll & focus ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utility classes ───────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.gap-8 { gap: 8px; }

/* ── Alert components (shared across pages) ────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #E8F5E9; color: #1B5E20; border-left: 4px solid #4CAF50; }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #E53935; }
.alert-info    { background: #E3F2FD; color: #0D47A1; border-left: 4px solid #1976D2; }

/* ── Form globals ──────────────────────────────────────────────────────────── */
.field-group {
  margin-bottom: 20px;
}
.field-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--clr-navy);
}
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="url"],
.field-group input[type="search"],
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  background: var(--clr-grey-bg);
  color: var(--clr-navy);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  resize: vertical;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, .1);
  background: #fff;
}
.field-hint {
  font-size: .78rem;
  color: var(--clr-grey-txt);
  margin-top: 5px;
}

/* ── Page hero (shared across content pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, #2a2a4a 100%);
  color: #fff;
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero__inner {
  max-width: 700px;
  margin-inline: auto;
}
.page-hero__inner h1 { color: #fff; margin: 12px 0 16px; }
.page-hero__inner p  { opacity: .85; font-size: 1.05rem; max-width: 560px; margin-inline: auto; }

/* ── Proof bar (shared) ────────────────────────────────────────────────────── */
.proof-bar { background: var(--clr-navy); padding: 20px 0; }
.proof-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.proof-bar__item {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 28px; color: #fff; text-align: center;
}
.proof-bar__item strong { font-size: 1.3rem; color: var(--clr-orange); font-weight: 800; }
.proof-bar__item span   { font-size: .8rem; opacity: .7; margin-top: 2px; }
.proof-bar__divider     { width: 1px; height: 36px; background: rgba(255,255,255,.15); align-self: center; }

/* ── Partner / CTA strip (shared) ─────────────────────────────────────────── */
.partner-strip { background: var(--clr-orange); padding: 56px 0; }
.partner-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.partner-strip__inner h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.partner-strip__inner p  { color: rgba(255,255,255,.9); max-width: 560px; }
.partner-strip__actions  { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ── Testimonial cards (shared) ────────────────────────────────────────────── */
.testimonials__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-card__stars { color: var(--clr-orange); font-size: .95rem; letter-spacing: 2px; }
.testimonial-card blockquote p {
  color: var(--clr-grey-txt); font-size: .9rem; line-height: 1.65; flex: 1;
}
.testimonial-card footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--clr-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
}
.testimonial-card__author { display: block; font-weight: 700; font-size: .88rem; }
.testimonial-card__role   { font-size: .78rem; color: var(--clr-grey-txt); }

/* ── How It Works steps (shared) ───────────────────────────────────────────── */
.hiw__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.hiw__step { text-align: center; position: relative; }
.hiw__step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -24px; top: 44px;
  font-size: 1.4rem; color: var(--clr-orange); font-weight: 800;
}
.hiw__step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clr-orange); color: #fff;
  font-weight: 800; font-size: 1rem; margin-bottom: 18px;
}
.hiw__step h3 { margin-bottom: 8px; }
.hiw__step p  { color: var(--clr-grey-txt); font-size: .9rem; }

/* ── Check list (shared) ───────────────────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  padding-left: 26px; position: relative;
  font-size: .95rem; color: var(--clr-grey-txt); line-height: 1.55;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--clr-orange); font-weight: 800;
}

/* ── Section intro (shared) ────────────────────────────────────────────────── */
.section-intro { max-width: 600px; margin-inline: auto; margin-bottom: 52px; text-align: center; }
.section-intro h2 { margin: 10px 0 14px; }
.section-intro p  { color: var(--clr-grey-txt); font-size: 1.05rem; }

/* ── Blog card (shared) ────────────────────────────────────────────────────── */
.blog-card__link { font-weight: 700; font-size: .88rem; color: var(--clr-orange); }
.blog-card__link:hover { color: var(--clr-orange-d); }

/* ── Loading skeleton (for JS-enhanced sections) ───────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive globals ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .partner-strip__inner { flex-direction: column; text-align: center; }
  .partner-strip__actions { justify-content: center; }
  .hiw__steps { grid-template-columns: 1fr; }
  .hiw__step::after { display: none; }
}
@media (max-width: 600px) {
  .proof-bar__divider { display: none; }
  .proof-bar__item    { padding: 10px 14px; }
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ── Print styles ──────────────────────────────────────────────────────────── */
@media print {
  .navbar, .site-footer, .newsletter-strip,
  .cookie-banner, .partner-strip { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: .75em; }
}