/* ============================================================
   SM4RT Academy - Brand overrides
   Loaded AFTER the Webflow CSS. Retints the template's warm
   accent swatches (yellow, red) and the default neutral accent
   to the SM4RT orange family, preserving all layout/spacing.
   Palette: #FF6A00 orange / #0D0D0D charcoal / #1A1A1A ink /
            #A3A3A3 silver / #FFFFFF white
   ============================================================ */

/* The template's primary accent (blue #0042f6) and warm accents (yellow/red)
   are redefined on ~25 component scopes (.body, .nav-cart-btn, .banner-home-wrapper,
   .cart-wrapper, .footer-wrapper, .contact-form, ...). A :root override can't reach
   those, so we force the accent variables site-wide with a universal !important
   declaration. This unifies every CTA, link and highlight on the SM4RT orange. */
*,
::before,
::after,
:root {
  /* Default "neutral" accent (was blue #0042f6) -> SM4RT orange */
  --neutral--emphasis: #ff6a00 !important;
  --neutral--emphasis-opacity: #ff6a00cc !important;

  /* Warm "yellow" swatch -> SM4RT orange */
  --yellow--emphasis: #ff6a00 !important;
  --yellow--emphasis-opacity-40: #ff6a0066 !important;
  --yellow--emphasis-opacity-80: #ff6a00cc !important;
  --yellow--emphasis-dark: #e55f00 !important;
  --yellow--emphasis-dark-opacity-40: #e55f0066 !important;
  --yellow--emphasis-dark-opacity-80: #e55f00cc !important;

  /* "red" swatch (orange-red) -> SM4RT orange */
  --red--emphasis: #ff6a00 !important;
  --red--emphasis-opacity-40: #ff6a0066 !important;
  --red--emphasis-opacity-80: #ff6a00cc !important;
  --red--emphasis-dark: #e55f00 !important;
  --red--emphasis-dark-opacity-40: #e55f0066 !important;
  --red--emphasis-dark-opacity-80: #e55f00cc !important;
}

/* Hide the Webflow attribution badge injected at runtime */
.w-webflow-badge { display: none !important; }

/* Brand selection colour */
::selection { background: #ff6a00; color: #fff; }
::-moz-selection { background: #ff6a00; color: #fff; }

/* Brand logo sizing in the navbar/footer (original asset was 72x24) */
.brand-logo,
.brand-logo-image {
  height: 34px !important;
  width: auto !important;
  max-width: none;
}

/* Optional live-text wordmark utility (kept for parity / future use) */
.sm4rt-wordmark {
  font-family: "Archivo Narrow", "DM Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sm4rt-wordmark > .four { color: #ff6a00; }

/* ============================================================
   Reliability safety-net
   The Webflow export hides animated elements (visibility:hidden)
   until its IX/GSAP engine reveals them on load/scroll. On a
   plain static host that JS is flaky, leaving heroes/sections
   blank. We force those elements visible so content ALWAYS loads
   (entrance animations still play when the engine runs).
   ============================================================ */
html.w-mod-js:not(.w-mod-ix3) :is(
  [scroll-reveal-tilt], [ScrollActionStagger], .absolute-image._1, .absolute-image._2,
  .absolute-image._3, .absolute-image._4, [CTAHeadingStagger], [CTAParagraphStagger],
  [CTAButtonStagger], [HoverSlideUpTrigger], [LoadNumbersStagger], .h1-animation-wrap,
  .subhead-animation, .button-animation, .main-banner-box, [mainImageStagger],
  [LoadSlideUpTrigger], .slider-block, [ScrollImageDelay], .dropdown-wrapper,
  .benefits-wrapper, [column-animation-1], [column-animation-2], [column-animation-3],
  [column-animation-4], .animated-element, [HoverRotateTrigger], .animated-block,
  .animated-cms, [ScrollTitleStagger], [SubheadScrollFadeTop], .animated-loading,
  .reviews-container, [ScrollSlideUpTrigger], [ScrollParagraphStagger], .tab-link
) { visibility: visible !important; }

/* Blog / Insights cards: keep them in a horizontal responsive grid
   (Webflow's grid otherwise collapses to a single column on static hosts). */
.blog-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}
@media (max-width: 991px) { .blog-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 640px) { .blog-post-grid { grid-template-columns: 1fr !important; } }

/* ============================================================
   SM4RT homepage hero (self-contained, always renders)
   Scoped to .sm4rt-hero-section so other homepages are untouched.
   ============================================================ */
.sm4rt-hero-section .slider.w-slider,
.sm4rt-hero-section .w-slider-mask,
.sm4rt-hero-section .slide-main-banner,
.sm4rt-hero-section .w-slider-arrow-left,
.sm4rt-hero-section .w-slider-arrow-right,
.sm4rt-hero-section .w-slider-nav { display: none !important; }

.sm4rt-hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 520px at 88% 16%, rgba(255,106,0,.16), transparent 60%),
    radial-gradient(700px 480px at 8% 92%, rgba(255,106,0,.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fff7f1 100%);
}
/* Atmospheric steampunk banner: blurred, confined to the right side behind the
   art, and faded out behind the headline so hero copy stays fully legible. */
.sm4rt-hero-section::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('sm4rt-hero-bg.webp') center right / cover no-repeat;
  filter: blur(15px) saturate(.95) brightness(1.03);
  transform: scale(1.16);
  opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0,0,0,.9) 76%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0,0,0,.9) 76%, #000 100%);
}
.sm4rt-hero-section > .position-relative {
  min-height: clamp(620px, 92vh, 960px);
  display: flex;
  flex-direction: column;
}
.sm4rt-hero-section .banner-absolute-home {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-top: 104px;
  padding-bottom: 56px;
}
.sm4rt-hero-section .banner-absolute-home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(13,13,13,.05) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 72%);
  mask-image: linear-gradient(120deg, #000, transparent 72%);
}

/* neutralize Webflow grid wrappers so the hero spans the container */
.sm4rt-hero-section .banner-absolute-home .grid-gap { display: block !important; }
.sm4rt-hero-section .banner-absolute-home .content-wrapper { width: 100% !important; max-width: none !important; }

.sm4rt-hero {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.sm4rt-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: #E55F00; background: #fff; border: 1px solid rgba(255,106,0,.25);
  padding: 7px 14px; border-radius: 999px; box-shadow: 0 2px 12px rgba(255,106,0,.08);
}
.sm4rt-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF6A00; box-shadow: 0 0 0 4px rgba(255,106,0,.18); }
.sm4rt-hero-title {
  font-family: "Archivo Narrow", "Archivo", system-ui, sans-serif;
  font-weight: 700; color: #0D0D0D; line-height: 1.03; letter-spacing: -.02em;
  font-size: clamp(2.5rem, 5.1vw, 4.5rem); margin: 18px 0 0;
}
.sm4rt-hero .sm4rt-accent { color: #FF6A00; }
.sm4rt-hero-sub { margin-top: 20px; max-width: 30rem; font-size: 1.1rem; line-height: 1.6; color: #3a3a3a; }
.sm4rt-hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.sm4rt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 12px; padding: 14px 26px; font-size: 1rem;
  text-decoration: none; transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.sm4rt-btn-primary { background: #FF6A00; color: #fff; box-shadow: 0 10px 24px rgba(255,106,0,.28); }
.sm4rt-btn-primary:hover { background: #E55F00; transform: translateY(-1px); }
.sm4rt-btn-ghost { background: #fff; color: #0D0D0D; border: 1.5px solid #e6e2dd; }
.sm4rt-btn-ghost:hover { border-color: #FF6A00; color: #E55F00; }
.sm4rt-hero-stats { margin-top: 40px; display: flex; align-items: center; gap: 24px; }
.sm4rt-hero-stats > div { display: flex; flex-direction: column; }
.sm4rt-hero-stats strong { font-family: "Archivo Narrow", "Archivo", sans-serif; font-size: 1.7rem; font-weight: 700; color: #0D0D0D; }
.sm4rt-hero-stats span { font-size: .82rem; color: #777; }
.sm4rt-hero-divider { width: 1px; height: 34px; background: #e6e2dd; }

.sm4rt-hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.sm4rt-hero-orb {
  position: absolute; width: min(440px, 42vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,106,0,.28), rgba(255,106,0,.05) 60%, transparent 72%);
  filter: blur(4px);
}
.sm4rt-hero-icon { position: relative; width: min(320px, 33vw); filter: drop-shadow(0 24px 50px rgba(13,13,13,.18)); }
.sm4rt-hero-card {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid #efeae4; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(13,13,13,.12); font-size: .9rem; font-weight: 600; color: #0D0D0D;
}
.sm4rt-hero-card small { font-weight: 500; color: #8a8a8a; font-size: .75rem; }
.sm4rt-hero-card .dot { width: 9px; height: 9px; border-radius: 50%; background: #FF6A00; margin-bottom: 2px; }
.sm4rt-hero-card-1 { top: 6%; left: -4%; }
.sm4rt-hero-card-2 { bottom: 8%; right: -2%; }
.sm4rt-hero-badge {
  position: absolute; top: 12%; right: 8%; width: 54px; height: 54px; border-radius: 16px;
  background: #0D0D0D; color: #FF6A00; font-family: "Archivo Narrow", sans-serif; font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(13,13,13,.25);
}

@media (max-width: 991px) {
  .sm4rt-hero { grid-template-columns: 1fr; gap: 8px; }
  .sm4rt-hero-art { display: none; }
  .sm4rt-hero-section .banner-absolute-home { padding-top: 124px; padding-bottom: 48px; }
  .sm4rt-hero-stats { gap: 18px; }
  /* art column is gone on mobile, so keep the banner whisper-light behind copy */
  .sm4rt-hero-section::after { opacity: .1; }
}
