/* ==========================================================================
   RVKS — rvx-contact
   Self-contained, namespaced "Where to find us" contact block. Requires NO
   Bootstrap grid/JS, no jQuery, no yit-* asset, no FontAwesome (icons are
   inline SVG) and NO JavaScript — the section is fully visible on first paint,
   there is no reveal-on-scroll dependency.

   Scope discipline: every rule below is scoped to .rvx-contact. Nothing leaks
   outside it — no bare element selectors, no utility classes, no overrides of
   anything the rest of the page owns.

   The rendered design is a 1:1 reproduction of the .rvxa-contact block that
   shipped on about-us.html (css/rvx-about.css §8): #f6f8fc plinth, gold
   letter-spaced eyebrow, uppercase Montserrat H2, three equal white cards with
   gold-ringed circular icons and a bordered ghost CTA in card one.

   Palette + type match css/rvx-header.css and css/rvx-footer.css. Tokens are
   re-declared locally (not inherited) so this file can be dropped onto a page
   that loads neither the header nor the about-page stylesheet.

   Load slot: immediately after css/rvx-footer.css.
   ========================================================================== */

.rvx-contact {
  /* --- brand tokens (shared with rvx-header / rvx-footer / rvx-about) --- */
  --rvxc-navy: #0a0f18;
  --rvxc-ink: #101827;
  --rvxc-ink-nav: #141c2c;
  --rvxc-ink-body: #2b3547;
  --rvxc-ink-soft: #52607a;
  --rvxc-gold: #c4a035;
  --rvxc-gold-bright: #dfc465;
  --rvxc-blue: #12325b;
  --rvxc-white: #ffffff;
  --rvxc-surface: #f6f8fc;
  --rvxc-hairline: rgba(16, 24, 39, 0.10);

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

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

  --rvxc-radius-lg: 16px;
  --rvxc-shadow-tile: 0 10px 28px rgba(10, 15, 24, 0.07);

  --rvxc-max: 1140px;
  --rvxc-gutter: 15px;

  /* --- shell --- */
  display: block;
  width: 100%;
  margin: 0;
  padding: 68px 0 84px;
  border: 0;
  background: var(--rvxc-surface);
  font-family: var(--rvxc-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rvxc-ink);
  text-align: left;
}

/* ==========================================================================
   0. Defend against bootstrap.css + yit-*.css leaking in
   Every reset is wrapped in :where() so it carries the specificity of the bare
   element selector only — strong enough to beat the theme's element rules
   (this file loads after every yit-*.css), weaker than the .rvx-contact__*
   rules below.
   ========================================================================== */

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

/* yit-style.css: `p { padding-top:5px; padding-bottom:5px }`.
   yit-responsive.css (<=767px): `p { text-align:center }` and
   `h1..h6 { text-align:center }`. Both are bare-element rules, so matching
   their specificity from a later stylesheet wins them back — but only for
   properties actually named here, hence the explicit text-align. */
:where(.rvx-contact) p,
:where(.rvx-contact) h2,
:where(.rvx-contact) h3,
:where(.rvx-contact) address {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-style: normal;
  color: inherit;
  text-align: left;
  text-transform: none;
}

:where(.rvx-contact) ul,
:where(.rvx-contact) ol,
:where(.rvx-contact) 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 }` (plus
   a 767px override). Match its specificity — we load last, tie goes to us. */
:where(.rvx-contact) ul li,
:where(.rvx-contact) ol li {
  display: block;
  line-height: inherit;
}

:where(.rvx-contact) ul::before,
:where(.rvx-contact) li::before {
  content: none;
}

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

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

/* yit-responsive.css also does `img { float:none; margin:0 auto; display:block }`
   below 767px. No <img> ships in this component today, but the reset keeps a
   future one from being centred and floated. */
:where(.rvx-contact) img,
:where(.rvx-contact) svg {
  max-width: 100%;
  height: auto;
  margin: 0;
  float: none;
  border: 0;
  vertical-align: middle;
}

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

/* yit-style.css declares `a { outline: none !important }`, which would erase
   every keyboard focus ring in here. !important is the only way back. */
.rvx-contact :focus-visible {
  outline: 2px solid var(--rvxc-gold) !important;
  outline-offset: 3px !important;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Cascade note — why the !important flags below exist.

   Per-page stylesheets load AFTER this component and style body copy and
   headings with two-class-plus-element selectors, e.g.

     body.rvk-home-premium p            { color: …; line-height: 1.8 }
     body.rvk-services-sector-premium p,
     body.rvk-services-sector-premium li { color: …; line-height: 1.8 }
     body.rvk-services-sector-premium h2,
     body.rvk-services-sector-premium h3 { color: … }

   and yit-theme.css (via the `heading-dosis` body class present on index.html
   and services.html) ships

     .heading-dosis h2, .heading-dosis h3 { font-family: "Dosis", sans-serif }

   All of those are (0,1,1) or better and therefore outrank a single component
   class no matter what order the files sit in. The affected elements carry
   !important on exactly the properties those page rules set — colour,
   line-height and font-family — and nothing else. Nothing inside this
   component ever needs to override them, so the blast radius stays zero.
   -------------------------------------------------------------------------- */

/* ==========================================================================
   1. Container + section head
   ========================================================================== */

.rvx-contact__container {
  width: 100%;
  max-width: var(--rvxc-max);
  margin: 0 auto;
  padding: 0 var(--rvxc-gutter);
}

.rvx-contact__eyebrow {
  display: inline-block;
  font-family: var(--rvxc-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--rvxc-gold);
}

.rvx-contact__h2 {
  margin: 12px 0 0;
  font-family: var(--rvxc-font-display) !important;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rvxc-ink-nav) !important;
}

/* ==========================================================================
   2. Card grid — 3-up desktop, 1-up from tablet down (see §5)
   ========================================================================== */

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

.rvx-contact__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 30px 28px 32px;
  background: var(--rvxc-white);
  border: 1px solid var(--rvxc-hairline);
  border-radius: var(--rvxc-radius-lg);
  box-shadow: var(--rvxc-shadow-tile);
  /* see cascade note — `body.… li { color; line-height }` */
  line-height: 1.65 !important;
  color: var(--rvxc-ink) !important;
}

/* ==========================================================================
   3. Card contents
   ========================================================================== */

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

.rvx-contact__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--rvxc-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rvx-contact__title {
  margin: 18px 0 0;
  font-family: var(--rvxc-font-display) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rvxc-ink-nav) !important;
}

.rvx-contact__text {
  margin: 12px 0 0;
  font-size: 15.5px;
  font-style: normal;
  /* see cascade note — `body.… p { color; line-height }` */
  line-height: 1.7 !important;
  color: var(--rvxc-ink-soft) !important;
}

.rvx-contact__link {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--rvxc-blue);
  border-bottom: 1px solid rgba(18, 50, 91, 0.28);
  overflow-wrap: anywhere;
  transition: color var(--rvxc-dur) var(--rvxc-ease),
    border-color var(--rvxc-dur) var(--rvxc-ease);
}

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

/* The action row is a <p>; margin-top:auto pins the CTA to the bottom of the
   tallest card so all three cards keep a level base line. */
.rvx-contact__action {
  margin: auto 0 0;
  padding: 22px 0 0;
  /* see cascade note — `body.… p { line-height }` would otherwise reflow it */
  line-height: 1.65 !important;
}

/* ==========================================================================
   4. Ghost button
   ========================================================================== */

.rvx-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 11px 20px;
  border: 1px solid rgba(16, 24, 39, 0.20);
  border-radius: 4px;
  font-family: var(--rvxc-font-display);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rvxc-ink-nav);
  background: var(--rvxc-white);
  transition: color var(--rvxc-dur) var(--rvxc-ease),
    border-color var(--rvxc-dur) var(--rvxc-ease),
    background var(--rvxc-dur) var(--rvxc-ease),
    box-shadow var(--rvxc-dur) var(--rvxc-ease);
}

.rvx-contact__btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rvx-contact__btn:hover,
.rvx-contact__btn:focus-visible {
  color: var(--rvxc-navy);
  border-color: var(--rvxc-gold);
  background: #fffdf7;
}

/* ==========================================================================
   5. Responsive — 3-up shrinks, then stacks at 720px

   Tested at 1280 / 768 / 375. Cards two and three each hold one short line, so
   stacking them early leaves a ~740px-wide card with a single email address in
   it — a lot of dead white. Keeping the 3-up down to 720px (cards bottom out
   around 235px, the address wraps to four comfortable lines) reads far better,
   so the row only shrinks in this tier and stacks below it.

   A 2-up intermediate step was tried and rejected: three cards over two columns
   always strands the third alone on its own row.
   ========================================================================== */

@media (max-width: 991.98px) {
  .rvx-contact__grid {
    gap: 16px;
  }

  .rvx-contact__item {
    padding: 24px 20px 26px;
    border-radius: 14px;
  }
}

@media (max-width: 719.98px) {
  .rvx-contact {
    padding: 48px 0 58px;
  }

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

  .rvx-contact__item {
    border-radius: 12px;
  }

  .rvx-contact__btn {
    min-height: 48px;
  }
}

@media (max-width: 419.98px) {
  .rvx-contact {
    --rvxc-gutter: 14px;
  }
}

/* ==========================================================================
   6. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .rvx-contact,
  .rvx-contact *,
  .rvx-contact *::before,
  .rvx-contact *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   7. Print
   ========================================================================== */

@media print {
  .rvx-contact {
    background: none;
    padding: 24px 0;
  }

  .rvx-contact__item {
    box-shadow: none;
  }

  .rvx-contact__btn {
    display: none;
  }
}
