/**
 * Page-scoped design system imitating barq.com's layout/structure (hero +
 * floating glass card, scrolling pill ticker, alternating pastel section
 * rhythm), used ONLY by retail-solutions.php and educational-solutions.php
 * (the two "Smart Solutions" landing pages). Namespaced under .barq-page
 * so it never leaks into the rest of the site, which keeps its own
 * established violet/magenta/orange brand untouched.
 *
 * Color palette: "Vibrant teal & indigo" -- a deliberate departure from
 * barq.com's own black/yellow scheme (structure/layout imitates barq,
 * colors do not): deep indigo #4338CA as the primary dark/solid color,
 * teal #14B8A6 as the accent CTA color, and coral #FB7185 used sparingly
 * as a highlight. Section backgrounds are pale tints of the same family.
 */
.barq-page{
  --bq-indigo:#4338CA;
  --bq-indigo-2:#6366F1;
  --bq-teal:#14B8A6;
  --bq-teal-dark:#0D9488;
  --bq-coral:#FB7185;
  --bq-ink:#0F172A;
  --bq-muted:#5B5B64;
  --bq-mist:#EEF2FF;
  --bq-lavender:#F5F3FF;
  --bq-teal-pale:#CCFBF1;
  --bq-skyblue:#DCEAFE;
  --bq-grad-accent:linear-gradient(135deg,var(--bq-indigo) 0%,var(--bq-teal) 100%);
  --bq-radius:16px;
  --bq-radius-lg:24px;
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:#fff;
}
body[dir="rtl"] .barq-page{font-family:"Segoe UI",Tahoma,Arial,sans-serif}

/* ---------- Hero ---------- */
.barq-hero{position:relative;overflow:hidden;padding-block:110px 90px;color:#fff}
.barq-hero.retail{background:
  radial-gradient(ellipse 60% 50% at 25% 15%,rgba(99,102,241,.35),transparent 60%),
  radial-gradient(ellipse 70% 60% at 85% 90%,rgba(20,184,166,.3),transparent 65%),
  linear-gradient(165deg,#1e1b4b 0%,#14102f 55%,#050314 100%);
}
.barq-hero.edu{background:
  radial-gradient(ellipse 60% 50% at 25% 15%,rgba(20,184,166,.32),transparent 60%),
  radial-gradient(ellipse 70% 60% at 85% 90%,rgba(67,56,202,.38),transparent 65%),
  linear-gradient(165deg,#042f2e 0%,#0b1a3a 55%,#050314 100%);
}
.barq-hero .container{display:grid;grid-template-columns:1.15fr .85fr;gap:52px;align-items:center;position:relative;z-index:2}
.barq-eyebrow{font-size:15px;font-weight:600;color:rgba(255,255,255,.82);margin:0 0 16px;display:flex;align-items:center;gap:8px}
.barq-hero h1{font-size:clamp(34px,5vw,58px);font-weight:800;line-height:1.08;margin:0 0 18px;letter-spacing:-.01em}
.barq-hero p.barq-lead{font-size:17.5px;color:rgba(255,255,255,.82);max-width:480px;margin:0 0 30px;line-height:1.55}
.barq-hero-ctas{display:flex;gap:14px;flex-wrap:wrap}

.barq-btn{display:inline-flex;align-items:center;gap:10px;padding:16px 26px;border-radius:var(--bq-radius);font-weight:700;font-size:15px;text-decoration:none;border:none;cursor:pointer;line-height:1}
.barq-btn-yellow{background:var(--bq-teal);color:#fff}
.barq-btn-yellow:hover{background:var(--bq-teal-dark)}
.barq-btn-black{background:var(--bq-indigo);color:#fff}
.barq-btn-black:hover{background:#372aad}
.barq-btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.35)}
.barq-btn-ghost:hover{border-color:#fff}

/* floating glass card, echoing barq's account-preview panel */
.barq-glass{background:rgba(30,27,75,.55);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.16);border-radius:28px;padding:30px;box-shadow:0 24px 64px rgba(0,0,0,.45)}
.barq-glass-badge{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:rgba(255,255,255,.85);
  background:rgba(255,255,255,.1);padding:7px 14px;border-radius:99px;margin-bottom:22px}
.barq-glass-stat{margin-bottom:22px}
.barq-glass-stat .num{font-size:44px;font-weight:800;color:#fff;line-height:1}
.barq-glass-stat .lbl{font-size:13.5px;color:rgba(255,255,255,.65);margin-top:6px}
.barq-glass-chips{display:flex;gap:10px;flex-wrap:wrap}
.barq-glass-chip{flex:1;min-width:92px;background:rgba(255,255,255,.09);border-radius:14px;padding:14px 12px;text-align:center}
.barq-glass-chip .v{font-size:17px;font-weight:800;color:#2DD4BF}
.barq-glass-chip .l{font-size:11px;color:rgba(255,255,255,.65);margin-top:3px;line-height:1.3}

/* ---------- Scrolling pill/tag marquee, overlapping the hero ----------
   barq.com's quick-link row isn't a static wrapped row -- it's an
   infinite auto-scrolling ticker (the pill list is duplicated in the
   track so the loop is seamless). Reproduced the same way here: render
   the pill list twice into .barq-marquee-track and animate it -50%. */
.barq-marquee{overflow:hidden;position:relative;z-index:5;margin-top:-30px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.barq-marquee-track{display:flex;gap:10px;width:max-content;padding:0 16px;animation:barq-marquee-scroll 26s linear infinite}
.barq-marquee:hover .barq-marquee-track{animation-play-state:paused}
@keyframes barq-marquee-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.barq-marquee-track{animation:none;flex-wrap:wrap;width:100%;justify-content:center}}
.barq-pill{background:var(--bq-indigo);color:#fff;border-radius:var(--bq-radius);padding:13px 20px;display:flex;align-items:center;gap:10px;
  font-weight:600;font-size:13.5px;text-decoration:none;white-space:nowrap;box-shadow:0 12px 26px rgba(67,56,202,.3);transition:transform .15s,background .15s;flex-shrink:0}
.barq-pill:hover{transform:translateY(-3px);background:var(--bq-teal-dark)}
.barq-pill .ic{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}

/* ---------- Pastel content sections ---------- */
.barq-section{padding-block:84px}
.barq-section.bg-white{background:#fff}
.barq-section.bg-cream{background:var(--bq-mist)}
.barq-section.bg-lavender{background:var(--bq-lavender)}
.barq-section.bg-mint{background:var(--bq-teal-pale)}
.barq-section.bg-sky{background:var(--bq-skyblue)}
.barq-section.center{text-align:center}
.barq-h2{font-size:clamp(28px,4vw,42px);font-weight:800;color:var(--bq-ink);line-height:1.14;margin:0 0 14px;letter-spacing:-.01em}
.barq-sub{font-size:16px;color:var(--bq-muted);max-width:560px;line-height:1.6;margin:0}
.barq-section.center .barq-sub{margin-inline:auto}
.barq-eyebrow.dark{color:var(--bq-indigo)}
.barq-section.center .barq-eyebrow{justify-content:center}

.barq-row{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.barq-row.reverse{direction:rtl}
.barq-row.reverse > *{direction:ltr}
.barq-head-block{margin-bottom:40px}

/* feature icon-list item, mirroring barq's "Easy Money Management /
   Offers / No Fees" stacked list next to the product visual */
.barq-feature-list{display:flex;flex-direction:column}
.barq-feature-item{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-top:1px solid rgba(15,23,42,.08)}
.barq-feature-item:first-child{border-top:none;padding-top:0}
.barq-feature-icon{width:42px;height:42px;border-radius:50%;background:var(--bq-grad-accent);color:#fff;display:flex;
  align-items:center;justify-content:center;flex-shrink:0;font-size:15px}
.barq-feature-item h4{font-size:16px;font-weight:700;color:var(--bq-ink);margin:0 0 4px}
.barq-feature-item p{font-size:14px;color:var(--bq-muted);margin:0;line-height:1.5}

/* product / card grid -- gradient indigo->teal icon badges, big radius,
   matching barq's clean white-card layout but with this palette's own
   vibrant icon treatment instead of barq's monochrome black icons */
.barq-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.barq-card{background:#fff;border-radius:var(--bq-radius-lg);padding:30px;border:1px solid rgba(15,23,42,.07);
  box-shadow:0 2px 14px rgba(15,23,42,.05);text-decoration:none;color:inherit;display:block;transition:transform .15s,box-shadow .15s}
.barq-card:hover{transform:translateY(-5px);box-shadow:0 20px 38px rgba(67,56,202,.14)}
.barq-card .icon{width:52px;height:52px;border-radius:16px;background:var(--bq-grad-accent);color:#fff;display:flex;
  align-items:center;justify-content:center;font-size:20px;margin-bottom:18px}
.barq-card h3{font-size:19px;font-weight:700;color:var(--bq-ink);margin:0 0 9px}
.barq-card p{font-size:14.5px;color:var(--bq-muted);margin:0 0 14px;line-height:1.55}
.barq-card .barq-card-cta{font-size:13px;font-weight:700;color:var(--bq-indigo);display:flex;align-items:center;gap:7px}

/* flagship product illustration card -- hand-built flat-pictogram SVG
   character scenes (assets/img/illustrations/) standing in for barq's
   lifestyle photography / app-preview graphics, one per flagship product */
.barq-illu-card{background:#fff;border-radius:var(--bq-radius-lg);border:1px solid rgba(15,23,42,.07);
  box-shadow:0 2px 14px rgba(15,23,42,.05);text-decoration:none;color:inherit;display:block;overflow:hidden;
  transition:transform .15s,box-shadow .15s}
.barq-illu-card:hover{transform:translateY(-6px);box-shadow:0 24px 44px rgba(67,56,202,.16)}
.barq-illu-card .illu{width:100%;aspect-ratio:1/1;display:block;background:#fff}
.barq-illu-card .illu img{width:100%;height:100%;display:block}
.barq-illu-card .body{padding:26px 28px 28px}
.barq-illu-card h3{font-size:19px;font-weight:700;color:var(--bq-ink);margin:0 0 9px}
.barq-illu-card p{font-size:14.5px;color:var(--bq-muted);margin:0 0 14px;line-height:1.55}
.barq-illu-card .barq-card-cta{font-size:13px;font-weight:700;color:var(--bq-indigo);display:flex;align-items:center;gap:7px}

/* light-bg section photo/illustration placeholder block */
.barq-visual{border-radius:28px;min-height:360px;display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;color:#fff}
.barq-visual .vi{font-size:54px;opacity:.92}
.barq-visual.v-retail{background:linear-gradient(145deg,var(--bq-indigo) 0%,#1e1b4b 100%)}
.barq-visual.v-edu{background:linear-gradient(145deg,var(--bq-teal-dark) 0%,#042f2e 100%)}
.barq-visual .float-chip{position:absolute;background:rgba(255,255,255,.96);color:var(--bq-ink);border-radius:14px;
  padding:10px 16px;font-size:13px;font-weight:700;box-shadow:0 14px 30px rgba(0,0,0,.2);display:flex;align-items:center;gap:8px}

/* coming-soon card, restyled to match barq's icon-badge + headline + CTA rhythm */
.barq-coming-soon{max-width:620px;margin-inline:auto;text-align:center;background:#fff;border-radius:var(--bq-radius-lg);
  padding:52px 44px;border:1px solid rgba(15,23,42,.07)}
.barq-coming-soon .icon{width:68px;height:68px;border-radius:20px;background:var(--bq-grad-accent);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:27px;margin:0 auto 22px}

/* Rotating banner strip (Banner::renderHtml) normally falls back to the
   site's violet/magenta/orange gradient -- recolor it to this palette on
   these two pages so an admin-added banner doesn't clash. */
.barq-page .banner-slot{border-radius:var(--bq-radius-lg)}
.barq-page .banner-slot-noimage{background:var(--bq-grad-accent)}
.barq-page .banner-slot-icon{background:rgba(255,255,255,.16)}
.barq-page .banner-slot-noimage .btn-accent{background:#fff;color:var(--bq-indigo)}

@media (max-width:860px){
  .barq-hero .container{grid-template-columns:1fr}
  .barq-hero{padding-block:70px 60px}
  .barq-row{grid-template-columns:1fr}
  .barq-row.reverse{direction:ltr}
  .barq-grid{grid-template-columns:1fr}
  .barq-marquee{margin-top:-22px}
}
