/* =============================================================
   Road Safety Network — Orion-mirror theme styles
   Font: Sofia Sans (free substitute for Cera Pro)
   Palette: charcoal #1a1a1a | orange #E06020 | white | stone #d6d1ca
   ============================================================= */

0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --rsn-black: #1a1a1a;
  --rsn-black2: #000000;
  --rsn-tomato: #E06020;
  --rsn-light-grey: #d6d1ca;
  --rsn-white: #ffffff;
  --rsn-text-grey: #5d6c7b;
}

/* Global reset + base type */
body {
  font-family: "Sofia Sans", "Sofia Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  background: #fff;
  margin: 0;
}

/* Site wrapper — kill default theme gutters for full-width edge-to-edge */
.wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}

/* ============ NAVIGATION BAR ============ */
.rsn-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: transparent;
  transition: background 0.3s ease;
}
.rsn-nav.rsn-nav--dark,
.rsn-nav.scrolled {
  background: rgba(26,26,26,0.96);
}

.rsn-nav__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.rsn-nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rsn-nav__menu li a {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.rsn-nav__menu li a:hover,
.rsn-nav__menu li a.is-active {
  color: var(--rsn-tomato);
}
.rsn-nav__menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rsn-tomato);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.rsn-nav__menu li a:hover::after,
.rsn-nav__menu li a.is-active::after {
  transform: scaleX(1);
}

.rsn-nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rsn-nav__cta .rsn-btn--ghost {
  border: 1px solid var(--rsn-tomato);
  color: var(--rsn-tomato);
  background: transparent;
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.rsn-nav__cta .rsn-btn--ghost:hover {
  background: var(--rsn-tomato);
  color: #fff;
}
.rsn-nav__search {
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ============ HERO SECTION ============ */
.rsn-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--rsn-black);
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
}
.rsn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.65));
}
.rsn-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.rsn-hero__label {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rsn-tomato);
  margin-bottom: 1.4rem;
}
.rsn-hero__heading {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.6rem;
}
.rsn-hero__sub {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--rsn-light-grey);
  margin: 0 auto 2.2rem;
  max-width: 640px;
}
.rsn-hero__btn {
  display: inline-block;
  border: 1px solid var(--rsn-tomato);
  color: var(--rsn-tomato);
  background: transparent;
  padding: 0.85rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s;
}
.rsn-hero__btn:hover {
  background: var(--rsn-tomato);
  color: #fff;
}
.rsn-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: var(--rsn-tomato);
  font-size: 2.6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}
.rsn-hero__arrow--left { left: 1.5rem; }
.rsn-hero__arrow--right { right: 1.5rem; }

/* ============ SECTION SHELL ============ */
.rsn-section {
  padding: 5.5rem 2.5rem;
}
.rsn-section--dark {
  background: var(--rsn-black);
  color: #fff;
}
.rsn-section--light {
  background: var(--rsn-white);
  color: #1a1a1a;
}
.rsn-section--stone {
  background: var(--rsn-light-grey);
  color: #1a1a1a;
}
.rsn-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Section label (small orange uppercase kicker) */
.rsn-kicker {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rsn-tomato);
  margin-bottom: 1.2rem;
}

/* Section heading */
.rsn-h2 {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 1.5rem;
}
.rsn-h2--uppercase { text-transform: uppercase; }

/* Body copy */
.rsn-lead {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--rsn-text-grey);
}
.rsn-section--dark .rsn-lead { color: var(--rsn-light-grey); }

.rsn-body {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--rsn-text-grey);
}
.rsn-section--dark .rsn-body { color: var(--rsn-light-grey); }

/* ============ CAPABILITIES GRID ============ */
.rsn-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.rsn-cap {
  background: var(--rsn-white);
  color: #1a1a1a;
  border-top: 3px solid var(--rsn-tomato);
  padding: 2rem 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rsn-cap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.rsn-cap__title {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.8rem;
  color: #1a1a1a;
}
.rsn-cap__text {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--rsn-text-grey);
  margin: 0;
}

/* ============ ADVANTAGE TAGS ============ */
.rsn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.rsn-tag {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(224,96,32,0.18);
  border: 1px solid rgba(224,96,32,0.5);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
}

/* ============ CUSTOMERS LIST ============ */
.rsn-customers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.rsn-customer {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem 1.8rem;
  border-radius: 4px;
  transition: border-color 0.2s;
}
.rsn-customer:hover { border-color: var(--rsn-tomato); }

/* ============ CONTACT ============ */
.rsn-contact-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}
.rsn-contact-item {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #fff;
}
.rsn-contact-item strong {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rsn-tomato);
  margin-bottom: 0.4rem;
}
.rsn-contact-item a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--rsn-tomato);
}
.rsn-contact-item a:hover { color: var(--rsn-tomato); }

/* ============ FOOTER ============ */
.rsn-footer {
  background: var(--rsn-black);
  color: #fff;
  padding: 4rem 2.5rem 2rem;
}
.rsn-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.rsn-footer__col h4 {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rsn-tomato);
  margin: 0 0 1.1rem;
}
.rsn-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rsn-footer__col ul li {
  margin-bottom: 0.6rem;
}
.rsn-footer__col ul li a {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--rsn-light-grey);
  text-decoration: none;
}
.rsn-footer__col ul li a:hover { color: #fff; }
.rsn-footer__addr {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--rsn-light-grey);
}
.rsn-footer__bottom {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-family: "Sofia Sans", sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--rsn-light-grey);
}
.rsn-footer__bottom a { color: var(--rsn-tomato); text-decoration: none; }

/* ============ PAGE HEADER (interior pages) ============ */
.rsn-page-header {
  background: var(--rsn-black);
  color: #fff;
  padding: 9rem 2.5rem 4rem;
  text-align: center;
}
.rsn-page-header__title {
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .rsn-caps { grid-template-columns: 1fr 1fr; }
  .rsn-customers { grid-template-columns: 1fr; }
  .rsn-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rsn-caps { grid-template-columns: 1fr; }
  .rsn-nav { padding: 0.9rem 1.2rem; }
  .rsn-nav__menu { display: none; }
}

/* Full-bleed footer + kill residual whitespace */
html, body { margin: 0 !important; padding: 0 !important; }
.rsn-footer { width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-bottom: 0 !important; }
.rsn-section, .rsn-hero, .rsn-page-header, .rsn-footer { margin-bottom: 0 !important; }
body main.wp-block-group.has-global-padding,
body .wp-block-post-content { padding-bottom: 0 !important; }

body .wp-site-blocks > header.wp-block-template-part,
body .wp-site-blocks > footer.wp-block-template-part { display:none !important; }
body main.wp-block-group.has-global-padding { padding-bottom:0 !important; padding-top:0 !important; }

/* =============================================================
   MOBILE — Customers page responsive fix (deployed 2026-08-22)
   Fixes horizontal overflow + cramping on phone screens.
   Applies to all pages (shared nav/section/footer shells).
   ============================================================= */

/* ---- Small phones & narrow screens (≤600px) ---- */
@media (max-width: 600px) {

  /* Kill horizontal scroll safety net */
  html, body { overflow-x: hidden; }

  /* Section shell: shrink fixed horizontal padding */
  .rsn-section { padding: 3.5rem 1.25rem; }
  .rsn-container { width: 100%; }

  /* Page header: reduce top pad + let title scale without overflow */
  .rsn-page-header { padding: 7.5rem 1.25rem 3rem; }
  .rsn-page-header__title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.15;
    word-break: break-word;
  }

  /* Nav: shrink so logo + Contact + search fit on one line */
  .rsn-nav { padding: 0.75rem 1.1rem; flex-wrap: nowrap; }
  .rsn-nav__logo img { height: 36px; }
  .rsn-nav__cta { gap: 0.5rem; }
  .rsn-nav__cta .rsn-btn--ghost {
    padding: 0.45rem 0.9rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .rsn-nav__search { font-size: 1rem; padding: 0.4rem; }

  /* Body/lead copy */
  .rsn-lead { font-size: 1rem; }

  /* Customers grid + cards */
  .rsn-customers { gap: 1.1rem; }
  .rsn-customer {
    font-size: 1.05rem;
    padding: 1.4rem 1.2rem;
  }

  /* Footer bottom: stack, centre */
  .rsn-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ---- Very narrow phones (≤400px) ---- */
@media (max-width: 400px) {
  .rsn-nav__cta { gap: 0.3rem; }
  .rsn-nav__cta .rsn-btn--ghost { padding: 0.4rem 0.7rem; font-size: 0.65rem; }
  .rsn-customer { font-size: 0.95rem; padding: 1.2rem 1rem; }
  .rsn-page-header__title { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* =============================================================
   NAVBAR LOGO — consistent height across pages (deployed 2026-08-28)
   Constrain by HEIGHT so the fixed navbar stays a uniform slim
   bar on every page (was 160px wide -> 112px tall, inflating the
   inner-page navbar to 2.5x the homepage bar height).
   Matches orion_ref/home_v2.html .navbar-logo .rsn-logo-img { height:44px; width:auto; }
   ============================================================= */
.navbar-logo img {
  width: 10rem;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Slightly smaller on phones so it fits the one-line bar */
@media (max-width: 700px) {
  .navbar-logo img { width: 8.5rem; }
}


/* =============================================================
   PAGE-TO-PAGE TRANSITION — smooth cross-fade (restored 2026-08-28)
   Uses the CSS View Transitions API: opts the site back into the
   browser-native cross-document fade for same-origin navigations.
   Pure CSS — no JS, no extra requests. Graceful: browsers without
   support simply navigate normally (no breakage).
   Reference: MDN "View Transitions API — same-document & cross-doc".
   NOTE: does not touch .navbar-logo sizing/colours/layout.
   ============================================================= */
@view-transition {
  navigation: auto;
}

/* Tasteful fade for the whole page when navigating */
::view-transition-old(root) {
  animation: rsn-page-out 180ms ease-in both;
}
::view-transition-new(root) {
  animation: rsn-page-in 280ms ease-out both;
}

@keyframes rsn-page-out {
  to { opacity: 0; }
}
@keyframes rsn-page-in {
  from { opacity: 0; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
/* =============================================================
   REMOVE CIRCULAR PAGE-NAV ARROW BUTTONS (deployed 2026-08-28)
   Hide the round "previous/next page" chevron buttons in the
   hero of every page. .hero-arrow and its left/right variants.
   ============================================================= */
.hero-arrow,
.hero-arrow--left,
.hero-arrow--right {
  display: none !important;
}

/* =============================================================
   Contact page — centre icon inside orange circle (fix 2026-08-28)
   Theme rule used justify-content: space-between; overridden to center
   ============================================================= */
.contact-detail-icon {
  justify-content: center !important;
}
