/* ═══════════════════════════════════════════
   RAKT Header — 2026 modern SaaS
   ═══════════════════════════════════════════ */

.rakt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rakt-header--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
}

.rakt-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
}

.rakt-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rakt-header__logo img {
  display: block;
  height: 28px;
  width: auto;
}

.rakt-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ── Nav list ──────────────────────────────── */

.rakt-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rakt-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: var(--rakt-gray-600);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.rakt-nav__link:hover {
  color: var(--rakt-gray-900);
  background: rgba(0, 0, 0, 0.04);
}

.rakt-nav__link svg {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.rakt-nav__link:hover svg {
  opacity: 0.7;
}

.rakt-nav__item--open > .rakt-nav__link {
  color: var(--rakt-gray-900);
  background: rgba(0, 0, 0, 0.04);
}

.rakt-nav__item--open > .rakt-nav__link svg {
  transform: rotate(180deg);
  opacity: 0.7;
}

/* ── Dropdown ──────────────────────────────── */

.rakt-nav__item--dropdown {
  position: relative;
}

.rakt-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.rakt-nav__item--dropdown:hover .rakt-dropdown,
.rakt-nav__item--open .rakt-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.rakt-dropdown li a {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 480;
  letter-spacing: -0.006em;
  color: var(--rakt-gray-600);
  border-radius: 9px;
  transition: background 0.12s ease, color 0.12s ease;
  text-decoration: none;
}

.rakt-dropdown li a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--rakt-gray-900);
}

.rakt-dropdown__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 4px 10px;
}

/* "All features" link gets a subtle accent */
.rakt-dropdown li:last-child a {
  color: var(--rakt-primary);
  font-weight: 550;
}

.rakt-dropdown li:last-child a:hover {
  background: rgba(208, 36, 60, 0.05);
  color: var(--rakt-primary-dark);
}

/* ── Header actions ────────────────────────── */

.rakt-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────── */

.rakt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  height: 38px;
  min-height: 38px;
  font-size: 13.5px;
  font-weight: 570;
  font-family: inherit;
  letter-spacing: -0.005em;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.rakt-btn--primary {
  background: var(--rakt-primary);
  color: #fff;
  border-color: var(--rakt-primary);
  box-shadow: 0 1px 2px rgba(208, 36, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rakt-btn--primary:hover {
  background: var(--rakt-primary-dark);
  border-color: var(--rakt-primary-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(208, 36, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-0.5px);
}

.rakt-btn--ghost {
  background: transparent;
  color: var(--rakt-gray-600);
  border-color: rgba(0, 0, 0, 0.12);
}

.rakt-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--rakt-gray-900);
}

/* ── Mobile toggle ─────────────────────────── */

.rakt-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rakt-header__toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.rakt-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rakt-gray-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.rakt-header__toggle--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rakt-header__toggle--active span:nth-child(2) {
  opacity: 0;
}
.rakt-header__toggle--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile responsive ─────────────────────── */

@media (max-width: 768px) {
  .rakt-header__inner {
    padding: 0 16px;
    height: 56px;
  }

  .rakt-header__toggle {
    display: flex;
  }

  /* The closed panel is faded and lifted, not pushed off to the right.
     A fixed element parked at translateX(100%) still counts towards the
     document's scroll width in Chromium, which gave every page on the site
     375px of phantom horizontal scroll at mobile widths. Translating on Y
     cannot widen the document. */
  .rakt-header__nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.24s;
    overflow-y: auto;
    z-index: 999;
  }

  .rakt-header__nav--open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .rakt-header__nav { transition: opacity 0.01s, visibility 0.01s; transform: none; }
  }

  .rakt-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .rakt-nav__link {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  .rakt-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
    padding: 4px 0 4px 12px;
    background: transparent;
    min-width: 0;
    border-radius: 0;
    border-left: 2px solid rgba(0, 0, 0, 0.06);
    margin-left: 14px;
  }

  .rakt-dropdown li a {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14.5px;
  }

  .rakt-nav__item--open .rakt-dropdown {
    display: block;
  }

  .rakt-header__actions {
    display: none;
  }

  .rakt-header__nav--open ~ .rakt-header__actions {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 999;
    gap: 10px;
  }

  .rakt-header__nav--open ~ .rakt-header__actions .rakt-btn {
    flex: 1;
    height: 46px;
    min-height: 46px;
    font-size: 14.5px;
    border-radius: 11px;
  }
}

/* ═══════════════════════════════════════════
   RAKT Footer — 2026 modern SaaS
   ═══════════════════════════════════════════ */

.rakt-footer {
  background: #0B1220;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* ── CTA band ──────────────────────────────── */

.rakt-footer__cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 0;
}

.rakt-footer__cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.rakt-footer__cta-text h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.rakt-footer__cta-text p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.rakt-footer__cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.rakt-footer__cta-actions .rakt-btn--primary {
  height: 42px;
  min-height: 42px;
  font-size: 14px;
  padding: 0 24px;
  border-radius: 10px;
}

.rakt-footer__cta-actions .rakt-btn--ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 570;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rakt-footer__cta-actions .rakt-btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ── Main footer grid ──────────────────────── */

.rakt-footer__top {
  padding: 56px 0 48px;
}

.rakt-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.rakt-footer__brand {
  padding-right: 24px;
}

/* Served the light lockup, so no filter. The previous rule was
   `brightness(0) invert(1)` against the standard logo, which forced every
   opaque pixel to white: it made the wordmark readable but flattened the drop
   mark into a featureless disc and threw away the one piece of brand colour in
   the footer. A filter cannot recolour part of an image, which is the whole
   reason assets/rakt-logo-light.webp exists — the wordmark is white in the file
   and the mark keeps its red. */
.rakt-footer__brand img {
  height: 24px;
  width: auto;
}

.rakt-footer__brand p {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  max-width: 300px;
}

.rakt-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.rakt-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.rakt-footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rakt-footer__social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* White at 40% over #0B1220 came to 3.81:1, under the 4.5:1 that 11.5px at 650
   requires, and the size was two steps below the site's 13.5px floor. On every
   page, in the element a reader falls back to when the page has not answered
   their question. Both numbers were invisible to verify.js, which measured only
   `.elementor *` and so never looked at the theme's own shell.
   ON_DARK_DIM is the builder's colour for this exact role — a caption on ink —
   and lands at 7.4:1 here. */
.rakt-footer__col h4 {
  color: var(--rakt-on-dark-dim);
  font-size: 13.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.rakt-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rakt-footer__col ul li {
  margin-bottom: 2px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.rakt-footer__col ul li a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.rakt-footer__col ul li a:hover {
  color: #fff;
}

/* Contact items with lighter label style */
.rakt-footer__col .rakt-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
  line-height: 1.55;
}

.rakt-footer__col .rakt-footer__contact-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  opacity: 0.4;
}

/* ── Bottom bar ────────────────────────────── */

.rakt-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.rakt-footer__bottom .rakt-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rakt-footer__bottom p {
  margin: 0;
  /* Was 13px at 0.32 alpha: under the 13.5px floor, and too faint against
     the dark footer to read comfortably. */
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: -0.005em;
}

.rakt-footer__legal {
  display: flex;
  gap: 24px;
}

.rakt-footer__legal a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.15s ease;
  letter-spacing: -0.005em;
}

.rakt-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Mobile ────────────────────────────────── */

@media (max-width: 768px) {
  .rakt-footer__cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .rakt-footer__cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .rakt-footer__cta-actions .rakt-btn--primary,
  .rakt-footer__cta-actions .rakt-btn--ghost-dark {
    width: 100%;
    justify-content: center;
  }

  .rakt-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding: 0 20px;
  }

  .rakt-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .rakt-footer__brand p {
    max-width: none;
  }

  .rakt-footer__bottom .rakt-footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 0 20px;
  }

  .rakt-footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .rakt-footer__legal a {
    min-height: 44px;
  }

  /* min-height carries the 44px tap target; line-height must not, because these
     labels wrap at this width. "Compliance & NABH guides" and "Inventory
     management guides" each take two lines, and a 44px line-height made those
     links 88px tall while their single-line neighbours stayed 44 — so the two
     link columns fell out of step and the footer read as ragged. The base rule
     already centres the text with inline-flex, which covers the single-line
     case, and a wrapped label at 1.45 comes to 42px and is absorbed by the
     min-height rather than doubling it. */
  .rakt-footer__col ul li a {
    min-height: 44px;
  }
}
