/* Hero banner */

.hero-banner {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.hero-banner__media {
  position: absolute;
  inset: 0;
}

.hero-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-banner__gradient {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.hero-banner__inner {
  position: relative;
  padding-top: var(--space-5);
  padding-bottom: var(--space-8);
}

/* Badges row */
.hero-banner__badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-banner__licence {
  display: block;
  width: 5.3125rem;
  height: 5.3125rem;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  flex: none;
}

.hero-banner__licence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

.hero-banner__google {
  display: inline-flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-primary-dark);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-banner__google:hover,
.hero-banner__google:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.hero-banner__google-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.hero-banner__google-bottom {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.hero-banner__google-stars {
  display: flex;
  gap: 0.25rem;
}

.hero-banner__recycling {
  display: block;
  flex: none;
  height: 5.3125rem;
}

.hero-banner__recycling img {
  width: auto;
  height: 100%;
}

/* Headline — display word ("Tiger") and main title ("Skip Hire") share one
   line so the hero is shorter and the skip cards sit higher above the fold;
   the line wraps naturally on narrow screens. */
.hero-banner__title {
  display: block;
  margin-top: var(--space-2);
  line-height: 1.03;
  text-transform: uppercase;
}

.hero-banner__title-display {
  display: inline;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.375rem);
  letter-spacing: -0.026em;
  color: var(--color-display);
	padding-right: 10px;
}

.hero-banner__title-main {
  display: inline;
	  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.375rem);
  white-space: nowrap; /* keep "Skip Hire" together when the line wraps on small screens */
  color: #fff;
}

.hero-banner__title-sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.8125rem);
  line-height: 1.4;
  color: var(--color-display);
}

.hero-banner__towns {
  max-width: 37.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.625;
}

/* USP row */
/* .hero-banner__usps is styled in assets/css/global.css, shared with the
   inner-page hero's .usp-row. */

.hero-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Selling points + buttons printed under the postcode checker (skip-sizes.php). */
.skip-sizes .hero-banner__after-cards {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 2px solid var(--color-primary); /* sets the postcode checker apart */
}

.skip-sizes .hero-banner__after-cards .hero-banner__usps,
.skip-sizes .hero-banner__after-cards .hero-banner__actions {
  margin-top: 0;
}

@media (max-width: 459.98px) {
  .skip-sizes .hero-banner__after-cards {
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .skip-sizes .hero-banner__after-cards {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
  }
}

/* Phones: tighten the hero so the skip cards peek above the fold. */
@media (max-width: 767px) {
  .hero-banner__inner {
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
  }

  .hero-banner__badges {
    gap: 0.75rem;
  }

  /* Size the headline to the viewport so "TIGER SKIP HIRE" fits one line on phones. */
  .hero-banner__title-display,
  .hero-banner__title-main {
    font-size: clamp(1.75rem, 10vw, 2.75rem);
  }

  .hero-banner__actions {
    margin-top: 1.25rem;
  }

  .hero-banner__licence {
    width: 3.5rem;
    height: 3.5rem;
  }

  .hero-banner__recycling {
    height: 3.5rem;
  }

  .hero-banner__google {
    gap: 0.25rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
  }

  .hero-banner__google-top {
    font-size: 0.6875rem;
  }

  .hero-banner__google-bottom {
    font-size: 0.625rem;
  }

  .hero-banner__towns {
    max-width: 100%;
    margin-top: 0.4rem;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-banner__usps {
    display: none;
  }
}

@media (max-width: 440px) {
	.hero-banner__title{
		text-align: center;
	}
	.hero-banner__badges {
    justify-content: center;
	}
	.hero-banner__towns{
		text-align: center;
	}
}

@media (min-width: 460px) {
  .hero-banner__actions {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .hero-banner__gradient {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9) 34.6%,
      rgba(0, 0, 0, 0.7) 43.3%,
      rgba(0, 0, 0, 0) 58.2%
    );
  }
}

@media (min-width: 1200px) {
  .hero-banner__inner {
    padding-bottom: 10.3125rem; /* room for the skip cards overlapping below */
  }
}
