/* ==========================================================================
   USC Homepage Redesign Styles
   Based on Canva mockup — April 2026
   ========================================================================== */

/* ---------- Variables (via custom properties) ---------- */
:root {
  --usc-blue: #005ea5;
  --usc-blue-dark: #004a82;
  --usc-dark: #2a2a2a;
  --usc-charcoal: #333333;
  --usc-white: #ffffff;
  --usc-light-gray: #f5f5f5;
}

/* ---------- Homepage Hero — Split 50/50 ---------- */
.hp-hero {
  display: flex;
  width: 100%;
  min-height: 75vh;
}

.hp-hero__panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-decoration: none;
  color: var(--usc-white);
  transition: transform 0.3s ease;
}

.hp-hero__panel:hover {
  color: var(--usc-white);
  text-decoration: none;
}

.hp-hero__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 50, 90, 0.55);
  transition: background 0.3s ease;
}

.hp-hero__panel:hover::before {
  background: rgba(0, 50, 90, 0.4);
}

.hp-hero__panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.45;
  pointer-events: none;
}

.hp-hero__panel:first-child::after {
  background-image: url('/sites/default/files/homepage/hero-overlay-left.png');
  background-size: 70% auto;
  background-position: left 0px bottom 30px;
}

.hp-hero__panel:last-child::after {
  background-image: url('/sites/default/files/homepage/hero-overlay-right.png');
  background-size: 115% auto;
  background-position: center;
}

.hp-hero__panel-title {
  position: relative;
  z-index: 1;
  font-size: 72px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: var(--usc-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 1px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .hp-hero {
    flex-direction: column;
  }
  .hp-hero__panel {
    min-height: 250px;
  }
  .hp-hero__panel-title {
    font-size: 40px;
  }
}

/* ---------- About Section — Full Width with Background Illustration ---------- */
.hp-about {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  padding: 50px 0;
  background: var(--usc-white);
  overflow: hidden;
}

.hp-about__inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

.hp-about__text {
  max-width: 480px;
}

.hp-about__headline {
  font-size: 36px;
  font-weight: 800;
  color: var(--usc-blue);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hp-about__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--usc-charcoal);
  margin-bottom: 25px;
}

.hp-about__btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--usc-dark);
  color: var(--usc-white);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  border: none;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hp-about__btn:hover,
.hp-about__btn:focus {
  background: var(--usc-charcoal);
  color: var(--usc-white);
  text-decoration: none;
}

.hp-about__illustration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  pointer-events: none;
  z-index: 1;
}

.hp-about__illustration img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .hp-about__text {
    max-width: 100%;
  }
  .hp-about__headline {
    font-size: 28px;
  }
  .hp-about__illustration {
    position: relative;
    right: auto;
    width: 100%;
    margin-top: 20px;
  }
}

/* ---------- Product Category Sections (Seed Treating & Bulk Conveyance) ---------- */
.hp-products {
  position: relative;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hp-products::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 70, 120, 0.75);
}

.hp-products--dark::before {
  background: rgba(30, 40, 50, 0.8);
}

.hp-products__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.hp-products__title {
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--usc-white);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.hp-products__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-products__links li {
  margin-bottom: 10px;
}

.hp-products__links a {
  display: block;
  padding: 18px 30px;
  background: rgba(200, 220, 235, 0.55);
  color: var(--usc-blue-dark);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.hp-products__links a:hover,
.hp-products__links a:focus {
  background: rgba(220, 235, 245, 0.75);
  text-decoration: none;
  color: var(--usc-blue-dark);
}

/* ---------- Contact Us Section ---------- */
.hp-contact {
  padding: 60px 0;
  background: var(--usc-white);
  text-align: center;
}

.hp-contact__title {
  display: inline-block;
  padding: 12px 40px;
  background: var(--usc-blue);
  color: var(--usc-white);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.hp-contact__grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.hp-contact__card {
  flex: 0 1 300px;
  text-align: center;
  text-decoration: none;
  color: var(--usc-blue);
  padding: 20px;
  transition: transform 0.2s ease;
}

.hp-contact__card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: var(--usc-blue-dark);
}

.hp-contact__card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
}

.hp-contact__card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-contact__card-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .hp-contact__grid {
    gap: 20px;
  }
  .hp-contact__card {
    flex: 0 1 45%;
  }
}

/* ---------- News & Events Section ---------- */
.hp-events {
  padding: 60px 0;
  background: var(--usc-dark);
  color: var(--usc-white);
  overflow: hidden;
}

.hp-events__inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.hp-events__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.hp-events__title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--usc-white);
  margin-bottom: 5px;
}

.hp-events__scroll-label {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: #ff914d;
  font-size: 16px;
}

.hp-events__subtitle {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 30px;
}

.hp-events__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}

.hp-events__track::-webkit-scrollbar {
  height: 6px;
}

.hp-events__track::-webkit-scrollbar-track {
  background: #444;
  border-radius: 3px;
}

.hp-events__track::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.hp-events__card {
  flex: 0 0 220px;
  background: var(--usc-white);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--usc-charcoal);
  transition: transform 0.2s ease;
}

.hp-events__card:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--usc-charcoal);
}

.hp-events__card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.hp-events__card-body {
  padding: 12px;
}

.hp-events__card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  min-height: 34px;
}

.hp-events__card-btn {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid #cccccc;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hp-events__card-btn:hover {
  border-color: var(--usc-blue);
  color: var(--usc-blue);
  text-decoration: none;
}

@media (max-width: 767px) {
  .hp-events__card {
    flex: 0 0 180px;
  }
}

/* ---------- Utility: full-bleed sections override Drupal container ---------- */
.hp-full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ---------- Hide default page title on homepage ---------- */
.path-frontpage .page-header,
.path-frontpage .block-page-title-block {
  display: none;
}

/* ---------- Remove default paragraph spacing on homepage ---------- */
.path-frontpage .field--name-field-content-section > .field__item {
  margin-bottom: 0;
  padding: 0;
}
