/* ============================================================
   PSM Hero Section Styles
   Perforated Sheet Metal NZ — Homepage Hero
   ============================================================
   HOW TO LINK THIS FILE IN JOURNAL 3:
   Option A (recommended): Upload this file via FTP to your server,
   e.g. /catalog/view/theme/YOUR_THEME/stylesheet/psm-hero.css
   Then add in Journal 3 admin > Design > Custom CSS / Header:
     <link rel="stylesheet" href="/catalog/view/theme/YOUR_THEME/stylesheet/psm-hero.css">
   Option B: Copy contents into a Journal 3 Additional CSS field.
   ============================================================ */


/* ------------------------------------------------------------
   Section wrapper
   ------------------------------------------------------------ */
.psm-hero {
  position: relative;
  width: 100%;
  background-color: #0f172a;
  min-height: 560px;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .psm-hero {
    min-height: 640px;
  }
}


/* ------------------------------------------------------------
   Background video / fallback image
   ------------------------------------------------------------ */
.psm-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}


/* ------------------------------------------------------------
   Overlay layers
   ------------------------------------------------------------ */

/* Left-heavy dark gradient so text stays readable */
.psm-hero__overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(26, 26, 46, 0.75) 50%,
    rgba(26, 26, 46, 0.20) 100%
  );
}

/* Bottom vignette so the section blends into the next row */
.psm-hero__overlay-vignette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.60), transparent);
}

/* Subtle repeating dot-grid for brand texture */
.psm-hero__overlay-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.10;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1.5px 1.5px,
    rgba(255, 255, 255, 0.6) 1px,
    transparent 0
  );
  background-size: 20px 20px;
}


/* ------------------------------------------------------------
   Content container
   ------------------------------------------------------------ */
.psm-hero__container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 16px;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .psm-hero__container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .psm-hero__container {
    padding-top: 144px;
    padding-bottom: 144px;
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* ------------------------------------------------------------
   Content max-width wrapper (left-aligned column)
   ------------------------------------------------------------ */
.psm-hero__content {
  max-width: 672px;
}


/* ------------------------------------------------------------
   Trust pill badge
   ------------------------------------------------------------ */
.psm-hero__trust-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}


/* ------------------------------------------------------------
   Pulsing green status dot
   ------------------------------------------------------------ */
.psm-hero__trust-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #4ade80;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-animation: psm-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
          animation: psm-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@-webkit-keyframes psm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes psm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}


/* ------------------------------------------------------------
   Hero heading
   ------------------------------------------------------------ */
.psm-hero__title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 24px 0;
  padding: 0;
}

@media (min-width: 768px) {
  .psm-hero__title {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .psm-hero__title {
    font-size: 60px;
  }
}

.psm-hero__title-highlight {
  color: #e52330;
}


/* ------------------------------------------------------------
   Hero description paragraph
   ------------------------------------------------------------ */
.psm-hero__description {
  font-size: 18px;
  color: #cbd5e1;
  margin: 0 0 40px 0;
  padding: 0;
  line-height: 1.65;
  max-width: 576px;
}

@media (min-width: 768px) {
  .psm-hero__description {
    font-size: 20px;
  }
}


/* ------------------------------------------------------------
   CTA buttons wrapper
   ------------------------------------------------------------ */
.psm-hero__buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .psm-hero__buttons {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
}


/* ------------------------------------------------------------
   Base button styles
   ------------------------------------------------------------ */
.psm-hero__btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 18px;
  font-weight: 600;
  height: 56px;
  padding: 0 32px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none !important;
  -webkit-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
          transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* Primary — red fill */
.psm-hero__btn--primary {
  background-color: #e52330;
  color: #ffffff !important;
  border-color: #e52330;
  -webkit-box-shadow: 0 10px 15px -3px rgba(229, 35, 48, 0.30);
          box-shadow: 0 10px 15px -3px rgba(229, 35, 48, 0.30);
}

.psm-hero__btn--primary:hover,
.psm-hero__btn--primary:focus {
  background-color: #c91f2a;
  border-color: #c91f2a;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Outline — transparent with white border */
.psm-hero__btn--outline {
  background-color: transparent;
  color: #ffffff !important;
  border-color: #ffffff;
}

.psm-hero__btn--outline:hover,
.psm-hero__btn--outline:focus {
  background-color: rgba(255, 255, 255, 0.10);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Chevron icon inside the primary button */
.psm-hero__btn-icon {
  margin-left: 8px;
  width: 20px;
  height: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}


/* ------------------------------------------------------------
   Quick stats row
   ------------------------------------------------------------ */
.psm-hero__stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 24px;
}

.psm-hero__stat {
  color: #ffffff;
}

.psm-hero__stat-value {
  font-size: 24px;
  font-weight: 900;
  color: #e52330;
  line-height: 1.2;
}

.psm-hero__stat-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}
