/* Main navigation (src/components/Navbar.tsx). Black bar, "Services" mega menu, Get Started button; on small screens a Menu button
   opens a full-width panel. Colours are the site's black, white and grays only. */
/* The bar's content sits --rs-gap (plus the phone's top safe area) below the top of the window. The gap is part of the bar itself,
   so once the page is scrolled and the bar turns black, the black fills right up to the top edge with nothing showing above it.
   The same space is added to --global-nav-height (what pages leave for the bar), so page content and the hero start below the bar. */
:root { --rs-gap: 8px; --rs-safe: env(safe-area-inset-top, 0px); --global-nav-height: calc(64px + var(--rs-gap) + var(--rs-safe)); }
@media (width >= 375px) { :root { --global-nav-height: calc(68px + var(--rs-gap) + var(--rs-safe)); } }
@media (width >= 600px) { :root { --rs-gap: 12px; --global-nav-height: calc(72px + var(--rs-gap) + var(--rs-safe)); } }
@media (width >= 1280px) { :root { --global-nav-height: calc(80px + var(--rs-gap) + var(--rs-safe)); } }
.rs-nav { --rs-bar: calc(var(--global-nav-height) - var(--rs-gap) - var(--rs-safe)); position: fixed; z-index: 1000; top: 0; left: 0; right: 0; }
.rs-nav__bar { position: relative; z-index: 2; box-sizing: border-box; height: var(--global-nav-height); padding-top: calc(var(--rs-gap) + var(--rs-safe)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 24px; background: transparent; transition: background-color .25s ease; }
.rs-nav--solid .rs-nav__bar { background: var(--primitive-black); }
@media (width >= 744px) { .rs-nav__bar { padding-inline: 40px; } }
@media (width >= 1280px) { .rs-nav__bar { padding-inline: 64px; } }
.rs-nav__logo { color: var(--primitive-white); text-decoration: none; white-space: nowrap; }
.rs-nav__logo .text { margin: 0; text-transform: uppercase; letter-spacing: .06em; }

/* links */
.rs-nav__links { display: none; align-items: center; gap: 8px; }
.rs-nav__item { position: relative; }
.rs-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 6px; background: none; color: var(--primitive-white); text-decoration: none; cursor: pointer; font: inherit; }
.rs-nav__link .text { margin: 0; font-weight: 600; }
.rs-nav__link:hover, .rs-nav__link[aria-current="page"] { background: #ffffff1f; }
.rs-nav__caret { flex: none; transition: transform .2s ease; }
.rs-nav__trigger.is-open .rs-nav__caret { transform: rotate(180deg); }
.rs-nav a:focus-visible, .rs-nav button:focus-visible { outline: 2px solid var(--primitive-white); outline-offset: 2px; }

/* right side */
.rs-nav__right { display: flex; align-items: center; gap: 8px; }
.rs-nav__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 6px; background: var(--primitive-white); color: var(--primitive-black); font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.rs-nav__cta:hover { background: #e6e6e6; }
.rs-nav__cta:focus-visible { outline-color: var(--primitive-white); }
.rs-nav__menubtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid #ffffff59; border-radius: 6px; background: none; color: var(--primitive-white); cursor: pointer; }
.rs-nav__menubtn .text { margin: 0; font-weight: 600; }
.rs-nav--mobile-open .rs-nav__menubtn .rs-nav__caret { transform: rotate(180deg); }
.rs-nav__right .rs-nav__cta { display: none; }

/* Services mega menu (desktop) */
.rs-menu { position: fixed; z-index: 1; top: calc(var(--global-nav-height) + 10px); left: 50%; transform: translateX(-50%); width: min(1180px, calc(100vw - 48px)); display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr) minmax(220px, 340px); gap: 0; padding: 36px 32px 32px; border-radius: 10px; background: var(--primitive-black); color: var(--primitive-white); box-shadow: 0 24px 60px #00000080; }
.rs-menu[hidden] { display: none; }
.rs-menu::before { content: ""; position: absolute; top: -8px; left: var(--caret-x, 50%); width: 16px; height: 16px; background: var(--primitive-black); transform: translateX(-50%) rotate(45deg); border-radius: 3px 0 0 0; }
.rs-menu__col { min-width: 0; }
.rs-menu__col--list { padding-right: 28px; border-right: 1px solid #ffffff2e; }
.rs-menu__col--explore { padding: 0 32px; display: flex; flex-direction: column; }
.rs-menu__eyebrow { margin: 0 0 24px; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--color-gray-500); }
.rs-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs-menu__list a { display: block; padding: 8px 0; color: var(--color-gray-500); font-size: 22px; line-height: 1.2; text-decoration: none; transition: color .15s ease; }
.rs-menu__list a:hover, .rs-menu__list a:focus-visible, .rs-menu__list a.is-active { color: var(--primitive-white); }
.rs-menu__title { align-self: flex-start; margin-bottom: 14px; color: var(--primitive-white); font-size: 22px; line-height: 1.2; text-decoration: none; }
.rs-menu__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.rs-menu__text { margin: 0 0 10px; max-width: 46ch; color: var(--color-gray-500); font-size: 18px; line-height: 1.45; }
.rs-menu__text--sub { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rs-menu__chips { list-style: none; margin: auto 0 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.rs-menu__chips a { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--color-gray-900); color: var(--primitive-white); font-size: 15px; text-decoration: none; transition: background-color .15s ease; }
.rs-menu__chips a:hover, .rs-menu__chips a:focus-visible { background: #333; }
.rs-menu__image { align-self: stretch; min-height: 260px; border-radius: 8px; overflow: hidden; background: var(--color-gray-900); }
.rs-menu__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* mobile panel */
.rs-mobile { position: relative; z-index: 1; max-height: calc(100vh - var(--global-nav-height)); overflow-y: auto; padding: 8px 16px 24px; background: var(--primitive-black); display: grid; align-content: start; }
.rs-mobile[hidden], .rs-mobile__sub[hidden] { display: none; }
.rs-mobile__row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid #ffffff26; background: none; color: var(--primitive-white); font: inherit; font-size: 20px; text-align: left; text-decoration: none; cursor: pointer; }
.rs-mobile__row[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.rs-mobile__accordion[aria-expanded="true"] .rs-nav__caret { transform: rotate(180deg); }
.rs-mobile__sub { list-style: none; margin: 0; padding: 4px 0 8px 16px; border-bottom: 1px solid #ffffff26; }
.rs-mobile__sub a { display: block; padding: 12px 4px; color: var(--color-gray-500); font-size: 18px; text-decoration: none; }
.rs-mobile__sub a:hover, .rs-mobile__sub a:focus-visible { color: var(--primitive-white); }
.rs-mobile__cta { margin-top: 24px; width: 100%; }

@media (width >= 1100px) {
  .rs-nav__links { display: flex; }
  .rs-nav__menubtn { display: none; }
  .rs-nav__right .rs-nav__cta { display: inline-flex; }
  .rs-mobile { display: none; }
}
@media (width < 1100px) { .rs-menu { display: none; } }
@media (width < 480px) { .rs-nav__right .rs-nav__cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .rs-nav__caret, .rs-nav__bar { transition: none; } }

/* cart icon with a count badge */
.rs-nav__cart { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; color: var(--primitive-white); text-decoration: none; }
.rs-nav__cart:hover { background: #ffffff1f; }
.rs-nav__cart:focus-visible { outline: 2px solid var(--primitive-white); outline-offset: 2px; }
.rs-nav__badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primitive-white); color: var(--primitive-black); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.rs-mobile__row svg { flex: none; }

/* anchor for /#faq (Home): zero height, stops below the fixed navbar */
.faq-anchor { display: block; height: 0; scroll-margin-top: var(--global-nav-height); }
