/* RMS2U shared chrome - navy / gold (not Raico cream/terra) */
:root {
  --primary: #1a3a6b;
  --primary-dk: #0d2345;
  --primary-lt: #2a5bbf;
  --accent: #e8a020;
  --accent-dk: #c98a10;
  --light: #f5f8ff;
  --text: #2d2d2d;
  --muted: #6b7280;
  --white: #ffffff;
  --line: #e8edf5;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 58, 107, 0.12);
  --transition: 0.3s ease;
  --nav-h: 70px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
  border: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dk);
}

.btn-outline-navy {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-navy:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-wa {
  background: #25d366;
  color: var(--white);
}

.btn-wa:hover {
  background: #1da855;
}

/* ── Site nav ── */
#site-nav nav.site-nav,
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  height: var(--nav-h);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.site-nav .nav-logo img {
  height: 44px;
  width: auto;
}

/* Content hero photo layer (Phase 1 service pages) */
.has-hero-img {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 38vw, 520px);
  display: flex;
  align-items: center;
}

.has-hero-img .hero-media {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}

.has-hero-img .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}

/* Left navy scrim - ~45% for H1/lede readability */
.has-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 35, 69, 0.97) 0%,
    rgba(13, 35, 69, 0.92) 38%,
    rgba(26, 58, 107, 0.72) 58%,
    rgba(26, 58, 107, 0.28) 78%,
    rgba(26, 58, 107, 0) 92%
  );
}

.has-hero-img .content-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .has-hero-img .hero-media img {
    object-position: 70% center;
  }
}

.site-nav .nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.site-nav .nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.site-nav .nav-links a:not(.btn):hover,
.site-nav .nav-links a.is-active {
  color: var(--primary);
}

.site-nav .nav-links a:not(.btn):hover::after,
.site-nav .nav-links a.is-active::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  padding: 10px 22px !important;
  font-size: 0.85rem !important;
}

.site-nav .nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.site-nav .nav-burger span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  display: block;
}

body.has-site-nav {
  padding-top: var(--nav-h);
}

@media (max-width: 900px) {
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .site-nav .nav-links.open {
    display: flex;
  }

  .site-nav .nav-burger {
    display: flex;
  }
}

/* ── Footer ── */
#site-footer footer,
footer.site-footer {
  background: var(--primary-dk);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
  /* logo.png has an opaque white canvas - do not invert or it becomes a white slab */
  background: transparent;
  border-radius: 6px;
}

.site-footer .footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.site-footer .footer-social {
  display: flex;
  gap: 10px;
}

.site-footer .social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.site-footer .social-btn:hover {
  background: var(--accent);
}

.site-footer .social-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.site-footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Floating WA ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 998;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 58, 107, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  font-size: 1.1rem;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
