/* Richmond Systems Ltd — clean rebuild of the Squarespace (Bedford) design.
   Fonts are self-hosted in /assets/fonts/fonts.css under the original family
   names: freight-sans-pro (Mulish), proxima-nova (Montserrat),
   adobe-garamond-pro (EB Garamond), Open Sans. */

:root {
  --blue: #437BAD;
  --link: #3682B5;
  --text: rgba(26, 26, 26, 0.75);
  --heading: #4A4A4A;
  --footer-bg: #575757;
  --rule: #DDDDDD;
  --header-h: 140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  font-family: 'freight-sans-pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--blue);
  height: var(--header-h);
}

.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo img { display: block; height: 88px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav > ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item > a {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
}
.nav-item > a:hover { text-decoration: none; opacity: 0.8; }
.nav-item.active > a { opacity: 0.9; }

.nav-btn > a {
  border: 2px solid #FFFFFF;
  border-radius: 22px;
  padding: 9px 22px;
  margin-left: 8px;
}
.nav-btn > a:hover { background: #FFFFFF; color: var(--blue); opacity: 1; }

/* dropdowns */
.has-sub { position: relative; }
.subnav {
  list-style: none;
  margin: 0; padding: 8px 0;
  position: absolute;
  top: 100%; left: 0;
  min-width: 230px;
  background: #FFFFFF;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  display: none;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { display: block; }
.subnav a {
  display: block;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1A1A1A;
}
.subnav a:hover { background: #F0F4F8; text-decoration: none; }
.subnav .active a { color: var(--blue); }

.nav-toggle { display: none; }

/* ---------------------------------------------------------------- banner */
.banner {
  position: relative;
  margin-top: var(--header-h);
  height: 480px;
  overflow: hidden;
}
.banner-tall { height: 600px; }

.banner-img {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.banner-text h1 {
  margin: 0;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 5.5vw, 64px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.banner-sub {
  margin: 18px 0 0;
  font-family: 'adobe-garamond-pro', Georgia, serif;
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: 1px;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.banner-cta { margin: 28px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #FFFFFF;
  font-family: 'proxima-nova', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 30px;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
}
.btn:hover { background: #386893; text-decoration: none; }

/* ---------------------------------------------------------------- content */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 28px 6px;
}

.content.with-sidebar {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  align-items: start;
}

.sidebar-title {
  margin: 0 0 10px;
  font-family: 'adobe-garamond-pro', Georgia, serif;
  font-size: 21px;
  color: #4A6B8A;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0 0 10px; }
.sidebar a {
  font-family: 'proxima-nova', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9B9B9B;
}
.sidebar .active a { color: #1A1A1A; }

h2 {
  margin: 0 0 22px;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.25;
}
* + h2 { margin-top: 40px; }

p { margin: 0 0 18px; }
strong { color: rgba(26, 26, 26, 0.85); }

ul.specs { margin: 0 0 22px; padding-left: 24px; }
ul.specs li { margin-bottom: 6px; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 44px 0;
}

/* floated inline images (home + mobilescale) */
.float-right, .float-left { margin-bottom: 18px; }
.float-right { float: right; width: 40%; margin-left: 28px; }
.float-left { float: left; width: 40%; margin-right: 28px; }
.clear { clear: both; }

/* side-by-side text + photo (handhelds) */
.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 36px;
  align-items: start;
}

/* product photos on the Juniper page */
.product-photo { margin: 0 0 22px; text-align: center; }
.product-photo img { max-height: 420px; width: auto; }

/* product screenshot (NetScale) */
.screenshot { text-align: center; margin: 32px 0 22px; }
.screenshot img {
  max-width: 680px;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

/* contact page layout */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}
.map-frame { width: 100%; height: 420px; border: 0; }

/* inquiry form (help page) */
.inquiry-form label { display: block; margin: 16px 0 5px; font-weight: 600; }
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  max-width: 540px;
  padding: 10px;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
}
.inquiry-form textarea { min-height: 130px; }
.inquiry-form .required { color: #A33333; }
.inquiry-form button { margin-top: 20px; }

/* ---------------------------------------------------------------- footer */
.page-body { position: relative; }

/* bottom-right of the content area, level with the bottom of the floated image */
.top-link {
  position: absolute;
  right: 0;
  bottom: 18px;
  margin: 0;
}
.top-link a {
  font-size: 13px;
  letter-spacing: 1px;
  color: #9B9B9B;
}

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px 24px;
  font-family: 'proxima-nova', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
}
.site-footer p { margin: 0 0 6px; }
.footer-name { text-transform: uppercase; font-size: 15px; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 980px) {
  :root { --header-h: 72px; }

  .site-logo img { height: 48px; }

  .nav-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 26px; height: 3px;
    background: #FFFFFF;
    margin: 5px 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .nav-item > a { padding: 12px 28px; }
  .nav-btn > a { border: 0; border-radius: 0; margin: 0; padding: 12px 28px; }
  .subnav {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0 0 4px;
  }
  .subnav a { color: rgba(255, 255, 255, 0.85); padding: 9px 46px; }
  .subnav a:hover { background: none; }
  .subnav .active a { color: #FFFFFF; }

  .banner, .banner-tall { height: 340px; }

  .content { padding: 40px 20px 6px; }
  .content.with-sidebar { grid-template-columns: 1fr; gap: 28px; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }

  .split, .contact-grid { grid-template-columns: 1fr; }

  .top-link { position: static; text-align: right; margin: 12px 0 0; }

  .float-right, .float-left {
    float: none;
    width: auto;
    max-width: 420px;
    margin: 0 auto 22px;
    display: block;
  }
}
