/* =========================================================
   Tap&Plus — Commercial Website stylesheet
   Self-contained, framework-agnostic CSS meant to sit on top of
   Bootstrap 5.3.8 utility/grid/component classes (see index.html
   <head> for the CDN links). Built for easy Blazor porting:

     - This whole file  -> wwwroot/css/site.css (or site.min.css)
     - Only CSS custom properties + a small set of new component
       classes are defined here; everything else is stock Bootstrap,
       so a Blazor project that already references Bootstrap needs
       almost no markup changes.

   Brand palette matches the rest of the Tap&Plus app (customer app,
   vendor portal, owner console, partner hub) so the marketing site
   and the product feel like one family.
   ========================================================= */

:root {
  --maroon: #6e1423;
  --maroon-dark: #4f0d19;
  --maroon-tint: #f7e6e9;
  --red: #c1272d;
  --red-tint: #fbeaea;
  --yellow: #f0b428;
  --yellow-tint: #fdf1dc;
  --gray-900: #1e1e1e;
  --gray-800: #2c2c2c;
  --gray-700: #4a4a4a;
  --gray-600: #6b6b6b;
  --gray-500: #8a8a8a;
  --gray-200: #e7e5e3;
  --gray-100: #f4f2f0;
  --gray-50: #faf9f8;
  --surface: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --page-bg: var(--gray-50);
  --text-body: var(--gray-800);
  --border-soft: var(--gray-200);
  --shadow-soft: 0 0.5rem 1.5rem rgba(30, 20, 15, 0.06);
  --shadow-lift: 0 1rem 2.5rem rgba(30, 20, 15, 0.12);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background: var(--page-bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }

.text-maroon { color: var(--maroon) !important; }
.text-muted-soft { color: var(--gray-600) !important; }
.bg-maroon { background: var(--maroon) !important; }
.bg-soft { background: var(--gray-100) !important; }

section { position: relative; }
.section-pad { padding: 4.5rem 0; }
@media (max-width: 767.98px) { .section-pad { padding: 3rem 0; } }
.section-pad--sm { padding: 3rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--maroon-tint);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.65rem;
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: #fff;
}
.btn-brand-outline {
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.65rem;
}
.btn-brand-outline:hover, .btn-brand-outline:focus {
  background: var(--maroon-tint);
  color: var(--maroon-dark);
}
.btn-cta {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--gray-900);
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 0.65rem;
}
.btn-cta:hover, .btn-cta:focus {
  background: #dc9d16;
  border-color: #dc9d16;
  color: var(--gray-900);
}
.btn-white-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.65rem;
}
.btn-white-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* =========================================================
   HEADER / NAVBAR
   Blazor note: this whole <header> block is a natural fit for a
   shared NavMenu.razor rendered from MainLayout.razor — it's
   identical on every page in this folder.
   ========================================================= */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gray-900);
}
.site-header .navbar-brand img { width: 30px; height: auto; }
.site-header .nav-link {
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.5rem 0.9rem !important;
}
.site-header .nav-link.active,
.site-header .nav-link:hover { color: var(--maroon); }
.site-header .dropdown-menu {
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
}
.site-header .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-weight: 500;
}
.site-header .dropdown-item:hover { background: var(--maroon-tint); color: var(--maroon-dark); }
.site-header .dropdown-item small { display: block; color: var(--gray-600); font-weight: 400; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 70%);
  color: #fff;
  padding: 5rem 0 6rem;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  right: -8%;
  top: -20%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240,180,40,0.25), transparent);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.14);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 520px;
}
.hero__actions { margin-top: 2rem; }
.hero__art {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.hero-phone-mock {
  background: #fff;
  border-radius: 1.75rem;
  padding: 0.6rem;
  box-shadow: var(--shadow-lift);
  max-width: 260px;
  margin: 0 auto;
}
.hero-phone-mock__screen {
  background: var(--gray-100);
  border-radius: 1.35rem;
  overflow: hidden;
}

/* Mini stamp-dot row inside the hero phone mockup — the same
   filled/empty stamp look the customer app itself uses on cards.html
   (see website/customer/style.css .stamp / .stamp--filled), scaled
   down so the hero mockup shows real stamps instead of a plain bar. */
.hero-stamp-row {
  display: grid;
  grid-template-columns: repeat(var(--hero-stamp-cols, 10), 1fr);
  gap: 0.25rem;
  margin-top: 0.55rem;
}
.hero-stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.3px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  line-height: 1;
}
.hero-stamp--filled {
  background: var(--yellow);
  color: var(--maroon-dark);
  border: 1.3px solid var(--yellow);
}

/* Mini points-card visual (the app's other loyalty-card type,
   alongside stamps) — a big point balance plus a thin progress bar
   toward the next reward, echoing .points-value/.progress-track/
   .progress-fill in website/customer/style.css, restyled here for a
   light card face instead of that card type's dark gradient. */
.hero-points-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--maroon-dark);
  line-height: 1;
  margin-top: 0.6rem;
}
.hero-points-value small {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gray-500);
}
.hero-points-track {
  height: 6px;
  border-radius: 1rem;
  background: var(--gray-200);
  overflow: hidden;
  margin-top: 0.35rem;
}
.hero-points-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 1rem;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 1.75rem 1rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}
.stat-block { text-align: center; padding: 0.5rem 0.75rem; }
.stat-block__value { font-size: 1.9rem; font-weight: 800; color: var(--gray-900); }
.stat-block__label { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.15rem; }

/* =========================================================
   FEATURE / VALUE CARDS
   ========================================================= */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 0.9rem;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.feature-card__icon--yellow { background: var(--yellow-tint); color: #b8860b; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray-600); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Feature card as a clickable link (blog post cards) ---------- */
.feature-card--link { display: block; text-decoration: none; color: inherit; }
.feature-card--link h3 { transition: color 0.15s ease; }
.feature-card--link:hover h3 { color: var(--maroon); }

/* ---------- Feature row (alternating image/text) ---------- */
.feature-row { padding: 3rem 0; }
.feature-row__art {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon);
  font-size: 4rem;
}
.feature-row__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--maroon);
  background: var(--maroon-tint);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.9rem;
}
.feature-row ul.check-list { list-style: none; padding-left: 0; margin-top: 1rem; }
.feature-row ul.check-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 0.6rem; color: var(--gray-700); font-size: 0.95rem;
}
.feature-row ul.check-list li i { color: var(--maroon); margin-top: 0.15rem; }

/* =========================================================
   STEPS / HOW IT WORKS
   ========================================================= */
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-card__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p { color: var(--gray-600); font-size: 0.9rem; }
.steps-row { position: relative; }

/* =========================================================
   AUDIENCE CARDS (For Vendors / For Partners teasers)
   ========================================================= */
.audience-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.audience-card--vendors { background: linear-gradient(150deg, var(--maroon) 0%, var(--maroon-dark) 100%); }
.audience-card--partners { background: linear-gradient(150deg, #2c2c2c 0%, #171717 100%); }
.audience-card__icon {
  width: 54px; height: 54px;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.audience-card h3 { font-weight: 800; font-size: 1.3rem; }
.audience-card p { color: rgba(255,255,255,0.82); }
.audience-card ul { list-style: none; padding-left: 0; margin: 1.1rem 0; }
.audience-card ul li { padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; color: rgba(255,255,255,0.9); font-size: 0.92rem; }
.audience-card ul li::before {
  content: '\2713';
  position: absolute; left: 0; top: 0;
  color: var(--yellow); font-weight: 800;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--maroon);
  box-shadow: var(--shadow-lift);
  transform: scale(1.02);
}
.pricing-card__badge {
  position: absolute;
  top: -0.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--maroon);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.pricing-card__name { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.pricing-card__price { font-size: 2.4rem; font-weight: 800; color: var(--gray-900); margin: 0.6rem 0 0; }
.pricing-card__price small { font-size: 0.95rem; font-weight: 500; color: var(--gray-600); }
.pricing-card__desc { color: var(--gray-600); font-size: 0.88rem; margin-bottom: 1.25rem; }
.pricing-card ul.check-list { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.pricing-card ul.check-list li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin-bottom: 0.65rem; font-size: 0.9rem; color: var(--gray-700);
}
.pricing-card ul.check-list li i { color: var(--maroon); margin-top: 0.2rem; }

.commission-table th { color: var(--gray-600); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; border-bottom-width: 1px; }
.commission-table td, .commission-table th { padding: 0.9rem 0.75rem; vertical-align: middle; }
.commission-table tr:not(:last-child) td { border-bottom: 1px solid var(--border-soft); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}
.testimonial-card__quote { font-size: 0.98rem; color: var(--gray-800); line-height: 1.6; }
.testimonial-card__quote::before { content: '\201C'; color: var(--yellow); font-size: 1.4rem; font-weight: 800; }
.testimonial-card__person { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.avatar-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: 0.9rem; color: var(--gray-900); }
.testimonial-card__role { font-size: 0.78rem; color: var(--gray-600); }
.stars { color: var(--yellow); font-size: 0.85rem; margin-bottom: 0.6rem; }

/* =========================================================
   VALUES / ABOUT
   ========================================================= */
.value-card { text-align: left; padding: 1.5rem; height: 100%; }
.value-card__icon {
  width: 46px; height: 46px;
  border-radius: 0.8rem;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.timeline-marker { border-left: 2px solid var(--border-soft); padding-left: 1.5rem; margin-left: 0.5rem; }
.timeline-marker__item { position: relative; padding-bottom: 2rem; }
.timeline-marker__item::before {
  content: '';
  position: absolute; left: -1.62rem; top: 0.25rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-tint);
}
.timeline-marker__year { font-weight: 800; color: var(--maroon); font-size: 0.85rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #fff;
  text-align: center;
}
.cta-banner h2 { font-weight: 800; }
.cta-banner p { color: rgba(255,255,255,0.85); }

/* =========================================================
   FAQ (Bootstrap accordion re-skin)
   ========================================================= */
.faq-accordion .accordion-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--gray-900);
  background: var(--surface);
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--maroon-tint);
  color: var(--maroon-dark);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--border-soft); }
.faq-accordion .accordion-body { color: var(--gray-700); font-size: 0.92rem; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info-item { display: flex; gap: 0.9rem; margin-bottom: 1.5rem; }
.contact-info-item__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--maroon-tint);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
}
.form-control, .form-select {
  border-radius: 0.6rem;
  border-color: var(--border-soft);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 0.2rem var(--maroon-tint);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--gray-800); }

/* =========================================================
   FOOTER
   Blazor note: identical on every page — a natural
   Shared/SiteFooter.razor component.
   ========================================================= */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
}
.site-footer .footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; }
.site-footer .footer-brand img { width: 26px; }
.site-footer p.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 280px; }
.site-footer h6 { color: #fff; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding-left: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.5rem;
  color: #fff;
}
.footer-social a:hover { background: var(--maroon); }
.footer-divider { border-color: rgba(255,255,255,0.12); margin: 2rem 0 1.5rem; }
.footer-bottom { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* =========================================================
   LEGAL PAGES (Privacy / Terms)
   ========================================================= */
.legal-content h2 { font-weight: 800; font-size: 1.2rem; margin-top: 2rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }
.legal-updated { color: var(--gray-600); font-size: 0.85rem; }

/* ---------- Blog post detail pages ---------- */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--maroon);
  text-decoration: none;
}
.blog-back-link:hover { text-decoration: underline; }
.blog-post-content p { color: var(--gray-700); font-size: 1rem; line-height: 1.75; margin-bottom: 1.1rem; }
.blog-post-content h2 { font-weight: 800; font-size: 1.2rem; margin-top: 1.8rem; margin-bottom: 0.6rem; }
.blog-post-related h3 { font-size: 0.98rem; margin-bottom: 0; }

/* =========================================================
   MISC / RESPONSIVE
   ========================================================= */
.badge-soft {
  background: var(--maroon-tint);
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
}
@media (max-width: 991.98px) {
  .stats-strip { margin-top: 1.5rem; }
  .pricing-card--featured { transform: none; }
}

/* =========================================================
   IMPACT REPORT COMPONENTS (impact_report.html) — a simple
   CSS-only bar chart (no charting library) for the platform-growth
   trend row, ported from the same pattern used across the Tap&Plus
   admin apps' shared style sheets. Each bar is a div with an inline
   height %.
   ========================================================= */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 160px;
  padding: 0 0.25rem;
  margin: 1.25rem 0 0.5rem;
}
.bar-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.5rem; }
.bar-chart__bar { width: 100%; max-width: 44px; border-radius: 0.4rem 0.4rem 0 0; background: var(--maroon); transition: height 0.3s ease; }
.bar-chart__bar--muted { background: var(--border-soft); }
.bar-chart__label { font-size: 0.78rem; color: var(--gray-600); }


/* First-load spinner (shown until the WASM app renders its layout) */
#app-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 2000;
}

    #app-loader .spinner-border {
        width: 3rem;
        height: 3rem;
    }

body:has(main) #app-loader {
    display: none;
}