/* ==========================================================================
   Allied Wholesale Electrical Supply — landing page (page-specific)
   Loads after allied-site.css, which has the shared tokens, type, buttons,
   header/nav, footer, ticker component, location-card component, and CTA
   band. This file only has what's unique to landing.html: the full-bleed
   photo hero, the trust strip, and the Products/Specials section.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Hero — signature diagonal-cut treatment, echoing the logo's tilted oval */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  /* The angled bottom edge is the page's one signature motif — carried
     through, more subtly, at a few other section boundaries (see
     allied-site.css's .page-hero and .cta-band). */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Swap the <img> below for a <video autoplay muted loop playsinline> later —
   this layer's sizing/positioning doesn't need to change at all. */
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(11, 37, 71, 0.94) 15%,
    rgba(11, 37, 71, 0.82) 45%,
    rgba(23, 70, 158, 0.55) 75%,
    rgba(23, 70, 158, 0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
  width: 100%;
}
.hero-content .eyebrow {
  color: #bcd2f5;
}
.hero-content h1 {
  color: var(--allied-white);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  margin: 14px 0 20px;
  max-width: 820px;
}
.hero-content .lede {
  color: #e3ebfa;
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------- */
/* Trust strip                                                            */
/* ---------------------------------------------------------------------- */

.trust-strip {
  background: var(--allied-navy);
  padding: 26px 0;
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
}
.trust-item {
  color: var(--allied-white);
}
.trust-item strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}
.trust-item span {
  font-size: 0.85rem;
  color: #b7cbec;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------- */
/* Brands section wrapper (ticker component itself is in allied-site.css) */
/* ---------------------------------------------------------------------- */

.brands-section {
  padding: 56px 0;
  background: var(--allied-white);
}
.brands-section .section-heading {
  margin: 0 auto 28px;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Specials / Products anchor                                            */
/* ---------------------------------------------------------------------- */

.specials-section {
  padding: 70px 0;
  background: var(--allied-tint);
  scroll-margin-top: var(--header-height);
}
.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.special-card {
  background: var(--allied-white);
  border-radius: 14px;
  border: 1px solid var(--allied-border);
  box-shadow: var(--allied-shadow-soft);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.special-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--allied-blue), var(--allied-blue-bright));
}
.special-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.special-card p {
  font-size: 0.92rem;
}

.catalog-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--allied-navy);
  border-radius: 16px;
  padding: 30px 32px;
  /* Signature tilt motif, used sparingly. */
  transform: rotate(-0.6deg);
}
.catalog-callout-text {
  max-width: 560px;
  transform: rotate(0.6deg);
}
.catalog-callout h3 {
  color: var(--allied-white);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.catalog-callout p {
  color: #c3d4ef;
}
.catalog-callout .btn {
  transform: rotate(0.6deg);
}

/* ---------------------------------------------------------------------- */
/* Locations section wrapper (.locations-grid/.location-card are shared) */
/* ---------------------------------------------------------------------- */

.locations-section {
  padding: 76px 0;
  background: var(--allied-white);
  scroll-margin-top: var(--header-height);
}

/* ---------------------------------------------------------------------- */
/* Landing-specific responsive                                           */
/* ---------------------------------------------------------------------- */

@media (max-width: 980px) {
  .specials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-content {
    padding: 110px 0 80px;
  }
}

@media (max-width: 680px) {
  .specials-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip .wrap {
    gap: 24px;
  }
  .catalog-callout {
    flex-direction: column;
    align-items: flex-start;
    transform: none;
  }
  .catalog-callout-text,
  .catalog-callout .btn {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}
