/*
 * Shared J. Connelly UI tokens and component refinements.
 * Loaded only on the custom homepage, Rental Categories Index, and Contact template.
 */

:root {
  --jcr-brand-blue: #4199FF;
  --jcr-brand-white: #FFFFFF;
  --jcr-brand-grey: #A6A6A6;
  --jcr-brand-black: #000000;
  --jcr-theme-blue: var(--blue, #008EF5);
  --jcr-ui-blue: var(--jcr-theme-blue);
  --jcr-ui-blue-dark: #007AD1;
  --jcr-ui-blue-deep: #006FBD;
  --jcr-ui-blue-soft: #E3F4FF;
  --jcr-ui-navy: #00375F;
  --jcr-ui-navy-mid: #004A77;
  --jcr-ui-navy-deep: #061D31;
  --jcr-ui-ink: #0D1722;
  --jcr-ui-muted: #52616B;
  --jcr-ui-panel: #F4F9FC;
  --jcr-ui-panel-strong: #EAF5FC;
  --jcr-ui-border: #D5E1EA;
  --jcr-ui-border-soft: rgba(0, 55, 95, 0.16);
  --jcr-ui-radius: 2px;
  --jcr-ui-shadow-card: 0 1.2rem 2.8rem rgba(0, 55, 95, 0.11);
  --jcr-ui-shadow-panel: 0 2rem 5rem rgba(3, 31, 52, 0.15);
  --jcr-ui-focus: rgba(0, 142, 245, 0.32);
}

.jcr-template-homepage,
.jcr-rental-category-index-page,
.jcr-contact-page {
  --jcr-page-blue: var(--jcr-ui-blue);
  --jcr-page-navy: var(--jcr-ui-navy);
  --jcr-page-navy-deep: var(--jcr-ui-navy-deep);
  --jcr-page-border: var(--jcr-ui-border);
  --jcr-page-radius: var(--jcr-ui-radius);
  --jcr-page-shadow-card: var(--jcr-ui-shadow-card);
  --jcr-page-shadow-panel: var(--jcr-ui-shadow-panel);
}

.jcr-contact-page,
.jcr-template-homepage .jcr-form-card,
.jcr-contact-page .jcr-form-card {
  --jcr-contact-blue: var(--jcr-ui-blue);
  --jcr-contact-blue-dark: var(--jcr-ui-blue-dark);
  --jcr-contact-navy: var(--jcr-ui-navy);
  --jcr-contact-deep: var(--jcr-ui-navy-deep);
  --jcr-contact-muted: var(--jcr-ui-muted);
  --jcr-contact-panel: var(--jcr-ui-panel);
  --jcr-contact-border: var(--jcr-ui-border-soft);
  --jcr-contact-shadow: var(--jcr-ui-shadow-panel);
  --jcr-contact-radius: var(--jcr-ui-radius);
  --jcr-form-blue: var(--jcr-ui-blue);
  --jcr-form-blue-dark: var(--jcr-ui-blue-dark);
  --jcr-form-navy: var(--jcr-ui-navy);
  --jcr-form-muted: var(--jcr-ui-muted);
  --jcr-form-border: var(--jcr-ui-border);
  --jcr-form-panel: var(--jcr-ui-panel);
  --jcr-form-radius: var(--jcr-ui-radius);
}

.jcr-template-homepage .cta,
.jcr-rental-category-index-page .cta,
.jcr-contact-page .jcr-contact-btn,
.jcr-template-homepage .jcr-featured-path-link,
.jcr-template-homepage .jcr-btn,
.jcr-rental-category-index-page .jcr-btn,
.jcr-contact-page .jcr-btn {
  --jcr-button-bg: transparent;
  --jcr-button-border: rgba(255, 255, 255, 0.86);
  --jcr-button-fill: var(--jcr-brand-white);
  --jcr-button-fill-width: 0%;
  --jcr-button-fill-hover-width: 100%;
  --jcr-button-text: var(--jcr-brand-white);
  --jcr-button-hover-text: var(--jcr-ui-navy-deep);
  --jcr-button-shadow: none;
  align-items: center;
  background: var(--jcr-button-bg);
  border: 2px solid var(--jcr-button-border);
  border-radius: var(--jcr-ui-radius);
  box-shadow: var(--jcr-button-shadow);
  color: var(--jcr-button-text);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.055em;
  line-height: 1.15;
  min-height: 4.6rem;
  overflow: hidden;
  padding: 1.05rem 1.65rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 400ms ease, box-shadow 400ms ease, color 400ms ease, transform 400ms ease;
  width: max-content;
  max-width: 100%;
  isolation: isolate;
}

.jcr-template-homepage .cta::before,
.jcr-rental-category-index-page .cta::before,
.jcr-contact-page .jcr-contact-btn::before,
.jcr-template-homepage .jcr-featured-path-link::before,
.jcr-template-homepage .jcr-btn::before,
.jcr-rental-category-index-page .jcr-btn::before,
.jcr-contact-page .jcr-btn::before {
  background: var(--jcr-button-fill);
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: width 400ms ease;
  width: var(--jcr-button-fill-width);
  z-index: 0;
}

.jcr-template-homepage .cta > *,
.jcr-rental-category-index-page .cta > *,
.jcr-contact-page .jcr-contact-btn > *,
.jcr-template-homepage .jcr-featured-path-link > *,
.jcr-template-homepage .jcr-btn > *,
.jcr-rental-category-index-page .jcr-btn > *,
.jcr-contact-page .jcr-btn > * {
  position: relative;
  z-index: 1;
}

.jcr-template-homepage .cta:hover,
.jcr-template-homepage .cta:focus,
.jcr-rental-category-index-page .cta:hover,
.jcr-rental-category-index-page .cta:focus,
.jcr-contact-page .jcr-contact-btn:hover,
.jcr-contact-page .jcr-contact-btn:focus,
.jcr-template-homepage .jcr-featured-path-link:hover,
.jcr-template-homepage .jcr-featured-path-link:focus,
.jcr-template-homepage .jcr-btn:hover,
.jcr-template-homepage .jcr-btn:focus,
.jcr-rental-category-index-page .jcr-btn:hover,
.jcr-rental-category-index-page .jcr-btn:focus,
.jcr-contact-page .jcr-btn:hover,
.jcr-contact-page .jcr-btn:focus {
  border-color: var(--jcr-button-hover-border, var(--jcr-button-border));
  color: var(--jcr-button-hover-text);
  text-decoration: none;
  transform: translateY(-0.1rem);
}

.jcr-template-homepage .cta:hover::before,
.jcr-template-homepage .cta:focus::before,
.jcr-rental-category-index-page .cta:hover::before,
.jcr-rental-category-index-page .cta:focus::before,
.jcr-contact-page .jcr-contact-btn:hover::before,
.jcr-contact-page .jcr-contact-btn:focus::before,
.jcr-template-homepage .jcr-featured-path-link:hover::before,
.jcr-template-homepage .jcr-featured-path-link:focus::before,
.jcr-template-homepage .jcr-btn:hover::before,
.jcr-template-homepage .jcr-btn:focus::before,
.jcr-rental-category-index-page .jcr-btn:hover::before,
.jcr-rental-category-index-page .jcr-btn:focus::before,
.jcr-contact-page .jcr-btn:hover::before,
.jcr-contact-page .jcr-btn:focus::before {
  width: var(--jcr-button-fill-hover-width);
}

.jcr-template-homepage .cta:focus-visible,
.jcr-rental-category-index-page .cta:focus-visible,
.jcr-contact-page .jcr-contact-btn:focus-visible,
.jcr-template-homepage .jcr-featured-path-link:focus-visible,
.jcr-template-homepage .jcr-btn:focus-visible,
.jcr-rental-category-index-page .jcr-btn:focus-visible,
.jcr-contact-page .jcr-btn:focus-visible,
.jcr-template-homepage .jcr-homepage-search-form .search-field:focus,
.jcr-rental-category-index-page .jcr-rental-category-index-search input[type="search"]:focus {
  box-shadow: 0 0 0 3px var(--jcr-ui-focus);
  outline: 0;
}

.jcr-template-homepage .cta.cta-blue,
.jcr-rental-category-index-page .cta.cta-blue {
  --jcr-button-border: var(--jcr-ui-blue);
  --jcr-button-fill: var(--jcr-ui-blue);
  --jcr-button-hover-text: var(--jcr-brand-white);
  --jcr-button-text: var(--jcr-ui-blue);
  color: var(--jcr-button-text);
}

.jcr-template-homepage .jcr-btn--blue,
.jcr-rental-category-index-page .jcr-btn--blue,
.jcr-contact-page .jcr-btn--blue {
  --jcr-button-border: var(--jcr-ui-blue);
  --jcr-button-fill: var(--jcr-ui-blue);
  --jcr-button-hover-text: var(--jcr-brand-white);
  --jcr-button-text: var(--jcr-ui-blue);
  color: var(--jcr-button-text);
}

.jcr-template-homepage .jcr-homepage-search-form .cta,
.jcr-rental-category-index-page .jcr-rental-category-index-search .cta,
.jcr-contact-page .jcr-contact-btn--primary,
.jcr-template-homepage .jcr-btn--blue-solid,
.jcr-rental-category-index-page .jcr-btn--blue-solid,
.jcr-contact-page .jcr-btn--blue-solid {
  --jcr-button-bg: var(--jcr-ui-blue);
  --jcr-button-border: var(--jcr-ui-blue);
  --jcr-button-fill: var(--jcr-brand-white);
  --jcr-button-hover-border: var(--jcr-ui-blue);
  --jcr-button-hover-text: var(--jcr-ui-blue);
  --jcr-button-shadow: 0 0.8rem 1.8rem rgba(0, 55, 95, 0.14);
  --jcr-button-text: var(--jcr-brand-white);
  color: var(--jcr-button-text);
}

.jcr-rental-category-index-page .cta.cta-blue.jcr-rental-category-index-card-cta,
.jcr-rental-category-index-page .cta.cta-blue.jcr-rental-category-index-footer-cta,
.jcr-template-homepage .jcr-featured-path-link,
.jcr-template-homepage .jcr-btn--dark,
.jcr-rental-category-index-page .jcr-btn--dark,
.jcr-contact-page .jcr-btn--dark {
  --jcr-button-border: rgba(255, 255, 255, 0.74);
  --jcr-button-fill: var(--jcr-brand-white);
  --jcr-button-hover-text: var(--jcr-ui-navy-deep);
  --jcr-button-text: var(--jcr-brand-white);
  color: var(--jcr-button-text);
}

.jcr-contact-page .jcr-contact-btn--secondary {
  --jcr-button-border: var(--jcr-ui-blue);
  --jcr-button-fill: var(--jcr-ui-blue);
  --jcr-button-hover-text: var(--jcr-brand-white);
  --jcr-button-text: var(--jcr-ui-blue);
  color: var(--jcr-button-text);
}

.jcr-contact-page .jcr-contact-hero .jcr-contact-btn--secondary {
  --jcr-button-border: var(--jcr-brand-white);
  --jcr-button-fill: var(--jcr-brand-white);
  --jcr-button-fill-hover-width: 100%;
  --jcr-button-fill-width: 0%;
  --jcr-button-hover-text: var(--jcr-ui-blue);
  --jcr-button-text: var(--jcr-brand-white);
  color: var(--jcr-button-text);
}

.jcr-template-homepage .jcr-btn--white-solid,
.jcr-rental-category-index-page .jcr-btn--white-solid,
.jcr-contact-page .jcr-btn--white-solid {
  --jcr-button-border: var(--jcr-brand-white);
  --jcr-button-fill: var(--jcr-brand-white);
  --jcr-button-fill-hover-width: 100%;
  --jcr-button-fill-width: 0%;
  --jcr-button-hover-text: var(--jcr-ui-blue);
  --jcr-button-text: var(--jcr-brand-white);
  color: var(--jcr-button-text);
}

.jcr-template-homepage .cta.cta-blue,
.jcr-rental-category-index-page .cta.cta-blue {
  background: var(--jcr-button-bg);
  border-color: var(--jcr-button-border);
  color: var(--jcr-button-text);
}

.jcr-template-homepage .cta.cta-blue::before,
.jcr-rental-category-index-page .cta.cta-blue::before {
  background: var(--jcr-button-fill);
  width: var(--jcr-button-fill-width);
}

.jcr-template-homepage .cta:hover,
.jcr-template-homepage .cta:focus,
.jcr-rental-category-index-page .cta:hover,
.jcr-rental-category-index-page .cta:focus,
.jcr-contact-page .jcr-contact-btn:hover,
.jcr-contact-page .jcr-contact-btn:focus,
.jcr-template-homepage .jcr-featured-path-link:hover,
.jcr-template-homepage .jcr-featured-path-link:focus,
.jcr-template-homepage .jcr-btn:hover,
.jcr-template-homepage .jcr-btn:focus,
.jcr-rental-category-index-page .jcr-btn:hover,
.jcr-rental-category-index-page .jcr-btn:focus,
.jcr-contact-page .jcr-btn:hover,
.jcr-contact-page .jcr-btn:focus {
  color: var(--jcr-button-hover-text);
}

.jcr-template-homepage .cta.cta-blue:hover,
.jcr-template-homepage .cta.cta-blue:focus,
.jcr-rental-category-index-page .cta.cta-blue:hover,
.jcr-rental-category-index-page .cta.cta-blue:focus {
  border-color: var(--jcr-button-hover-border, var(--jcr-button-border));
  color: var(--jcr-button-hover-text);
}

.jcr-template-homepage .cta.cta-blue:hover::before,
.jcr-template-homepage .cta.cta-blue:focus::before,
.jcr-rental-category-index-page .cta.cta-blue:hover::before,
.jcr-rental-category-index-page .cta.cta-blue:focus::before {
  background: var(--jcr-button-fill);
  width: var(--jcr-button-fill-hover-width);
}

.jcr-template-homepage .jcr-homepage-search-form,
.jcr-rental-category-index-page .jcr-rental-category-index-search {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 4px solid var(--jcr-ui-blue);
  box-shadow: 0 1.4rem 3rem rgba(0, 35, 60, 0.18);
}

.jcr-template-homepage .jcr-homepage-search-form .search-field,
.jcr-rental-category-index-page .jcr-rental-category-index-search input[type="search"] {
  border: 1px solid rgba(0, 55, 95, 0.12);
  color: var(--jcr-ui-ink);
  min-height: 4.8rem;
}

.jcr-template-homepage .jcr-homepage-search-form .search-field::placeholder,
.jcr-rental-category-index-page .jcr-rental-category-index-search input[type="search"]::placeholder {
  color: #72808B;
}

.jcr-template-homepage .jcr-homepage-search-preview,
.jcr-rental-category-index-page .jcr-homepage-search-preview {
  border-color: var(--jcr-ui-border);
  border-radius: var(--jcr-ui-radius);
  box-shadow: 0 1.6rem 3.6rem rgba(0, 35, 60, 0.18);
}

.jcr-template-homepage .jcr-search-preview-link:hover,
.jcr-template-homepage .jcr-search-preview-link:focus,
.jcr-rental-category-index-page .jcr-search-preview-link:hover,
.jcr-rental-category-index-page .jcr-search-preview-link:focus,
.jcr-template-homepage .jcr-search-preview-all:hover,
.jcr-template-homepage .jcr-search-preview-all:focus,
.jcr-rental-category-index-page .jcr-search-preview-all:hover,
.jcr-rental-category-index-page .jcr-search-preview-all:focus {
  background: var(--jcr-ui-panel);
}

.jcr-template-homepage .jcr-search-preview-media,
.jcr-template-homepage .jcr-search-preview-loading::before,
.jcr-rental-category-index-page .jcr-search-preview-media,
.jcr-rental-category-index-page .jcr-search-preview-loading::before {
  background: var(--jcr-ui-blue);
}

.jcr-template-homepage .jcr-search-preview-media-fallback,
.jcr-rental-category-index-page .jcr-search-preview-media-fallback {
  background: linear-gradient(135deg, var(--jcr-ui-navy) 0%, var(--jcr-ui-blue) 100%);
}

.jcr-contact-page {
  background-color: var(--jcr-ui-blue-soft);
}

.jcr-contact-page .jcr-contact-details,
.jcr-contact-page .jcr-contact-location__grid,
.jcr-contact-page .jcr-contact-faq .container,
.jcr-contact-page .jcr-contact-empty .container {
  border-color: var(--jcr-ui-border-soft);
  border-radius: var(--jcr-ui-radius);
  box-shadow: var(--jcr-ui-shadow-card);
}

.jcr-contact-page .jcr-contact-hero::after,
.jcr-contact-page .jcr-contact-details__support {
  border-color: var(--jcr-ui-blue);
}

.jcr-contact-page .jcr-contact-hero::after {
  background: var(--jcr-ui-blue);
}

.jcr-rental-category-index-page .jcr-rental-category-index-eyebrow,
.jcr-rental-category-index-page .jcr-rental-category-index-child-count,
.jcr-contact-page .jcr-contact-eyebrow {
  color: var(--jcr-ui-blue);
}

.jcr-rental-category-index-page .jcr-rental-category-index-hero {
  background:
    linear-gradient(135deg, rgba(0, 55, 95, 0.5) 0%, rgba(65, 153, 255, 0.46) 100%),
    url("../../../images/header-welding-background.webp") center/cover no-repeat,
    var(--jcr-ui-navy);
}

.jcr-rental-category-index-page .jcr-rental-category-index-card,
.jcr-rental-category-index-page .jcr-rental-category-index-footer {
  background:
    radial-gradient(circle at 82% 12%, rgba(65, 153, 255, 0.16), rgba(65, 153, 255, 0) 34%),
    linear-gradient(135deg, var(--jcr-ui-navy-deep) 0%, var(--jcr-ui-navy) 62%, #083F66 100%);
  border-color: rgba(65, 153, 255, 0.22);
  border-radius: var(--jcr-ui-radius);
  box-shadow: 0 1.7rem 3.8rem rgba(0, 55, 95, 0.16);
}

.jcr-rental-category-index-page .jcr-rental-category-index-card:hover,
.jcr-rental-category-index-page .jcr-rental-category-index-card:focus-within {
  border-color: rgba(65, 153, 255, 0.66);
  box-shadow: 0 2rem 4.4rem rgba(0, 55, 95, 0.22);
}

.jcr-rental-category-index-page .jcr-rental-category-index-card-meta span {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.16rem, 0.9vw, 1.42rem);
}

.jcr-rental-category-index-page .jcr-rental-category-index-card-meta span + span::before {
  color: var(--jcr-ui-blue);
}

.jcr-rental-category-index-page .jcr-rental-category-index-children {
  background: rgba(234, 245, 252, 0.9);
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: var(--jcr-ui-radius);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 28, 46, 0.14);
}

.jcr-rental-category-index-page .jcr-rental-category-index-child {
  border-color: rgba(0, 55, 95, 0.12);
  border-radius: var(--jcr-ui-radius);
  box-shadow: 0 0.6rem 1.2rem rgba(0, 55, 95, 0.07);
}

.jcr-rental-category-index-page .jcr-rental-category-index-child:hover,
.jcr-rental-category-index-page .jcr-rental-category-index-child:focus {
  border-color: var(--jcr-ui-blue);
  box-shadow: 0 0.9rem 1.8rem rgba(0, 55, 95, 0.12), 0 0 0 2px rgba(65, 153, 255, 0.18);
  outline: 0;
}

.jcr-rental-category-index-page .jcr-rental-category-index-empty {
  background: rgba(234, 245, 252, 0.9);
  border-color: rgba(255, 255, 255, 0.74);
  border-left-color: var(--jcr-ui-blue);
  border-radius: var(--jcr-ui-radius);
}

.jcr-form-card {
  border-top-color: var(--jcr-ui-blue, #4199FF);
  box-shadow: var(--jcr-ui-shadow-panel, 0 2.4rem 5.2rem rgba(0, 0, 0, 0.22));
}

.jcr-form-tabs {
  background: var(--jcr-ui-panel, #f3f8fb);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 55, 95, 0.1);
}

.jcr-form-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--jcr-ui-radius, 2px);
  color: var(--jcr-ui-navy, #00375F);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.jcr-form-tab.active,
.jcr-form-tab.is-active {
  background: var(--jcr-ui-navy, #00375F);
  border-color: var(--jcr-ui-navy, #00375F);
  box-shadow: 0 0.6rem 1.2rem rgba(0, 55, 95, 0.18);
  color: var(--jcr-brand-white, #FFFFFF);
}

.jcr-form-tab:not(.active):not(.is-active):hover {
  background: var(--jcr-brand-white, #FFFFFF);
  border-color: rgba(65, 153, 255, 0.34);
}

.jcr-form-surface .wpcf7-form .form-cta {
  background: var(--jcr-ui-blue);
  border: 2px solid var(--jcr-ui-blue);
  border-radius: var(--jcr-ui-radius);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 55, 95, 0.14);
  overflow: hidden;
}

.jcr-form-surface .wpcf7-form .form-cta::before {
  background: var(--jcr-brand-white);
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: width 400ms ease;
  width: 0;
}

.jcr-form-surface .wpcf7-form .form-cta:hover::before,
.jcr-form-surface .wpcf7-form .form-cta:focus-within::before {
  width: 100%;
}

.jcr-form-surface .wpcf7-form.submitting .form-cta::before,
.jcr-form-surface .wpcf7-form.jcr-rental-date-submitting .form-cta::before {
  width: 0;
}

.jcr-form-surface .wpcf7-form .form-cta p {
  z-index: 1;
}

.jcr-form-surface .wpcf7-form .form-cta .wpcf7-submit,
.jcr-form-surface .wpcf7-form .form-cta input[type="submit"],
.jcr-form-surface .wpcf7-form .form-cta button[type="submit"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--jcr-brand-white);
  position: relative;
  transition: color 400ms ease;
  z-index: 1;
}

.jcr-form-surface .wpcf7-form .form-cta:hover .wpcf7-submit,
.jcr-form-surface .wpcf7-form .form-cta:focus-within .wpcf7-submit,
.jcr-form-surface .wpcf7-form .form-cta:hover input[type="submit"],
.jcr-form-surface .wpcf7-form .form-cta:focus-within input[type="submit"],
.jcr-form-surface .wpcf7-form .form-cta:hover button[type="submit"],
.jcr-form-surface .wpcf7-form .form-cta:focus-within button[type="submit"] {
  color: var(--jcr-ui-blue);
}

.jcr-form-surface .wpcf7-form.submitting .form-cta .wpcf7-submit,
.jcr-form-surface .wpcf7-form.jcr-rental-date-submitting .form-cta .wpcf7-submit,
.jcr-form-surface .wpcf7-form .form-cta .wpcf7-submit:disabled {
  color: var(--jcr-brand-white);
}

@media (max-width: 767px) {
  .jcr-template-homepage .cta,
  .jcr-rental-category-index-page .cta,
  .jcr-contact-page .jcr-contact-btn,
  .jcr-template-homepage .jcr-btn,
  .jcr-rental-category-index-page .jcr-btn,
  .jcr-contact-page .jcr-btn {
    min-height: 4.8rem;
  }
}
