/* ==================================================================
   Rising Exporters Academy — static site styles
   HTML5 + Tailwind (CDN) + vanilla JS + GSAP. Tailwind handles layout
   utilities; this file only carries brand tokens, fonts, and the
   handful of effects Tailwind's utility classes can't express
   (keyframe animations, the marquee, the icon motion).
   ================================================================== */

:root {
  --ink: #102e30;       /* deep teal reading as near-black */
  --ink-soft: #4b6462;
  --red: #ee3c25;
  --red-deep: #d02f1a;
  --cream: #f7f5f0;      /* warm section tint */
  --teal-dark: #0e3537;  /* dark banner panels */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Radio Canada Big', 'Inter', sans-serif;
  background: #fbfaf7;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Fixed colour mesh — sits behind every page. Glassmorphism only reads
   as "glass" when there's something with colour/variation for the blur to
   pick up; a frosted panel over flat white just looks like grey plastic. */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: linear-gradient(165deg, #fff6f0 0%, #f7f5f0 45%, #eef4f3 100%);
}
.bg-mesh span {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
}
.bg-mesh .blob-1 {
  top: -10%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  background: #ee3c25;
  opacity: 0.16;
}
.bg-mesh .blob-2 {
  top: 8%;
  right: -12%;
  width: 40vw;
  height: 40vw;
  background: #2e7e78;
  opacity: 0.14;
}
.bg-mesh .blob-3 {
  top: 42%;
  left: 20%;
  width: 34vw;
  height: 34vw;
  background: #ffb9a5;
  opacity: 0.18;
}
.bg-mesh .blob-4 {
  bottom: -12%;
  right: 6%;
  width: 44vw;
  height: 44vw;
  background: #0e3537;
  opacity: 0.12;
}
.bg-mesh .blob-5 {
  bottom: 6%;
  left: -10%;
  width: 36vw;
  height: 36vw;
  background: #ee3c25;
  opacity: 0.1;
}

/* ── Glassmorphism surfaces ───────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(16, 46, 48, 0.10), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.glass-dark {
  background: rgba(14, 53, 55, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.10);
}
.glass-pill {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(16, 46, 48, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.glass-input {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 46, 48, 0.14);
}
.glass-input:focus {
  background: rgba(255, 255, 255, 0.85);
}

::selection {
  background: var(--red);
  color: #fff;
}

.font-heading {
  font-family: 'Radio Canada Big', sans-serif;
}
.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Section heading pattern: two stacked lines, centered, first line lighter */
.stack-head {
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: center;
}
.stack-head .lite {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
}

/* Scroll reveal — GSAP animates these; the CSS default is visible so
   content still shows if the CDN script is ever unreachable. */
.reveal {
  opacity: 1;
}

/* ── Nav (floating glass pill) ────────────────────────────────── */
[data-site-header] {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
[data-site-header].is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 40px rgba(16, 46, 48, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.nav-link {
  position: relative;
  color: var(--ink);
  transition: color 0.25s ease;
}
.nav-link:hover {
  color: var(--red);
}
.nav-link[aria-current='page'] {
  color: var(--red);
}

/* ── Animated feature icons ──────────────────────────────────── */
.icon-3d {
  perspective: 220px;
}

@keyframes globeTurn {
  to {
    transform: translateX(-40px);
  }
}
.icon-globe-turn {
  animation: globeTurn 9s linear infinite;
}

@keyframes crateFlapL {
  0%, 100% { transform: rotate(0deg); }
  45%, 65% { transform: rotate(-42deg); }
}
@keyframes crateFlapR {
  0%, 100% { transform: rotate(0deg); }
  45%, 65% { transform: rotate(42deg); }
}
.icon-crate-l, .icon-crate-r {
  transform-box: fill-box;
}
.icon-crate-l {
  transform-origin: 100% 100%;
  animation: crateFlapL 4.5s ease-in-out infinite;
}
.icon-crate-r {
  transform-origin: 0% 100%;
  animation: crateFlapR 4.5s ease-in-out infinite;
}
@keyframes crateLift {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50%, 62% { transform: translateY(-5px); opacity: 1; }
}
.icon-crate-item {
  transform-box: fill-box;
  animation: crateLift 4.5s ease-in-out infinite;
}

@keyframes needleSweep {
  0%   { transform: rotate(0deg); }
  35%  { transform: rotate(160deg); }
  55%  { transform: rotate(130deg); }
  75%  { transform: rotate(290deg); }
  100% { transform: rotate(360deg); }
}
.icon-needle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: needleSweep 7s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

@keyframes iconBob {
  0%, 100% { transform: rotateY(-11deg) rotateX(5deg) translateY(0); }
  50%      { transform: rotateY(11deg) rotateX(-3deg) translateY(-3px); }
}
.icon-bob {
  animation: iconBob 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* ── Marquee for the one-liner testimonial rows ─────────────── */
.tick {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: tick 42s linear infinite;
}
.tick--rev {
  animation-direction: reverse;
}
@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

.text-balance {
  text-wrap: balance;
}

/* ── FAQ accordion ────────────────────────────────────────────── */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel > div {
  overflow: hidden;
  min-height: 0;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .tick {
    animation: none;
  }
}
