
/* ================================================================
   CROSSREFERENCE.HTML - Industrial Aesthetic CSS
   ================================================================ */

/* --- PART 1: BANNER (300px) --- */
.cr-banner {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cr-banner__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/crossreference.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
}

.cr-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(26, 26, 26, 0.75) 50%,
    rgba(26, 26, 26, 0.5) 100%
  );
}

.cr-banner .container {
  position: relative;
  z-index: 1;
}

.cr-banner__content {
  max-width: 820px;
}

.cr-banner__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding-left: 24px;
  position: relative;
  border-left: 4px solid #F5A623;
}

/* --- PART 2: SEARCH SECTION --- */
.cr-search {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.cr-search__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cr-search__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.cr-search__label {
  font-size: 1rem;
  color: #777;
  margin-bottom: 28px;
  font-weight: 400;
}

/* Search Box */
.cr-search__form {
  margin-bottom: 28px;
}

.cr-search__box {
  display: flex;
  border: 2px solid #1a1a1a;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s;
}

.cr-search__box:focus-within {
  border-color: #F5A623;
}

.cr-search__input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1a1a1a;
  border: none;
  outline: none;
  background: transparent;
}

.cr-search__input::placeholder {
  color: #aaa;
}

.cr-search__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: #1a1a1a;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  white-space: nowrap;
}

.cr-search__btn:hover {
  background: #F5A623;
}

.cr-search__btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Disclaimer */
.cr-search__disclaimer {
  background: #fff;
  border-left: 4px solid #F5A623;
  padding: 20px 24px;
  text-align: left;
}

.cr-search__disclaimer-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.cr-search__disclaimer p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.75;
}

/* --- PART 3: RESOURCES SECTION --- */
.cr-resources {
  padding: 80px 0;
  background: #fff;
}

.cr-resources__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.cr-resources__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: #F5A623;
  margin: 16px auto 0;
}

.cr-resources__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

/* Resource Card */
.cr-resource {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: all 0.3s;
  cursor: pointer;
}

.cr-resource:hover {
  border-color: #1a1a1a;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.cr-resource__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #1a1a1a;
  padding: 20px;
  transition: background 0.3s;
}

.cr-resource__img svg {
  width: 64px;
  height: 64px;
}

.cr-resource:hover .cr-resource__img {
  background: #1a1a1a;
  color: #fff;
}

.cr-resource__name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 20px 16px 8px;
  margin: 0;
}

.cr-resource__desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  padding: 0 20px 24px;
  margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .cr-banner {
    height: 260px;
  }

  .cr-banner__title {
    font-size: 2rem;
  }

  .cr-resources__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .cr-banner {
    height: 220px;
  }

  .cr-banner__title {
    font-size: 1.6rem;
    padding-left: 16px;
  }

  .cr-search {
    padding: 56px 0;
  }

  .cr-search__title {
    font-size: 1.5rem;
  }

  .cr-search__box {
    flex-direction: column;
  }

  .cr-search__input {
    padding: 14px 18px;
  }

  .cr-search__btn {
    padding: 14px 20px;
    justify-content: center;
  }

  .cr-resources {
    padding: 56px 0;
  }

  .cr-resources__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 24px;
  }
}