/* template-parts/content-home.php */

.wnb-home {
  position: relative;
  overflow-x: clip;
}

.wnb-home::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #f4f4f3;
  pointer-events: none;
}

.wnb-home > * {
  position: relative;
  z-index: 1;
}

.wnb-home__hero {
  position: relative;
  min-height: max(28rem, 85svh);
  overflow: hidden;
}

.wnb-home__hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #e5e5e5;
  object-fit: cover;
  object-position: center;
}

.wnb-home__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.14) 100%);
}

.wnb-home__tagline {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: max(28rem, 85svh);
  flex-direction: column;
  justify-content: flex-end;
  max-width: 80rem;
  margin: 0;
  padding: clamp(3rem, 10vh, 6rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6.5vw, 4.25rem);
  font-family: var(--wnb-font-hero);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: #fff;
}

.wnb-home__tagline span {
  display: block;
  max-width: min(95vw, 22ch);
  font-size: clamp(2.5rem, 10.5vw, 5.85rem);
}

/* Tablet & smartphone — size the hero to the video's native 16:9 ratio
   instead of forcing 85svh, so the footage isn't cropped down to a sliver. */
@media (max-width: 959px) {
  .wnb-home__hero {
    min-height: 20rem;
    aspect-ratio: 16 / 9;
  }

  .wnb-home__tagline {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .wnb-home__tagline span {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }
}

.wnb-home__benefits,
.wnb-home__services,
.wnb-home__stats,
.wnb-home__materials,
.wnb-vinyl-features,
.wnb-home__process,
.wnb-home__faq {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2rem);
}

.wnb-home__benefits {
  background: #e8e8e8;
}

.wnb-home__services,
.wnb-home__materials,
.wnb-vinyl-features {
  background: #fff;
}

.wnb-home__benefits-title,
.wnb-home__materials-title {
  font-size: clamp(1.5rem, 3.8vw, 2.75rem);
}

.wnb-home__materials-title {
  font-size: clamp(1.35rem, 3.25vw, 2.35rem);
}

/* vinyl features title — kept separate for specificity */
.wnb-vinyl-features__title {
  font-size: clamp(1.5rem, 3.6vw, 2.65rem);
  letter-spacing: 0.05em;
}

.wnb-vinyl-features__lead {
  max-width: 54rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: #4a4a4a;
}

.wnb-home__benefit-grid {
  display: grid;
  gap: 1rem;
  max-width: 72rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}

@media (min-width: 560px) {
  .wnb-home__benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 980px) {
  .wnb-home__benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wnb-home__benefit-card {
  display: flex;
  aspect-ratio: 1;
  max-height: 20.5rem;
  max-width: 20.5rem;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}

.wnb-home__benefit-card:hover {
  transform: translateY(-4px);
  background: #000;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.wnb-home__benefit-icon {
  display: flex;
  width: 4.25rem;
  height: 4.25rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: #e8e8e8;
  transition: transform 0.5s ease, background-color 0.5s ease;
}

.wnb-home__benefit-card:hover .wnb-home__benefit-icon {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.12);
}

.wnb-home__benefit-icon img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  transition: filter 0.5s ease;
}

.wnb-home__benefit-card:hover .wnb-home__benefit-icon img {
  filter: brightness(0) invert(1);
}

.wnb-home__benefit-card p {
  max-width: 14rem;
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
}

.wnb-home__section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

.wnb-home__service-grid {
  display: grid;
  gap: 1rem;
  max-width: 72rem;
  margin: clamp(2.75rem, 6vw, 4rem) auto 0;
}

@media (min-width: 640px) {
  .wnb-home__service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .wnb-home__service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Nav-card style: full image + gradient overlay + hover zoom */
.wnb-home__service-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.wnb-home__service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.wnb-home__service-card:focus-visible {
  outline: 2px solid #000;
  outline-offset: -2px;
}

.wnb-home__service-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wnb-home__service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  opacity: 0.88;
}

.wnb-home__service-card:hover .wnb-home__service-media img {
  transform: scale(1.1) translate(2%, -1.5%);
  opacity: 1;
}

.wnb-home__service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.35s ease;
}

.wnb-home__service-card:hover .wnb-home__service-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.wnb-home__service-label {
  margin: 0;
  color: #fff;
  font-family: var(--wnb-font-nav);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.wnb-home__service-copy {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.wnb-home__service-card:hover .wnb-home__service-copy {
  opacity: 1;
  transform: translateY(0);
}

.wnb-home__materials-lead {
  color: #1a1a1a;
}

.wnb-home__material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 72rem;
  margin: clamp(2.25rem, 5vw, 3.25rem) auto 0;
}

@media (min-width: 960px) {
  .wnb-home__material-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.wnb-home__material-tile {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

.wnb-home__material-image {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #e8e8e6;
}

.wnb-home__material-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wnb-home__material-label {
  flex-shrink: 0;
  padding: 0.85rem 0.5rem;
  background: #000;
  text-align: center;
}

.wnb-home__material-label h3 {
  margin: 0;
  font-family: var(--wnb-font-hero);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
}

@media (min-width: 480px) {
  .wnb-home__material-label h3 { font-size: 0.72rem; }
}

@media (min-width: 640px) {
  .wnb-home__material-label h3 { font-size: 0.78rem; }
}

/* ── Vinyl Features card grid ── */
.wnb-vinyl-features__border-wrap {
  max-width: 72rem;
  margin: 0 auto;
  border-top: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
}

.wnb-vinyl-features__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .wnb-vinyl-features__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .wnb-vinyl-features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wnb-vinyl-feature {
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: left;
}

.wnb-vinyl-feature__header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.wnb-vinyl-feature__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #000;
  color: #fff;
}

.wnb-vinyl-feature h3 {
  margin: 0;
  padding-top: 0.25rem;
  font-family: var(--wnb-font-hero);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: #000;
}

@media (min-width: 640px) {
  .wnb-vinyl-feature h3 {
    font-size: 0.82rem;
  }
}

.wnb-vinyl-feature p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: #3a3a3a;
}

.wnb-home__process {
  background: #e8e8e8;
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
}

.wnb-home__process-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 80rem;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 960px) {
  .wnb-home__process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.wnb-home__process-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wnb-home__process-right {
  display: flex;
  flex-direction: column;
}

.wnb-home__process-title {
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
}

.wnb-home__process-lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wnb-card-copy);
}

.wnb-home__process-carousel {
  position: relative;
  min-height: 17.5rem;
  margin-top: 2rem;
  overflow: hidden;
  background: #dcd9d4;
}

@media (min-width: 960px) {
  .wnb-home__process-carousel {
    flex: 1;
    min-height: 0;
    aspect-ratio: 2 / 3;
  }
}

.wnb-home__process-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.wnb-home__process-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.wnb-home__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.wnb-home__steps li {
  margin-bottom: 1.375rem;
}

@media (min-width: 960px) {
  .wnb-home__steps {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .wnb-home__steps li {
    margin-bottom: 0;
  }
}

.wnb-home__step-num {
  font-family: var(--wnb-font-hero);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
}

.wnb-home__steps h3 {
  margin: 0.75rem 0 0;
  font-family: var(--wnb-font-hero);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wnb-home__steps p {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #2a2a2a;
}

.wnb-home__process-right .wnb-btn {
  margin-top: 1.5rem;
}

/* WhatsApp + back-to-top styles now live in components.css (.wnb-fab-whatsapp / .wnb-fab-back-top) */

/* ── FAQ section ── */
.wnb-home__faq {
  background: #fff;
}

.wnb-home__faq-title {
  font-size: clamp(1.5rem, 3.8vw, 2.65rem);
  letter-spacing: 0.04em;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.wnb-home__faq-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
}

@media (min-width: 700px) {
  .wnb-home__faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wnb-home__faq-item {
  padding: 1.75rem 0;
}

.wnb-home__faq-trigger {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--wnb-font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

@media (min-width: 640px) {
  .wnb-home__faq-trigger {
    font-size: 1.125rem;
  }
}

.wnb-home__faq-chevron {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #000;
  transition: transform 0.2s ease;
}

.wnb-home__faq-trigger[aria-expanded="true"] .wnb-home__faq-chevron {
  transform: rotate(180deg);
}

.wnb-home__faq-panel {
  height: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #3a3a3a;
}

.wnb-home__faq-panel > div {
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .wnb-home__faq-panel {
    font-size: 1.0625rem;
  }
}

/* ── Stats / Counter ─────────────────────────────────────── */

.wnb-home__stats {
  background: #fff;
  text-align: center;
}

.wnb-home__stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.wnb-home__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(2rem, 6vw, 5rem);
}

/* vertical divider between stats */
.wnb-home__stat + .wnb-home__stat {
  border-left: 1px solid #e0e0e0;
}

@media (max-width: 599px) {
  .wnb-home__stat + .wnb-home__stat {
    border-left: none;
    border-top: 1px solid #e0e0e0;
  }

  .wnb-home__stat {
    width: 100%;
  }
}

.wnb-home__stat-number {
  display: block;
  font-size: clamp(2.75rem, 7.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--wnb-text);
  font-variant-numeric: tabular-nums;
}

.wnb-home__stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wnb-muted);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .wnb-home__benefit-card:hover {
    transform: none;
  }

  .wnb-home__process-slide {
    transition: none;
  }
}
