/* ==========================================================================
   RVKS — rvx-sector
   Page styles for /sector.html. Namespaced `.rvxsc-`.

   Loads LAST, after bootstrap.css + every yit-*.css + rvk-premium-chrome.css
   + rvx-header.css + rvk-services-sector-premium.css — the same slot
   css/rvx-home.css and css/rvx-about.css occupy on their pages.

   Specificity note: rvk-services-sector-premium.css ships
   `body.rvk-services-sector-premium p` / `… li` / `… h2` (0,1,1). Every
   component rule below therefore carries at least two classes
   (`.rvxsc-main .rvxsc-thing`) so it always wins without !important.

   Palette + type intentionally identical to css/rvx-header.css and
   css/rvx-home.css so the page reads as one system.
   ========================================================================== */

.rvxsc-main {
  /* --- brand tokens (same values as rvx-header.css / rvx-home.css) --- */
  --rvxsc-navy: #0a0f18;
  --rvxsc-navy-2: #121a28;
  --rvxsc-navy-3: #162238;
  --rvxsc-ink: #101827;
  --rvxsc-ink-nav: #141c2c;
  --rvxsc-ink-body: #2b3547;
  --rvxsc-ink-soft: #52607a;
  --rvxsc-ink-faint: #7d8899;
  --rvxsc-gold: #c4a035;
  --rvxsc-gold-bright: #dfc465;
  --rvxsc-blue: #12325b;
  --rvxsc-white: #ffffff;
  --rvxsc-surface: #f6f8fc;
  --rvxsc-surface-2: #eef2f8;
  --rvxsc-hairline: rgba(16, 24, 39, 0.10);
  --rvxsc-hairline-soft: rgba(16, 24, 39, 0.06);

  --rvxsc-on-dark: rgba(234, 240, 247, 0.80);
  --rvxsc-on-dark-soft: rgba(234, 240, 247, 0.64);
  --rvxsc-dark-line: rgba(255, 255, 255, 0.11);

  --rvxsc-font-display: "Montserrat", "Plus Jakarta Sans", system-ui,
    -apple-system, "Segoe UI", Arial, sans-serif;
  --rvxsc-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial,
    sans-serif;

  --rvxsc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --rvxsc-dur: 200ms;

  --rvxsc-radius: 10px;
  --rvxsc-radius-lg: 16px;

  --rvxsc-shadow-card: 0 18px 50px rgba(10, 15, 24, 0.09),
    0 2px 6px rgba(10, 15, 24, 0.04);
  --rvxsc-shadow-lift: 0 26px 60px rgba(10, 15, 24, 0.13),
    0 3px 8px rgba(10, 15, 24, 0.05);

  display: block;
  font-family: var(--rvxsc-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rvxsc-ink-body);
  text-align: left;
  background: var(--rvxsc-white);
}

/* ==========================================================================
   0. Theme-leak defence
   Wrapped in :where() so each reset carries only `.rvxsc-main` specificity
   (0,1,0) — enough to beat the theme's bare-element rules, weak enough that
   the component rules further down always win.
   ========================================================================== */

:where(.rvxsc-main),
:where(.rvxsc-main) *,
:where(.rvxsc-main) *::before,
:where(.rvxsc-main) *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:where(.rvxsc-main) p,
:where(.rvxsc-main) h1,
:where(.rvxsc-main) h2,
:where(.rvxsc-main) h3,
:where(.rvxsc-main) h4,
:where(.rvxsc-main) h5,
:where(.rvxsc-main) h6,
:where(.rvxsc-main) figure,
:where(.rvxsc-main) figcaption,
:where(.rvxsc-main) address,
:where(.rvxsc-main) blockquote {
  /* yit-style.css: `p { padding-top:5px; padding-bottom:5px }`
     yit-responsive.css (mobile): bare `h1..h6 { text-align:center }`. */
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-style: normal;
  text-align: left;
  text-transform: none;
}

:where(.rvxsc-main) ul,
:where(.rvxsc-main) ol,
:where(.rvxsc-main) li {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
  text-indent: 0;
  text-align: left;
  background: none;
  border: 0;
  float: none;
  line-height: inherit;
}

/* yit-style.css ships `ul li { display:inline-block; line-height:1.8 }`. */
:where(.rvxsc-main) ul li,
:where(.rvxsc-main) ol li {
  display: block;
  line-height: inherit;
}

/* rvk-services-sector-premium.css ships a `::before` bullet on listing items. */
:where(.rvxsc-main) ul::before,
:where(.rvxsc-main) li::before {
  content: none;
}

:where(.rvxsc-main) a {
  text-decoration: none;
  background-color: transparent;
  color: inherit;
  outline-offset: 2px;
}

:where(.rvxsc-main) a:hover,
:where(.rvxsc-main) a:focus {
  text-decoration: none;
}

:where(.rvxsc-main) img,
:where(.rvxsc-main) picture,
:where(.rvxsc-main) svg {
  border: 0;
  max-width: 100%;
  vertical-align: middle;
}

:where(.rvxsc-main) svg {
  display: block;
  flex: none;
  fill: none;
  overflow: visible;
}

/* yit-style.css declares `a { outline: none !important }`. !important is the
   only route back to a visible keyboard focus ring. */
.rvxsc-main :focus-visible {
  outline: 2px solid var(--rvxsc-gold) !important;
  outline-offset: 3px !important;
  border-radius: 3px;
}

/* ==========================================================================
   1. Shared primitives
   ========================================================================== */

.rvxsc-main .rvxsc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rvxsc-main .rvxsc-rule {
  display: block;
  width: 62px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rvxsc-gold), var(--rvxsc-gold-bright));
}

/* --- buttons ------------------------------------------------------------ */

.rvxsc-main .rvxsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--rvxsc-font-display);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform var(--rvxsc-dur) var(--rvxsc-ease),
    box-shadow var(--rvxsc-dur) var(--rvxsc-ease),
    background-color var(--rvxsc-dur) var(--rvxsc-ease),
    border-color var(--rvxsc-dur) var(--rvxsc-ease),
    color var(--rvxsc-dur) var(--rvxsc-ease);
}

.rvxsc-main .rvxsc-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--rvxsc-dur) var(--rvxsc-ease);
}

.rvxsc-main .rvxsc-btn--outline {
  color: var(--rvxsc-ink-nav);
  border-color: var(--rvxsc-hairline);
  background: var(--rvxsc-white);
}

.rvxsc-main .rvxsc-btn--outline:hover,
.rvxsc-main .rvxsc-btn--outline:focus-visible {
  color: var(--rvxsc-navy);
  border-color: var(--rvxsc-gold);
  background: rgba(196, 160, 53, 0.08);
  transform: translateY(-2px);
}

.rvxsc-main .rvxsc-btn--outline:hover svg,
.rvxsc-main .rvxsc-btn--outline:focus-visible svg {
  transform: translateX(3px);
}

/* --- scroll reveal ------------------------------------------------------ */

.rvxsc-main .rvxsc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--rvxsc-ease), transform 620ms var(--rvxsc-ease);
  transition-delay: var(--rvxsc-delay, 0ms);
  will-change: opacity, transform;
}

.rvxsc-main .rvxsc-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* No JS / no IntersectionObserver: never leave content hidden. */
.rvxsc-main.rvxsc-no-reveal .rvxsc-reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   2. Hero — panorama + navy scrim
   ========================================================================== */

.rvxsc-main .rvxsc-hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(460px, 62svh, 640px);
  margin: 0;
  padding: clamp(72px, 9vw, 108px) 0 clamp(76px, 9vw, 112px);
  overflow: hidden;
  background: linear-gradient(140deg, var(--rvxsc-navy) 0%, var(--rvxsc-navy-2) 52%, var(--rvxsc-navy-3) 100%);
  isolation: isolate;
}

.rvxsc-main .rvxsc-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rvxsc-main .rvxsc-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 62%;
}

.rvxsc-main .rvxsc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 24, 0.58) 0%, rgba(10, 15, 24, 0.06) 38%),
    linear-gradient(0deg, rgba(10, 15, 24, 0.72) 0%, rgba(10, 15, 24, 0) 56%),
    linear-gradient(90deg, rgba(10, 15, 24, 0.92) 0%, rgba(10, 15, 24, 0.74) 30%, rgba(10, 15, 24, 0.34) 60%, rgba(10, 15, 24, 0.06) 86%, rgba(10, 15, 24, 0) 100%);
}

.rvxsc-main .rvxsc-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
}

.rvxsc-main .rvxsc-hero__copy {
  max-width: 720px;
}

.rvxsc-main .rvxsc-hero__title {
  margin: 0;
  font-family: var(--rvxsc-font-display);
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(10, 15, 24, 0.38);
}

.rvxsc-main .rvxsc-hero__copy .rvxsc-rule {
  width: 78px;
  margin: 28px 0 0;
}

.rvxsc-main .rvxsc-hero__lede {
  margin: 28px 0 0;
  font-family: var(--rvxsc-font-body);
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  font-weight: 400;
  line-height: 1.82;
  color: var(--rvxsc-on-dark);
  text-shadow: 0 1px 16px rgba(10, 15, 24, 0.42);
}

/* ==========================================================================
   3. Sector panels
   ========================================================================== */

.rvxsc-main .rvxsc-sectors {
  position: relative;
  z-index: 2;
  display: block;
  padding: clamp(58px, 8vw, 100px) 0 clamp(62px, 9vw, 108px);
  background: var(--rvxsc-white);
}

.rvxsc-main .rvxsc-sector {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 4.6vw, 62px);
  align-items: start;
}

.rvxsc-main .rvxsc-sector + .rvxsc-sector {
  margin-top: clamp(52px, 7vw, 88px);
  padding-top: clamp(52px, 7vw, 88px);
  border-top: 1px solid var(--rvxsc-hairline);
}

/* Second panel mirrors: media column moves to the right. */
.rvxsc-main .rvxsc-sector--flip .rvxsc-sector__aside {
  grid-column: 2;
  grid-row: 1;
}

.rvxsc-main .rvxsc-sector--flip .rvxsc-sector__body {
  grid-column: 1;
  grid-row: 1;
}

/* --- media + heading column -------------------------------------------- */

.rvxsc-main .rvxsc-sector__aside {
  position: relative;
  display: block;
}

.rvxsc-main .rvxsc-figure {
  position: relative;
  display: block;
  margin: 0;
  border-radius: var(--rvxsc-radius-lg);
  overflow: hidden;
  background: var(--rvxsc-surface-2);
  box-shadow: var(--rvxsc-shadow-card);
}

.rvxsc-main .rvxsc-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--rvxsc-radius-lg);
  box-shadow: inset 0 0 0 1px var(--rvxsc-hairline);
  pointer-events: none;
}

.rvxsc-main .rvxsc-figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.rvxsc-main .rvxsc-sector__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 30px 0 0;
}

.rvxsc-main .rvxsc-sector__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(196, 160, 53, 0.32);
  border-radius: 50%;
  background: rgba(196, 160, 53, 0.07);
}

.rvxsc-main .rvxsc-sector__icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--rvxsc-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rvxsc-main .rvxsc-sector__title {
  margin: 0;
  padding-top: 4px;
  font-family: var(--rvxsc-font-display);
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rvxsc-ink-nav);
}

.rvxsc-main .rvxsc-sector__aside .rvxsc-rule {
  margin: 22px 0 0 62px;
}

/* --- the long list ------------------------------------------------------ */

.rvxsc-main .rvxsc-sector__body {
  padding-top: 4px;
}

.rvxsc-main .rvxsc-list {
  columns: 2;
  column-gap: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--rvxsc-hairline);
}

.rvxsc-main .rvxsc-list li {
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: 11px 4px 11px 24px;
  border-bottom: 1px solid var(--rvxsc-hairline-soft);
  font-family: var(--rvxsc-font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--rvxsc-ink-body);
}

/* fine gold marker */
.rvxsc-main .rvxsc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: linear-gradient(135deg, var(--rvxsc-gold-bright), var(--rvxsc-gold));
  transform: rotate(45deg);
}

/* ==========================================================================
   4. Contact row
   ========================================================================== */

.rvxsc-main .rvxsc-contact {
  position: relative;
  z-index: 2;
  display: block;
  padding: clamp(52px, 7vw, 84px) 0 clamp(58px, 8vw, 92px);
  background: var(--rvxsc-surface);
  border-top: 1px solid var(--rvxsc-hairline-soft);
}

.rvxsc-main .rvxsc-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.rvxsc-main .rvxsc-contact__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 28px 32px;
  border: 1px solid var(--rvxsc-hairline);
  border-radius: var(--rvxsc-radius-lg);
  background: var(--rvxsc-white);
  box-shadow: var(--rvxsc-shadow-card);
  transition: transform 300ms var(--rvxsc-ease), box-shadow 300ms var(--rvxsc-ease);
}

.rvxsc-main .rvxsc-contact__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--rvxsc-shadow-lift);
}

.rvxsc-main .rvxsc-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rvxsc-hairline);
  border-radius: 50%;
  background: var(--rvxsc-white);
  box-shadow: 0 0 0 5px rgba(196, 160, 53, 0.08);
}

.rvxsc-main .rvxsc-contact__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--rvxsc-gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rvxsc-main .rvxsc-contact__title {
  margin: 18px 0 0;
  font-family: var(--rvxsc-font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rvxsc-ink-nav);
}

.rvxsc-main .rvxsc-contact__text {
  margin: 12px 0 0;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--rvxsc-ink-soft);
  font-style: normal;
}

.rvxsc-main .rvxsc-contact__link {
  color: var(--rvxsc-blue);
  font-weight: 500;
  border-bottom: 1px solid rgba(18, 50, 91, 0.28);
  overflow-wrap: anywhere;
  transition: color var(--rvxsc-dur) var(--rvxsc-ease),
    border-color var(--rvxsc-dur) var(--rvxsc-ease);
}

.rvxsc-main .rvxsc-contact__link:hover,
.rvxsc-main .rvxsc-contact__link:focus-visible {
  color: var(--rvxsc-gold);
  border-bottom-color: var(--rvxsc-gold);
}

.rvxsc-main .rvxsc-contact__action {
  margin: 0;
  padding-top: 22px;
  margin-top: auto;
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */

@media (max-width: 1199.98px) {
  .rvxsc-main .rvxsc-sector {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .rvxsc-main .rvxsc-contact__item {
    padding: 26px 22px 28px;
  }
}

@media (max-width: 991.98px) {
  /* Stack: media + heading above the list, list keeps two columns. */
  .rvxsc-main .rvxsc-sector,
  .rvxsc-main .rvxsc-sector--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .rvxsc-main .rvxsc-sector--flip .rvxsc-sector__aside,
  .rvxsc-main .rvxsc-sector--flip .rvxsc-sector__body {
    grid-column: 1;
    grid-row: auto;
  }

  .rvxsc-main .rvxsc-figure img {
    aspect-ratio: 16 / 9;
  }

  .rvxsc-main .rvxsc-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 767.98px) {
  .rvxsc-main .rvxsc-container {
    padding: 0 20px;
  }

  .rvxsc-main .rvxsc-hero {
    min-height: 0;
    padding: 64px 0 72px;
  }

  .rvxsc-main .rvxsc-hero__media::after {
    background:
      linear-gradient(180deg, rgba(10, 15, 24, 0.56) 0%, rgba(10, 15, 24, 0.18) 40%),
      linear-gradient(0deg, rgba(10, 15, 24, 0.92) 0%, rgba(10, 15, 24, 0.82) 34%, rgba(10, 15, 24, 0.56) 62%, rgba(10, 15, 24, 0.24) 84%, rgba(10, 15, 24, 0.08) 100%);
  }

  .rvxsc-main .rvxsc-hero__copy {
    max-width: none;
  }

  .rvxsc-main .rvxsc-sector__head {
    margin-top: 24px;
    gap: 13px;
  }

  .rvxsc-main .rvxsc-sector__icon {
    width: 40px;
    height: 40px;
  }

  .rvxsc-main .rvxsc-sector__icon svg {
    width: 19px;
    height: 19px;
  }

  .rvxsc-main .rvxsc-sector__aside .rvxsc-rule {
    margin-left: 53px;
  }

  .rvxsc-main .rvxsc-list {
    column-gap: 22px;
  }

  .rvxsc-main .rvxsc-list li {
    font-size: 14.5px;
    padding: 10px 4px 10px 22px;
  }

  .rvxsc-main .rvxsc-list li::before {
    top: 17px;
  }
}

@media (max-width: 519.98px) {
  .rvxsc-main .rvxsc-list {
    columns: 1;
  }
}

@media (max-width: 419.98px) {
  .rvxsc-main .rvxsc-container {
    padding: 0 16px;
  }

  .rvxsc-main .rvxsc-sector__title {
    letter-spacing: 0.02em;
  }

  .rvxsc-main .rvxsc-contact__item {
    padding: 24px 18px 26px;
  }

  .rvxsc-main .rvxsc-btn {
    width: 100%;
  }
}

/* ==========================================================================
   6. Reduced motion + print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .rvxsc-main .rvxsc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rvxsc-main,
  .rvxsc-main *,
  .rvxsc-main *::before,
  .rvxsc-main *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .rvxsc-main .rvxsc-btn:hover,
  .rvxsc-main .rvxsc-btn:focus-visible,
  .rvxsc-main .rvxsc-contact__item:hover,
  .rvxsc-main .rvxsc-btn:hover svg {
    transform: none;
  }
}

@media print {
  .rvxsc-main .rvxsc-hero {
    min-height: 0;
    padding: 0 0 20px;
    background: none;
    color: #000;
  }

  .rvxsc-main .rvxsc-hero__media {
    display: none !important;
  }

  .rvxsc-main .rvxsc-hero__title,
  .rvxsc-main .rvxsc-hero__lede {
    color: #000;
    text-shadow: none;
  }

  .rvxsc-main .rvxsc-figure,
  .rvxsc-main .rvxsc-contact__item {
    box-shadow: none;
  }

  .rvxsc-main .rvxsc-list {
    columns: 2;
  }

  .rvxsc-main .rvxsc-reveal {
    opacity: 1;
    transform: none;
  }
}
