/*
Theme Name: Integramission
Text Domain: integramission
Version: 1.0.041
Requires at least: 5.0
Requires PHP: 8.3
Description:
Author: Southern Made
Author URI: https://www.southernmade.com/
Theme URI:
*/

/* Override Bootstrap 4 link color - keep grid/utilities but reset link color */
a {
  color: inherit;
}
a.link-images__link,
a.link-images__link:hover,
a.link-images__link:visited {
  color: #fff;
  color: var(--color-white);
}
li.site-header__menu > a,
.site-header__menu > li > a {
  color: #fff;
  color: var(--color-white);
}
.site-header__mobile-list > li > a {
  color: #fff;
  color: var(--color-white);
}
.footer-menu__list li a {
  color: #fff;
  color: var(--color-white);
}

/* Remove Bootstrap outlines on links and buttons */
a:focus,
a:active,
a:visited,
button:focus,
button:active,
input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ClearCo Embed Container - Force width constraints */

body {
  font-family:
    "Aptos",
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-weight: 400;
}
h1,
h2,
h3,
h4,
h5,
h6,
.heading,
.section-title {
  font-family:
    "Century Gothic",
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-weight: 400; /* regular weight to match 'Century Gothic Regular' */
  line-height: 1.2;
  margin: 0 0 1rem;
}

/* Fluid responsive heading sizes using clamp() */
h1 {
  font-size: clamp(40px, 4.5vw + 1.3rem, 66px) !important;
}

h2 {
  font-size: clamp(29px, 3.5vw + 0.9rem, 50px) !important;
}

h3 {
  font-size: clamp(24px, 2.5vw + 0.7rem, 36px) !important;
}

h4 {
  font-size: clamp(18px, 1.8vw + 0.5rem, 26px) !important;
}

h5 {
  font-size: clamp(16px, 2vw + 0.5rem, 25px) !important;
}

h6 {
  font-size: clamp(14px, 1.6vw + 0.4rem, 20px) !important;
}

/* Hero heading - larger responsive size */
.hero-heading h1,
h1.hero-heading {
  font-size: clamp(40px, 4.5vw + 1.3rem, 66px) !important;
}

/* Hero text - larger paragraph for hero sections */
.hero-text p,
p.hero-text {
  font-size: clamp(14px, 1.5vw + 0.5rem, 22px) !important;
  line-height: 1.4;
}

/* Fluid paragraph styles - updated to match mockup */
p {
  font-size: clamp(14px, 1.5vw + 0.5rem, 22px) !important;
  line-height: 1.6;
}

p:not(.tb-button__link):not([class*="wp-block"]) {
  margin: 0 0 1rem;
}

/* List styles - keep bullets/numbers aligned with content */
.integra-list {
  list-style-position: inside;
  padding-left: 0;
}

/* Object fit cover for responsive images in columns */
.object-fit-cover img,
img.object-fit-cover {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
}

/* Equal height columns with centered content */
.tb-grid.d-flex > .tb-grid-column {
  display: flex !important;
}

.tb-container.d-flex .tb-heading {
  margin: auto !important;
}

/* Gradient overlay - dark teal to transparent */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to right, #003243 50%, transparent 100%);
}

.gradient-overlay-right {
  background: linear-gradient(to left, #003243 50%, transparent 100%);
}

.gradient-overlay-top {
  background: linear-gradient(to bottom, #003243 50%, transparent 100%);
}

.gradient-overlay-bottom {
  background: linear-gradient(to top, #003243 50%, transparent 100%);
}

/* Content above gradient needs relative positioning and higher z-index */
.tb-container:has(> .gradient-overlay) > *:not(.gradient-overlay) {
  position: relative;
  z-index: 2;
}

/* Adjust selectors to match what you see in Inspector */
.subheading,
h3,
h4 {
  font-family:
    "Aptos",
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-weight: 700; /* 'Aptos Bold' stand-in */
}
.button:not(.button--simple) {
  font-family:
    "Aptos",
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-weight: 700; /* 'Aptos Bold' stand-in */
}
.wpconsent-cookie-category-name {
  font-family:
    "Aptos",
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  margin-bottom: 0 !important;
  font-size: 28px;
  font-weight: 600;
}
h3.wpconsent-cookie-service-name {
  font-weight: normal;
  font-size: 18px !important;
  margin-bottom: 0 !important;
}
#gform_1 {
  padding: 50px;
  position: relative;
  z-index: 9;
}
#gform_1 label {
  color: #fff;
  font-size: 16px;
}
#gform_1 input {
  min-height: 50px;
}
#gform_1 .gfield_required,
#gform_1 .gfield_validation_message {
  color: #f57c61;
}
#gform_submit_button_1 {
  background: transparent;
  padding: 0;
  color: #00b0f1;
  font-size: 14px;
  border: none;
  transition: all 300ms ease;
}
#gform_submit_button_1:focus,
#gform_submit_button_1:hover,
#gform_submit_button_1:active {
  border: none;
  outline: none;
  box-shadow: none;
  transform: translatex(5px);
  transition: all 300ms ease;
}
#gform_1_validation_container {
  background: #fff;
}
.confirmation {
  background: #fff;
  padding: 30px;
}

/* Gravity Form 3 Styles */
#gform_3 label {
  color: #fff;
}

#gform_3 .gfield_required {
  color: #d55c19;
}

#gform_3 .gfield_required_text {
  display: none;
}

#gform_3 .gfield_required_asterisk {
  color: #d55c19;
}

#gform_wrapper_3 .gform_required_legend {
  display: none !important;
}
#gform_3 input[type="text"],
#gform_3 input[type="email"],
#gform_3 input[type="tel"],
#gform_3 input[type="url"],
#gform_3 input[type="number"] {
  height: 50px;
}
#gform_submit_button_3 {
  background-color: #00b0f1;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 0;
  font-size: 1.3em;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  margin: auto;
  transition: background-color 300ms ease;
}

#gform_submit_button_3:hover,
#gform_submit_button_3:focus,
#gform_submit_button_3:active {
  background-color: #003e52;
  color: #fff;
  border: none;
  outline: none;
  box-shadow: none;
}
.no-kerning h2 {
  letter-spacing: unset;
}
.bold-topline .topline {
  font-weight: 600;
}
.no-kerning .link-images__list .link-images__item:nth-child(1) .link-images__link::before {
  background-color: #eeaf30;
}

.no-kerning .link-images__list .link-images__item:nth-child(2) .link-images__link::before {
  background-color: #557630;
}

.no-kerning .link-images__list .link-images__item:nth-child(3) .link-images__link::before {
  background-color: #d55c19;
}
.link-images__link::before {
  opacity: 0.8;
}
.three-color .tiles__item:nth-child(1) {
  background-color: #eeaf30 !important;
  color: #fff !important;
}
.three-color .tiles__item:nth-child(2) {
  background-color: #557630 !important;
  color: #fff !important;
}
.three-color .tiles__item:nth-child(3) {
  background-color: #d55c19 !important;
  color: #fff !important;
}
.accordion__icon {
  max-width: 100%;
  max-height: unset;
  height: auto;
}
.hero-holder__back-button {
  text-transform: uppercase;
}
/* ClearCo careers embed block styles */
#clearco-careers {
  max-width: 1008px;
  margin: 50px auto;
  min-height: 400px;
  position: relative;
}

/* Loading spinner - shows only when container is empty */
#clearco-careers:empty::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 4px solid #e0e1dd;
  border-top-color: #00aeef;
  border-radius: 50%;
  animation: clearco-spin 0.8s linear infinite;
}

#clearco-careers:empty::after {
  content: "Loading career opportunities...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 40px;
  color: #003e52;
  font-size: 16px;
  white-space: nowrap;
}

@keyframes clearco-spin {
  to {
    transform: rotate(360deg);
  }
}
.cc-careers-container button,
.cc-careers-container .link-button,
.cc-job-description-container button {
  border-radius: 0;
  background: #d55c19;
}
#cc-reset-search-button-id {
  background-color: #e0e1dd;
  color: #003e52;
  padding: 0 15px;
  margin: 0;
  transition: all 300ms ease;
}
#cc-reset-search-button-id:hover,
#cc-reset-search-button-id:active,
#cc-reset-search-button-id:focus {
  background-color: #557630 !important;
  color: #fff;
  padding: 0 15px;
  margin: 0;
  text-decoration: none !important;
  transition: all 300ms ease;
}
#cc-submit-search-button-id {
  background: #d55c19;
  border-radius: 0;
  transition: all 300ms ease;
}
#cc-submit-search-button-id:hover {
  background-color: #eeaf30;
  transition: all 300ms ease;
}
.cc-filters-container {
  box-sizing: border-box;
  margin-bottom: 0;
  background-color: #003e52;
  padding: 15px;
  gap: 5px;
}
.cc-careers-container input,
.cc-careers-container select,
.cc-careers-container .cc-filter-dropdown,
.cc-job-description-container input,
.cc-job-description-container select,
.cc-job-description-container .cc-filter-dropdown {
  font-family: inherit;
  font-size: 1em;
  padding: 0 10px;
  height: 3em;
  border: 1px solid rgba(117, 117, 117, 0.3);
  border-radius: 0;
  background-color: #fff;
}
.cc-filters-container .cc-search-button-container .cc-reset-search-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0 10px;
  color: #fff;
  cursor: pointer;
}
.cc-careers-container button,
.cc-careers-container .link-button,
.cc-job-description-container button,
.cc-job-description-container .link-button {
  text-transform: uppercase;
  background-color: #00aeef;
  border-radius: 0;
}
.ccui-chatWindow--header.ccui-chatWindow--rounded {
  border-radius: 8px 8px 0 0;
  background-color: #e0e1dd !important;
}
.ccui-chatWindow--avatar {
  align-self: center;
  justify-self: center;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 81% !important;
  background-color: #fff !important;
  background-image: url("https://integramissstg.wpenginepowered.com/wp-content/uploads/2025/09/cropped-Integra-Icon_Standard-1.png") !important;
}
.cc-department-container {
  border-bottom: solid 1px #d5d5d5;
  margin-bottom: 0;
  padding: 25px 15px;
  background: #f6f6f63d;
}
.cc-job-title {
  font-size: 1em;
  color: #003e52;
  margin-bottom: 5px;
}
.cc-share-container {
  display: none;
  align-items: center;
  gap: 5px;
}
.cc-department-name {
  font-size: 1.125rem;
  color: #202124;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: bold;
  color: #6a6a6a;
}
.cc-job-description-container {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr;
  margin: 15px 0;
  background: #f6f6f63d;
  padding: 15px;
}
.jobs__wrapper .button--simple {
  background-color: #00aeef;
  color: #fff !important;
  padding: 10px 15px;
  margin: 10px 0;
}
@media screen and (max-width: 767px) {
  .cc-careers-container,
  .cc-job-description-container {
    padding: 0 15px;
  }
}

/* ========================================
   Toolset Button Styles
   Apply ts-button-blue class to Toolset button block
   ======================================== */

/* Base Toolset button styling */
.tb-button.ts-button-blue .tb-button__link {
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 160px;
  height: auto;
  margin: 0;
  padding: 16px 22px;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  border-radius: 0;
  font-family: "Metrophobic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  color: #fff;
}

/* Skewed pseudo-elements for button background */
.tb-button.ts-button-blue .tb-button__link::before,
.tb-button.ts-button-blue .tb-button__link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -14px;
  width: calc(100% + 28px);
  height: 100%;
  z-index: -1;
  border-radius: 0;
  transform: skewX(-24deg);
  transition: all 0.4s ease-in-out;
}

.tb-button.ts-button-blue .tb-button__link::before {
  background-color: #00aeef;
}

.tb-button.ts-button-blue .tb-button__link::after {
  left: auto;
  right: -14px;
  width: 0;
  background-color: #fff;
}

/* Hover effect - expands white background, changes text color */
@media (hover: hover) {
  .tb-button.ts-button-blue .tb-button__link:hover {
    color: #00aeef;
  }

  .tb-button.ts-button-blue .tb-button__link:hover::after {
    width: calc(100% + 28px);
  }
}

/* ========================================
   Accordion Styles
   ======================================== */
/* ========================================
   Accordion Styles
   ======================================== */
.accordion-wrapper {
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid #e0e1dd;
  margin-bottom: 0;
}

.accordion-header {
  cursor: pointer;
  padding: 20px 0;
  transition: opacity 0.2s ease;
  position: relative;
  padding-right: 50px;
}

.accordion-item.active .accordion-header {
  padding-bottom: 0;
}

.accordion-header:hover {
  opacity: 0.7;
}

.accordion-header .tb-grid-column:first-child {
  max-width: 80px;
  flex: 0 0 80px;
}

.accordion-header .tb-grid-column:first-child img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.accordion-header h2 {
  margin: 0;
}

/* Plus icon in circle */
.accordion-header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 1px solid #00aeef;
  border-radius: 50%;
  background-image: linear-gradient(#00aeef, #00aeef), linear-gradient(#00aeef, #00aeef);
  background-size:
    10px 1px,
    1px 10px;
  background-position: center;
  background-repeat: no-repeat;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.8;
}

.accordion-header:hover::after {
  opacity: 1;
}

.accordion-item.active .accordion-header::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.3s ease,
    margin 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 0;
  padding-bottom: 20px;
  margin-top: -10px !important;
}

/* ========================================
   Video Cover with Modal
   ======================================== */
.video-cover {
  position: relative;
  cursor: pointer;
}

.video-cover .video-url {
  display: none !important;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  width: 68px;
  height: 68px;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 2;
  opacity: 0.8;
  outline: none !important;
}

.video-play-btn:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn:focus,
.video-play-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.video-play-btn svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video-modal {
  border: none;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0 !important;
  transform: scale(0.9) !important;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease !important;
}

.video-modal.is-open {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.video-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.video-modal .close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal .video-container {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
}

.video-modal .video-container iframe,
.video-modal .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Entities Grid - Proper link styling */
.entities-grid__item {
  position: relative;
}

.entities-grid__title .entities-grid__link {
  color: inherit;
  text-decoration: none;
}

.entities-grid__title .entities-grid__link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.entities-grid__item:hover {
  opacity: 0.8;
  transition: opacity 0.4s ease-in-out;
}

/* Navigation wrapper - override max-width to 1200px */
.site-header .wrapper,
.site-header__container.wrapper {
  max-width: 1200px;
}
