/* ===========================================================================
   HOME PAGE STYLES — discount-pantry.com/
   ========================================================================= */

/* Scoped styles for home page only. Loaded last, after storefront.css */

/* ---------------------------------------------------------------------------
   Intro section: two-column layout with value statement and shop note
   The main text column (left) contains the headline and intro copy.
   The aside note (right) provides store context and positioning.
   ------------------------------------------------------------------------- */

.dp-front > .dp-shop-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 44px;
  align-items: start;
  padding-bottom: 0;
}

.dp-front > .dp-shop-intro > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dp-front > .dp-shop-intro h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wrap-deep);
  margin: 0;
}

.dp-front > .dp-shop-intro > div > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  max-width: 58ch;
  margin: 0 0 8px;
}

.dp-front > .dp-shop-intro > div > p:last-of-type {
  margin-bottom: 0;
}

/* The intro CTA button — "Shop the warehouse" */
.dp-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--wrap);
  color: #fff;
  border: 1px solid var(--wrap);
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
  width: fit-content;
  margin-top: var(--space-4);
}

.dp-primary:hover,
.dp-primary:focus-visible {
  background: var(--wrap-deep);
  border-color: var(--wrap-deep);
  color: #fff;
}

.dp-primary:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
}

/* The aside note — shop positioning and credibility */
.dp-shop-note {
  background: var(--label);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--wrap);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-shop-note p {
  margin: 0;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.55;
}

.dp-shop-note p:first-child.dp-eyebrow {
  color: var(--wrap);
  font-weight: 700;
  margin-bottom: 2px;
}

.dp-shop-note a {
  color: var(--wrap);
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 2px;
}

.dp-shop-note a:hover {
  color: var(--stamp);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Service strip — three-column feature list
   Three equal columns highlighting key value props: origin, info, support
   ------------------------------------------------------------------------- */

.dp-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 40px 0 34px;
  border-top: 2px solid var(--wrap);
  border-bottom: 2px solid var(--rule);
  margin: 34px 0 0;
}

.dp-service-strip > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-service-strip h2 {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wrap-deep);
  margin: 0;
}

.dp-service-strip p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--graphite);
  margin: 0;
}

.dp-service-strip a {
  color: var(--wrap);
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 2px;
}

.dp-service-strip a:hover {
  color: var(--stamp);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Responsive: adapt intro and service strip for smaller viewports
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .dp-front > .dp-shop-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .dp-front > .dp-shop-intro h1 {
    font-size: clamp(32px, 4.8vw, 42px);
  }

  .dp-service-strip {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 24px;
  }

  .dp-service-strip h2 {
    font-size: clamp(18px, 2.2vw, 22px);
  }
}

@media (max-width: 640px) {
  .dp-front > .dp-shop-intro h1 {
    font-size: clamp(28px, 4.2vw, 36px);
  }

  .dp-front > .dp-shop-intro > div > p {
    font-size: 15px;
  }

  .dp-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .dp-shop-note {
    padding: 20px 18px;
  }

  .dp-shop-note p {
    font-size: 14px;
  }

  .dp-service-strip {
    padding: 24px 0 20px;
  }

  .dp-service-strip h2 {
    font-size: 17px;
  }

  .dp-service-strip p {
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  .dp-front > .dp-shop-intro > div {
    gap: 12px;
  }

  .dp-front > .dp-shop-intro h1 {
    font-size: clamp(24px, 3.8vw, 30px);
  }

  .dp-shop-note {
    padding: 18px 16px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-primary,
  .dp-service-strip a,
  .dp-shop-note a {
    transition: none !important;
  }
}
