/* ============================================================
   Practical Redneck™ — Homepage
   Visual standard: complete homepage build (ported to PHP commerce)
   ============================================================ */

.page-home {
  background-image:
    linear-gradient(rgba(242,233,219,.94), rgba(242,233,219,.94)),
    url('/assets/images/textures/aged-paper.jpg');
  background-size: auto, 420px 420px;
}

.page-home .site-header {
  background: rgba(247,241,231,.96);
  backdrop-filter: blur(12px);
}

/* Hero — full-bleed image with overlaid copy + dark gradient */
.home-hero {
  position: relative;
  background: #12100e;
  border-bottom: 1px solid var(--line, var(--rule));
  overflow: hidden;
  padding: 0;
  min-height: clamp(420px, 72vh, 720px);
}
.home-hero--overlay {
  display: grid;
  align-items: stretch;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.home-hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
  /* Scrim under copy only — right side of photo stays open */
  background:
    linear-gradient(
      90deg,
      rgba(10, 8, 6, 0.78) 0%,
      rgba(10, 8, 6, 0.55) 22%,
      rgba(10, 8, 6, 0.18) 38%,
      rgba(10, 8, 6, 0.03) 50%,
      rgba(10, 8, 6, 0) 58%
    );
}
.home-hero-overlay-inner {
  width: 100%;
  padding-top: clamp(3rem, 6vh, 5rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
}
.home-hero-grid { display: none; } /* legacy split layout unused */
.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  padding-left: .15rem;
  color: #f7ecdd;
}
.home-hero-mark {
  color: var(--rust);
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: .5rem;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.7),
    0 2px 14px rgba(0, 0, 0, 0.7);
}
.home-hero-title {
  color: #f7ecdd;
  font-family: Impact, "Arial Black", "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 5.6vw, 5.6rem);
  line-height: .92;
  letter-spacing: .015em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 2px 3px rgba(0, 0, 0, 0.7),
    0 6px 22px rgba(0, 0, 0, 0.75),
    0 14px 40px rgba(0, 0, 0, 0.5);
}
.home-hero-title-em {
  display: inline-block;
  color: #e0573f;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 2px 3px rgba(0, 0, 0, 0.7),
    0 6px 22px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(0, 0, 0, 0.4);
}
.home-hero-sub {
  color: #f7ecdd;
  font-size: 1.125rem;
  line-height: 1.55;
  margin-bottom: .85rem;
  max-width: 32rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 3px 14px rgba(0, 0, 0, 0.65);
}
.home-hero-accent {
  color: #e0573f;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 3px 12px rgba(0, 0, 0, 0.6);
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.home-hero-actions .btn {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.btn-ghost--on-dark {
  background: rgba(10, 8, 6, 0.35);
  color: #f7ecdd;
  border-color: rgba(247, 236, 221, 0.65);
}
.btn-ghost--on-dark:hover {
  background: #f7ecdd;
  color: #12100e;
  border-color: #f7ecdd;
}
.home-hero-strip {
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(247, 236, 221, 0.55);
  padding: .45rem .7rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f7ecdd;
  background: rgba(10, 8, 6, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.home-hero-media { display: none; }

/* Collections */
.theme-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.theme-collection-card--photo {
  display: block;
  border: 1px solid #756753;
  background: #fff7e8;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(48,37,22,.07);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.theme-collection-card--photo:hover,
.theme-collection-card--photo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(48,37,22,.12);
  outline: none;
}
.theme-collection-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .25s ease;
}
.theme-collection-card--photo:hover .theme-collection-photo {
  transform: scale(1.025);
}

/* Best sellers — dark charcoal shop */
.home-bestsellers {
  background:
    linear-gradient(rgba(23,21,18,.96), rgba(23,21,18,.96)),
    url('/assets/images/textures/charcoal.jpg') center/cover;
  color: #f5ead8;
}
.home-bestsellers .section-kicker,
.home-bestsellers .section-kicker span { color: #f5ead8; }
.home-bestsellers .section-kicker span { color: var(--rust); }
.home-bestsellers .section-sub { color: #cdbca4; }
.home-bestsellers .product-card {
  background: #f4ecdf;
  color: #16130f;
  border-color: #8a7a62;
}
.home-bestsellers .btn-outline-cream {
  border-color: #e9ddcb;
  color: #f8eddb;
  background: transparent;
}
.home-bestsellers .btn-outline-cream:hover {
  background: #f8eddb;
  color: #16130f;
}

/* Patch feature */
.home-patch-feature {
  background:
    linear-gradient(rgba(20,17,14,.92), rgba(20,17,14,.92)),
    url('/assets/images/textures/dark-wood.jpg') center/cover;
  color: #f8efe3;
  padding: 0;
}
.home-patch-feature-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0 3rem;
  align-items: center;
  min-height: 0;
  padding: 3.75rem 0;
}
.home-patch-media {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.home-patch-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center 40%;
  border: 1px solid #83715b;
  aspect-ratio: 1.7 / 1;
  display: block;
}
.home-patch-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .5rem 0 .5rem 0.5rem;
}
.home-patch-copy .eyebrow {
  color: #cba987;
  letter-spacing: .18em;
}
.home-patch-copy h2 {
  color: #f8efe3;
  font-family: Impact, "Arial Black", "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: .03em;
  margin: .5rem 0 1.1rem;
}
.home-patch-copy p {
  color: #d2c3ad;
  max-width: 32rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Brand story */
.home-brand-story {
  background: transparent;
}
.home-brand-story-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 5rem;
  align-items: center;
}
.home-brand-story-mark img {
  width: min(320px, 82%);
  height: auto;
  margin: 0 auto;
  display: block;
}
.home-brand-story-copy h2 {
  color: var(--ink);
  font-family: Impact, "Arial Black", "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: .03em;
  margin-bottom: 1.25rem;
}
.home-brand-story-copy .text-rust { color: var(--rust); }
.home-brand-story-copy p {
  color: #5f503e;
  max-width: 40rem;
  margin-bottom: .85rem;
  font-size: 1rem;
}
.home-brand-story-copy .btn { margin-top: .75rem; }
.home-trust-wrap { margin-top: 3rem; }
.home-trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-trust-list li {
  border-top: 3px solid var(--rust);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255,250,242,.42);
  padding: 1.25rem 1.1rem;
}
.home-trust-list strong {
  display: block;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .35rem;
}
.home-trust-list span {
  color: #695a46;
  font-size: .88rem;
  line-height: 1.5;
}

/* New from garage — compact editorial merchandising */
.home-new-garage {
  background: #eee4d4;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}
.section-heading--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.section-heading--split .section-heading-row { display: none; }
.release-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  min-height: 0;
}
.release-feature,
.release-stack-card {
  position: relative;
  display: block;
  background: #16130f;
  border: 1px solid #6b5c49;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  min-height: 0;
}
.release-feature {
  aspect-ratio: 4 / 5;
}
.release-feature img,
.release-stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform .3s ease;
}
.release-feature:hover img,
.release-stack-card:hover img { transform: scale(1.03); }
.release-feature::after,
.release-stack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 42%, rgba(16,13,10,.88));
}
.release-feature__content,
.release-stack-card > div {
  position: absolute;
  z-index: 2;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1.05rem;
  color: #fff;
}
.release-feature__content span,
.release-stack-card span {
  display: inline-block;
  background: var(--olive, #4b533c);
  padding: .28rem .48rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.release-feature h3 {
  font-family: Impact, "Arial Black", "Barlow Condensed", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  margin: .55rem 0 .3rem;
  text-transform: uppercase;
  color: #fff;
}
.release-feature p {
  max-width: 34rem;
  color: #e2d6c5;
  margin: 0 0 .5rem;
  font-size: .95rem;
}
.release-feature strong,
.release-stack-card strong {
  font-size: 1.1rem;
  color: #fff;
}
.release-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}
.release-stack-card {
  aspect-ratio: 16 / 11;
}
.release-stack-card h3 {
  font-size: 1.05rem;
  margin: .45rem 0 .15rem;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}

/* Seen in the wild */
.home-wild {
  background: #161411;
  color: #f5ead9;
}
.home-wild-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.home-wild-header h2 {
  color: #f5ead9;
  margin: 0;
  font-family: Impact, "Arial Black", "Barlow Condensed", sans-serif;
  letter-spacing: .05em;
}
.home-wild-header p {
  color: #cbbda8;
  max-width: 33rem;
  margin: 0;
}
.home-wild-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.home-wild-shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #776a58;
  aspect-ratio: 1.1 / 1;
}
.home-wild-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-wild-shot figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--rust);
  padding: .5rem .75rem;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

/* Newsletter */
.home-newsletter {
  background: #1a1714;
  color: #fff;
  text-align: left;
}
.home-newsletter-inner {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.home-newsletter h2 {
  color: #fff;
  margin-bottom: .25rem;
  font-family: Impact, "Arial Black", "Barlow Condensed", sans-serif;
  letter-spacing: .03em;
}
.home-newsletter p {
  color: #c8baa6;
  margin-bottom: 0;
}
.home-newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  justify-content: stretch;
}
.home-newsletter-form input[type="email"] {
  flex: none;
  min-width: 0;
  min-height: 52px;
  padding: 0 1.1rem;
  border: 0;
  background: #f5ede0;
  color: #1b1814;
  font-size: 1rem;
}
.home-newsletter-form .btn {
  border-radius: 0;
  min-height: 52px;
}
.home-newsletter .signup-feedback {
  grid-column: 1 / -1;
  margin-top: .75rem;
  text-align: center;
  color: #9dce9a;
}
.home-newsletter .signup-feedback.is-error { color: #f0a0a8; }

.section-cta-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .theme-collections-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero { min-height: clamp(380px, 62vh, 620px); }
  .home-hero-title { font-size: clamp(2.6rem, 6vw, 3.6rem); }
  .home-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(10, 8, 6, 0.8) 0%,
        rgba(10, 8, 6, 0.5) 30%,
        rgba(10, 8, 6, 0.12) 48%,
        rgba(10, 8, 6, 0) 62%
      );
  }
  .home-patch-feature-inner,
  .home-brand-story-grid,
  .release-grid,
  .home-newsletter-inner { grid-template-columns: 1fr; }
  .home-trust-list { grid-template-columns: 1fr 1fr; }
  .home-patch-feature-inner { padding: 2.75rem 0; gap: 1.75rem; }
  .release-grid { min-height: 0; }
  .release-feature { aspect-ratio: 5 / 4; }
  .release-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .release-stack-card { aspect-ratio: 1 / 1; }
}

@media (max-width: 768px) {
  .home-hero { min-height: clamp(520px, 78vh, 680px); }
  .home-hero-bg img { object-position: 70% center; }
  .home-hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(10, 8, 6, 0.22) 0%,
        rgba(10, 8, 6, 0.35) 32%,
        rgba(10, 8, 6, 0.78) 68%,
        rgba(10, 8, 6, 0.9) 100%
      );
    align-items: flex-end;
  }
  .home-hero-title { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .home-hero-actions .btn { flex: 1 1 auto; }
  .home-patch-copy { padding: 0; }
  .home-brand-story-mark { order: -1; }
  .home-brand-story-mark img { width: 180px; }
  .home-trust-list { grid-template-columns: 1fr 1fr; }
  .section-heading--split { display: block; }
  .section-heading--split .section-heading-link { display: inline-block; margin-top: .75rem; }
  .release-stack { grid-template-columns: 1fr 1fr; }
  .home-wild-header { display: block; }
  .home-wild-header p { margin-top: .5rem; }
  .home-wild-grid { grid-template-columns: 1fr; }
  .home-wild-shot { aspect-ratio: 4 / 3; }
  .home-newsletter-form { grid-template-columns: 1fr; }
  .home-newsletter-form .btn { width: 100%; }
}

@media (max-width: 480px) {
  .theme-collections-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .home-trust-list { grid-template-columns: 1fr; }
  .release-stack { grid-template-columns: 1fr; }
}
