/* ==========================================================================
   Crucible Logistics — theme overrides on Atomik
   Design: Crucible Services desktop mockup (Lato, black/white)
   ========================================================================== */

:root {
  --cl-black: #000000;
  --cl-white: #ffffff;
  --cl-muted: #c8c8c8;
  --cl-divider: rgba(255, 255, 255, 0.55);
  --cl-panel: rgba(0, 0, 0, 0.75);
  --cl-input-bg: #ffffff;
  --cl-input-placeholder: #9a9a9a;
  --cl-submit-bg: #bcb9b9;
  --cl-submit-text: #000000;
  /* Design content sits ~200px inset on a 1920 artboard (~1520px wide) */
  --cl-max: 1560px;
  --cl-section-pad-y: 2.65rem;
  --cl-font: "Lato", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.theme-crucible-logistics,
.theme-crucible-logistics .ccm-page {
  background-color: var(--cl-black);
  color: var(--cl-white);
  font-family: var(--cl-font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.theme-crucible-logistics a {
  color: var(--cl-white);
  text-decoration: none;
}

.theme-crucible-logistics a:hover,
.theme-crucible-logistics a:focus {
  color: var(--cl-white);
  text-decoration: underline;
}

.theme-crucible-logistics img {
  max-width: 100%;
  height: auto;
  display: block;
}

.theme-crucible-logistics h1,
.theme-crucible-logistics h2,
.theme-crucible-logistics h3,
.theme-crucible-logistics h4,
.theme-crucible-logistics h5,
.theme-crucible-logistics h6,
.theme-crucible-logistics .cl-section-title {
  font-family: var(--cl-font);
  font-weight: 700;
  color: var(--cl-white);
  letter-spacing: 0;
}

.theme-crucible-logistics p {
  margin-bottom: 1rem;
}

.theme-crucible-logistics .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-crucible-logistics .cl-text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.theme-crucible-logistics .cl-site-header {
  background: var(--cl-black);
  min-height: 250px;
  height: 250px;
  padding: 0 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.theme-crucible-logistics .cl-site-header__inner {
  max-width: var(--cl-max);
  margin: 0 auto;
  width: 100%;
}

.theme-crucible-logistics .cl-brand__link,
.theme-crucible-logistics .cl-brand .ccm-block-content,
.theme-crucible-logistics .cl-brand h1,
.theme-crucible-logistics .cl-brand p,
.theme-crucible-logistics .cl-brand a {
  display: inline-block;
  font-family: var(--cl-font);
  font-weight: 700;
  font-size: clamp(3.7rem, 7.2vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-white);
  text-decoration: none;
  margin: 0;
}

.theme-crucible-logistics .cl-brand a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.theme-crucible-logistics .cl-nav {
  margin-top: 0.45rem;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.theme-crucible-logistics .cl-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

/* Content block + autonav + fallback links in the header nav */
.theme-crucible-logistics .cl-nav a,
.theme-crucible-logistics .cl-nav__list a,
.theme-crucible-logistics .cl-nav .ccm-block-content,
.theme-crucible-logistics .cl-nav .ccm-block-content p,
.theme-crucible-logistics .cl-nav .ccm-block-content a,
.theme-crucible-logistics .cl-nav .ccm-block-autonav a,
.theme-crucible-logistics .cl-nav .nav a,
.theme-crucible-logistics .cl-nav .navbar-nav a,
.theme-crucible-logistics .cl-nav .nav-link {
  font-family: "Lato", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 24px !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none;
  color: var(--cl-white) !important;
}

.theme-crucible-logistics .cl-nav .ccm-block-content,
.theme-crucible-logistics .cl-nav .ccm-block-content p {
  margin: 0;
  padding: 0;
  display: inline;
}

.theme-crucible-logistics .cl-nav a:hover,
.theme-crucible-logistics .cl-nav__list a:hover,
.theme-crucible-logistics .cl-nav .ccm-block-content a:hover,
.theme-crucible-logistics .cl-nav .ccm-block-autonav a:hover {
  text-decoration: underline;
  color: var(--cl-white) !important;
}

.theme-crucible-logistics .cl-nav__divider {
  opacity: 0.85;
  user-select: none;
  font-weight: 400;
  font-size: 24px;
}

/* Autonav fallback styling when editors place a nav block */
.theme-crucible-logistics .cl-nav .ccm-block-autonav ul,
.theme-crucible-logistics .cl-nav .nav,
.theme-crucible-logistics .cl-nav .navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.theme-crucible-logistics .cl-nav .ccm-block-autonav li + li::before,
.theme-crucible-logistics .cl-nav .nav > li + li::before {
  content: "|";
  margin-right: 0.65rem;
  opacity: 0.85;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.theme-crucible-logistics .cl-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a1510;
  /* Design hero band is ~1049px on a 1920 artboard */
  max-height: min(1049px, 68vw);
}

.theme-crucible-logistics .cl-hero__media {
  width: 100%;
  height: 100%;
}

/* Editable Hero content inherits panel typography */
.theme-crucible-logistics .cl-hero__panel-inner h1,
.theme-crucible-logistics .cl-hero__panel-inner .cl-hero__title {
  font-size: clamp(1.74rem, 2.64vw, 2.34rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 0.65rem;
}

.theme-crucible-logistics .cl-hero__panel-inner p,
.theme-crucible-logistics .cl-hero__body {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.45;
  margin: 0;
}

.theme-crucible-logistics .cl-hero__media .ccm-image-block,
.theme-crucible-logistics .cl-hero__media img {
  width: 100%;
  height: min(1049px, 68vw);
  min-height: 420px;
  object-fit: cover;
  object-position: center 42%;
}

.theme-crucible-logistics .cl-hero__panel {
  position: absolute;
  right: 0;
  top: 30%;
  width: 50%;
  height: auto;
  max-height: 44%;
  bottom: auto;
  background: var(--cl-panel);
  display: flex;
  align-items: flex-start;
}

.theme-crucible-logistics .cl-hero__panel-inner {
  padding: clamp(0.9rem, 1.4vw, 1.25rem) clamp(1.5rem, 2.6vw, 2.35rem);
  max-width: none;
  width: 100%;
}

.theme-crucible-logistics .cl-hero__panel-inner .ccm-block-content {
  margin: 0;
  padding: 0;
}

.theme-crucible-logistics .cl-hero__panel-inner .ccm-block-content p {
  margin: 0;
  color: var(--cl-white);
  text-align: left;
}

.theme-crucible-logistics .cl-hero__panel-inner .ccm-block-content h1,
.theme-crucible-logistics .cl-hero__panel-inner .ccm-block-content .cl-hero__title {
  text-align: left;
  color: var(--cl-white);
}

/* --------------------------------------------------------------------------
   Text sections
   -------------------------------------------------------------------------- */

.theme-crucible-logistics .cl-section {
  background: var(--cl-black);
  padding: 0 clamp(1rem, 5.2vw, 6.25rem);
}

/* First text section after hero — match 150px divider spacing */
.theme-crucible-logistics .cl-hero + .cl-section--text {
  padding-top: 150px;
}

.theme-crucible-logistics .cl-banner + .cl-section--text {
  padding-top: 150px;
}

.theme-crucible-logistics .cl-section__inner {
  max-width: var(--cl-max);
  margin: 0 auto;
  text-align: center;
  padding-bottom: 0;
}

.theme-crucible-logistics .cl-section__inner--narrow {
  max-width: 75rem;
}

.theme-crucible-logistics .cl-section--text .cl-section-title,
.theme-crucible-logistics .cl-section-title {
  font-size: clamp(2.22rem, 3.12vw, 2.94rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  text-align: center;
}

.theme-crucible-logistics .cl-section-title--left {
  text-align: left;
  font-size: clamp(2.22rem, 3.12vw, 2.82rem);
  margin-bottom: 1.25rem;
}

.theme-crucible-logistics .cl-section--text p,
.theme-crucible-logistics .cl-section__inner p {
  margin: 0 auto;
  max-width: none;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.55;
}

.theme-crucible-logistics .cl-divider {
  width: min(540px, 36%);
  height: 1px;
  background: var(--cl-divider);
  margin: 150px auto;
}

/* --------------------------------------------------------------------------
   Leadership
   -------------------------------------------------------------------------- */

.theme-crucible-logistics .cl-leadership {
  padding-top: 0;
  padding-bottom: 0;
}

/* Gap between Company & Leadership copy and president profile — match divider spacing */
.theme-crucible-logistics .cl-section--text + .cl-leadership {
  padding-top: 150px;
}

.theme-crucible-logistics .cl-leadership + .cl-banner {
  margin-top: 150px;
}

.theme-crucible-logistics .cl-leadership__inner {
  max-width: var(--cl-max);
  margin: 0 auto;
  display: grid;
  /* Text left, photo right (~half of original 409px) */
  grid-template-columns: minmax(0, 1fr) minmax(120px, 205px);
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
  align-items: start;
  padding: 0 clamp(1rem, 5.2vw, 6.25rem);
}

.theme-crucible-logistics .cl-leadership__bio {
  order: 1;
}

.theme-crucible-logistics .cl-leadership__photo {
  order: 2;
  justify-self: end;
}

.theme-crucible-logistics .cl-leadership__photo img,
.theme-crucible-logistics .cl-leadership__photo .ccm-image-block,
.theme-crucible-logistics .cl-leadership__photo .ccm-image-block img {
  width: 100%;
  max-width: 205px;
  height: auto;
  object-fit: cover;
}

.theme-crucible-logistics .cl-leadership__name {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  text-align: left;
}

.theme-crucible-logistics .cl-leadership__bio p {
  text-align: left;
  max-width: none;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Banner image
   -------------------------------------------------------------------------- */

.theme-crucible-logistics .cl-banner {
  width: 100%;
  line-height: 0;
}

.theme-crucible-logistics .cl-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 540px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.theme-crucible-logistics .cl-contact {
  padding-top: 2rem;
  padding-bottom: 1.75rem;
  scroll-margin-top: 1rem;
}

.theme-crucible-logistics .cl-contact__inner {
  max-width: var(--cl-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5.2vw, 6.25rem);
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.95fr;
  gap: clamp(1.5rem, 3.2vw, 3.25rem);
  align-items: start;
}

.theme-crucible-logistics .cl-contact__details p {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.5;
}

.theme-crucible-logistics .cl-contact__details a {
  text-decoration: none;
}

.theme-crucible-logistics .cl-contact__details a:hover {
  text-decoration: underline;
}

.theme-crucible-logistics .cl-form,
.theme-crucible-logistics .cl-contact__form form,
.theme-crucible-logistics .cl-contact__form .cl-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
}

/* Express Form block — match design (placeholder-only fields, gray submit) */
.theme-crucible-logistics .cl-contact__form .ccm-block-express-form,
.theme-crucible-logistics .cl-contact__form .ccm-form {
  width: 100%;
}

.theme-crucible-logistics .cl-contact__form .ccm-dashboard-express-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.theme-crucible-logistics .cl-contact__form .form-label,
.theme-crucible-logistics .cl-contact__form label.form-label,
.theme-crucible-logistics .cl-contact__form .text-muted.small,
.theme-crucible-logistics .cl-contact__form .control-label.form-label:not(.visually-hidden) {
  display: none !important;
}

.theme-crucible-logistics .cl-form input,
.theme-crucible-logistics .cl-form textarea,
.theme-crucible-logistics .cl-contact__form input[type="text"],
.theme-crucible-logistics .cl-contact__form input[type="email"],
.theme-crucible-logistics .cl-contact__form input[type="tel"],
.theme-crucible-logistics .cl-contact__form textarea,
.theme-crucible-logistics .cl-contact__form .form-control,
.theme-crucible-logistics .cl-contact__form .ccm-input-text,
.theme-crucible-logistics .cl-contact__form .ccm-input-email,
.theme-crucible-logistics .cl-contact__form .ccm-input-captcha {
  width: 100%;
  background: var(--cl-input-bg);
  color: #222;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.7rem 0.85rem;
  font-family: var(--cl-font);
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: none !important;
  outline: none;
}

.theme-crucible-logistics .cl-form textarea,
.theme-crucible-logistics .cl-contact__form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.theme-crucible-logistics .cl-form input::placeholder,
.theme-crucible-logistics .cl-form textarea::placeholder,
.theme-crucible-logistics .cl-contact__form .form-control::placeholder {
  color: var(--cl-input-placeholder);
  opacity: 1;
}

.theme-crucible-logistics .cl-form__submit,
.theme-crucible-logistics .cl-contact__form button[type="submit"],
.theme-crucible-logistics .cl-contact__form input[type="submit"],
.theme-crucible-logistics .cl-contact__form .btn,
.theme-crucible-logistics .cl-contact__form .btn-primary {
  align-self: flex-start;
  background: var(--cl-submit-bg) !important;
  color: var(--cl-submit-text) !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-width: 8.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--cl-font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  box-shadow: none !important;
}

.theme-crucible-logistics .cl-form__submit:hover,
.theme-crucible-logistics .cl-contact__form button[type="submit"]:hover,
.theme-crucible-logistics .cl-contact__form input[type="submit"]:hover,
.theme-crucible-logistics .cl-contact__form .btn:hover,
.theme-crucible-logistics .cl-contact__form .btn-primary:hover {
  background: #bdbdbd !important;
  color: var(--cl-submit-text) !important;
  text-decoration: none;
}

.theme-crucible-logistics .cl-form__submit:active {
  transform: translateY(1px);
}

.theme-crucible-logistics .cl-form-message {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.theme-crucible-logistics .cl-form-message--success {
  color: #9dffb5;
}

.theme-crucible-logistics .cl-form-message--error {
  color: #ffb4b4;
}

.theme-crucible-logistics .cl-contact__form .form-group,
.theme-crucible-logistics .cl-contact__form .mb-3,
.theme-crucible-logistics .cl-contact__form .question {
  margin-bottom: 0.75rem;
}

.theme-crucible-logistics .cl-contact__form .form-actions {
  margin: 0;
  padding: 0;
}

.theme-crucible-logistics .cl-contact__form .alert {
  background: transparent;
  border: 0;
  color: var(--cl-white);
  padding: 0;
  margin-bottom: 0.75rem;
}

/* Captcha: keep functional but compact */
.theme-crucible-logistics .cl-contact__form .form-group.captcha,
.theme-crucible-logistics .cl-contact__form .cl-form-captcha {
  margin-top: 0.25rem;
}

.theme-crucible-logistics .cl-contact__form .form-group.captcha label,
.theme-crucible-logistics .cl-contact__form .cl-form-captcha label {
  display: none !important;
}

.theme-crucible-logistics .cl-contact__form .form-group.captcha .ccm-captcha-image {
  display: block;
  margin-bottom: 0.5rem;
  max-width: 190px;
}

.theme-crucible-logistics .cl-contact__form .form-group.captcha .ccm-input-captcha {
  max-width: none;
}

.theme-crucible-logistics .cl-contact__form .form-group.captcha br {
  display: none;
}

.theme-crucible-logistics .cl-map-link {
  display: block;
  line-height: 0;
}

.theme-crucible-logistics .cl-contact__map img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.theme-crucible-logistics .cl-site-footer {
  background: var(--cl-black);
  padding: 0.25rem 1.25rem 1.35rem;
  text-align: center;
}

.theme-crucible-logistics .cl-copyright,
.theme-crucible-logistics .cl-site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #bdbdbd;
  font-weight: 400;
}

.theme-crucible-logistics .cl-login-link {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.55;
}

.theme-crucible-logistics .cl-login-link a {
  color: #bdbdbd;
}

/* Hide Atomik multi-column footer chrome on this brand */
.theme-crucible-logistics footer > section:not(.cl-site-footer),
.theme-crucible-logistics .concrete-branding {
  display: none;
}

/* --------------------------------------------------------------------------
   Interior / default page templates (still Atomik-capable)
   -------------------------------------------------------------------------- */

/* Soften default Atomik top nav bar when present on interior pages */
.theme-crucible-logistics .ccm-block-top-navigation-bar {
  background: var(--cl-black);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .theme-crucible-logistics .cl-hero {
    max-height: none;
  }

  .theme-crucible-logistics .cl-hero__panel {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
  }

  .theme-crucible-logistics .cl-hero__media .ccm-image-block,
  .theme-crucible-logistics .cl-hero__media img {
    height: auto;
    min-height: 280px;
    max-height: 520px;
  }

  .theme-crucible-logistics .cl-leadership__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .theme-crucible-logistics .cl-leadership__bio p,
  .theme-crucible-logistics .cl-leadership__name {
    text-align: center;
  }

  .theme-crucible-logistics .cl-contact__inner {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .theme-crucible-logistics .cl-section-title--left {
    text-align: center;
  }

  .theme-crucible-logistics .cl-form,
  .theme-crucible-logistics .cl-contact__form form {
    max-width: none;
  }

  .theme-crucible-logistics .cl-form__submit,
  .theme-crucible-logistics .cl-contact__form button[type="submit"] {
    align-self: center;
  }
}

@media (max-width: 575.98px) {
  :root {
    --cl-section-pad-y: 3rem;
  }

  .theme-crucible-logistics .cl-site-header {
    min-height: 250px;
    height: auto;
    padding: 1rem 1.25rem;
  }

  .theme-crucible-logistics .cl-brand__link,
  .theme-crucible-logistics .cl-brand .ccm-block-content,
  .theme-crucible-logistics .cl-brand h1,
  .theme-crucible-logistics .cl-brand p,
  .theme-crucible-logistics .cl-brand a {
    font-size: clamp(2.4rem, 10vw, 3.7rem);
  }

  .theme-crucible-logistics .cl-section--text + .cl-leadership {
    padding-top: 100px;
  }

  .theme-crucible-logistics .cl-leadership + .cl-banner {
    margin-top: 100px;
  }

  .theme-crucible-logistics .cl-hero + .cl-section--text {
    padding-top: 100px;
  }

  .theme-crucible-logistics .cl-banner + .cl-section--text {
    padding-top: 100px;
  }

  .theme-crucible-logistics .cl-divider {
    margin: 100px auto;
  }

  .theme-crucible-logistics .cl-hero__panel-inner {
    padding: 1.35rem 1.25rem 1.75rem;
  }
}

/* Edit-mode affordances */
.ccm-edit-mode .theme-crucible-logistics .cl-section,
.ccm-edit-mode .theme-crucible-logistics .cl-leadership,
.ccm-edit-mode .theme-crucible-logistics .cl-contact,
.ccm-edit-mode .theme-crucible-logistics .cl-hero {
  min-height: 2rem;
}
