:root {
  --ink: #102022;
  --muted: #52646a;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: rgba(16, 32, 34, 0.14);
  --forest: #153d35;
  --teal: #006a71;
  --safety: #c8e25a;
  --amber: #d79a32;
  --steel: #dbe5e7;
  --shadow: 0 20px 60px rgba(16, 32, 34, 0.16);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.scrolled {
  background: rgba(247, 248, 245, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(16, 32, 34, 0.08);
  padding-block: 12px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
}

.site-header.scrolled .brand-mark {
  border-color: rgba(16, 32, 34, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: currentColor;
  font-size: 0.75rem;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: currentColor;
  font-size: 0.94rem;
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
  outline: none;
}

.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a:focus-visible,
.site-header.scrolled .site-nav a[aria-current="page"] {
  background: rgba(0, 106, 113, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 20, 22, 0.9) 0%, rgba(6, 20, 22, 0.7) 36%, rgba(6, 20, 22, 0.18) 72%),
    linear-gradient(0deg, rgba(6, 20, 22, 0.72) 0%, rgba(6, 20, 22, 0.06) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 136px 0 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--safety);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.45rem, 5.1vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: var(--safety);
  color: #16230f;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin: 52px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(5, 22, 23, 0.34);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.hero-facts div:has(a:hover),
.hero-facts div:has(a:focus-visible) {
  background: rgba(200, 226, 90, 0.16);
  transform: translateY(-1px);
}

.hero-facts a:focus-visible {
  outline: none;
}

.hero-facts dt {
  margin-bottom: 4px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.section-band {
  background: var(--white);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(66px, 9vw, 112px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro p:last-child,
.section-heading p,
.capability p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.capabilities {
  display: grid;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.service-link {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 420px;
  padding: clamp(26px, 5vw, 48px);
  background: var(--paper);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.service-link:hover,
.service-link:focus-visible {
  background: var(--white);
  outline: none;
}

.service-link span,
.reference-grid span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-link h2 {
  font-size: clamp(1.65rem, 2.8vw, 3rem);
}

.service-link p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.capability {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: clamp(30px, 7vw, 92px);
  align-items: center;
  padding: clamp(66px, 9vw, 120px) max(18px, calc((100vw - 1180px) / 2));
  background: var(--paper);
}

.capability.alt {
  background: #eef5f4;
}

.capability-copy {
  max-width: 700px;
}

.capability-copy p:last-child {
  margin-top: 22px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  min-height: 58px;
  padding: 16px 18px 16px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 35px rgba(16, 32, 34, 0.06);
  font-weight: 700;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--safety);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading p {
  margin-top: 18px;
}

.branch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.branch-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 13px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.branch-tab.active,
.branch-tab:hover,
.branch-tab:focus-visible {
  border-color: var(--teal);
  background: var(--forest);
  color: var(--white);
  outline: none;
}

.branch-panel {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-height: 158px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(200, 226, 90, 0.2), rgba(0, 106, 113, 0.08)),
    var(--white);
  box-shadow: var(--shadow);
}

.branch-meta {
  display: grid;
  gap: 8px;
}

.branch-meta span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branch-meta strong {
  font-size: 1.6rem;
  line-height: 1.05;
}

.branch-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.process {
  background: var(--forest);
  color: var(--white);
}

.page-hero {
  position: relative;
  padding-top: 72px;
  background:
    linear-gradient(90deg, rgba(6, 20, 22, 0.88), rgba(6, 20, 22, 0.68)),
    url("assets/rhf-alliance-hero.png") center / cover;
  color: var(--white);
}

.page-hero-inner {
  min-height: 520px;
  display: grid;
  align-content: end;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.two-column article {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 520px;
  padding: clamp(34px, 7vw, 74px) max(18px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

.two-column article:nth-child(2) {
  background: #eef5f4;
}

.two-column h2 {
  font-size: clamp(2rem, 3.8vw, 4rem);
}

.two-column p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.two-column .section-intro {
  color: var(--forest);
  font-size: 1.16rem;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.reference-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.reference-card:hover {
  background: var(--white);
  box-shadow: 0 16px 42px rgba(16, 32, 34, 0.1);
  transform: translateY(-2px);
}

.reference-grid h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.reference-grid p {
  margin: 0;
  color: var(--muted);
}

.reference-preview {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 34, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 106, 113, 0.12), rgba(200, 226, 90, 0.18)),
    var(--white);
}

.image-preview {
  padding: 0;
  background: #fbf8e8;
}

.image-preview img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  object-position: center;
}

.phone-shell {
  display: grid;
  gap: 10px;
  width: 78px;
  min-height: 126px;
  margin: 0 auto;
  border: 2px solid var(--forest);
  border-radius: 18px;
  padding: 15px 10px 12px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(16, 32, 34, 0.12);
}

.phone-shell span {
  width: 24px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--line);
}

.phone-shell strong,
.browser-preview strong,
.dashboard-preview strong {
  color: var(--forest);
  font-size: 0.78rem;
  line-height: 1;
}

.phone-shell i,
.browser-preview i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 106, 113, 0.16);
}

.phone-shell i:nth-of-type(2),
.browser-preview i:nth-of-type(2) {
  width: 72%;
}

.browser-preview {
  align-content: start;
  gap: 14px;
}

.rental-preview {
  background:
    linear-gradient(135deg, rgba(215, 154, 50, 0.16), rgba(0, 106, 113, 0.16)),
    var(--white);
}

.browser-bar {
  display: flex;
  gap: 5px;
  margin: -6px -6px 4px;
  padding: 9px;
  border-radius: 6px;
  background: rgba(16, 32, 34, 0.08);
}

.browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.dashboard-preview {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dashboard-preview strong {
  grid-column: 1 / -1;
}

.dashboard-preview span {
  min-height: 70px;
  border-radius: 6px;
  background: rgba(0, 106, 113, 0.14);
}

.dashboard-preview span:nth-of-type(2) {
  background: rgba(200, 226, 90, 0.36);
}

.flow-preview {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.flow-preview span {
  position: relative;
  min-height: 82px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(16, 32, 34, 0.1);
}

.flow-preview span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 106, 113, 0.18);
  box-shadow: 0 20px 0 rgba(200, 226, 90, 0.45);
}

.text-link {
  align-self: end;
  width: fit-content;
  margin-top: 4px;
  color: var(--teal);
  font-weight: 900;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--forest);
  outline: none;
}

.demo-section {
  background: var(--forest);
  color: var(--white);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 560px);
  gap: clamp(30px, 7vw, 80px);
  align-items: center;
}

.demo-grid h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.demo-grid p:not(.section-kicker) {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

.video-placeholder {
  display: grid;
  align-content: center;
  min-height: 315px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  background:
    linear-gradient(135deg, rgba(200, 226, 90, 0.24), rgba(0, 106, 113, 0.18)),
    rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.video-placeholder span {
  color: var(--safety);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-placeholder strong {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.video-placeholder p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.process .section-kicker {
  color: var(--safety);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.process-steps li {
  min-height: 250px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.process-steps span {
  color: var(--safety);
  font-weight: 900;
}

.process-steps h3 {
  margin: 48px 0 10px;
  font-size: 1.45rem;
}

.process-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 520px);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.contact p {
  margin-top: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 30px);
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 32, 34, 0.22);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 106, 113, 0.18);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: #0c1819;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--safety);
  font-weight: 800;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 118px 0 26px;
  }

  .hero-facts,
  .service-links,
  .intro-grid,
  .capability,
  .branch-panel,
  .process-steps,
  .contact-grid,
  .two-column,
  .reference-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    margin-top: 32px;
  }

  .hero-media img {
    object-position: 67% center;
  }

  .capability {
    padding-inline: 18px;
  }

  .process-steps li {
    min-height: 190px;
  }

  .process-steps h3 {
    margin-top: 30px;
  }

  .service-link,
  .two-column article {
    min-height: auto;
  }

  .page-hero-inner {
    min-height: 460px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.6vw, 2.25rem);
    line-height: 1;
  }

  .hero-lead {
    max-width: 100%;
    margin-top: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-facts {
    margin-top: 26px;
  }

  .hero-facts div {
    padding: 14px;
  }

  .hero-facts dd {
    font-size: 0.86rem;
  }

  .section-inner {
    width: min(calc(100% - 28px), 1180px);
  }

  .branch-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .branch-tab {
    padding-inline: 8px;
    font-size: 0.9rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
