/* ============================================================
   JP ROBOTIC — UNIFIED SYSTEM STYLESHEET
   Requires 00-tokens.css loaded first.
   ============================================================ */

/* ── BASE RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400; /* Bumped from 300 to fix thin/gaunt body text */
  overflow-x: hidden;
  transition: background-color .25s, color .25s;
}

p,
body,
.field-content {
  font-family: var(--fb) !important;
  color: var(--text) !important;
  font-weight: 400 !important; /* Bumped from 300 !important */
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--fd) !important;
  color: var(--heading) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

h2,
.h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
}

h3,
.h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

/* ── HERO ── */
.jpr-h1 {
  font-family: var(--fd) !important;
  font-size: clamp(52px, 7vw, 96px) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  line-height: .95;
  color: var(--heading) !important;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue) !important;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.jpr-hero .container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 40px;
}

.jpr-hero-content,
.jpr-hero-inner {
  flex: 1;
}

.jpr-hero-panel {
  background-color: var(--bg2) !important;
  border-left: 1px solid var(--border);
  display: flex !important;
  flex-direction: column !important;
  width: 380px !important;
  flex-shrink: 0;
}

.jpr-hero .col-lg-4.jpr-hero-panel {
  width: 380px !important;
}

.jpr-panel-hd {
  background-color: var(--surface) !important;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.jpr-panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fd);
  font-size: 15px;
  font-weight: 700;
  color: var(--heading) !important;
}

.jpr-fact {
  background-color: transparent !important;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
}

.jpr-fact-num {
  font-family: var(--fd) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  color: var(--heading) !important;
  flex: 0 0 auto !important;
  letter-spacing: 2px;
}

.jpr-fact-lbl {
  font-family: var(--fm);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted) !important;
  display: block;
}

.jpr-fact-detail {
  font-size: 12px;
  color: var(--text) !important;
  line-height: 1.4;
}

/* ── NAVIGATION ── */
:root {
  --nav-text: #9aa3af;
}

.navbar-nav .nav-link,
.dropdown-menu .dropdown-item {
  font-family: var(--fd) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  color: var(--nav-text) !important;
}

.nav-link.nav-link--contact-us {
  background-color: var(--blue) !important;
  color: var(--card) !important;
  padding: 8px 20px !important;
  margin: 0 12px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center;
  clip-path: polygon(0 0, 88% 0, 100% 25%, 100% 100%, 12% 100%, 0 75%);
  transition: all .2s ease-in-out !important;
}

.nav-link.nav-link--contact-us:hover {
  background-color: var(--blue-lt) !important;
  transform: translateY(-1px);
  opacity: 1 !important;
}

/* ── BUTTON SYSTEM & ALIGNMENT ── */
.d-flex.gap-3,
.d-flex.justify-content-center,
.jpr-cta-inner {
  align-items: center !important;
}

.btn-jpr,
.btn-jpr-ghost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  padding: 0 28px !important;
  margin: 0 !important;
  font-family: var(--fd) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease !important;
}

.jpr-section .btn-jpr,
.jpr-section .btn-jpr-ghost,
.jpr-hero .btn-jpr,
.jpr-hero .btn-jpr-ghost {
  margin-top: 24px !important;
}

.btn-jpr {
  background: var(--blue) !important;
  color: var(--card) !important;
  border: none !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn-jpr:hover {
  transform: translateY(-2px) !important;
  background-color: var(--blue-lt) !important;
  color: var(--card) !important;
}

.btn-jpr-ghost {
  background-color: rgba(0, 153, 230, 0.15) !important;
  border: 1px solid rgba(0, 153, 230, 0.4) !important;
  color: var(--heading) !important;
}

.btn-jpr-ghost:hover {
  background-color: rgba(0, 153, 230, 0.28) !important;
  border-color: rgba(0, 153, 230, 0.75) !important;
  color: var(--heading) !important;
  transform: translateY(-2px) !important;
}

/* ── CARDS & IMAGE OVERLAYS ── */
.jpr-img-wrap {
  position: relative;
  overflow: hidden;
}

.jpr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: var(--img-f);
  transition: all .4s;
}

.jpr-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  z-index: 2;
  background: var(--overlay-gradient) !important;
}

.jpr-img-type {
  color: var(--blue) !important;
  font-family: var(--fm) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .15em !important;
  margin-bottom: 8px !important;
  font-weight: bold !important;
}

.jpr-img-title {
  color: #ffffff !important;
  font-family: var(--fd) !important;
  font-size: 24px !important;
  font-weight: bold !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

.jpr-img-sub {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px !important;
}

.jpr-ind {
  position: relative;
  overflow: hidden;
  min-height: 320px !important;
}

.jpr-ind img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: var(--img-f);
  transition: all .4s;
}

.jpr-ind-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 2;
  background: var(--overlay-gradient) !important;
}

.jpr-ind-num {
  color: var(--blue) !important;
  font-family: var(--fm) !important;
  font-size: 12px !important;
  letter-spacing: .15em !important;
  margin-bottom: 8px !important;
  font-weight: bold !important;
}

.jpr-ind-title {
  color: #ffffff !important;
  font-family: var(--fd) !important;
  font-size: 18px !important;
  font-weight: bold !important;
  margin-bottom: 6px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.jpr-ind-focus {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* ── CONTACT & FORMS ── */
.contact-info-block {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.contact-value {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  margin-bottom: 30px;
}

.expect-number {
  font-family: var(--fd) !important;
  font-size: clamp(2rem, 5vw, 2.8rem) !important;
  font-weight: 900 !important;
  color: var(--blue) !important;
  line-height: 1;
}

.dark-section-form input,
.dark-section-form textarea {
  background-color: #0b0d0f !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  padding: 12px 15px !important;
  font-family: var(--fd) !important;
}

.dark-section-form label {
  color: var(--blue) !important;
  font-size: .75rem !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

.form-type-password input,
#edit-protected-page-enter-password input[type="password"] {
  max-width: 320px;
}

#edit-captcha-response,
[data-drupal-selector="edit-captcha-response"] {
  max-width: 120px;
}

.webform-submission-form,
form.protected-pages-enter-password,
form.captcha-type-challenge--math {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

form .captcha,
form fieldset.captcha,
form [data-drupal-selector="edit-captcha"] {
  order: 10;
  width: 100%;
}

form .form-actions,
form [data-drupal-selector="edit-actions"],
form button[type="submit"],
form input[type="submit"] {
  order: 20;
  align-self: flex-start;
  justify-content: flex-start;
  margin-left: 0;
  text-align: left;
}

/* ── SECTION RHYTHM & UTILITIES ── */
.jpr-section {
  padding-top: clamp(64px, 8vw, 120px) !important;
  padding-bottom: clamp(64px, 8vw, 120px) !important;
}

.jpr-section h2,
.jpr-hero h1 {
  margin-bottom: 32px !important;
}

.jpr-section .eyebrow {
  margin-bottom: 20px !important;
}

.jpr-section p {
  margin-bottom: 24px !important;
}

.jpr-sdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px rgba(34, 197, 94, .7);
  animation: blink 2s infinite;
  display: inline-block;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .3;
  }
}

/* ── RESPONSIVE & LAYOUT OVERRIDES ── */
@media (min-width: 992px) {
  .row {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .col-lg-8 {
    width: 66% !important;
  }

  .col-lg-4 {
    width: 33% !important;
  }
}

@media (max-width: 991px) {
  .contact-info-block {
    border-left: none;
    padding-left: 0;
  }

  .nav-link.nav-link--contact-us {
    margin: 15px 0 !important;
    width: fit-content;
  }
}

.container,
.container-fluid,
.layout-container {
  max-width: var(--max) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: var(--pad) !important;
  padding-right: var(--pad) !important;
}

#block-bootstrap-barrio-content,
.region-content,
.node__content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Excludes card titles/subtexts so dark mode fixes don't override image overlays */
html[data-bs-theme="light"] :not(.jpr-img-overlay):not(.jpr-ind-body) > [style*="color:white"],
html[data-bs-theme="light"] :not(.jpr-img-overlay):not(.jpr-ind-body) > [style*="color:#fff"] {
  color: var(--heading) !important;
}

[data-theme] h1[style],
[data-theme] h2[style] {
  color: var(--heading) !important;
}

/* Adds space below Add-To-Any so these icons dont touch footer */
.a2a_kit {
  margin-bottom: 24px;
}