/* Base: reset, typography, buttons, section rhythm, shared helpers.
   Loads after bootstrap-grid.min.css so container/gutter overrides win. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rnx-font);
  font-size: var(--rnx-size-body);
  line-height: var(--rnx-lh-body);
  font-weight: var(--rnx-weight-body);
  color: var(--rnx-body);
  background: var(--rnx-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--rnx-dur) var(--rnx-ease);
}

a:hover {
  color: var(--rnx-accent);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 15px;
}

p:last-child {
  margin-bottom: 0;
}

/* ---- Headings ------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 15px;
  font-family: var(--rnx-font);
  color: var(--rnx-ink);
  font-weight: 700;
  line-height: var(--rnx-lh-title);
  letter-spacing: normal;
}

h1 {
  font-size: var(--rnx-size-hero);
  line-height: var(--rnx-lh-hero);
}

h2 {
  font-size: var(--rnx-size-title);
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: var(--rnx-size-card-title);
  font-weight: var(--rnx-weight-card-title);
  line-height: var(--rnx-lh-card-title);
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 15px;
}

/* ---- Layout -------------------------------------------------------------- */

/* Bootstrap's container steps (540 / 720 / 960) are what give the reference its
   widths below 1200 — only the largest step is overridden here. Setting
   max-width unconditionally would flatten all of them. */
.container {
  padding-left: var(--rnx-gutter);
  padding-right: var(--rnx-gutter);
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--rnx-container);
  }
}

.section-padding {
  padding-top: var(--rnx-section-y);
  padding-bottom: var(--rnx-section-y);
}

.section-padding-t {
  padding-top: var(--rnx-section-y);
}

.section-padding-b {
  padding-bottom: var(--rnx-section-y);
}

.bg-soft {
  background-color: var(--rnx-bg-soft);
}

/* bootstrap-grid.css carries no spacing utilities; this is the only one used. */
.mb-30 {
  margin-bottom: 30px;
}

.bg-dark-ink {
  background-color: var(--rnx-bg-dark);
  color: rgba(255, 255, 255, 0.75);
}

.bg-dark-ink h1,
.bg-dark-ink h2,
.bg-dark-ink h3,
.bg-dark-ink h4,
.bg-dark-ink h5,
.bg-dark-ink h6 {
  color: var(--rnx-white);
}

/* Full-bleed parallax panels (booking form, video, CTA). */
.bg-img {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.bg-fixed {
  background-attachment: fixed;
}

.bg-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rnx-overlay);
}

.bg-img > .container {
  position: relative;
  z-index: 2;
}

/* background-attachment: fixed is broken on iOS and janky on Android. */
@media (max-width: 991px) {
  .bg-fixed {
    background-attachment: scroll;
  }
}

/* ---- Section heading block ----------------------------------------------- */

.eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--rnx-accent);
  font-size: var(--rnx-size-eyebrow);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--rnx-tracking-eyebrow);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "*";
  margin-right: 8px;
}

/* Reference spacing, identical on every section: 15px under the eyebrow,
   15px under the title, 30px under the head block. flow-root keeps the
   title's bottom margin inside the block instead of collapsing it away,
   which is what makes the head 94px tall as in the reference. */
.section-head {
  display: flow-root;
  margin-bottom: 30px;
}

.section-head h2 {
  margin-bottom: 15px;
}

.section-head p {
  margin-top: 15px;
  max-width: 560px;
}

/* Thin vertical rule the design drops between several sections. */
.line-vr-section {
  width: 2px;
  height: 50px;
  margin: 0 auto;
  background: var(--rnx-rule);
}

/* ---- Buttons ------------------------------------------------------------- */

.btn-rnx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 42px;
  border: 1px solid transparent;
  border-radius: var(--rnx-radius);
  background: var(--rnx-accent);
  color: var(--rnx-ink);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: normal;
  cursor: pointer;
  transition:
    background var(--rnx-dur) var(--rnx-ease),
    color var(--rnx-dur) var(--rnx-ease),
    border-color var(--rnx-dur) var(--rnx-ease);
}

.btn-rnx:hover {
  background: var(--rnx-accent-deep);
  color: var(--rnx-ink);
}

.btn-rnx .arrow {
  font-size: 12px;
  transition: transform var(--rnx-dur) var(--rnx-ease);
}

.btn-rnx:hover .arrow {
  transform: translate(2px, -2px);
}

.btn-rnx--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--rnx-ink);
}

.btn-rnx--outline:hover {
  background: var(--rnx-accent);
  border-color: var(--rnx-accent);
  color: var(--rnx-ink);
}

.btn-rnx--light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--rnx-white);
}

.btn-rnx--light:hover {
  background: var(--rnx-white);
  border-color: var(--rnx-white);
  color: var(--rnx-ink);
}

/* The small "01 / Read More" style link used on service and car cards. */
.num-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rnx-ink);
}

.num-link .num {
  color: var(--rnx-accent);
  font-weight: 600;
}

/* ---- Accessibility ------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--rnx-ink);
  color: var(--rnx-white);
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--rnx-accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Reveal on scroll ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--rnx-dur-slow) var(--rnx-ease),
    transform var(--rnx-dur-slow) var(--rnx-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Preloader ----------------------------------------------------------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--rnx-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--rnx-dur-slow) var(--rnx-ease);
}

#preloader.is-done {
  opacity: 0;
  pointer-events: none;
}

#preloader .spinner {
  width: 42px;
  height: 42px;
  border: 2px solid var(--rnx-rule);
  border-top-color: var(--rnx-accent);
  border-radius: 50%;
  animation: rnx-spin 0.8s linear infinite;
}

@keyframes rnx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Scroll to top ------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--rnx-accent);
  color: var(--rnx-ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--rnx-dur) var(--rnx-ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
