/* ==========================================================================
   RUSL · SCC — site layout (header / navigation / home hero)
   Built only from the tokens in design-system.css.
   Direction "Cinematic": full-screen site photography on the home page,
   one deep-navy header across the whole site, very few words.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   Home: transparent over the hero photo, turns navy once you scroll.
   Inner pages: navy from the start (.rs-header--solid) + a spacer below.
   -------------------------------------------------------------------------- */
.rs-header {
  --hdr-fg: #FFFFFF;
  --hdr-muted: rgba(255, 255, 255, 0.92);
  --hdr-line: rgba(255, 255, 255, 0.14);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  color: var(--hdr-fg);
  border-bottom: 1px solid var(--hdr-line);
  transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
}
.rs-header.is-scrolled,
.rs-header--solid {
  background: rgba(11, 13, 36, 0.94);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.rs-header.is-scrolled { box-shadow: 0 10px 30px rgba(11, 13, 36, 0.25); }
.rs-header__inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.rs-header-spacer { height: var(--header-h); background: var(--blue-950); }
:root { --header-h: 88px; }
@media (max-width: 1199.98px) { :root { --header-h: 74px; } }

/* Brand lockup: both marks + both full company names */
.rs-brand { display: flex; align-items: center; gap: var(--space-4); color: var(--hdr-fg); min-width: 0; }
.rs-brand:hover { color: var(--hdr-fg); }
.rs-brand__marks { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rs-brand__marks img { height: 46px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25)); }
.rs-brand__text { display: flex; flex-direction: column; gap: 3px; padding-left: var(--space-4); border-left: 1px solid rgba(255, 255, 255, 0.3); min-width: 0; }
.rs-brand__name {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #FFFFFF;
}
.rs-brand__name + .rs-brand__name { color: var(--gold-300); }
/* Small laptops: keep both full company names visible, tighten the menu instead */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .rs-header__inner { gap: var(--space-3); }
  .rs-brand { gap: var(--space-3); }
  .rs-brand__marks img { height: 38px; }
  .rs-brand__text { padding-left: var(--space-3); }
  .rs-brand__name { font-size: 0.6rem; letter-spacing: 0.015em; }
  .rs-nav__link { padding: 0 0.42rem; font-size: 0.8rem; }
  .rs-nav__link .bi-chevron-down { display: none; }
  .rs-header__actions { gap: var(--space-1); margin-left: var(--space-1); }
  .rs-header .rs-theme-toggle { width: 36px; height: 36px; }
  .rs-header__cta { padding: 0.55rem 0.9rem; margin-left: var(--space-1); font-size: 0.8rem; }
}
@media (min-width: 1400px) and (max-width: 1599.98px) { .rs-nav__link { padding: 0 0.62rem; font-size: 0.88rem; } .rs-brand__name { font-size: 0.72rem; } .rs-header__inner { gap: var(--space-4); } }   /* room for the menu */
@media (max-width: 767.98px) {
  .rs-brand { gap: var(--space-3); }
  .rs-brand__marks img { height: 38px; }
  .rs-brand__text { padding-left: var(--space-3); gap: 2px; }
  .rs-brand__name { font-size: 0.68rem; letter-spacing: 0.02em; }
}
@media (max-width: 379.98px) { .rs-brand__marks img { height: 32px; } .rs-brand__name { font-size: 0.62rem; } }

/* Desktop navigation (≥1200) */
.rs-nav { display: none; margin-left: auto; }
.rs-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.rs-nav__item { position: relative; }
.rs-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: var(--header-h);
  padding: 0 0.85rem;
  border: 0;
  background: none;
  color: var(--hdr-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.rs-nav__link:hover,
.rs-nav__item.is-open > .rs-nav__link { color: #FFFFFF; }
.rs-nav__link .bi-chevron-down { font-size: 0.65em; opacity: 0.7; transition: transform var(--dur-base) var(--ease-out); }
.rs-nav__item.is-open > .rs-nav__link .bi-chevron-down { transform: rotate(180deg); }
/* Current section: white text + a short gold rule on the bottom edge */
.rs-nav__link.is-active { color: #FFFFFF; font-weight: var(--weight-semibold); }
.rs-nav__link.is-active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px; height: 2px; background: var(--gold-400); }

/* Dropdown: mega panel — navy intro on the left, links with one-line descriptions on the right */
.rs-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: -1rem;
  z-index: var(--z-dropdown);
  display: grid;
  grid-template-columns: 240px auto;
  width: max-content;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 30px 60px rgba(11, 13, 36, 0.22), 0 4px 12px rgba(11, 13, 36, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.rs-dropdown::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gradient-gold); z-index: 1; }
.rs-nav__item:nth-last-child(-n+3) .rs-dropdown { left: auto; right: -1rem; }
.rs-nav__item.is-open > .rs-dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .rs-nav__item:hover > .rs-dropdown { opacity: 1; visibility: visible; transform: none; }
  .rs-nav__item:hover > .rs-nav__link { color: #FFFFFF; }
  .rs-nav__item:hover > .rs-nav__link .bi-chevron-down { transform: rotate(180deg); }
}
.rs-dropdown__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  background: var(--blue-950);
  background-image: radial-gradient(120% 80% at 0% 100%, rgba(58, 66, 174, 0.45), transparent 60%);
  color: rgba(255, 255, 255, 0.7);
}
.rs-dropdown__intro b { font-family: var(--font-heading); font-size: 1.35rem; font-weight: var(--weight-bold); letter-spacing: -0.02em; color: #FFFFFF; }
.rs-dropdown__intro p { margin: 0; font-size: 0.84rem; line-height: 1.6; }
.rs-dropdown__intro a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: var(--weight-semibold); color: var(--gold-300); }
.rs-dropdown__intro a:hover { color: #FFFFFF; }
.rs-dropdown__list { display: grid; align-content: start; gap: 2px; padding: var(--space-4); min-width: 300px; }
.rs-dropdown--cols { grid-template-columns: 240px auto; }
.rs-dropdown--cols .rs-dropdown__list { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
.rs-dropdown__link {
  position: relative;
  display: block;
  padding: 0.75rem var(--space-4) 0.75rem var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background-color var(--dur-fast);
}
.rs-dropdown__link b { display: block; font-family: var(--font-heading); font-size: 0.92rem; font-weight: var(--weight-semibold); color: var(--color-heading); white-space: nowrap; transition: color var(--dur-fast); }
.rs-dropdown__link small { display: block; margin-top: 2px; font-size: 0.78rem; line-height: 1.4; color: var(--color-text-muted); }
@media (max-width: 1399.98px) { .rs-dropdown { grid-template-columns: 200px auto; } .rs-dropdown__intro { padding: var(--space-6) var(--space-5); } .rs-dropdown--cols .rs-dropdown__list { grid-template-columns: repeat(2, minmax(220px, 1fr)); } }
.rs-dropdown__link::after { content: "\F138"; position: absolute; right: var(--space-3); top: 50%; font-family: "bootstrap-icons"; font-size: 0.8rem; color: var(--color-primary); opacity: 0; transform: translate(-6px, -50%); transition: opacity var(--dur-fast), transform var(--dur-fast); }
.rs-dropdown__link:hover { background: var(--color-surface-alt); }
.rs-dropdown__link:hover b { color: var(--color-primary); }
.rs-dropdown__link:hover::after { opacity: 1; transform: translate(0, -50%); }
.rs-dropdown__link.is-active b { color: var(--color-primary); }
.rs-dropdown__link.is-active::before { content: ""; position: absolute; left: 4px; top: 30%; bottom: 30%; width: 3px; border-radius: 3px; background: var(--color-accent); }

/* Right side: theme · contact · burger */
.rs-header__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; flex-shrink: 0; }
.rs-header .rs-theme-toggle { width: 40px; height: 40px; background: transparent; border-color: var(--hdr-line); color: #FFFFFF; }
.rs-header .rs-theme-toggle:hover { background: rgba(255, 255, 255, 0.1); transform: none; }
.rs-header__cta {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-2);
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.rs-header__cta:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--blue-900); }
@media (min-width: 768px) { .rs-header__cta { display: inline-flex; } }
@media (min-width: 1200px) {
  .rs-nav { display: block; }
  .rs-header__actions { margin-left: var(--space-2); }
}
@media (max-width: 575.98px) { .rs-header .rs-header__actions .rs-theme-toggle { display: none; } }   /* in the drawer on phones */

/* Burger (below 1200) */
.rs-burger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--hdr-line, var(--color-border));
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.rs-burger__lines { position: relative; width: 18px; height: 12px; }
.rs-burger__lines span { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; }
.rs-burger__lines span:nth-child(1) { top: 0; }
.rs-burger__lines span:nth-child(2) { top: 5px; }
.rs-burger__lines span:nth-child(3) { top: 10px; width: 60%; }
@media (min-width: 1200px) { .rs-header .rs-burger { display: none; } }

/* --------------------------------------------------------------------------
   Drawer (below 1200)
   -------------------------------------------------------------------------- */
.rs-drawer { position: fixed; inset: 0; z-index: var(--z-modal); visibility: hidden; }
.rs-drawer.is-open { visibility: visible; }
.rs-drawer__backdrop { position: absolute; inset: 0; background: var(--color-overlay); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.rs-drawer.is-open .rs-drawer__backdrop { opacity: 1; }
.rs-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  color: var(--color-text);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.rs-drawer.is-open .rs-drawer__panel { transform: none; }
.rs-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--color-border); }
.rs-drawer__head img { height: 38px; width: auto; }
.rs-drawer__head .rs-burger { border-color: var(--color-border); color: var(--color-heading); }
.rs-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) var(--gutter) var(--space-6); }
.rs-drawer__group { border-bottom: 1px solid var(--color-border); }
.rs-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: var(--weight-semibold);
  text-align: left;
  cursor: pointer;
}
.rs-drawer__link:hover { color: var(--color-primary); }
.rs-drawer__link.is-active { color: var(--color-primary); }
.rs-drawer__link .bi-chevron-down { font-size: 0.8rem; color: var(--color-text-muted); transition: transform var(--dur-base) var(--ease-out); }
.rs-drawer__group.is-open .bi-chevron-down { transform: rotate(180deg); }
.rs-drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.rs-drawer__group.is-open .rs-drawer__sub { grid-template-rows: 1fr; }
.rs-drawer__sub > div { overflow: hidden; }
.rs-drawer__sub a { display: flex; align-items: center; min-height: 44px; padding-left: var(--space-4); border-left: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.95rem; }
.rs-drawer__sub a:last-child { margin-bottom: var(--space-4); }
.rs-drawer__sub a:hover,
.rs-drawer__sub a.is-active { color: var(--color-primary); border-left-color: var(--color-primary); }
.rs-drawer__foot { padding: var(--space-5) var(--gutter) var(--space-6); border-top: 1px solid var(--color-border); display: grid; gap: var(--space-4); }
.rs-drawer__theme { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--color-text-muted); }
.rs-drawer__contact { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); }
.rs-drawer__contact a { color: var(--color-heading); font-weight: var(--weight-semibold); }
body.rs-lock { overflow: hidden; }

/* --------------------------------------------------------------------------
   Home hero — Cinematic
   Full-screen photos that cross-fade; text sits only on the darkened lower
   left; sector tabs along the bottom choose the photo.
   -------------------------------------------------------------------------- */
.rs-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;   /* the old template pads every <section>; reset it */
  background: var(--blue-950);
  color: #FFFFFF;
  overflow: hidden;
}
.rs-hero__media { position: absolute; inset: 0; z-index: -2; }
.rs-hero__photo { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-in-out); }
.rs-hero__photo.is-active { opacity: 1; }
.rs-hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.rs-hero__photo.is-active img { transform: scale(1); }
.rs-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 36, 0.6) 0%, rgba(11, 13, 36, 0) 24%, rgba(11, 13, 36, 0) 42%, rgba(11, 13, 36, 0.9) 100%),
    linear-gradient(90deg, rgba(11, 13, 36, 0.6) 0%, rgba(11, 13, 36, 0) 60%);
}

.rs-hero__body { flex: 1; display: flex; align-items: flex-end; padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.rs-hero__title {
  margin: 0 0 var(--space-6);
  color: #FFFFFF;
  font-size: clamp(2.8rem, 1.2rem + 6vw, 7.2rem);
  font-weight: var(--weight-extrabold);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.rs-hero__title span { color: var(--gold-300); }
.rs-hero__lead { max-width: 38ch; margin: 0 0 var(--space-8); font-size: var(--text-lg); line-height: var(--leading-relaxed); color: rgba(255, 255, 255, 0.82); }
.rs-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 54px;
  padding: 0 1.6rem;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--blue-900);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.rs-hero__btn:hover { background: var(--gold-300); color: var(--blue-950); transform: translateY(-2px); }
.rs-hero__btn i { transition: transform var(--dur-base) var(--ease-out); }
.rs-hero__btn:hover i { transform: translateX(3px); }

/* Sector tabs */
.rs-hero__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.rs-hero__tab {
  position: relative;
  padding: 1.4rem var(--gutter);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: none;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: color var(--dur-base), background-color var(--dur-base);
}
.rs-hero__tab:last-child { border-right: 0; }
.rs-hero__tab small { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; letter-spacing: 0.14em; }
.rs-hero__tab b { font-family: var(--font-heading); font-size: 1.05rem; font-weight: var(--weight-semibold); }
.rs-hero__tab::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--gold-400); }
.rs-hero__tab:hover { color: #FFFFFF; }
.rs-hero__tab.is-active { color: #FFFFFF; background: rgba(255, 255, 255, 0.05); }
.rs-hero__tab.is-active::before { animation: rs-tab var(--rs-slide-ms, 6000ms) linear forwards; }
.rs-hero.is-paused .rs-hero__tab.is-active::before { animation-play-state: paused; }
@keyframes rs-tab { to { width: 100%; } }
@media (max-width: 767.98px) {
  .rs-hero__tabs { grid-template-columns: repeat(2, 1fr); }
  .rs-hero__tab { padding: 1.1rem var(--gutter); }
  .rs-hero__tab:nth-child(2) { border-right: 0; }
  .rs-hero__tab:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .rs-hero__tab b { font-size: 0.95rem; }
  .rs-hero__shade { background: linear-gradient(180deg, rgba(11, 13, 36, 0.65) 0%, rgba(11, 13, 36, 0.15) 30%, rgba(11, 13, 36, 0.55) 55%, rgba(11, 13, 36, 0.94) 100%); }
}

/* Calm entrance */
.rs-hero [data-hero-in] { opacity: 0; transform: translateY(18px); animation: rs-hero-in 0.9s var(--ease-out) forwards; }
.rs-hero [data-hero-in="1"] { animation-delay: 0.1s; }
.rs-hero [data-hero-in="2"] { animation-delay: 0.25s; }
.rs-hero [data-hero-in="3"] { animation-delay: 0.4s; }
.rs-hero [data-hero-in="4"] { animation-delay: 0.55s; }
@keyframes rs-hero-in { to { opacity: 1; transform: none; } }

/* The old "featured" cards used to overlap the old slider; give them room until that section is redesigned */
.rs-hero + #main > .featured:first-child { padding-top: var(--section-y); }

/* Back-to-top button (from the old template) in brand colours */
.back-to-top { background: var(--color-primary) !important; border-radius: var(--radius-sm) !important; width: 44px !important; height: 44px !important; box-shadow: var(--shadow-md); }
.back-to-top:hover { background: var(--color-primary-hover) !important; }
.back-to-top i { color: var(--color-on-primary) !important; }

/* --------------------------------------------------------------------------
   Footer (every page)
   -------------------------------------------------------------------------- */
.rs-footer { background: var(--blue-950); color: rgba(255, 255, 255, 0.7); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-size: var(--text-sm); }
.rs-footer a { color: rgba(255, 255, 255, 0.82); }
.rs-footer a:hover { color: var(--gold-300); }
.rs-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.rs-footer__brand { display: flex; align-items: center; gap: var(--space-4); }
.rs-footer__brand .rs-brand__marks img { height: 54px; }
.rs-footer__names { display: flex; flex-direction: column; gap: 4px; padding-left: var(--space-4); border-left: 1px solid rgba(255, 255, 255, 0.25); }
.rs-footer__names b { font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase; color: #FFFFFF; line-height: 1.25; }
.rs-footer__names b + b { color: var(--gold-300); }
.rs-footer__tag { max-width: 44ch; margin: 0; font-size: var(--text-base); color: rgba(255, 255, 255, 0.62); }
.rs-footer__grid { display: grid; gap: var(--space-8); padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rs-footer__col h4 { margin-bottom: var(--space-4); font-size: 0.75rem; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--gold-300); }
.rs-footer__col p { margin-bottom: var(--space-3); line-height: 1.7; }
.rs-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.rs-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.rs-footer__contact { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); }
.rs-footer__contact a,
.rs-footer__iso { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); }
.rs-footer__contact i { color: var(--gold-300); }
.rs-footer__social { display: flex; gap: var(--space-2); }
.rs-footer__social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); transition: background-color var(--dur-fast), color var(--dur-fast); }
.rs-footer__social a:hover { background: #FFFFFF; color: var(--blue-950); }
.rs-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-block: var(--space-5) var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: var(--text-xs); color: rgba(255, 255, 255, 0.5); }
.rs-footer__legal a { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 575.98px) { .rs-footer__names b { font-size: 0.74rem; } .rs-footer__brand .rs-brand__marks img { height: 42px; } }

@media (min-width: 1200px) { .rs-brand__name { white-space: nowrap; } }
/* 1200–1279: the logo already links home, so the "Home" item makes room for the company names */
@media (min-width: 1200px) and (max-width: 1279.98px) { .rs-nav__list > .rs-nav__item:first-child { display: none; } }

/* Menu stays readable over bright photos: soft shadow under the text while the header is transparent */
.rs-header:not(.is-scrolled):not(.rs-header--solid) .rs-nav__link,
.rs-header:not(.is-scrolled):not(.rs-header--solid) .rs-brand__name { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.35); }
.rs-header:not(.is-scrolled):not(.rs-header--solid) { background: linear-gradient(180deg, rgba(11, 13, 36, 0.62) 0%, rgba(11, 13, 36, 0.25) 100%); }
.rs-nav__link .bi-chevron-down { opacity: 0.85; }

/* Hero: what we do + a direct way to get in touch */
.rs-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); font-family: var(--font-heading); font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.85rem); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--gold-200); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.rs-hero__eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold-400); }
.rs-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rs-hero__btn--ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.55); color: #FFFFFF; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rs-hero__btn--ghost:hover { background: #FFFFFF; color: var(--blue-900); }

/* Quick contact bar — phones only */
.rs-quickbar { display: none; }
@media (max-width: 767.98px) {
  .rs-quickbar { position: fixed; inset: auto 0 0 0; z-index: calc(var(--z-header) - 2); display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1px; padding-bottom: env(safe-area-inset-bottom); background: var(--color-border); box-shadow: 0 -8px 24px rgba(11, 13, 36, 0.12); }
  .rs-quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; background: var(--color-surface); color: var(--color-heading); font-size: 0.72rem; font-weight: var(--weight-semibold); }
  .rs-quickbar i { font-size: 1.15rem; color: var(--color-primary); }
  .rs-quickbar__main { flex-direction: row !important; gap: var(--space-2) !important; background: var(--color-primary) !important; color: var(--color-on-primary) !important; font-size: 0.85rem !important; }
  .rs-quickbar__main i { color: var(--gold-300); }
  body { padding-bottom: 58px; }
  .back-to-top { bottom: 72px !important; }
}

/* --------------------------------------------------------------------------
   Project map (Leaflet, loaded on demand)
   -------------------------------------------------------------------------- */
.rs-map { position: relative; display: grid; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-md); }
@media (min-width: 992px) { .rs-map { grid-template-columns: minmax(0, 1fr) 280px; } }
.rs-map__canvas { min-height: clamp(420px, 60vh, 620px); background: #DCE3EC; z-index: 0; }
[data-theme="dark"] .rs-map__canvas { background: #1A1E3A; }
.rs-map__panel { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); border-left: 1px solid var(--color-border); }
@media (max-width: 991.98px) { .rs-map__panel { border-left: 0; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: 1fr 1fr; } .rs-map__legend, .rs-map__note { grid-column: 1 / -1; } }
.rs-map__stat b { display: block; font-family: var(--font-heading); font-size: 2.6rem; font-weight: var(--weight-extrabold); line-height: 1; letter-spacing: -0.03em; color: var(--color-heading); }
.rs-map__stat span { font-size: var(--text-sm); color: var(--color-text-muted); }
.rs-map__legend { list-style: none; margin: 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--color-border); display: grid; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text); }
.rs-map__legend li { display: flex; align-items: center; gap: var(--space-3); }
.rs-map__note { margin: auto 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.rs-map__dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px rgba(11, 13, 36, 0.25); }
.rs-map__dot--pipeline { background: var(--blue-600); }
.rs-map__dot--metering { background: var(--gold-500); }
.rs-map__dot--power { background: var(--red-600); }
.rs-map__dot--process { background: var(--green-500); }
.rs-map__dot--other { background: var(--ink-500); }
.rs-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #FFFFFF; box-shadow: 0 6px 14px rgba(11, 13, 36, 0.35); color: #FFFFFF; font: 700 12px/1 var(--font-heading); }
.rs-pin span { transform: rotate(45deg); }
.rs-map .leaflet-popup-content-wrapper { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.rs-map .leaflet-popup-content { margin: 14px 16px; min-width: 240px; font-family: var(--font-body); }
.rs-pop__place { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7A5E2E; }
.rs-pop__item { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #EEF0F8; color: #14173A !important; text-decoration: none; }
.rs-pop__item:hover b { color: #283090; }
.rs-pop__item img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.rs-pop__item b { display: block; font: 600 13px/1.3 var(--font-heading); }
.rs-pop__item small { display: block; margin-top: 2px; font-size: 11px; color: #565B7A; }
/* Calm, on-brand map tiles: muted in light mode, inverted navy in dark mode */
.rs-map__tiles { filter: grayscale(0.85) contrast(0.95) brightness(1.04); }
[data-theme="dark"] .rs-map__tiles { filter: invert(1) hue-rotate(200deg) brightness(0.85) contrast(0.9) saturate(0.4); }
